diff --git a/CHANGELOG.md b/CHANGELOG.md index 79243909489..c6caad27a66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +Release v1.41.15 (2021-11-01) +=== + +### Service Client Updates +* `service/lightsail`: Updates service API and documentation + * This release adds support to enable access logging for buckets in the Lightsail object storage service. +* `service/neptune`: Updates service API and documentation + * Adds support for major version upgrades to ModifyDbCluster API +* `service/networkmanager`: Updates service API, documentation, and paginators +* `service/rekognition`: Updates service API, documentation, and paginators + * This Amazon Rekognition Custom Labels release introduces the management of datasets with projects + Release v1.41.14 (2021-10-29) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 814959c7b71..32cb06385fe 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -8197,6 +8197,7 @@ var awsPartition = partition{ Protocols: []string{"https"}, }, Endpoints: endpoints{ + "af-south-1": endpoint{}, "ap-east-1": endpoint{}, "ap-northeast-1": endpoint{}, "ap-northeast-2": endpoint{}, @@ -8205,6 +8206,7 @@ var awsPartition = partition{ "ap-southeast-2": endpoint{}, "ca-central-1": endpoint{}, "eu-central-1": endpoint{}, + "eu-north-1": endpoint{}, "eu-west-1": endpoint{}, "eu-west-2": endpoint{}, "eu-west-3": endpoint{}, diff --git a/aws/version.go b/aws/version.go index 5002a4fe397..9ea61e01663 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.41.14" +const SDKVersion = "1.41.15" diff --git a/models/apis/lightsail/2016-11-28/api-2.json b/models/apis/lightsail/2016-11-28/api-2.json index 2e8ec8dc2bd..625d2e95416 100644 --- a/models/apis/lightsail/2016-11-28/api-2.json +++ b/models/apis/lightsail/2016-11-28/api-2.json @@ -3030,9 +3030,25 @@ "ableToUpdateBundle":{"shape":"boolean"}, "readonlyAccessAccounts":{"shape":"PartnerIdList"}, "resourcesReceivingAccess":{"shape":"AccessReceiverList"}, - "state":{"shape":"BucketState"} + "state":{"shape":"BucketState"}, + "accessLogConfig":{"shape":"BucketAccessLogConfig"} } }, + "BucketAccessLogConfig":{ + "type":"structure", + "required":["enabled"], + "members":{ + "enabled":{"shape":"boolean"}, + "destination":{"shape":"BucketName"}, + "prefix":{"shape":"BucketAccessLogPrefix"} + } + }, + "BucketAccessLogPrefix":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[\\w/!.*')(-]+$" + }, "BucketBundle":{ "type":"structure", "members":{ @@ -7312,7 +7328,8 @@ "bucketName":{"shape":"BucketName"}, "accessRules":{"shape":"AccessRules"}, "versioning":{"shape":"NonEmptyString"}, - "readonlyAccessAccounts":{"shape":"PartnerIdList"} + "readonlyAccessAccounts":{"shape":"PartnerIdList"}, + "accessLogConfig":{"shape":"BucketAccessLogConfig"} } }, "UpdateBucketResult":{ diff --git a/models/apis/lightsail/2016-11-28/docs-2.json b/models/apis/lightsail/2016-11-28/docs-2.json index f4ea0f0f35d..2c552c9b068 100644 --- a/models/apis/lightsail/2016-11-28/docs-2.json +++ b/models/apis/lightsail/2016-11-28/docs-2.json @@ -432,6 +432,19 @@ "UpdateBucketResult$bucket": "

An object that describes the bucket that is updated.

" } }, + "BucketAccessLogConfig": { + "base": "

Describes the access log configuration for a bucket in the Amazon Lightsail object storage service.

For more information about bucket access logs, see Logging bucket requests using access logging in Amazon Lightsail in the Amazon Lightsail Developer Guide.

", + "refs": { + "Bucket$accessLogConfig": "

An object that describes the access log configuration for the bucket.

", + "UpdateBucketRequest$accessLogConfig": "

An object that describes the access log configuration for the bucket.

" + } + }, + "BucketAccessLogPrefix": { + "base": null, + "refs": { + "BucketAccessLogConfig$prefix": "

The optional object prefix for the bucket access log.

The prefix is an optional addition to the object key that organizes your access log files in the destination bucket. For example, if you specify a logs/ prefix, then each log object will begin with the logs/ prefix in its key (for example, logs/2021-11-01-21-32-16-E568B2907131C0C0).

This parameter can be optionally specified when enabling the access log for a bucket, and should be omitted when disabling the access log.

" + } + }, "BucketBundle": { "base": "

Describes the specifications of a bundle that can be applied to an Amazon Lightsail bucket.

A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.

", "refs": { @@ -461,6 +474,7 @@ "base": null, "refs": { "Bucket$name": "

The name of the bucket.

", + "BucketAccessLogConfig$destination": "

The name of the bucket where the access is saved. The destination can be a Lightsail bucket in the same account, and in the same AWS Region as the source bucket.

This parameter is required when enabling the access log for a bucket, and should be omitted when disabling the access log.

", "CreateBucketAccessKeyRequest$bucketName": "

The name of the bucket that the new access key will belong to, and grant access to.

", "CreateBucketRequest$bucketName": "

The name for the bucket.

For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.

", "DeleteBucketAccessKeyRequest$bucketName": "

The name of the bucket that the access key belongs to.

", @@ -3856,7 +3870,7 @@ "ContainerService$tags": "

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

", "CreateBucketRequest$tags": "

The tag keys and optional values to add to the bucket during creation.

Use the TagResource action to tag the bucket after it's created.

", "CreateCertificateRequest$tags": "

The tag keys and optional values to add to the certificate during create.

Use the TagResource action to tag a resource after it's created.

", - "CreateContainerServiceRequest$tags": "

The tag keys and optional values to add to the certificate during create.

Use the TagResource action to tag a resource after it's created.

For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

", + "CreateContainerServiceRequest$tags": "

The tag keys and optional values to add to the container service during create.

Use the TagResource action to tag a resource after it's created.

For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

", "CreateDiskFromSnapshotRequest$tags": "

The tag keys and optional values to add to the resource during create.

Use the TagResource action to tag a resource after it's created.

", "CreateDiskRequest$tags": "

The tag keys and optional values to add to the resource during create.

Use the TagResource action to tag a resource after it's created.

", "CreateDiskSnapshotRequest$tags": "

The tag keys and optional values to add to the resource during create.

Use the TagResource action to tag a resource after it's created.

", @@ -4048,6 +4062,7 @@ "Alarm$notificationEnabled": "

Indicates whether the alarm is enabled.

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

", "Bucket$ableToUpdateBundle": "

Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle.

You can update a bucket's bundle only one time within a monthly AWS billing cycle.

Use the UpdateBucketBundle action to change a bucket's bundle.

", + "BucketAccessLogConfig$enabled": "

A Boolean value that indicates whether bucket access logging is enabled for the bucket.

", "BucketBundle$isActive": "

Indicates whether the bundle is active. Use for a new or existing bucket.

", "Bundle$isActive": "

A Boolean value indicating whether the bundle is active.

", "ContainerService$isDisabled": "

A Boolean value indicating whether the container service is disabled.

", @@ -4216,7 +4231,7 @@ "CacheBehaviorPerPath$path": "

The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/*), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

Examples:

", "Certificate$supportCode": "

The support code. Include this code in your email to support when you have questions about your Lightsail certificate. This code enables our support team to look up your Lightsail information more easily.

", "ContactMethod$supportCode": "

The support code. Include this code in your email to support when you have questions about your Lightsail contact method. This code enables our support team to look up your Lightsail information more easily.

", - "Container$image": "

The name of the image used for the container.

Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, :container-service-1.mystaticwebsite.1. Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

", + "Container$image": "

The name of the image used for the container.

Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

", "ContainerImage$image": "

The name of the container image.

", "ContainerImage$digest": "

The digest of the container image.

", "ContainerService$powerId": "

The ID of the power of the container service.

", diff --git a/models/apis/neptune/2014-10-31/api-2.json b/models/apis/neptune/2014-10-31/api-2.json index 40aa6869084..7a4540bd9c2 100644 --- a/models/apis/neptune/2014-10-31/api-2.json +++ b/models/apis/neptune/2014-10-31/api-2.json @@ -3022,6 +3022,8 @@ "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}, "CloudwatchLogsExportConfiguration":{"shape":"CloudwatchLogsExportConfiguration"}, "EngineVersion":{"shape":"String"}, + "AllowMajorVersionUpgrade":{"shape":"Boolean"}, + "DBInstanceParameterGroupName":{"shape":"String"}, "DeletionProtection":{"shape":"BooleanOptional"}, "CopyTagsToSnapshot":{"shape":"BooleanOptional"} } diff --git a/models/apis/neptune/2014-10-31/docs-2.json b/models/apis/neptune/2014-10-31/docs-2.json index 74e9f0fe663..3dfea2fa16e 100644 --- a/models/apis/neptune/2014-10-31/docs-2.json +++ b/models/apis/neptune/2014-10-31/docs-2.json @@ -2,7 +2,7 @@ "version": "2.0", "service": "Amazon Neptune

Amazon Neptune is a fast, reliable, fully-managed graph database service that makes it easy to build and run applications that work with highly connected datasets. The core of Amazon Neptune is a purpose-built, high-performance graph database engine optimized for storing billions of relationships and querying the graph with milliseconds latency. Amazon Neptune supports popular graph models Property Graph and W3C's RDF, and their respective query languages Apache TinkerPop Gremlin and SPARQL, allowing you to easily build queries that efficiently navigate highly connected datasets. Neptune powers graph use cases such as recommendation engines, fraud detection, knowledge graphs, drug discovery, and network security.

This interface reference for Amazon Neptune contains documentation for a programming or command line interface you can use to manage Amazon Neptune. Note that Amazon Neptune is asynchronous, which means that some interfaces might require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. The reference structure is as follows, and we list following some related topics from the user guide.

", "operations": { - "AddRoleToDBCluster": "

Associates an Identity and Access Management (IAM) role from an Neptune DB cluster.

", + "AddRoleToDBCluster": "

Associates an Identity and Access Management (IAM) role with an Neptune DB cluster.

", "AddSourceIdentifierToSubscription": "

Adds a source identifier to an existing event notification subscription.

", "AddTagsToResource": "

Adds metadata tags to an Amazon Neptune resource. These tags can also be used with cost allocation reporting to track cost associated with Amazon Neptune resources, or used in a Condition statement in an IAM policy for Amazon Neptune.

", "ApplyPendingMaintenanceAction": "

Applies a pending maintenance action to a resource (for example, to a DB instance).

", @@ -63,7 +63,7 @@ "ResetDBParameterGroup": "

Modifies the parameters of a DB parameter group to the engine/system default value. To reset specific parameters, provide a list of the following: ParameterName and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

", "RestoreDBClusterFromSnapshot": "

Creates a new DB cluster from a DB snapshot or DB cluster snapshot.

If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.

If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.

", "RestoreDBClusterToPointInTime": "

Restores a DB cluster to an arbitrary point in time. Users can restore to any point in time before LatestRestorableTime for up to BackupRetentionPeriod days. The target DB cluster is created from the source DB cluster with the same configuration as the original DB cluster, except that the new DB cluster is created with the default DB security group.

This action only restores the DB cluster, not the DB instances for that DB cluster. You must invoke the CreateDBInstance action to create DB instances for the restored DB cluster, specifying the identifier of the restored DB cluster in DBClusterIdentifier. You can create DB instances only after the RestoreDBClusterToPointInTime action has completed and the DB cluster is available.

", - "StartDBCluster": "

Starts an Amazon Neptune DB cluster that was stopped using the AWS console, the Amazon CLI stop-db-cluster command, or the StopDBCluster API.

", + "StartDBCluster": "

Starts an Amazon Neptune DB cluster that was stopped using the Amazon console, the Amazon CLI stop-db-cluster command, or the StopDBCluster API.

", "StopDBCluster": "

Stops an Amazon Neptune DB cluster. When you stop a DB cluster, Neptune retains the DB cluster's metadata, including its endpoints and DB parameter groups.

Neptune also retains the transaction logs so you can do a point-in-time restore if necessary.

" }, "shapes": { @@ -107,7 +107,7 @@ "base": null, "refs": { "DBClusterSnapshotAttribute$AttributeValues": "

The value(s) for the manual DB cluster snapshot attribute.

If the AttributeName field is set to restore, then this element returns a list of IDs of the Amazon accounts that are authorized to copy or restore the manual DB cluster snapshot. If a value of all is in the list, then the manual DB cluster snapshot is public and available for any Amazon account to copy or restore.

", - "ModifyDBClusterSnapshotAttributeMessage$ValuesToAdd": "

A list of DB cluster snapshot attributes to add to the attribute specified by AttributeName.

To authorize other Amazon accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon account IDs, or all to make the manual DB cluster snapshot restorable by any Amazon account. 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.

", + "ModifyDBClusterSnapshotAttributeMessage$ValuesToAdd": "

A list of DB cluster snapshot attributes to add to the attribute specified by AttributeName.

To authorize other Amazon accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon account IDs, or all to make the manual DB cluster snapshot restorable by any Amazon account. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all Amazon accounts.

", "ModifyDBClusterSnapshotAttributeMessage$ValuesToRemove": "

A list of DB cluster snapshot attributes to remove from the attribute specified by AttributeName.

To remove authorization for other Amazon accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon account identifiers, or all to remove authorization for any Amazon account to copy or restore the DB cluster snapshot. If you specify all, an Amazon account whose account ID is explicitly added to the restore attribute can still copy or restore a manual DB cluster snapshot.

" } }, @@ -158,11 +158,12 @@ "DBInstanceStatusInfo$Normal": "

Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

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

", - "DescribeDBClusterSnapshotsMessage$IncludeShared": "

True to include shared manual DB cluster snapshots from other Amazon accounts that this AWS account has been given permission to copy or restore, and otherwise false. The default is false.

You can give an Amazon account permission to restore a manual DB cluster snapshot from another Amazon account by the ModifyDBClusterSnapshotAttribute API action.

", + "DescribeDBClusterSnapshotsMessage$IncludeShared": "

True to include shared manual DB cluster snapshots from other Amazon accounts that this Amazon account has been given permission to copy or restore, and otherwise false. The default is false.

You can give an Amazon account permission to restore a manual DB cluster snapshot from another Amazon 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 Amazon 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.

", "EventSubscription$Enabled": "

A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

", "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 NewDBClusterIdentifier values. If you set the ApplyImmediately parameter value to false, then changes to 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

", + "ModifyDBClusterMessage$AllowMajorVersionUpgrade": "

A value that indicates whether upgrades between different major versions are allowed.

Constraints: You must set the allow-major-version-upgrade flag when providing an EngineVersion parameter that uses a different major version than the DB cluster's current version.

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

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.

", "OrderableDBInstanceOption$MultiAZCapable": "

Indicates whether a DB instance is Multi-AZ capable.

", @@ -1656,7 +1657,7 @@ "refs": { "AddRoleToDBClusterMessage$DBClusterIdentifier": "

The name of the DB cluster to associate the IAM role with.

", "AddRoleToDBClusterMessage$RoleArn": "

The Amazon Resource Name (ARN) of the IAM role to associate with the Neptune DB cluster, for example arn:aws:iam::123456789012:role/NeptuneAccessRole.

", - "AddRoleToDBClusterMessage$FeatureName": "

The name of the feature for the Neptune DB cluster that the IAM role is to be associated with. For the list of supported feature names, see DBEngineVersion.

", + "AddRoleToDBClusterMessage$FeatureName": "

The name of the feature for the Neptune DB cluster that the IAM role is to be associated with. For the list of supported feature names, see DBEngineVersion.

", "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": "

The name of the event notification subscription you want to add a source identifier to.

", "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": "

The identifier of the event source to be added.

Constraints:

", "AddTagsToResourceMessage$ResourceName": "

The Amazon Neptune resource that the tags are added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an Amazon Resource Name (ARN).

", @@ -1785,7 +1786,7 @@ "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:

", - "DBClusterRole$FeatureName": "

The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion.

", + "DBClusterRole$FeatureName": "

The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DescribeDBEngineVersions.

", "DBClusterSnapshot$DBClusterSnapshotIdentifier": "

Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot.

After you restore a DB cluster using a DBClusterSnapshotIdentifier, you must specify the same DBClusterSnapshotIdentifier for any future updates to the DB cluster. When you specify this property for an update, the DB cluster is not restored from the snapshot again, and the data in the database is not changed.

However, if you don't specify the DBClusterSnapshotIdentifier, an empty DB cluster is created, and the original DB cluster is deleted. If you specify a property that is different from the previous snapshot restore property, the DB cluster is restored from the snapshot specified by the DBClusterSnapshotIdentifier, and the original DB cluster is deleted.

", "DBClusterSnapshot$DBClusterIdentifier": "

Specifies the DB cluster identifier of the DB cluster that this DB cluster snapshot was created from.

", "DBClusterSnapshot$Engine": "

Specifies the name of the database engine.

", @@ -1883,7 +1884,7 @@ "DescribeDBClusterSnapshotAttributesMessage$DBClusterSnapshotIdentifier": "

The identifier for the DB cluster snapshot to describe the attributes for.

", "DescribeDBClusterSnapshotsMessage$DBClusterIdentifier": "

The ID of the DB cluster to retrieve the list of DB cluster snapshots for. This parameter can't be used in conjunction with the DBClusterSnapshotIdentifier parameter. This parameter is not case-sensitive.

Constraints:

", "DescribeDBClusterSnapshotsMessage$DBClusterSnapshotIdentifier": "

A specific DB cluster snapshot identifier to describe. This parameter can't be used in conjunction with the DBClusterIdentifier parameter. This value is stored as a lowercase string.

Constraints:

", - "DescribeDBClusterSnapshotsMessage$SnapshotType": "

The type of DB cluster snapshots to be returned. You can specify one of the following values:

If you don't specify a SnapshotType value, then both automated and manual DB cluster snapshots are returned. You can include shared DB cluster snapshots with these results by setting the IncludeShared parameter to true. You can include public DB cluster snapshots with these results by setting the IncludePublic 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.

", + "DescribeDBClusterSnapshotsMessage$SnapshotType": "

The type of DB cluster snapshots to be returned. You can specify one of the following values:

If you don't specify a SnapshotType value, then both automated and manual DB cluster snapshots are returned. You can include shared DB cluster snapshots with these results by setting the IncludeShared parameter to true. You can include public DB cluster snapshots with these results by setting the IncludePublic 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.

", "DescribeDBClusterSnapshotsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusterSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeDBClustersMessage$DBClusterIdentifier": "

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:

", "DescribeDBClustersMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", @@ -1964,11 +1965,12 @@ "ModifyDBClusterMessage$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 Amazon Region.

Constraints:

", "ModifyDBClusterMessage$PreferredMaintenanceWindow": "

The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

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 Amazon Region, occurring on a random day of the week.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

Constraints: Minimum 30-minute window.

", "ModifyDBClusterMessage$EngineVersion": "

The version number of the database engine to which you want to upgrade. Changing this parameter results in an outage. The change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true.

For a list of valid engine versions, see Engine Releases for Amazon Neptune, or call DescribeDBEngineVersions.

", + "ModifyDBClusterMessage$DBInstanceParameterGroupName": "

The name of the DB parameter group to apply to all instances of the DB cluster.

When you apply a parameter group using DBInstanceParameterGroupName, parameter changes aren't applied during the next maintenance window but instead are applied immediately.

Default: The existing name setting

Constraints:

", "ModifyDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to modify.

", "ModifyDBClusterSnapshotAttributeMessage$DBClusterSnapshotIdentifier": "

The identifier for the DB cluster snapshot to modify the attributes for.

", "ModifyDBClusterSnapshotAttributeMessage$AttributeName": "

The name of the DB cluster snapshot attribute to modify.

To manage authorization for other Amazon accounts to copy or restore a manual DB cluster snapshot, set this value to restore.

", "ModifyDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This value is stored as a lowercase string.

Constraints:

", - "ModifyDBInstanceMessage$DBInstanceClass": "

The new compute and memory capacity of the DB instance, for example, db.m4.large. Not all DB instance classes are available in all AWS Regions.

If you modify the DB instance class, an outage occurs during the change. The change is applied during the next maintenance window, unless ApplyImmediately is specified as true for this request.

Default: Uses existing setting

", + "ModifyDBInstanceMessage$DBInstanceClass": "

The new compute and memory capacity of the DB instance, for example, db.m4.large. Not all DB instance classes are available in all Amazon Regions.

If you modify the DB instance class, an outage occurs during the change. The change is applied during the next maintenance window, unless ApplyImmediately is specified as true for this request.

Default: Uses existing setting

", "ModifyDBInstanceMessage$DBSubnetGroupName": "

The new DB subnet group for the DB instance. You can use this parameter to move your DB instance to a different VPC.

Changing the subnet group causes an outage during the change. The change is applied during the next maintenance window, unless you specify true for the ApplyImmediately parameter.

Constraints: If supplied, must match the name of an existing DBSubnetGroup.

Example: mySubnetGroup

", "ModifyDBInstanceMessage$MasterUserPassword": "

Not supported by Neptune.

", "ModifyDBInstanceMessage$DBParameterGroupName": "

The name of the DB parameter group to apply to the DB instance. Changing this setting doesn't result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. The db instance will NOT be rebooted automatically and the parameter changes will NOT be applied during the next maintenance window.

Default: Uses existing setting

Constraints: The DB parameter group must be in the same DB parameter group family as this DB instance.

", @@ -2027,7 +2029,7 @@ "RebootDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

", "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 DB cluster, for example arn:aws:iam::123456789012:role/NeptuneAccessRole.

", - "RemoveRoleFromDBClusterMessage$FeatureName": "

The name of the feature for the DB cluster that the IAM role is to be disassociated from. For the list of supported feature names, see DBEngineVersion.

", + "RemoveRoleFromDBClusterMessage$FeatureName": "

The name of the feature for the DB cluster that the IAM role is to be disassociated from. For the list of supported feature names, see DescribeDBEngineVersions.

", "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": "

The name of the event notification subscription you want to remove a source identifier from.

", "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": "

The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

", "RemoveTagsFromResourceMessage$ResourceName": "

The Amazon Neptune resource that the tags are removed from. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an Amazon Resource Name (ARN).

", @@ -2057,8 +2059,8 @@ "Subnet$SubnetIdentifier": "

Specifies the identifier of the subnet.

", "Subnet$SubnetStatus": "

Specifies the status of the subnet.

", "SubnetIdentifierList$member": null, - "Tag$Key": "

A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with \"aws:\" or \"rds:\". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", - "Tag$Value": "

A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with \"aws:\" or \"rds:\". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", + "Tag$Key": "

A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with aws: or rds:. The string can only contain the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", + "Tag$Value": "

A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with aws: or rds:. The string can only contain the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", "Timezone$TimezoneName": "

The name of the time zone.

", "UpgradeTarget$Engine": "

The name of the upgrade target database engine.

", "UpgradeTarget$EngineVersion": "

The version number of the upgrade target database engine.

", diff --git a/models/apis/networkmanager/2019-07-05/api-2.json b/models/apis/networkmanager/2019-07-05/api-2.json index 3c211d2033f..0ae0caaa3ea 100644 --- a/models/apis/networkmanager/2019-07-05/api-2.json +++ b/models/apis/networkmanager/2019-07-05/api-2.json @@ -405,6 +405,101 @@ {"shape":"InternalServerException"} ] }, + "GetNetworkResourceCounts":{ + "name":"GetNetworkResourceCounts", + "http":{ + "method":"GET", + "requestUri":"/global-networks/{globalNetworkId}/network-resource-count" + }, + "input":{"shape":"GetNetworkResourceCountsRequest"}, + "output":{"shape":"GetNetworkResourceCountsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "GetNetworkResourceRelationships":{ + "name":"GetNetworkResourceRelationships", + "http":{ + "method":"GET", + "requestUri":"/global-networks/{globalNetworkId}/network-resource-relationships" + }, + "input":{"shape":"GetNetworkResourceRelationshipsRequest"}, + "output":{"shape":"GetNetworkResourceRelationshipsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "GetNetworkResources":{ + "name":"GetNetworkResources", + "http":{ + "method":"GET", + "requestUri":"/global-networks/{globalNetworkId}/network-resources" + }, + "input":{"shape":"GetNetworkResourcesRequest"}, + "output":{"shape":"GetNetworkResourcesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "GetNetworkRoutes":{ + "name":"GetNetworkRoutes", + "http":{ + "method":"POST", + "requestUri":"/global-networks/{globalNetworkId}/network-routes" + }, + "input":{"shape":"GetNetworkRoutesRequest"}, + "output":{"shape":"GetNetworkRoutesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "GetNetworkTelemetry":{ + "name":"GetNetworkTelemetry", + "http":{ + "method":"GET", + "requestUri":"/global-networks/{globalNetworkId}/network-telemetry" + }, + "input":{"shape":"GetNetworkTelemetryRequest"}, + "output":{"shape":"GetNetworkTelemetryResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "GetRouteAnalysis":{ + "name":"GetRouteAnalysis", + "http":{ + "method":"GET", + "requestUri":"/global-networks/{globalNetworkId}/route-analyses/{routeAnalysisId}" + }, + "input":{"shape":"GetRouteAnalysisRequest"}, + "output":{"shape":"GetRouteAnalysisResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, "GetSites":{ "name":"GetSites", "http":{ @@ -487,6 +582,23 @@ {"shape":"InternalServerException"} ] }, + "StartRouteAnalysis":{ + "name":"StartRouteAnalysis", + "http":{ + "method":"POST", + "requestUri":"/global-networks/{globalNetworkId}/route-analyses" + }, + "input":{"shape":"StartRouteAnalysisRequest"}, + "output":{"shape":"StartRouteAnalysisResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, "TagResource":{ "name":"TagResource", "http":{ @@ -591,6 +703,23 @@ {"shape":"InternalServerException"} ] }, + "UpdateNetworkResourceMetadata":{ + "name":"UpdateNetworkResourceMetadata", + "http":{ + "method":"PATCH", + "requestUri":"/global-networks/{globalNetworkId}/network-resources/{resourceArn}/metadata" + }, + "input":{"shape":"UpdateNetworkResourceMetadataRequest"}, + "output":{"shape":"UpdateNetworkResourceMetadataResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, "UpdateSite":{ "name":"UpdateSite", "http":{ @@ -704,6 +833,7 @@ "DownloadSpeed":{"shape":"Integer"} } }, + "Boolean":{"type":"boolean"}, "ConflictException":{ "type":"structure", "required":[ @@ -735,6 +865,14 @@ "Tags":{"shape":"TagList"} } }, + "ConnectionHealth":{ + "type":"structure", + "members":{ + "Type":{"shape":"ConnectionType"}, + "Status":{"shape":"ConnectionStatus"}, + "Timestamp":{"shape":"DateTime"} + } + }, "ConnectionList":{ "type":"list", "member":{"shape":"Connection"} @@ -748,6 +886,20 @@ "UPDATING" ] }, + "ConnectionStatus":{ + "type":"string", + "enum":[ + "UP", + "DOWN" + ] + }, + "ConnectionType":{ + "type":"string", + "enum":[ + "BGP", + "IPSEC" + ] + }, "CreateConnectionRequest":{ "type":"structure", "required":[ @@ -1167,6 +1319,32 @@ "TransitGatewayConnectPeerAssociation":{"shape":"TransitGatewayConnectPeerAssociation"} } }, + "ExceptionContextKey":{"type":"string"}, + "ExceptionContextMap":{ + "type":"map", + "key":{"shape":"ExceptionContextKey"}, + "value":{"shape":"ExceptionContextValue"} + }, + "ExceptionContextValue":{"type":"string"}, + "FilterMap":{ + "type":"map", + "key":{"shape":"FilterName"}, + "value":{"shape":"FilterValues"} + }, + "FilterName":{ + "type":"string", + "max":128, + "pattern":"^[0-9a-zA-Z\\.-]*$" + }, + "FilterValue":{ + "type":"string", + "max":255, + "pattern":"^[0-9a-zA-Z\\*\\.\\\\/\\?-]*$" + }, + "FilterValues":{ + "type":"list", + "member":{"shape":"FilterValue"} + }, "GetConnectionsRequest":{ "type":"structure", "required":["GlobalNetworkId"], @@ -1362,6 +1540,255 @@ "NextToken":{"shape":"String"} } }, + "GetNetworkResourceCountsRequest":{ + "type":"structure", + "required":["GlobalNetworkId"], + "members":{ + "GlobalNetworkId":{ + "shape":"String", + "location":"uri", + "locationName":"globalNetworkId" + }, + "ResourceType":{ + "shape":"String", + "location":"querystring", + "locationName":"resourceType" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "GetNetworkResourceCountsResponse":{ + "type":"structure", + "members":{ + "NetworkResourceCounts":{"shape":"NetworkResourceCountList"}, + "NextToken":{"shape":"String"} + } + }, + "GetNetworkResourceRelationshipsRequest":{ + "type":"structure", + "required":["GlobalNetworkId"], + "members":{ + "GlobalNetworkId":{ + "shape":"String", + "location":"uri", + "locationName":"globalNetworkId" + }, + "RegisteredGatewayArn":{ + "shape":"String", + "location":"querystring", + "locationName":"registeredGatewayArn" + }, + "AwsRegion":{ + "shape":"String", + "location":"querystring", + "locationName":"awsRegion" + }, + "AccountId":{ + "shape":"String", + "location":"querystring", + "locationName":"accountId" + }, + "ResourceType":{ + "shape":"String", + "location":"querystring", + "locationName":"resourceType" + }, + "ResourceArn":{ + "shape":"String", + "location":"querystring", + "locationName":"resourceArn" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "GetNetworkResourceRelationshipsResponse":{ + "type":"structure", + "members":{ + "Relationships":{"shape":"RelationshipList"}, + "NextToken":{"shape":"String"} + } + }, + "GetNetworkResourcesRequest":{ + "type":"structure", + "required":["GlobalNetworkId"], + "members":{ + "GlobalNetworkId":{ + "shape":"String", + "location":"uri", + "locationName":"globalNetworkId" + }, + "RegisteredGatewayArn":{ + "shape":"String", + "location":"querystring", + "locationName":"registeredGatewayArn" + }, + "AwsRegion":{ + "shape":"String", + "location":"querystring", + "locationName":"awsRegion" + }, + "AccountId":{ + "shape":"String", + "location":"querystring", + "locationName":"accountId" + }, + "ResourceType":{ + "shape":"String", + "location":"querystring", + "locationName":"resourceType" + }, + "ResourceArn":{ + "shape":"String", + "location":"querystring", + "locationName":"resourceArn" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "GetNetworkResourcesResponse":{ + "type":"structure", + "members":{ + "NetworkResources":{"shape":"NetworkResourceList"}, + "NextToken":{"shape":"String"} + } + }, + "GetNetworkRoutesRequest":{ + "type":"structure", + "required":[ + "GlobalNetworkId", + "RouteTableIdentifier" + ], + "members":{ + "GlobalNetworkId":{ + "shape":"String", + "location":"uri", + "locationName":"globalNetworkId" + }, + "RouteTableIdentifier":{"shape":"RouteTableIdentifier"}, + "ExactCidrMatches":{"shape":"StringList"}, + "LongestPrefixMatches":{"shape":"StringList"}, + "SubnetOfMatches":{"shape":"StringList"}, + "SupernetOfMatches":{"shape":"StringList"}, + "PrefixListIds":{"shape":"StringList"}, + "States":{"shape":"RouteStateList"}, + "Types":{"shape":"RouteTypeList"}, + "DestinationFilters":{"shape":"FilterMap"} + } + }, + "GetNetworkRoutesResponse":{ + "type":"structure", + "members":{ + "RouteTableArn":{"shape":"String"}, + "RouteTableType":{"shape":"RouteTableType"}, + "RouteTableTimestamp":{"shape":"DateTime"}, + "NetworkRoutes":{"shape":"NetworkRouteList"} + } + }, + "GetNetworkTelemetryRequest":{ + "type":"structure", + "required":["GlobalNetworkId"], + "members":{ + "GlobalNetworkId":{ + "shape":"String", + "location":"uri", + "locationName":"globalNetworkId" + }, + "RegisteredGatewayArn":{ + "shape":"String", + "location":"querystring", + "locationName":"registeredGatewayArn" + }, + "AwsRegion":{ + "shape":"String", + "location":"querystring", + "locationName":"awsRegion" + }, + "AccountId":{ + "shape":"String", + "location":"querystring", + "locationName":"accountId" + }, + "ResourceType":{ + "shape":"String", + "location":"querystring", + "locationName":"resourceType" + }, + "ResourceArn":{ + "shape":"String", + "location":"querystring", + "locationName":"resourceArn" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "GetNetworkTelemetryResponse":{ + "type":"structure", + "members":{ + "NetworkTelemetry":{"shape":"NetworkTelemetryList"}, + "NextToken":{"shape":"String"} + } + }, + "GetRouteAnalysisRequest":{ + "type":"structure", + "required":[ + "GlobalNetworkId", + "RouteAnalysisId" + ], + "members":{ + "GlobalNetworkId":{ + "shape":"String", + "location":"uri", + "locationName":"globalNetworkId" + }, + "RouteAnalysisId":{ + "shape":"String", + "location":"uri", + "locationName":"routeAnalysisId" + } + } + }, + "GetRouteAnalysisResponse":{ + "type":"structure", + "members":{ + "RouteAnalysis":{"shape":"RouteAnalysis"} + } + }, "GetSitesRequest":{ "type":"structure", "required":["GlobalNetworkId"], @@ -1583,6 +2010,116 @@ "max":500, "min":1 }, + "NetworkResource":{ + "type":"structure", + "members":{ + "RegisteredGatewayArn":{"shape":"String"}, + "AwsRegion":{"shape":"String"}, + "AccountId":{"shape":"String"}, + "ResourceType":{"shape":"String"}, + "ResourceId":{"shape":"String"}, + "ResourceArn":{"shape":"String"}, + "Definition":{"shape":"String"}, + "DefinitionTimestamp":{"shape":"DateTime"}, + "Tags":{"shape":"TagList"}, + "Metadata":{"shape":"NetworkResourceMetadataMap"} + } + }, + "NetworkResourceCount":{ + "type":"structure", + "members":{ + "ResourceType":{"shape":"String"}, + "Count":{"shape":"Integer"} + } + }, + "NetworkResourceCountList":{ + "type":"list", + "member":{"shape":"NetworkResourceCount"} + }, + "NetworkResourceList":{ + "type":"list", + "member":{"shape":"NetworkResource"} + }, + "NetworkResourceMetadataKey":{"type":"string"}, + "NetworkResourceMetadataMap":{ + "type":"map", + "key":{"shape":"NetworkResourceMetadataKey"}, + "value":{"shape":"NetworkResourceMetadataValue"} + }, + "NetworkResourceMetadataValue":{"type":"string"}, + "NetworkResourceSummary":{ + "type":"structure", + "members":{ + "RegisteredGatewayArn":{"shape":"String"}, + "ResourceArn":{"shape":"String"}, + "ResourceType":{"shape":"String"}, + "Definition":{"shape":"String"}, + "NameTag":{"shape":"String"}, + "IsMiddlebox":{"shape":"Boolean"} + } + }, + "NetworkRoute":{ + "type":"structure", + "members":{ + "DestinationCidrBlock":{"shape":"String"}, + "Destinations":{"shape":"NetworkRouteDestinationList"}, + "PrefixListId":{"shape":"String"}, + "State":{"shape":"RouteState"}, + "Type":{"shape":"RouteType"} + } + }, + "NetworkRouteDestination":{ + "type":"structure", + "members":{ + "TransitGatewayAttachmentId":{"shape":"String"}, + "ResourceType":{"shape":"String"}, + "ResourceId":{"shape":"String"} + } + }, + "NetworkRouteDestinationList":{ + "type":"list", + "member":{"shape":"NetworkRouteDestination"} + }, + "NetworkRouteList":{ + "type":"list", + "member":{"shape":"NetworkRoute"} + }, + "NetworkTelemetry":{ + "type":"structure", + "members":{ + "RegisteredGatewayArn":{"shape":"String"}, + "AwsRegion":{"shape":"String"}, + "AccountId":{"shape":"String"}, + "ResourceType":{"shape":"String"}, + "ResourceId":{"shape":"String"}, + "ResourceArn":{"shape":"String"}, + "Address":{"shape":"String"}, + "Health":{"shape":"ConnectionHealth"} + } + }, + "NetworkTelemetryList":{ + "type":"list", + "member":{"shape":"NetworkTelemetry"} + }, + "PathComponent":{ + "type":"structure", + "members":{ + "Sequence":{"shape":"Integer"}, + "Resource":{"shape":"NetworkResourceSummary"}, + "DestinationCidrBlock":{"shape":"String"} + } + }, + "PathComponentList":{ + "type":"list", + "member":{"shape":"PathComponent"} + }, + "ReasonContextKey":{"type":"string"}, + "ReasonContextMap":{ + "type":"map", + "key":{"shape":"ReasonContextKey"}, + "value":{"shape":"ReasonContextValue"} + }, + "ReasonContextValue":{"type":"string"}, "RegisterTransitGatewayRequest":{ "type":"structure", "required":[ @@ -1604,6 +2141,17 @@ "TransitGatewayRegistration":{"shape":"TransitGatewayRegistration"} } }, + "Relationship":{ + "type":"structure", + "members":{ + "From":{"shape":"String"}, + "To":{"shape":"String"} + } + }, + "RelationshipList":{ + "type":"list", + "member":{"shape":"Relationship"} + }, "ResourceARN":{"type":"string"}, "ResourceNotFoundException":{ "type":"structure", @@ -1615,12 +2163,122 @@ "members":{ "Message":{"shape":"String"}, "ResourceId":{"shape":"String"}, - "ResourceType":{"shape":"String"} + "ResourceType":{"shape":"String"}, + "Context":{"shape":"ExceptionContextMap"} }, "error":{"httpStatusCode":404}, "exception":true }, "RetryAfterSeconds":{"type":"integer"}, + "RouteAnalysis":{ + "type":"structure", + "members":{ + "GlobalNetworkId":{"shape":"String"}, + "OwnerAccountId":{"shape":"String"}, + "RouteAnalysisId":{"shape":"String"}, + "StartTimestamp":{"shape":"DateTime"}, + "Status":{"shape":"RouteAnalysisStatus"}, + "Source":{"shape":"RouteAnalysisEndpointOptions"}, + "Destination":{"shape":"RouteAnalysisEndpointOptions"}, + "IncludeReturnPath":{"shape":"Boolean"}, + "UseMiddleboxes":{"shape":"Boolean"}, + "ForwardPath":{"shape":"RouteAnalysisPath"}, + "ReturnPath":{"shape":"RouteAnalysisPath"} + } + }, + "RouteAnalysisCompletion":{ + "type":"structure", + "members":{ + "ResultCode":{"shape":"RouteAnalysisCompletionResultCode"}, + "ReasonCode":{"shape":"RouteAnalysisCompletionReasonCode"}, + "ReasonContext":{"shape":"ReasonContextMap"} + } + }, + "RouteAnalysisCompletionReasonCode":{ + "type":"string", + "enum":[ + "TRANSIT_GATEWAY_ATTACHMENT_NOT_FOUND", + "TRANSIT_GATEWAY_ATTACHMENT_NOT_IN_TRANSIT_GATEWAY", + "CYCLIC_PATH_DETECTED", + "TRANSIT_GATEWAY_ATTACHMENT_STABLE_ROUTE_TABLE_NOT_FOUND", + "ROUTE_NOT_FOUND", + "BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND", + "INACTIVE_ROUTE_FOR_DESTINATION_FOUND", + "TRANSIT_GATEWAY_ATTACHMENT_ATTACH_ARN_NO_MATCH", + "MAX_HOPS_EXCEEDED", + "POSSIBLE_MIDDLEBOX", + "NO_DESTINATION_ARN_PROVIDED" + ] + }, + "RouteAnalysisCompletionResultCode":{ + "type":"string", + "enum":[ + "CONNECTED", + "NOT_CONNECTED" + ] + }, + "RouteAnalysisEndpointOptions":{ + "type":"structure", + "members":{ + "TransitGatewayAttachmentArn":{"shape":"String"}, + "TransitGatewayArn":{"shape":"String"}, + "IpAddress":{"shape":"String"} + } + }, + "RouteAnalysisEndpointOptionsSpecification":{ + "type":"structure", + "members":{ + "TransitGatewayAttachmentArn":{"shape":"String"}, + "IpAddress":{"shape":"String"} + } + }, + "RouteAnalysisPath":{ + "type":"structure", + "members":{ + "CompletionStatus":{"shape":"RouteAnalysisCompletion"}, + "Path":{"shape":"PathComponentList"} + } + }, + "RouteAnalysisStatus":{ + "type":"string", + "enum":[ + "RUNNING", + "COMPLETED", + "FAILED" + ] + }, + "RouteState":{ + "type":"string", + "enum":[ + "ACTIVE", + "BLACKHOLE" + ] + }, + "RouteStateList":{ + "type":"list", + "member":{"shape":"RouteState"} + }, + "RouteTableIdentifier":{ + "type":"structure", + "members":{ + "TransitGatewayRouteTableArn":{"shape":"String"} + } + }, + "RouteTableType":{ + "type":"string", + "enum":["TRANSIT_GATEWAY_ROUTE_TABLE"] + }, + "RouteType":{ + "type":"string", + "enum":[ + "PROPAGATED", + "STATIC" + ] + }, + "RouteTypeList":{ + "type":"list", + "member":{"shape":"RouteType"} + }, "ServiceQuotaExceededException":{ "type":"structure", "required":[ @@ -1664,6 +2322,31 @@ "UPDATING" ] }, + "StartRouteAnalysisRequest":{ + "type":"structure", + "required":[ + "GlobalNetworkId", + "Source", + "Destination" + ], + "members":{ + "GlobalNetworkId":{ + "shape":"String", + "location":"uri", + "locationName":"globalNetworkId" + }, + "Source":{"shape":"RouteAnalysisEndpointOptionsSpecification"}, + "Destination":{"shape":"RouteAnalysisEndpointOptionsSpecification"}, + "IncludeReturnPath":{"shape":"Boolean"}, + "UseMiddleboxes":{"shape":"Boolean"} + } + }, + "StartRouteAnalysisResponse":{ + "type":"structure", + "members":{ + "RouteAnalysis":{"shape":"RouteAnalysis"} + } + }, "String":{"type":"string"}, "StringList":{ "type":"list", @@ -1904,6 +2587,34 @@ "Link":{"shape":"Link"} } }, + "UpdateNetworkResourceMetadataRequest":{ + "type":"structure", + "required":[ + "GlobalNetworkId", + "ResourceArn", + "Metadata" + ], + "members":{ + "GlobalNetworkId":{ + "shape":"String", + "location":"uri", + "locationName":"globalNetworkId" + }, + "ResourceArn":{ + "shape":"String", + "location":"uri", + "locationName":"resourceArn" + }, + "Metadata":{"shape":"NetworkResourceMetadataMap"} + } + }, + "UpdateNetworkResourceMetadataResponse":{ + "type":"structure", + "members":{ + "ResourceArn":{"shape":"String"}, + "Metadata":{"shape":"NetworkResourceMetadataMap"} + } + }, "UpdateSiteRequest":{ "type":"structure", "required":[ diff --git a/models/apis/networkmanager/2019-07-05/docs-2.json b/models/apis/networkmanager/2019-07-05/docs-2.json index 9721db292b1..e4246de6813 100644 --- a/models/apis/networkmanager/2019-07-05/docs-2.json +++ b/models/apis/networkmanager/2019-07-05/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

Transit Gateway Network Manager (Network Manager) enables you to create a global network, in which you can monitor your AWS and on-premises networks that are built around transit gateways.

The Network Manager APIs are supported in the US West (Oregon) Region only. You must specify the us-west-2 Region in all requests made to Network Manager.

", + "service": "

Transit Gateway Network Manager (Network Manager) enables you to create a global network, in which you can monitor your Amazon Web Services and on-premises networks that are built around transit gateways.

", "operations": { "AssociateCustomerGateway": "

Associates a customer gateway with a device and optionally, with a link. If you specify a link, it must be associated with the specified device.

You can only associate customer gateways that are connected to a VPN attachment on a transit gateway. The transit gateway must be registered in your global network. When you register a transit gateway, customer gateways that are connected to the transit gateway are automatically included in the global network. To list customer gateways that are connected to a transit gateway, use the DescribeVpnConnections EC2 API and filter by transit-gateway-id.

You cannot associate a customer gateway with more than one device and link.

", "AssociateLink": "

Associates a link to a device. A device can be associated to multiple links and a link can be associated to multiple devices. The device and link must be in the same global network and the same site.

", @@ -25,26 +25,34 @@ "GetDevices": "

Gets information about one or more of your devices in a global network.

", "GetLinkAssociations": "

Gets the link associations for a device or a link. Either the device ID or the link ID must be specified.

", "GetLinks": "

Gets information about one or more links in a specified global network.

If you specify the site ID, you cannot specify the type or provider in the same request. You can specify the type and provider in the same request.

", + "GetNetworkResourceCounts": "

Gets the count of network resources, by resource type, for the specified global network.

", + "GetNetworkResourceRelationships": "

Gets the network resource relationships for the specified global network.

", + "GetNetworkResources": "

Describes the network resources for the specified global network.

The results include information from the corresponding Describe call for the resource, minus any sensitive information such as pre-shared keys.

", + "GetNetworkRoutes": "

Gets the network routes of the specified global network.

", + "GetNetworkTelemetry": "

Gets the network telemetry of the specified global network.

", + "GetRouteAnalysis": "

Gets information about the specified route analysis.

", "GetSites": "

Gets information about one or more of your sites in a global network.

", "GetTransitGatewayConnectPeerAssociations": "

Gets information about one or more of your transit gateway Connect peer associations in a global network.

", "GetTransitGatewayRegistrations": "

Gets information about the transit gateway registrations in a specified global network.

", "ListTagsForResource": "

Lists the tags for a specified resource.

", - "RegisterTransitGateway": "

Registers a transit gateway in your global network. The transit gateway can be in any AWS Region, but it must be owned by the same AWS account that owns the global network. You cannot register a transit gateway in more than one global network.

", + "RegisterTransitGateway": "

Registers a transit gateway in your global network. The transit gateway can be in any Amazon Web Services Region, but it must be owned by the same Amazon Web Services account that owns the global network. You cannot register a transit gateway in more than one global network.

", + "StartRouteAnalysis": "

Starts analyzing the routing path between the specified source and destination. For more information, see Route Analyzer.

", "TagResource": "

Tags a specified resource.

", "UntagResource": "

Removes tags from a specified resource.

", "UpdateConnection": "

Updates the information for an existing connection. To remove information for any of the parameters, specify an empty string.

", "UpdateDevice": "

Updates the details for an existing device. To remove information for any of the parameters, specify an empty string.

", "UpdateGlobalNetwork": "

Updates an existing global network. To remove information for any of the parameters, specify an empty string.

", "UpdateLink": "

Updates the details for an existing link. To remove information for any of the parameters, specify an empty string.

", + "UpdateNetworkResourceMetadata": "

Updates the resource metadata for the specified global network.

", "UpdateSite": "

Updates the information for an existing site. To remove information for any of the parameters, specify an empty string.

" }, "shapes": { "AWSLocation": { - "base": "

Specifies a location in AWS.

", + "base": "

Specifies a location in Amazon Web Services.

", "refs": { - "CreateDeviceRequest$AWSLocation": "

The AWS location of the device.

", - "Device$AWSLocation": "

The AWS location of the device.

", - "UpdateDeviceRequest$AWSLocation": "

The AWS location of the device.

" + "CreateDeviceRequest$AWSLocation": "

The Amazon Web Services location of the device, if applicable. For an on-premises device, you can omit this parameter.

", + "Device$AWSLocation": "

The Amazon Web Services location of the device.

", + "UpdateDeviceRequest$AWSLocation": "

The Amazon Web Services location of the device, if applicable. For an on-premises device, you can omit this parameter.

" } }, "AccessDeniedException": { @@ -90,6 +98,16 @@ "UpdateLinkRequest$Bandwidth": "

The upload and download speed in Mbps.

" } }, + "Boolean": { + "base": null, + "refs": { + "NetworkResourceSummary$IsMiddlebox": "

Indicates whether this is a middlebox appliance.

", + "RouteAnalysis$IncludeReturnPath": "

Indicates whether to analyze the return path. The return path is not analyzed if the forward path analysis does not succeed.

", + "RouteAnalysis$UseMiddleboxes": "

Indicates whether to include the location of middlebox appliances in the route analysis.

", + "StartRouteAnalysisRequest$IncludeReturnPath": "

Indicates whether to analyze the return path. The default is false.

", + "StartRouteAnalysisRequest$UseMiddleboxes": "

Indicates whether to include the location of middlebox appliances in the route analysis. The default is false.

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

There was a conflict processing the request. Updating or deleting the resource can cause an inconsistent state.

", "refs": { @@ -104,6 +122,12 @@ "UpdateConnectionResponse$Connection": "

Information about the connection.

" } }, + "ConnectionHealth": { + "base": "

Describes connection health.

", + "refs": { + "NetworkTelemetry$Health": "

The connection health.

" + } + }, "ConnectionList": { "base": null, "refs": { @@ -116,6 +140,18 @@ "Connection$State": "

The state of the connection.

" } }, + "ConnectionStatus": { + "base": null, + "refs": { + "ConnectionHealth$Status": "

The connection status.

" + } + }, + "ConnectionType": { + "base": null, + "refs": { + "ConnectionHealth$Type": "

The connection type.

" + } + }, "CreateConnectionRequest": { "base": null, "refs": { @@ -190,9 +226,13 @@ "base": null, "refs": { "Connection$CreatedAt": "

The date and time that the connection was created.

", + "ConnectionHealth$Timestamp": "

The time the status was last updated.

", "Device$CreatedAt": "

The date and time that the site was created.

", + "GetNetworkRoutesResponse$RouteTableTimestamp": "

The route table creation time.

", "GlobalNetwork$CreatedAt": "

The date and time that the global network was created.

", "Link$CreatedAt": "

The date and time that the link was created.

", + "NetworkResource$DefinitionTimestamp": "

The time that the resource definition was retrieved.

", + "RouteAnalysis$StartTimestamp": "

The time that the analysis started.

", "Site$CreatedAt": "

The date and time that the site was created.

" } }, @@ -317,6 +357,48 @@ "refs": { } }, + "ExceptionContextKey": { + "base": null, + "refs": { + "ExceptionContextMap$key": null + } + }, + "ExceptionContextMap": { + "base": null, + "refs": { + "ResourceNotFoundException$Context": null + } + }, + "ExceptionContextValue": { + "base": null, + "refs": { + "ExceptionContextMap$value": null + } + }, + "FilterMap": { + "base": null, + "refs": { + "GetNetworkRoutesRequest$DestinationFilters": "

Filter by route table destination. Possible Values: TRANSIT_GATEWAY_ATTACHMENT_ID, RESOURCE_ID, or RESOURCE_TYPE.

" + } + }, + "FilterName": { + "base": null, + "refs": { + "FilterMap$key": null + } + }, + "FilterValue": { + "base": null, + "refs": { + "FilterValues$member": null + } + }, + "FilterValues": { + "base": null, + "refs": { + "FilterMap$value": null + } + }, "GetConnectionsRequest": { "base": null, "refs": { @@ -367,6 +449,66 @@ "refs": { } }, + "GetNetworkResourceCountsRequest": { + "base": null, + "refs": { + } + }, + "GetNetworkResourceCountsResponse": { + "base": null, + "refs": { + } + }, + "GetNetworkResourceRelationshipsRequest": { + "base": null, + "refs": { + } + }, + "GetNetworkResourceRelationshipsResponse": { + "base": null, + "refs": { + } + }, + "GetNetworkResourcesRequest": { + "base": null, + "refs": { + } + }, + "GetNetworkResourcesResponse": { + "base": null, + "refs": { + } + }, + "GetNetworkRoutesRequest": { + "base": null, + "refs": { + } + }, + "GetNetworkRoutesResponse": { + "base": null, + "refs": { + } + }, + "GetNetworkTelemetryRequest": { + "base": null, + "refs": { + } + }, + "GetNetworkTelemetryResponse": { + "base": null, + "refs": { + } + }, + "GetRouteAnalysisRequest": { + "base": null, + "refs": { + } + }, + "GetRouteAnalysisResponse": { + "base": null, + "refs": { + } + }, "GetSitesRequest": { "base": null, "refs": { @@ -422,7 +564,9 @@ "base": null, "refs": { "Bandwidth$UploadSpeed": "

Upload speed in Mbps.

", - "Bandwidth$DownloadSpeed": "

Download speed in Mbps.

" + "Bandwidth$DownloadSpeed": "

Download speed in Mbps.

", + "NetworkResourceCount$Count": "

The resource count.

", + "PathComponent$Sequence": "

The sequence number in the path. The destination is 0.

" } }, "InternalServerException": { @@ -501,11 +645,131 @@ "GetDevicesRequest$MaxResults": "

The maximum number of results to return.

", "GetLinkAssociationsRequest$MaxResults": "

The maximum number of results to return.

", "GetLinksRequest$MaxResults": "

The maximum number of results to return.

", + "GetNetworkResourceCountsRequest$MaxResults": "

The maximum number of results to return.

", + "GetNetworkResourceRelationshipsRequest$MaxResults": "

The maximum number of results to return.

", + "GetNetworkResourcesRequest$MaxResults": "

The maximum number of results to return.

", + "GetNetworkTelemetryRequest$MaxResults": "

The maximum number of results to return.

", "GetSitesRequest$MaxResults": "

The maximum number of results to return.

", "GetTransitGatewayConnectPeerAssociationsRequest$MaxResults": "

The maximum number of results to return.

", "GetTransitGatewayRegistrationsRequest$MaxResults": "

The maximum number of results to return.

" } }, + "NetworkResource": { + "base": "

Describes a network resource.

", + "refs": { + "NetworkResourceList$member": null + } + }, + "NetworkResourceCount": { + "base": "

Describes a resource count.

", + "refs": { + "NetworkResourceCountList$member": null + } + }, + "NetworkResourceCountList": { + "base": null, + "refs": { + "GetNetworkResourceCountsResponse$NetworkResourceCounts": "

The count of resources.

" + } + }, + "NetworkResourceList": { + "base": null, + "refs": { + "GetNetworkResourcesResponse$NetworkResources": "

The network resources.

" + } + }, + "NetworkResourceMetadataKey": { + "base": null, + "refs": { + "NetworkResourceMetadataMap$key": null + } + }, + "NetworkResourceMetadataMap": { + "base": null, + "refs": { + "NetworkResource$Metadata": "

The resource metadata.

", + "UpdateNetworkResourceMetadataRequest$Metadata": "

The resource metadata.

", + "UpdateNetworkResourceMetadataResponse$Metadata": "

The updated resource metadata.

" + } + }, + "NetworkResourceMetadataValue": { + "base": null, + "refs": { + "NetworkResourceMetadataMap$value": null + } + }, + "NetworkResourceSummary": { + "base": "

Describes a network resource.

", + "refs": { + "PathComponent$Resource": "

The resource.

" + } + }, + "NetworkRoute": { + "base": "

Describes a network route.

", + "refs": { + "NetworkRouteList$member": null + } + }, + "NetworkRouteDestination": { + "base": "

Describes the destination of a network route.

", + "refs": { + "NetworkRouteDestinationList$member": null + } + }, + "NetworkRouteDestinationList": { + "base": null, + "refs": { + "NetworkRoute$Destinations": "

The destinations.

" + } + }, + "NetworkRouteList": { + "base": null, + "refs": { + "GetNetworkRoutesResponse$NetworkRoutes": "

The network routes.

" + } + }, + "NetworkTelemetry": { + "base": "

Describes the telemetry information for a resource.

", + "refs": { + "NetworkTelemetryList$member": null + } + }, + "NetworkTelemetryList": { + "base": null, + "refs": { + "GetNetworkTelemetryResponse$NetworkTelemetry": "

The network telemetry.

" + } + }, + "PathComponent": { + "base": "

Describes a path component.

", + "refs": { + "PathComponentList$member": null + } + }, + "PathComponentList": { + "base": null, + "refs": { + "RouteAnalysisPath$Path": "

The route analysis path.

" + } + }, + "ReasonContextKey": { + "base": null, + "refs": { + "ReasonContextMap$key": null + } + }, + "ReasonContextMap": { + "base": null, + "refs": { + "RouteAnalysisCompletion$ReasonContext": "

Additional information about the path. Available only if a connection is not found.

" + } + }, + "ReasonContextValue": { + "base": null, + "refs": { + "ReasonContextMap$value": null + } + }, "RegisterTransitGatewayRequest": { "base": null, "refs": { @@ -516,6 +780,18 @@ "refs": { } }, + "Relationship": { + "base": "

Describes a resource relationship.

", + "refs": { + "RelationshipList$member": null + } + }, + "RelationshipList": { + "base": null, + "refs": { + "GetNetworkResourceRelationshipsResponse$Relationships": "

The resource relationships.

" + } + }, "ResourceARN": { "base": null, "refs": { @@ -536,6 +812,96 @@ "ThrottlingException$RetryAfterSeconds": "

Indicates when to retry the request.

" } }, + "RouteAnalysis": { + "base": "

Describes a route analysis.

", + "refs": { + "GetRouteAnalysisResponse$RouteAnalysis": "

The route analysis.

", + "StartRouteAnalysisResponse$RouteAnalysis": "

The route analysis.

" + } + }, + "RouteAnalysisCompletion": { + "base": "

Describes the status of an analysis at completion.

", + "refs": { + "RouteAnalysisPath$CompletionStatus": "

The status of the analysis at completion.

" + } + }, + "RouteAnalysisCompletionReasonCode": { + "base": null, + "refs": { + "RouteAnalysisCompletion$ReasonCode": "

The reason code. Available only if a connection is not found.

" + } + }, + "RouteAnalysisCompletionResultCode": { + "base": null, + "refs": { + "RouteAnalysisCompletion$ResultCode": "

The result of the analysis. If the status is NOT_CONNECTED, check the reason code.

" + } + }, + "RouteAnalysisEndpointOptions": { + "base": "

Describes a source or a destination.

", + "refs": { + "RouteAnalysis$Source": "

The source.

", + "RouteAnalysis$Destination": "

The destination.

" + } + }, + "RouteAnalysisEndpointOptionsSpecification": { + "base": "

Describes a source or a destination.

", + "refs": { + "StartRouteAnalysisRequest$Source": "

The source from which traffic originates.

", + "StartRouteAnalysisRequest$Destination": "

The destination.

" + } + }, + "RouteAnalysisPath": { + "base": "

Describes a route analysis path.

", + "refs": { + "RouteAnalysis$ForwardPath": "

The forward path.

", + "RouteAnalysis$ReturnPath": "

The return path.

" + } + }, + "RouteAnalysisStatus": { + "base": null, + "refs": { + "RouteAnalysis$Status": "

The status of the route analysis.

" + } + }, + "RouteState": { + "base": null, + "refs": { + "NetworkRoute$State": "

The route state. The possible values are active and blackhole.

", + "RouteStateList$member": null + } + }, + "RouteStateList": { + "base": null, + "refs": { + "GetNetworkRoutesRequest$States": "

The route states.

" + } + }, + "RouteTableIdentifier": { + "base": "

Describes a route table.

", + "refs": { + "GetNetworkRoutesRequest$RouteTableIdentifier": "

The ID of the route table.

" + } + }, + "RouteTableType": { + "base": null, + "refs": { + "GetNetworkRoutesResponse$RouteTableType": "

The route table type.

" + } + }, + "RouteType": { + "base": null, + "refs": { + "NetworkRoute$Type": "

The route type. The possible values are propagated and static.

", + "RouteTypeList$member": null + } + }, + "RouteTypeList": { + "base": null, + "refs": { + "GetNetworkRoutesRequest$Types": "

The route types.

" + } + }, "ServiceQuotaExceededException": { "base": "

A service limit was exceeded.

", "refs": { @@ -562,13 +928,23 @@ "Site$State": "

The state of the site.

" } }, + "StartRouteAnalysisRequest": { + "base": null, + "refs": { + } + }, + "StartRouteAnalysisResponse": { + "base": null, + "refs": { + } + }, "String": { "base": null, "refs": { - "AWSLocation$Zone": "

The Zone the device is located in. This can be the ID of an Availability Zone, Local Zone, Wavelength Zone, or an Outpost.

", - "AWSLocation$SubnetArn": "

The Amazon Resource Name (ARN) of the subnet the device is located in.

", + "AWSLocation$Zone": "

The Zone that the device is located in. Specify the ID of an Availability Zone, Local Zone, Wavelength Zone, or an Outpost.

", + "AWSLocation$SubnetArn": "

The Amazon Resource Name (ARN) of the subnet that the device is located in.

", "AccessDeniedException$Message": null, - "AssociateCustomerGatewayRequest$CustomerGatewayArn": "

The Amazon Resource Name (ARN) of the customer gateway. For more information, see Resources Defined by Amazon EC2.

", + "AssociateCustomerGatewayRequest$CustomerGatewayArn": "

The Amazon Resource Name (ARN) of the customer gateway.

", "AssociateCustomerGatewayRequest$GlobalNetworkId": "

The ID of the global network.

", "AssociateCustomerGatewayRequest$DeviceId": "

The ID of the device.

", "AssociateCustomerGatewayRequest$LinkId": "

The ID of the link.

", @@ -597,20 +973,20 @@ "CreateConnectionRequest$ConnectedLinkId": "

The ID of the link for the second device.

", "CreateConnectionRequest$Description": "

A description of the connection.

Length Constraints: Maximum length of 256 characters.

", "CreateDeviceRequest$GlobalNetworkId": "

The ID of the global network.

", - "CreateDeviceRequest$Description": "

A description of the device.

Length Constraints: Maximum length of 256 characters.

", + "CreateDeviceRequest$Description": "

A description of the device.

Constraints: Maximum length of 256 characters.

", "CreateDeviceRequest$Type": "

The type of the device.

", - "CreateDeviceRequest$Vendor": "

The vendor of the device.

Length Constraints: Maximum length of 128 characters.

", - "CreateDeviceRequest$Model": "

The model of the device.

Length Constraints: Maximum length of 128 characters.

", - "CreateDeviceRequest$SerialNumber": "

The serial number of the device.

Length Constraints: Maximum length of 128 characters.

", + "CreateDeviceRequest$Vendor": "

The vendor of the device.

Constraints: Maximum length of 128 characters.

", + "CreateDeviceRequest$Model": "

The model of the device.

Constraints: Maximum length of 128 characters.

", + "CreateDeviceRequest$SerialNumber": "

The serial number of the device.

Constraints: Maximum length of 128 characters.

", "CreateDeviceRequest$SiteId": "

The ID of the site.

", - "CreateGlobalNetworkRequest$Description": "

A description of the global network.

Length Constraints: Maximum length of 256 characters.

", + "CreateGlobalNetworkRequest$Description": "

A description of the global network.

Constraints: Maximum length of 256 characters.

", "CreateLinkRequest$GlobalNetworkId": "

The ID of the global network.

", - "CreateLinkRequest$Description": "

A description of the link.

Length Constraints: Maximum length of 256 characters.

", - "CreateLinkRequest$Type": "

The type of the link.

Constraints: Cannot include the following characters: | \\ ^

Length Constraints: Maximum length of 128 characters.

", - "CreateLinkRequest$Provider": "

The provider of the link.

Constraints: Cannot include the following characters: | \\ ^

Length Constraints: Maximum length of 128 characters.

", + "CreateLinkRequest$Description": "

A description of the link.

Constraints: Maximum length of 256 characters.

", + "CreateLinkRequest$Type": "

The type of the link.

Constraints: Maximum length of 128 characters. Cannot include the following characters: | \\ ^

", + "CreateLinkRequest$Provider": "

The provider of the link.

Constraints: Maximum length of 128 characters. Cannot include the following characters: | \\ ^

", "CreateLinkRequest$SiteId": "

The ID of the site.

", "CreateSiteRequest$GlobalNetworkId": "

The ID of the global network.

", - "CreateSiteRequest$Description": "

A description of your site.

Length Constraints: Maximum length of 256 characters.

", + "CreateSiteRequest$Description": "

A description of your site.

Constraints: Maximum length of 256 characters.

", "CustomerGatewayAssociation$CustomerGatewayArn": "

The Amazon Resource Name (ARN) of the customer gateway.

", "CustomerGatewayAssociation$GlobalNetworkId": "

The ID of the global network.

", "CustomerGatewayAssociation$DeviceId": "

The ID of the device.

", @@ -638,7 +1014,7 @@ "Device$SerialNumber": "

The device serial number.

", "Device$SiteId": "

The site ID.

", "DisassociateCustomerGatewayRequest$GlobalNetworkId": "

The ID of the global network.

", - "DisassociateCustomerGatewayRequest$CustomerGatewayArn": "

The Amazon Resource Name (ARN) of the customer gateway. For more information, see Resources Defined by Amazon EC2.

", + "DisassociateCustomerGatewayRequest$CustomerGatewayArn": "

The Amazon Resource Name (ARN) of the customer gateway.

", "DisassociateLinkRequest$GlobalNetworkId": "

The ID of the global network.

", "DisassociateLinkRequest$DeviceId": "

The ID of the device.

", "DisassociateLinkRequest$LinkId": "

The ID of the link.

", @@ -666,6 +1042,38 @@ "GetLinksRequest$Provider": "

The link provider.

", "GetLinksRequest$NextToken": "

The token for the next page of results.

", "GetLinksResponse$NextToken": "

The token for the next page of results.

", + "GetNetworkResourceCountsRequest$GlobalNetworkId": "

The ID of the global network.

", + "GetNetworkResourceCountsRequest$ResourceType": "

The resource type.

The following are the supported resource types for Direct Connect:

The following are the supported resource types for Network Manager:

The following are the supported resource types for Amazon VPC:

", + "GetNetworkResourceCountsRequest$NextToken": "

The token for the next page of results.

", + "GetNetworkResourceCountsResponse$NextToken": "

The token for the next page of results.

", + "GetNetworkResourceRelationshipsRequest$GlobalNetworkId": "

The ID of the global network.

", + "GetNetworkResourceRelationshipsRequest$RegisteredGatewayArn": "

The ARN of the registered gateway.

", + "GetNetworkResourceRelationshipsRequest$AwsRegion": "

The Amazon Web Services Region.

", + "GetNetworkResourceRelationshipsRequest$AccountId": "

The Amazon Web Services account ID.

", + "GetNetworkResourceRelationshipsRequest$ResourceType": "

The resource type.

The following are the supported resource types for Direct Connect:

The following are the supported resource types for Network Manager:

The following are the supported resource types for Amazon VPC:

", + "GetNetworkResourceRelationshipsRequest$ResourceArn": "

The ARN of the gateway.

", + "GetNetworkResourceRelationshipsRequest$NextToken": "

The token for the next page of results.

", + "GetNetworkResourceRelationshipsResponse$NextToken": "

The token for the next page of results.

", + "GetNetworkResourcesRequest$GlobalNetworkId": "

The ID of the global network.

", + "GetNetworkResourcesRequest$RegisteredGatewayArn": "

The ARN of the gateway.

", + "GetNetworkResourcesRequest$AwsRegion": "

The Amazon Web Services Region.

", + "GetNetworkResourcesRequest$AccountId": "

The Amazon Web Services account ID.

", + "GetNetworkResourcesRequest$ResourceType": "

The resource type.

The following are the supported resource types for Direct Connect:

The following are the supported resource types for Network Manager:

The following are the supported resource types for Amazon VPC:

", + "GetNetworkResourcesRequest$ResourceArn": "

The ARN of the resource.

", + "GetNetworkResourcesRequest$NextToken": "

The token for the next page of results.

", + "GetNetworkResourcesResponse$NextToken": "

The token for the next page of results.

", + "GetNetworkRoutesRequest$GlobalNetworkId": "

The ID of the global network.

", + "GetNetworkRoutesResponse$RouteTableArn": "

The ARN of the route table.

", + "GetNetworkTelemetryRequest$GlobalNetworkId": "

The ID of the global network.

", + "GetNetworkTelemetryRequest$RegisteredGatewayArn": "

The ARN of the gateway.

", + "GetNetworkTelemetryRequest$AwsRegion": "

The Amazon Web Services Region.

", + "GetNetworkTelemetryRequest$AccountId": "

The Amazon Web Services account ID.

", + "GetNetworkTelemetryRequest$ResourceType": "

The resource type.

The following are the supported resource types for Direct Connect:

The following are the supported resource types for Network Manager:

The following are the supported resource types for Amazon VPC:

", + "GetNetworkTelemetryRequest$ResourceArn": "

The ARN of the resource.

", + "GetNetworkTelemetryRequest$NextToken": "

The token for the next page of results.

", + "GetNetworkTelemetryResponse$NextToken": "

The token for the next page of results.

", + "GetRouteAnalysisRequest$GlobalNetworkId": "

The ID of the global network.

", + "GetRouteAnalysisRequest$RouteAnalysisId": "

The ID of the route analysis.

", "GetSitesRequest$GlobalNetworkId": "

The ID of the global network.

", "GetSitesRequest$NextToken": "

The token for the next page of results.

", "GetSitesResponse$NextToken": "

The token for the next page of results.

", @@ -692,11 +1100,48 @@ "Location$Address": "

The physical address.

", "Location$Latitude": "

The latitude.

", "Location$Longitude": "

The longitude.

", + "NetworkResource$RegisteredGatewayArn": "

The ARN of the gateway.

", + "NetworkResource$AwsRegion": "

The Amazon Web Services Region.

", + "NetworkResource$AccountId": "

The Amazon Web Services account ID.

", + "NetworkResource$ResourceType": "

The resource type.

The following are the supported resource types for Direct Connect:

The following are the supported resource types for Network Manager:

The following are the supported resource types for Amazon VPC:

", + "NetworkResource$ResourceId": "

The ID of the resource.

", + "NetworkResource$ResourceArn": "

The ARN of the resource.

", + "NetworkResource$Definition": "

Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.

", + "NetworkResourceCount$ResourceType": "

The resource type.

", + "NetworkResourceSummary$RegisteredGatewayArn": "

The ARN of the gateway.

", + "NetworkResourceSummary$ResourceArn": "

The ARN of the resource.

", + "NetworkResourceSummary$ResourceType": "

The resource type.

", + "NetworkResourceSummary$Definition": "

Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.

", + "NetworkResourceSummary$NameTag": "

The value for the Name tag.

", + "NetworkRoute$DestinationCidrBlock": "

A unique identifier for the route, such as a CIDR block.

", + "NetworkRoute$PrefixListId": "

The ID of the prefix list.

", + "NetworkRouteDestination$TransitGatewayAttachmentId": "

The ID of the transit gateway attachment.

", + "NetworkRouteDestination$ResourceType": "

The resource type.

", + "NetworkRouteDestination$ResourceId": "

The ID of the resource.

", + "NetworkTelemetry$RegisteredGatewayArn": "

The ARN of the gateway.

", + "NetworkTelemetry$AwsRegion": "

The Amazon Web Services Region.

", + "NetworkTelemetry$AccountId": "

The Amazon Web Services account ID.

", + "NetworkTelemetry$ResourceType": "

The resource type.

", + "NetworkTelemetry$ResourceId": "

The ID of the resource.

", + "NetworkTelemetry$ResourceArn": "

The ARN of the resource.

", + "NetworkTelemetry$Address": "

The address.

", + "PathComponent$DestinationCidrBlock": "

The destination CIDR block in the route table.

", "RegisterTransitGatewayRequest$GlobalNetworkId": "

The ID of the global network.

", - "RegisterTransitGatewayRequest$TransitGatewayArn": "

The Amazon Resource Name (ARN) of the transit gateway. For more information, see Resources Defined by Amazon EC2.

", + "RegisterTransitGatewayRequest$TransitGatewayArn": "

The Amazon Resource Name (ARN) of the transit gateway.

", + "Relationship$From": "

The ARN of the resource.

", + "Relationship$To": "

The ARN of the resource.

", "ResourceNotFoundException$Message": null, "ResourceNotFoundException$ResourceId": "

The ID of the resource.

", "ResourceNotFoundException$ResourceType": "

The resource type.

", + "RouteAnalysis$GlobalNetworkId": "

The ID of the global network.

", + "RouteAnalysis$OwnerAccountId": "

The ID of the AWS account that created the route analysis.

", + "RouteAnalysis$RouteAnalysisId": "

The ID of the route analysis.

", + "RouteAnalysisEndpointOptions$TransitGatewayAttachmentArn": "

The ARN of the transit gateway attachment.

", + "RouteAnalysisEndpointOptions$TransitGatewayArn": "

The ARN of the transit gateway.

", + "RouteAnalysisEndpointOptions$IpAddress": "

The IP address.

", + "RouteAnalysisEndpointOptionsSpecification$TransitGatewayAttachmentArn": "

The ARN of the transit gateway attachment.

", + "RouteAnalysisEndpointOptionsSpecification$IpAddress": "

The IP address.

", + "RouteTableIdentifier$TransitGatewayRouteTableArn": "

The ARN of the transit gateway route table.

", "ServiceQuotaExceededException$Message": "

The error message.

", "ServiceQuotaExceededException$ResourceId": "

The ID of the resource.

", "ServiceQuotaExceededException$ResourceType": "

The resource type.

", @@ -706,6 +1151,7 @@ "Site$SiteArn": "

The Amazon Resource Name (ARN) of the site.

", "Site$GlobalNetworkId": "

The ID of the global network.

", "Site$Description": "

The description of the site.

", + "StartRouteAnalysisRequest$GlobalNetworkId": "

The ID of the global network.

", "StringList$member": null, "ThrottlingException$Message": null, "TransitGatewayConnectPeerAssociation$TransitGatewayConnectPeerArn": "

The Amazon Resource Name (ARN) of the transit gateway Connect peer.

", @@ -722,22 +1168,25 @@ "UpdateConnectionRequest$Description": "

A description of the connection.

Length Constraints: Maximum length of 256 characters.

", "UpdateDeviceRequest$GlobalNetworkId": "

The ID of the global network.

", "UpdateDeviceRequest$DeviceId": "

The ID of the device.

", - "UpdateDeviceRequest$Description": "

A description of the device.

Length Constraints: Maximum length of 256 characters.

", + "UpdateDeviceRequest$Description": "

A description of the device.

Constraints: Maximum length of 256 characters.

", "UpdateDeviceRequest$Type": "

The type of the device.

", - "UpdateDeviceRequest$Vendor": "

The vendor of the device.

Length Constraints: Maximum length of 128 characters.

", - "UpdateDeviceRequest$Model": "

The model of the device.

Length Constraints: Maximum length of 128 characters.

", - "UpdateDeviceRequest$SerialNumber": "

The serial number of the device.

Length Constraints: Maximum length of 128 characters.

", + "UpdateDeviceRequest$Vendor": "

The vendor of the device.

Constraints: Maximum length of 128 characters.

", + "UpdateDeviceRequest$Model": "

The model of the device.

Constraints: Maximum length of 128 characters.

", + "UpdateDeviceRequest$SerialNumber": "

The serial number of the device.

Constraints: Maximum length of 128 characters.

", "UpdateDeviceRequest$SiteId": "

The ID of the site.

", "UpdateGlobalNetworkRequest$GlobalNetworkId": "

The ID of your global network.

", - "UpdateGlobalNetworkRequest$Description": "

A description of the global network.

Length Constraints: Maximum length of 256 characters.

", + "UpdateGlobalNetworkRequest$Description": "

A description of the global network.

Constraints: Maximum length of 256 characters.

", "UpdateLinkRequest$GlobalNetworkId": "

The ID of the global network.

", "UpdateLinkRequest$LinkId": "

The ID of the link.

", - "UpdateLinkRequest$Description": "

A description of the link.

Length Constraints: Maximum length of 256 characters.

", - "UpdateLinkRequest$Type": "

The type of the link.

Length Constraints: Maximum length of 128 characters.

", - "UpdateLinkRequest$Provider": "

The provider of the link.

Length Constraints: Maximum length of 128 characters.

", + "UpdateLinkRequest$Description": "

A description of the link.

Constraints: Maximum length of 256 characters.

", + "UpdateLinkRequest$Type": "

The type of the link.

Constraints: Maximum length of 128 characters.

", + "UpdateLinkRequest$Provider": "

The provider of the link.

Constraints: Maximum length of 128 characters.

", + "UpdateNetworkResourceMetadataRequest$GlobalNetworkId": "

The ID of the global network.

", + "UpdateNetworkResourceMetadataRequest$ResourceArn": "

The ARN of the resource.

", + "UpdateNetworkResourceMetadataResponse$ResourceArn": "

The ARN of the resource.

", "UpdateSiteRequest$GlobalNetworkId": "

The ID of the global network.

", "UpdateSiteRequest$SiteId": "

The ID of your site.

", - "UpdateSiteRequest$Description": "

A description of your site.

Length Constraints: Maximum length of 256 characters.

", + "UpdateSiteRequest$Description": "

A description of your site.

Constraints: Maximum length of 256 characters.

", "ValidationException$Message": null, "ValidationExceptionField$Name": "

The name of the field.

", "ValidationExceptionField$Message": "

The message for the field.

" @@ -748,9 +1197,14 @@ "refs": { "DescribeGlobalNetworksRequest$GlobalNetworkIds": "

The IDs of one or more global networks. The maximum is 10.

", "GetConnectionsRequest$ConnectionIds": "

One or more connection IDs.

", - "GetCustomerGatewayAssociationsRequest$CustomerGatewayArns": "

One or more customer gateway Amazon Resource Names (ARNs). For more information, see Resources Defined by Amazon EC2. The maximum is 10.

", + "GetCustomerGatewayAssociationsRequest$CustomerGatewayArns": "

One or more customer gateway Amazon Resource Names (ARNs). The maximum is 10.

", "GetDevicesRequest$DeviceIds": "

One or more device IDs. The maximum is 10.

", "GetLinksRequest$LinkIds": "

One or more link IDs. The maximum is 10.

", + "GetNetworkRoutesRequest$ExactCidrMatches": "

An exact CIDR block.

", + "GetNetworkRoutesRequest$LongestPrefixMatches": "

The most specific route that matches the traffic (longest prefix match).

", + "GetNetworkRoutesRequest$SubnetOfMatches": "

The routes with a subnet that match the specified CIDR filter.

", + "GetNetworkRoutesRequest$SupernetOfMatches": "

The routes with a CIDR that encompasses the CIDR filter. Example: If you specify 10.0.1.0/30, then the result returns 10.0.1.0/29.

", + "GetNetworkRoutesRequest$PrefixListIds": "

The IDs of the prefix lists.

", "GetSitesRequest$SiteIds": "

One or more site IDs. The maximum is 10.

", "GetTransitGatewayConnectPeerAssociationsRequest$TransitGatewayConnectPeerArns": "

One or more transit gateway Connect peer Amazon Resource Names (ARNs).

", "GetTransitGatewayRegistrationsRequest$TransitGatewayArns": "

The Amazon Resource Names (ARNs) of one or more transit gateways. The maximum is 10.

" @@ -765,7 +1219,7 @@ "TagKey": { "base": null, "refs": { - "Tag$Key": "

The tag key.

Length Constraints: Maximum length of 128 characters.

", + "Tag$Key": "

The tag key.

Constraints: Maximum length of 128 characters.

", "TagKeyList$member": null } }, @@ -788,6 +1242,7 @@ "GlobalNetwork$Tags": "

The tags for the global network.

", "Link$Tags": "

The tags for the link.

", "ListTagsForResourceResponse$TagList": "

The list of tags.

", + "NetworkResource$Tags": "

The tags.

", "Site$Tags": "

The tags for the site.

", "TagResourceRequest$Tags": "

The tags to apply to the specified resource.

" } @@ -805,7 +1260,7 @@ "TagValue": { "base": null, "refs": { - "Tag$Value": "

The tag value.

Length Constraints: Maximum length of 256 characters.

" + "Tag$Value": "

The tag value.

Constraints: Maximum length of 256 characters.

" } }, "ThrottlingException": { @@ -909,6 +1364,16 @@ "refs": { } }, + "UpdateNetworkResourceMetadataRequest": { + "base": null, + "refs": { + } + }, + "UpdateNetworkResourceMetadataResponse": { + "base": null, + "refs": { + } + }, "UpdateSiteRequest": { "base": null, "refs": { diff --git a/models/apis/networkmanager/2019-07-05/paginators-1.json b/models/apis/networkmanager/2019-07-05/paginators-1.json index 8987a383639..0a9bc9822f6 100644 --- a/models/apis/networkmanager/2019-07-05/paginators-1.json +++ b/models/apis/networkmanager/2019-07-05/paginators-1.json @@ -36,6 +36,30 @@ "limit_key": "MaxResults", "result_key": "Links" }, + "GetNetworkResourceCounts": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "NetworkResourceCounts" + }, + "GetNetworkResourceRelationships": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Relationships" + }, + "GetNetworkResources": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "NetworkResources" + }, + "GetNetworkTelemetry": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "NetworkTelemetry" + }, "GetSites": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/rekognition/2016-06-27/api-2.json b/models/apis/rekognition/2016-06-27/api-2.json index 22da0ac85af..bf522fdd073 100644 --- a/models/apis/rekognition/2016-06-27/api-2.json +++ b/models/apis/rekognition/2016-06-27/api-2.json @@ -49,6 +49,26 @@ {"shape":"ServiceQuotaExceededException"} ] }, + "CreateDataset":{ + "name":"CreateDataset", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateDatasetRequest"}, + "output":{"shape":"CreateDatasetResponse"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"LimitExceededException"}, + {"shape":"InvalidS3ObjectException"}, + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "CreateProject":{ "name":"CreateProject", "http":{ @@ -123,6 +143,25 @@ {"shape":"ResourceNotFoundException"} ] }, + "DeleteDataset":{ + "name":"DeleteDataset", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteDatasetRequest"}, + "output":{"shape":"DeleteDatasetResponse"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceInUseException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "DeleteFaces":{ "name":"DeleteFaces", "http":{ @@ -211,6 +250,23 @@ {"shape":"ResourceNotFoundException"} ] }, + "DescribeDataset":{ + "name":"DescribeDataset", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeDatasetRequest"}, + "output":{"shape":"DescribeDatasetResponse"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "DescribeProjectVersions":{ "name":"DescribeProjectVersions", "http":{ @@ -381,6 +437,24 @@ {"shape":"InvalidImageFormatException"} ] }, + "DistributeDatasetEntries":{ + "name":"DistributeDatasetEntries", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DistributeDatasetEntriesRequest"}, + "output":{"shape":"DistributeDatasetEntriesResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"ResourceNotReadyException"} + ] + }, "GetCelebrityInfo":{ "name":"GetCelebrityInfo", "http":{ @@ -581,6 +655,46 @@ {"shape":"ResourceNotFoundException"} ] }, + "ListDatasetEntries":{ + "name":"ListDatasetEntries", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListDatasetEntriesRequest"}, + "output":{"shape":"ListDatasetEntriesResponse"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceInUseException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidPaginationTokenException"}, + {"shape":"ResourceNotReadyException"} + ] + }, + "ListDatasetLabels":{ + "name":"ListDatasetLabels", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListDatasetLabelsRequest"}, + "output":{"shape":"ListDatasetLabelsResponse"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidPaginationTokenException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceNotReadyException"} + ] + }, "ListFaces":{ "name":"ListFaces", "http":{ @@ -966,6 +1080,25 @@ {"shape":"ThrottlingException"}, {"shape":"ProvisionedThroughputExceededException"} ] + }, + "UpdateDatasetEntries":{ + "name":"UpdateDatasetEntries", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateDatasetEntriesRequest"}, + "output":{"shape":"UpdateDatasetEntriesResponse"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"ThrottlingException"}, + {"shape":"ProvisionedThroughputExceededException"}, + {"shape":"InvalidParameterException"}, + {"shape":"AccessDeniedException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceInUseException"}, + {"shape":"ResourceNotFoundException"} + ] } }, "shapes":{ @@ -1238,6 +1371,24 @@ "FaceModelVersion":{"shape":"String"} } }, + "CreateDatasetRequest":{ + "type":"structure", + "required":[ + "DatasetType", + "ProjectArn" + ], + "members":{ + "DatasetSource":{"shape":"DatasetSource"}, + "DatasetType":{"shape":"DatasetType"}, + "ProjectArn":{"shape":"ProjectArn"} + } + }, + "CreateDatasetResponse":{ + "type":"structure", + "members":{ + "DatasetArn":{"shape":"DatasetArn"} + } + }, "CreateProjectRequest":{ "type":"structure", "required":["ProjectName"], @@ -1256,9 +1407,7 @@ "required":[ "ProjectArn", "VersionName", - "OutputConfig", - "TrainingData", - "TestingData" + "OutputConfig" ], "members":{ "ProjectArn":{"shape":"ProjectArn"}, @@ -1312,6 +1461,128 @@ "type":"list", "member":{"shape":"CustomLabel"} }, + "DatasetArn":{ + "type":"string", + "max":2048, + "min":20, + "pattern":"(^arn:[a-z\\d-]+:rekognition:[a-z\\d-]+:\\d{12}:project\\/[a-zA-Z0-9_.\\-]{1,255}\\/dataset\\/(train|test)\\/[0-9]+$)" + }, + "DatasetChanges":{ + "type":"structure", + "required":["GroundTruth"], + "members":{ + "GroundTruth":{"shape":"GroundTruthBlob"} + } + }, + "DatasetDescription":{ + "type":"structure", + "members":{ + "CreationTimestamp":{"shape":"DateTime"}, + "LastUpdatedTimestamp":{"shape":"DateTime"}, + "Status":{"shape":"DatasetStatus"}, + "StatusMessage":{"shape":"StatusMessage"}, + "StatusMessageCode":{"shape":"DatasetStatusMessageCode"}, + "DatasetStats":{"shape":"DatasetStats"} + } + }, + "DatasetEntries":{ + "type":"list", + "member":{"shape":"DatasetEntry"} + }, + "DatasetEntry":{ + "type":"string", + "max":100000, + "min":1, + "pattern":"^\\{.*\\}$" + }, + "DatasetLabel":{ + "type":"string", + "max":255, + "min":1, + "pattern":".{1,}" + }, + "DatasetLabelDescription":{ + "type":"structure", + "members":{ + "LabelName":{"shape":"DatasetLabel"}, + "LabelStats":{"shape":"DatasetLabelStats"} + } + }, + "DatasetLabelDescriptions":{ + "type":"list", + "member":{"shape":"DatasetLabelDescription"} + }, + "DatasetLabelStats":{ + "type":"structure", + "members":{ + "EntryCount":{"shape":"UInteger"}, + "BoundingBoxCount":{"shape":"UInteger"} + } + }, + "DatasetLabels":{ + "type":"list", + "member":{"shape":"DatasetLabel"}, + "max":10, + "min":1 + }, + "DatasetMetadata":{ + "type":"structure", + "members":{ + "CreationTimestamp":{"shape":"DateTime"}, + "DatasetType":{"shape":"DatasetType"}, + "DatasetArn":{"shape":"DatasetArn"}, + "Status":{"shape":"DatasetStatus"}, + "StatusMessage":{"shape":"StatusMessage"}, + "StatusMessageCode":{"shape":"DatasetStatusMessageCode"} + } + }, + "DatasetMetadataList":{ + "type":"list", + "member":{"shape":"DatasetMetadata"} + }, + "DatasetSource":{ + "type":"structure", + "members":{ + "GroundTruthManifest":{"shape":"GroundTruthManifest"}, + "DatasetArn":{"shape":"DatasetArn"} + } + }, + "DatasetStats":{ + "type":"structure", + "members":{ + "LabeledEntries":{"shape":"UInteger"}, + "TotalEntries":{"shape":"UInteger"}, + "TotalLabels":{"shape":"UInteger"}, + "ErrorEntries":{"shape":"UInteger"} + } + }, + "DatasetStatus":{ + "type":"string", + "enum":[ + "CREATE_IN_PROGRESS", + "CREATE_COMPLETE", + "CREATE_FAILED", + "UPDATE_IN_PROGRESS", + "UPDATE_COMPLETE", + "UPDATE_FAILED", + "DELETE_IN_PROGRESS" + ] + }, + "DatasetStatusMessageCode":{ + "type":"string", + "enum":[ + "SUCCESS", + "SERVICE_ERROR", + "CLIENT_ERROR" + ] + }, + "DatasetType":{ + "type":"string", + "enum":[ + "TRAIN", + "TEST" + ] + }, "DateTime":{"type":"timestamp"}, "Degree":{ "type":"float", @@ -1331,6 +1602,18 @@ "StatusCode":{"shape":"UInteger"} } }, + "DeleteDatasetRequest":{ + "type":"structure", + "required":["DatasetArn"], + "members":{ + "DatasetArn":{"shape":"DatasetArn"} + } + }, + "DeleteDatasetResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteFacesRequest":{ "type":"structure", "required":[ @@ -1402,6 +1685,19 @@ "CreationTimestamp":{"shape":"DateTime"} } }, + "DescribeDatasetRequest":{ + "type":"structure", + "required":["DatasetArn"], + "members":{ + "DatasetArn":{"shape":"DatasetArn"} + } + }, + "DescribeDatasetResponse":{ + "type":"structure", + "members":{ + "DatasetDescription":{"shape":"DatasetDescription"} + } + }, "DescribeProjectVersionsRequest":{ "type":"structure", "required":["ProjectArn"], @@ -1423,7 +1719,8 @@ "type":"structure", "members":{ "NextToken":{"shape":"ExtendedPaginationToken"}, - "MaxResults":{"shape":"ProjectsPageSize"} + "MaxResults":{"shape":"ProjectsPageSize"}, + "ProjectNames":{"shape":"ProjectNames"} } }, "DescribeProjectsResponse":{ @@ -1569,6 +1866,31 @@ "MinBoundingBoxWidth":{"shape":"BoundingBoxWidth"} } }, + "DistributeDataset":{ + "type":"structure", + "required":["Arn"], + "members":{ + "Arn":{"shape":"DatasetArn"} + } + }, + "DistributeDatasetEntriesRequest":{ + "type":"structure", + "required":["Datasets"], + "members":{ + "Datasets":{"shape":"DistributeDatasetMetadataList"} + } + }, + "DistributeDatasetEntriesResponse":{ + "type":"structure", + "members":{ + } + }, + "DistributeDatasetMetadataList":{ + "type":"list", + "member":{"shape":"DistributeDataset"}, + "max":2, + "min":2 + }, "Emotion":{ "type":"structure", "members":{ @@ -1947,12 +2269,18 @@ "TextModelVersion":{"shape":"String"} } }, + "GroundTruthBlob":{ + "type":"blob", + "max":5242880, + "min":1 + }, "GroundTruthManifest":{ "type":"structure", "members":{ "S3Object":{"shape":"S3Object"} } }, + "HasErrors":{"type":"boolean"}, "HumanLoopActivationConditionsEvaluationResults":{ "type":"string", "max":10240 @@ -2116,6 +2444,7 @@ }, "exception":true }, + "IsLabeled":{"type":"boolean"}, "JobId":{ "type":"string", "max":64, @@ -2266,6 +2595,52 @@ "FaceModelVersions":{"shape":"FaceModelVersionList"} } }, + "ListDatasetEntriesPageSize":{ + "type":"integer", + "max":100, + "min":1 + }, + "ListDatasetEntriesRequest":{ + "type":"structure", + "required":["DatasetArn"], + "members":{ + "DatasetArn":{"shape":"DatasetArn"}, + "ContainsLabels":{"shape":"DatasetLabels"}, + "Labeled":{"shape":"IsLabeled"}, + "SourceRefContains":{"shape":"QueryString"}, + "HasErrors":{"shape":"HasErrors"}, + "NextToken":{"shape":"ExtendedPaginationToken"}, + "MaxResults":{"shape":"ListDatasetEntriesPageSize"} + } + }, + "ListDatasetEntriesResponse":{ + "type":"structure", + "members":{ + "DatasetEntries":{"shape":"DatasetEntries"}, + "NextToken":{"shape":"ExtendedPaginationToken"} + } + }, + "ListDatasetLabelsPageSize":{ + "type":"integer", + "max":100, + "min":1 + }, + "ListDatasetLabelsRequest":{ + "type":"structure", + "required":["DatasetArn"], + "members":{ + "DatasetArn":{"shape":"DatasetArn"}, + "NextToken":{"shape":"ExtendedPaginationToken"}, + "MaxResults":{"shape":"ListDatasetLabelsPageSize"} + } + }, + "ListDatasetLabelsResponse":{ + "type":"structure", + "members":{ + "DatasetLabelDescriptions":{"shape":"DatasetLabelDescriptions"}, + "NextToken":{"shape":"ExtendedPaginationToken"} + } + }, "ListFacesRequest":{ "type":"structure", "required":["CollectionId"], @@ -2479,7 +2854,8 @@ "members":{ "ProjectArn":{"shape":"ProjectArn"}, "CreationTimestamp":{"shape":"DateTime"}, - "Status":{"shape":"ProjectStatus"} + "Status":{"shape":"ProjectStatus"}, + "Datasets":{"shape":"DatasetMetadataList"} } }, "ProjectDescriptions":{ @@ -2492,6 +2868,12 @@ "min":1, "pattern":"[a-zA-Z0-9_.\\-]+" }, + "ProjectNames":{ + "type":"list", + "member":{"shape":"ProjectName"}, + "max":10, + "min":1 + }, "ProjectStatus":{ "type":"string", "enum":[ @@ -2624,6 +3006,12 @@ "HIGH" ] }, + "QueryString":{ + "type":"string", + "max":2048, + "min":1, + "pattern":".*\\S.*" + }, "Reason":{ "type":"string", "enum":[ @@ -3302,6 +3690,22 @@ "members":{ } }, + "UpdateDatasetEntriesRequest":{ + "type":"structure", + "required":[ + "DatasetArn", + "Changes" + ], + "members":{ + "DatasetArn":{"shape":"DatasetArn"}, + "Changes":{"shape":"DatasetChanges"} + } + }, + "UpdateDatasetEntriesResponse":{ + "type":"structure", + "members":{ + } + }, "Url":{"type":"string"}, "Urls":{ "type":"list", diff --git a/models/apis/rekognition/2016-06-27/docs-2.json b/models/apis/rekognition/2016-06-27/docs-2.json index 8745c70ca3e..e52f36ab3d7 100644 --- a/models/apis/rekognition/2016-06-27/docs-2.json +++ b/models/apis/rekognition/2016-06-27/docs-2.json @@ -4,17 +4,20 @@ "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.

CompareFaces uses machine learning algorithms, which are probabilistic. A false negative is an incorrect prediction that a face in the target image has a low similarity confidence score when compared to the face in the source image. To reduce the probability of false negatives, we recommend that you compare the target image against multiple source images. If you plan to use CompareFaces to make a decision that impacts an individual's rights, privacy, or access to services, we recommend that you pass the result to a human for review and further validation before taking action.

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.

The QualityFilter input parameter allows you to filter out detected faces that don’t meet a required quality bar. The quality bar is based on a variety of common use cases. Use QualityFilter to set the quality bar by specifying LOW, MEDIUM, or HIGH. If you do not want to filter detected faces, specify NONE. The default value is NONE.

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 IndexFaces 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. If you want to tag your collection, you also require permission to perform the rekognition:TagResource operation.

", - "CreateProject": "

Creates a new Amazon Rekognition Custom Labels project. A project is a logical grouping of resources (images, Labels, models) and operations (training, evaluation and detection).

This operation requires permissions to perform the rekognition:CreateProject action.

", - "CreateProjectVersion": "

Creates a new version of a model and begins training. Models are managed as part of an Amazon Rekognition Custom Labels project. You can specify one training dataset and one testing dataset. The response from CreateProjectVersion is an Amazon Resource Name (ARN) for the version of the model.

Training takes a while to complete. You can get the current status by calling DescribeProjectVersions.

Once training has successfully completed, call DescribeProjectVersions to get the training results and evaluate the model.

After evaluating the model, you start the model by calling StartProjectVersion.

This operation requires permissions to perform the rekognition:CreateProjectVersion action.

", + "CreateDataset": "

Creates a new Amazon Rekognition Custom Labels dataset. You can create a dataset by using an Amazon Sagemaker format manifest file or by copying an existing Amazon Rekognition Custom Labels dataset.

To create a training dataset for a project, specify train for the value of DatasetType. To create the test dataset for a project, specify test for the value of DatasetType.

The response from CreateDataset is the Amazon Resource Name (ARN) for the dataset. Creating a dataset takes a while to complete. Use DescribeDataset to check the current status. The dataset created successfully if the value of Status is CREATE_COMPLETE.

To check if any non-terminal errors occurred, call ListDatasetEntries and check for the presence of errors lists in the JSON Lines.

Dataset creation fails if a terminal error occurs (Status = CREATE_FAILED). Currently, you can't access the terminal error information.

For more information, see Creating dataset in the Amazon Rekognition Custom Labels Developer Guide.

This operation requires permissions to perform the rekognition:CreateDataset action. If you want to copy an existing dataset, you also require permission to perform the rekognition:ListDatasetEntries action.

", + "CreateProject": "

Creates a new Amazon Rekognition Custom Labels project. A project is a group of resources (datasets, model versions) that you use to create and manage Amazon Rekognition Custom Labels models.

This operation requires permissions to perform the rekognition:CreateProject action.

", + "CreateProjectVersion": "

Creates a new version of a model and begins training. Models are managed as part of an Amazon Rekognition Custom Labels project. The response from CreateProjectVersion is an Amazon Resource Name (ARN) for the version of the model.

Training uses the training and test datasets associated with the project. For more information, see Creating training and test dataset in the Amazon Rekognition Custom Labels Developer Guide.

You can train a modelin a project that doesn't have associated datasets by specifying manifest files in the TrainingData and TestingData fields.

If you open the console after training a model with manifest files, Amazon Rekognition Custom Labels creates the datasets for you using the most recent manifest files. You can no longer train a model version for the project by specifying manifest files.

Instead of training with a project without associated datasets, we recommend that you use the manifest files to create training and test datasets for the project.

Training takes a while to complete. You can get the current status by calling DescribeProjectVersions. Training completed successfully if the value of the Status field is TRAINING_COMPLETED.

If training fails, see Debugging a failed model training in the Amazon Rekognition Custom Labels developer guide.

Once training has successfully completed, call DescribeProjectVersions to get the training results and evaluate the model. For more information, see Improving a trained Amazon Rekognition Custom Labels model in the Amazon Rekognition Custom Labels developers guide.

After evaluating the model, you start the model by calling StartProjectVersion.

This operation requires permissions to perform the rekognition:CreateProjectVersion 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 StartStreamProcessor with the Name field.

After you have finished analyzing a streaming video, use StopStreamProcessor to stop processing. You can delete the stream processor by calling DeleteStreamProcessor.

This operation requires permissions to perform the rekognition:CreateStreamProcessor action. If you want to tag your stream processor, you also require permission to perform the rekognition:TagResource operation.

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

", + "DeleteDataset": "

Deletes an existing Amazon Rekognition Custom Labels dataset. Deleting a dataset might take while. Use DescribeDataset to check the current status. The dataset is still deleting if the value of Status is DELETE_IN_PROGRESS. If you try to access the dataset after it is deleted, you get a ResourceNotFoundException exception.

You can't delete a dataset while it is creating (Status = CREATE_IN_PROGRESS) or if the dataset is updating (Status = UPDATE_IN_PROGRESS).

This operation requires permissions to perform the rekognition:DeleteDataset 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.

", - "DeleteProject": "

Deletes an Amazon Rekognition Custom Labels project. To delete a project you must first delete all models associated with the project. To delete a model, see DeleteProjectVersion.

This operation requires permissions to perform the rekognition:DeleteProject action.

", + "DeleteProject": "

Deletes an Amazon Rekognition Custom Labels project. To delete a project you must first delete all models associated with the project. To delete a model, see DeleteProjectVersion.

DeleteProject is an asynchronous operation. To check if the project is deleted, call DescribeProjects. The project is deleted when the project no longer appears in the response.

This operation requires permissions to perform the rekognition:DeleteProject action.

", "DeleteProjectVersion": "

Deletes an Amazon Rekognition Custom Labels model.

You can't delete a model if it is running or if it is training. To check the status of a model, use the Status field returned from DescribeProjectVersions. To stop a running model call StopProjectVersion. If the model is training, wait until it finishes.

This operation requires permissions to perform the rekognition:DeleteProjectVersion action.

", "DeleteStreamProcessor": "

Deletes the stream processor identified by Name. You assign the value for Name when you create the stream processor with CreateStreamProcessor. 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.

", - "DescribeProjectVersions": "

Lists and describes the models in an Amazon Rekognition Custom Labels project. You can specify up to 10 model versions in ProjectVersionArns. If you don't specify a value, descriptions for all models are returned.

This operation requires permissions to perform the rekognition:DescribeProjectVersions action.

", - "DescribeProjects": "

Lists and gets information about your Amazon Rekognition Custom Labels projects.

This operation requires permissions to perform the rekognition:DescribeProjects action.

", + "DescribeDataset": "

Describes an Amazon Rekognition Custom Labels dataset. You can get information such as the current status of a dataset and statistics about the images and labels in a dataset.

This operation requires permissions to perform the rekognition:DescribeDataset action.

", + "DescribeProjectVersions": "

Lists and describes the versions of a model in an Amazon Rekognition Custom Labels project. You can specify up to 10 model versions in ProjectVersionArns. If you don't specify a value, descriptions for all model versions in the project are returned.

This operation requires permissions to perform the rekognition:DescribeProjectVersions action.

", + "DescribeProjects": "

Gets information about your Amazon Rekognition Custom Labels projects.

This operation requires permissions to perform the rekognition:DescribeProjects action.

", "DescribeStreamProcessor": "

Provides information about a stream processor created by CreateStreamProcessor. 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.

", "DetectCustomLabels": "

Detects custom labels in a supplied image by using an Amazon Rekognition Custom Labels model.

You specify which version of a model version to use by using the ProjectVersionArn input parameter.

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 that the model version detects on an image, the API returns a (CustomLabel) object in an array (CustomLabels). Each CustomLabel object provides the label name (Name), the level of confidence that the image contains the object (Confidence), and object location information, if it exists, for the label on the image (Geometry).

To filter labels that are returned, specify a value for MinConfidence. DetectCustomLabelsLabels only returns labels with a confidence that's higher than the specified value. The value of MinConfidence maps to the assumed threshold values created during training. For more information, see Assumed threshold in the Amazon Rekognition Custom Labels Developer Guide. Amazon Rekognition Custom Labels metrics expresses an assumed threshold as a floating point value between 0-1. The range of MinConfidence normalizes the threshold value to a percentage value (0-100). Confidence responses from DetectCustomLabels are also returned as a percentage. You can use MinConfidence to change the precision and recall or your model. For more information, see Analyzing an image in the Amazon Rekognition Custom Labels Developer Guide.

If you don't specify a value for MinConfidence, DetectCustomLabels returns labels based on the assumed threshold of each label.

This is a stateless API operation. That is, the operation does not persist any data.

This operation requires permissions to perform the rekognition:DetectCustomLabels action.

For more information, see Analyzing an image in the Amazon Rekognition Custom Labels Developer Guide.

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

", @@ -22,6 +25,7 @@ "DetectModerationLabels": "

Detects unsafe 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.

", "DetectProtectiveEquipment": "

Detects Personal Protective Equipment (PPE) worn by people detected in an image. Amazon Rekognition can detect the following types of PPE.

You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. The image must be either a PNG or JPG formatted file.

DetectProtectiveEquipment detects PPE worn by up to 15 persons detected in an image.

For each person detected in the image the API returns an array of body parts (face, head, left-hand, right-hand). For each body part, an array of detected items of PPE is returned, including an indicator of whether or not the PPE covers the body part. The API returns the confidence it has in each detection (person, PPE, body part and body part coverage). It also returns a bounding box (BoundingBox) for each detected person and each detected item of PPE.

You can optionally request a summary of detected PPE items with the SummarizationAttributes input parameter. The summary provides the following information.

This is a stateless API operation. That is, the operation does not persist any data.

This operation requires permissions to perform the rekognition:DetectProtectiveEquipment action.

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

", + "DistributeDatasetEntries": "

Distributes the entries (images) in a training dataset across the training dataset and the test dataset for a project. DistributeDatasetEntries moves 20% of the training dataset images to the test dataset. An entry is a JSON Line that describes an image.

You supply the Amazon Resource Names (ARN) of a project's training dataset and test dataset. The training dataset must contain the images that you want to split. The test dataset must be empty. The datasets must belong to the same project. To create training and test datasets for a project, call CreateDataset.

Distributing a dataset takes a while to complete. To check the status call DescribeDataset. The operation is complete when the Status field for the training dataset and the test dataset is UPDATE_COMPLETE. If the dataset split fails, the value of Status is UPDATE_FAILED.

This operation requires permissions to perform the rekognition:DistributeDatasetEntries action.

", "GetCelebrityInfo": "

Gets the name and additional information about a celebrity based on their 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 StartCelebrityRecognition.

Celebrity recognition in a video is an asynchronous operation. Analysis is started by a call to StartCelebrityRecognition 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 CelebrityRecognition objects. Each CelebrityRecognition contains information about the celebrity in a CelebrityDetail object and the time, Timestamp, the celebrity was detected. This CelebrityDetail object stores information about the detected celebrity's face attributes, a face bounding box, known gender, the celebrity's name, and a confidence estimate.

GetCelebrityRecognition only returns the default facial attributes (BoundingBox, Confidence, Landmarks, Pose, and Quality). The BoundingBox field only applies to the detected face instance. 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 GetCelebrityInfo 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 inappropriate, unwanted, or offensive content analysis results for a Amazon Rekognition Video analysis started by StartContentModeration. For a list of moderation labels in Amazon Rekognition, see Using the image and video moderation APIs.

Amazon Rekognition Video inappropriate or offensive content detection in a stored video is an asynchronous operation. You start analysis by calling StartContentModeration 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 analysis, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetContentModeration and pass the job identifier (JobId) from the initial call to StartContentModeration.

For more information, see Working with Stored Videos in the Amazon Rekognition Devlopers Guide.

GetContentModeration returns detected inappropriate, unwanted, or offensive content moderation labels, and the time they are detected, in an array, ModerationLabels, of ContentModerationDetection 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 Content moderation in the Amazon Rekognition Developer Guide.

", @@ -33,10 +37,12 @@ "GetTextDetection": "

Gets the text detection results of a Amazon Rekognition Video analysis started by StartTextDetection.

Text detection with Amazon Rekognition Video is an asynchronous operation. You start text detection by calling StartTextDetection which returns a job identifier (JobId) When the text detection operation finishes, Amazon Rekognition publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartTextDetection. To get the results of the text detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. if so, call GetTextDetection and pass the job identifier (JobId) from the initial call of StartLabelDetection.

GetTextDetection returns an array of detected text (TextDetections) sorted by the time the text was detected, up to 50 words per frame of video.

Each element of the array includes the detected text, the precentage confidence in the acuracy of the detected text, the time the text was detected, bounding box information for where the text was located, and unique identifiers for words and their lines.

Use MaxResults parameter to limit the number of text detections 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 GetTextDetection and populate the NextToken request parameter with the token value returned from the previous call to GetTextDetection.

", "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 SearchFaces and SearchFacesByImage 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 DescribeCollection.

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 DescribeCollection 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 ListFaces 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 a required quality bar. The quality bar is based on a variety of common use cases. By default, IndexFaces chooses the quality bar that's used to filter faces. You can also explicitly choose the quality bar. Use QualityFilter, to set the quality bar by specifying LOW, MEDIUM, or HIGH. 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 or higher. To get the version of the face model associated with a collection, call DescribeCollection.

Information about faces detected in an image, but not indexed, is returned in an array of UnindexedFace objects, UnindexedFaces. Faces aren't indexed for reasons such as:

In response, the IndexFaces operation returns an array of metadata for all detected faces, FaceRecords. This includes:

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

", + "ListDatasetEntries": "

Lists the entries (images) within a dataset. An entry is a JSON Line that contains the information for a single image, including the image location, assigned labels, and object location bounding boxes. For more information, see Creating a manifest file.

JSON Lines in the response include information about non-terminal errors found in the dataset. Non terminal errors are reported in errors lists within each JSON Line. The same information is reported in the training and testing validation result manifests that Amazon Rekognition Custom Labels creates during model training.

You can filter the response in variety of ways, such as choosing which labels to return and returning JSON Lines created after a specific date.

This operation requires permissions to perform the rekognition:ListDatasetEntries action.

", + "ListDatasetLabels": "

Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see Labeling images.

Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see Labeling images in the Amazon Rekognition Custom Labels Developer Guide.

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

", "ListTagsForResource": "

Returns a list of tags in an Amazon Rekognition collection, stream processor, or Custom Labels model.

This operation requires permissions to perform the rekognition:ListTagsForResource action.

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

", + "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 64 largest faces in the image. It lists the recognized celebrities in the CelebrityFaces array and any unrecognized faces in the UnrecognizedFaces array. RecognizeCelebrities doesn't return celebrities whose faces aren't among the largest 64 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 GetCelebrityInfo 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 IndexFaces operation, and then use the face IDs returned in subsequent calls to the SearchFaces 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.

If no faces are detected in the input image, SearchFacesByImage returns an InvalidParameterException error.

For an example, Searching for a Face Using an Image in the Amazon Rekognition Developer Guide.

The QualityFilter input parameter allows you to filter out detected faces that don’t meet a required quality bar. The quality bar is based on a variety of common use cases. Use QualityFilter to set the quality bar for filtering by specifying LOW, MEDIUM, or HIGH. If you do not want to filter detected faces, specify NONE. The default value is NONE.

To use quality filtering, you need a collection associated with version 3 of the face model or higher. To get the version of the face model associated with a collection, call DescribeCollection.

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 GetCelebrityRecognition and pass the job identifier (JobId) from the initial call to StartCelebrityRecognition.

For more information, see Recognizing Celebrities in the Amazon Rekognition Developer Guide.

", @@ -52,7 +58,8 @@ "StopProjectVersion": "

Stops a running model. The operation might take a while to complete. To check the current status, call DescribeProjectVersions.

", "StopStreamProcessor": "

Stops a running stream processor that was created by CreateStreamProcessor.

", "TagResource": "

Adds one or more key-value tags to an Amazon Rekognition collection, stream processor, or Custom Labels model. For more information, see Tagging AWS Resources.

This operation requires permissions to perform the rekognition:TagResource action.

", - "UntagResource": "

Removes one or more tags from an Amazon Rekognition collection, stream processor, or Custom Labels model.

This operation requires permissions to perform the rekognition:UntagResource action.

" + "UntagResource": "

Removes one or more tags from an Amazon Rekognition collection, stream processor, or Custom Labels model.

This operation requires permissions to perform the rekognition:UntagResource action.

", + "UpdateDatasetEntries": "

Adds or updates one or more entries (images) in a dataset. An entry is a JSON Line which contains the information for a single image, including the image location, assigned labels, and object location bounding boxes. For more information, see Image-Level labels in manifest files and Object localization in manifest files in the Amazon Rekognition Custom Labels Developer Guide.

If the source-ref field in the JSON line references an existing image, the existing image in the dataset is updated. If source-ref field doesn't reference an existing image, the image is added as a new image to the dataset.

You specify the changes that you want to make in the Changes input parameter. There isn't a limit to the number JSON Lines that you can change, but the size of Changes must be less than 5MB.

UpdateDatasetEntries returns immediatly, but the dataset update might take a while to complete. Use DescribeDataset to check the current status. The dataset updated successfully if the value of Status is UPDATE_COMPLETE.

To check if any non-terminal errors occured, call ListDatasetEntries and check for the presence of errors lists in the JSON Lines.

Dataset update fails if a terminal error occurs (Status = UPDATE_FAILED). Currently, you can't access the terminal error information from the Amazon Rekognition Custom Labels SDK.

This operation requires permissions to perform the rekognition:UpdateDatasetEntries action.

" }, "shapes": { "AccessDeniedException": { @@ -140,7 +147,7 @@ "Mustache$Value": "

Boolean value that indicates whether the face has mustache or not.

", "Smile$Value": "

Boolean value that indicates whether the face is smiling or not.

", "Sunglasses$Value": "

Boolean value that indicates whether the face is wearing sunglasses or not.

", - "TestingData$AutoCreate": "

If specified, Amazon Rekognition Custom Labels creates a testing dataset with an 80/20 split of the training dataset.

" + "TestingData$AutoCreate": "

If specified, Amazon Rekognition Custom Labels temporarily splits the training dataset (80%) to create a test dataset (20%) for the training job. After training completes, the test dataset is not stored and the training dataset reverts to its previous size.

" } }, "BoundingBox": { @@ -338,6 +345,16 @@ "refs": { } }, + "CreateDatasetRequest": { + "base": null, + "refs": { + } + }, + "CreateDatasetResponse": { + "base": null, + "refs": { + } + }, "CreateProjectRequest": { "base": null, "refs": { @@ -380,9 +397,126 @@ "DetectCustomLabelsResponse$CustomLabels": "

An array of custom labels detected in the input image.

" } }, + "DatasetArn": { + "base": null, + "refs": { + "CreateDatasetResponse$DatasetArn": "

The ARN of the created Amazon Rekognition Custom Labels dataset.

", + "DatasetMetadata$DatasetArn": "

The Amazon Resource Name (ARN) for the dataset.

", + "DatasetSource$DatasetArn": "

The ARN of an Amazon Rekognition Custom Labels dataset that you want to copy.

", + "DeleteDatasetRequest$DatasetArn": "

The ARN of the Amazon Rekognition Custom Labels dataset that you want to delete.

", + "DescribeDatasetRequest$DatasetArn": "

The Amazon Resource Name (ARN) of the dataset that you want to describe.

", + "DistributeDataset$Arn": "

The Amazon Resource Name (ARN) of the dataset that you want to use.

", + "ListDatasetEntriesRequest$DatasetArn": "

The Amazon Resource Name (ARN) for the dataset that you want to use.

", + "ListDatasetLabelsRequest$DatasetArn": "

The Amazon Resource Name (ARN) of the dataset that you want to use.

", + "UpdateDatasetEntriesRequest$DatasetArn": "

The Amazon Resource Name (ARN) of the dataset that you want to update.

" + } + }, + "DatasetChanges": { + "base": "

Describes updates or additions to a dataset. A Single update or addition is an entry (JSON Line) that provides information about a single image. To update an existing entry, you match the source-ref field of the update entry with the source-ref filed of the entry that you want to update. If the source-ref field doesn't match an existing entry, the entry is added to dataset as a new entry.

", + "refs": { + "UpdateDatasetEntriesRequest$Changes": "

The changes that you want to make to the dataset.

" + } + }, + "DatasetDescription": { + "base": "

A description for a dataset. For more information, see DescribeDataset.

The status fields Status, StatusMessage, and StatusMessageCode reflect the last operation on the dataset.

", + "refs": { + "DescribeDatasetResponse$DatasetDescription": "

The description for the dataset.

" + } + }, + "DatasetEntries": { + "base": null, + "refs": { + "ListDatasetEntriesResponse$DatasetEntries": "

A list of entries (images) in the dataset.

" + } + }, + "DatasetEntry": { + "base": null, + "refs": { + "DatasetEntries$member": null + } + }, + "DatasetLabel": { + "base": null, + "refs": { + "DatasetLabelDescription$LabelName": "

The name of the label.

", + "DatasetLabels$member": null + } + }, + "DatasetLabelDescription": { + "base": "

Describes a dataset label. For more information, see ListDatasetLabels.

", + "refs": { + "DatasetLabelDescriptions$member": null + } + }, + "DatasetLabelDescriptions": { + "base": null, + "refs": { + "ListDatasetLabelsResponse$DatasetLabelDescriptions": "

A list of the labels in the dataset.

" + } + }, + "DatasetLabelStats": { + "base": "

Statistics about a label used in a dataset. For more information, see DatasetLabelDescription.

", + "refs": { + "DatasetLabelDescription$LabelStats": "

Statistics about the label.

" + } + }, + "DatasetLabels": { + "base": null, + "refs": { + "ListDatasetEntriesRequest$ContainsLabels": "

Specifies a label filter for the response. The response includes an entry only if one or more of the labels in ContainsLabels exist in the entry.

" + } + }, + "DatasetMetadata": { + "base": "

Summary information for an Amazon Rekognition Custom Labels dataset. For more information, see ProjectDescription.

", + "refs": { + "DatasetMetadataList$member": null + } + }, + "DatasetMetadataList": { + "base": null, + "refs": { + "ProjectDescription$Datasets": "

Information about the training and test datasets in the project.

" + } + }, + "DatasetSource": { + "base": "

The source that Amazon Rekognition Custom Labels uses to create a dataset. To use an Amazon Sagemaker format manifest file, specify the S3 bucket location in the GroundTruthManifest field. The S3 bucket must be in your AWS account. To create a copy of an existing dataset, specify the Amazon Resource Name (ARN) of an existing dataset in DatasetArn.

You need to specify a value for DatasetArn or GroundTruthManifest, but not both. if you supply both values, or if you don't specify any values, an InvalidParameterException exception occurs.

For more information, see CreateDataset.

", + "refs": { + "CreateDatasetRequest$DatasetSource": "

The source files for the dataset. You can specify the ARN of an existing dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. If you don't specify datasetSource, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries.

" + } + }, + "DatasetStats": { + "base": "

Provides statistics about a dataset. For more information, see DescribeDataset.

", + "refs": { + "DatasetDescription$DatasetStats": "

The status message code for the dataset.

" + } + }, + "DatasetStatus": { + "base": null, + "refs": { + "DatasetDescription$Status": "

The status of the dataset.

", + "DatasetMetadata$Status": "

The status for the dataset.

" + } + }, + "DatasetStatusMessageCode": { + "base": null, + "refs": { + "DatasetDescription$StatusMessageCode": "

The status message code for the dataset operation. If a service error occurs, try the API call again later. If a client error occurs, check the input parameters to the dataset API call that failed.

", + "DatasetMetadata$StatusMessageCode": "

The status message code for the dataset operation. If a service error occurs, try the API call again later. If a client error occurs, check the input parameters to the dataset API call that failed.

" + } + }, + "DatasetType": { + "base": null, + "refs": { + "CreateDatasetRequest$DatasetType": "

The type of the dataset. Specify train to create a training dataset. Specify test to create a test dataset.

", + "DatasetMetadata$DatasetType": "

The type of the dataset.

" + } + }, "DateTime": { "base": null, "refs": { + "DatasetDescription$CreationTimestamp": "

The Unix timestamp for the time and date that the dataset was created.

", + "DatasetDescription$LastUpdatedTimestamp": "

The Unix timestamp for the date and time that the dataset was last updated.

", + "DatasetMetadata$CreationTimestamp": "

The Unix timestamp for the date and time that the dataset was created.

", "DescribeCollectionResponse$CreationTimestamp": "

The number of milliseconds since the Unix epoch time until the creation of the collection. The Unix epoch time is 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970.

", "DescribeStreamProcessorResponse$CreationTimestamp": "

Date and time the stream processor was created

", "DescribeStreamProcessorResponse$LastUpdateTimestamp": "

The time, in Unix format, the stream processor was last updated. For example, when the stream processor moves from a running state to a failed state, or when the user starts or stops the stream processor.

", @@ -409,6 +543,16 @@ "refs": { } }, + "DeleteDatasetRequest": { + "base": null, + "refs": { + } + }, + "DeleteDatasetResponse": { + "base": null, + "refs": { + } + }, "DeleteFacesRequest": { "base": null, "refs": { @@ -459,6 +603,16 @@ "refs": { } }, + "DescribeDatasetRequest": { + "base": null, + "refs": { + } + }, + "DescribeDatasetResponse": { + "base": null, + "refs": { + } + }, "DescribeProjectVersionsRequest": { "base": null, "refs": { @@ -562,6 +716,28 @@ "StartTextDetectionFilters$WordFilter": "

Filters focusing on qualities of the text, such as confidence or size.

" } }, + "DistributeDataset": { + "base": "

A training dataset or a test dataset used in a dataset distribution operation. For more information, see DistributeDatasetEntries.

", + "refs": { + "DistributeDatasetMetadataList$member": null + } + }, + "DistributeDatasetEntriesRequest": { + "base": null, + "refs": { + } + }, + "DistributeDatasetEntriesResponse": { + "base": null, + "refs": { + } + }, + "DistributeDatasetMetadataList": { + "base": null, + "refs": { + "DistributeDatasetEntriesRequest$Datasets": "

The ARNS for the training dataset and test dataset that you want to use. The datasets must belong to the same project. The test dataset must be empty.

" + } + }, "Emotion": { "base": "

The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.

", "refs": { @@ -605,7 +781,11 @@ "DescribeProjectVersionsRequest$NextToken": "

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

", "DescribeProjectVersionsResponse$NextToken": "

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

", "DescribeProjectsRequest$NextToken": "

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

", - "DescribeProjectsResponse$NextToken": "

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

" + "DescribeProjectsResponse$NextToken": "

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

", + "ListDatasetEntriesRequest$NextToken": "

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

", + "ListDatasetEntriesResponse$NextToken": "

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

", + "ListDatasetLabelsRequest$NextToken": "

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

", + "ListDatasetLabelsResponse$NextToken": "

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

" } }, "ExternalImageId": { @@ -868,13 +1048,26 @@ "refs": { } }, + "GroundTruthBlob": { + "base": null, + "refs": { + "DatasetChanges$GroundTruth": "

A Base64-encoded binary data object containing one or JSON lines that either update the dataset or are additions to the dataset. You change a dataset by calling UpdateDatasetEntries. If you are using an AWS SDK to call UpdateDatasetEntries, you don't need to encode Changes as the SDK encodes the data for you.

For example JSON lines, see Image-Level labels in manifest files and and Object localization in manifest files in the Amazon Rekognition Custom Labels Developer Guide.

" + } + }, "GroundTruthManifest": { "base": "

The S3 bucket that contains an Amazon Sagemaker Ground Truth format manifest file.

", "refs": { "Asset$GroundTruthManifest": null, + "DatasetSource$GroundTruthManifest": null, "ProjectVersionDescription$ManifestSummary": "

The location of the summary manifest. The summary manifest provides aggregate data validation results for the training and test datasets.

" } }, + "HasErrors": { + "base": null, + "refs": { + "ListDatasetEntriesRequest$HasErrors": "

Specifies an error filter for the response. Specify True to only include entries that have errors.

" + } + }, "HumanLoopActivationConditionsEvaluationResults": { "base": null, "refs": { @@ -1027,6 +1220,12 @@ "refs": { } }, + "IsLabeled": { + "base": null, + "refs": { + "ListDatasetEntriesRequest$Labeled": "

Specify true to get only the JSON Lines where the image is labeled. Specify false to get only the JSON Lines where the image isn't labeled. If you don't specify Labeled, ListDatasetEntries returns JSON Lines for labeled and unlabeled images.

" + } + }, "JobId": { "base": null, "refs": { @@ -1088,8 +1287,8 @@ "KmsKeyId": { "base": null, "refs": { - "CreateProjectVersionRequest$KmsKeyId": "

The identifier for your AWS Key Management Service (AWS KMS) customer master key (CMK). You can supply the Amazon Resource Name (ARN) of your CMK, the ID of your CMK, an alias for your CMK, or an alias ARN. The key is used to encrypt training and test images copied into the service for model training. Your source images are unaffected. The key is also used to encrypt training results and manifest files written to the output Amazon S3 bucket (OutputConfig).

If you choose to use your own CMK, you need the following permissions on the CMK.

If you don't specify a value for KmsKeyId, images copied into the service are encrypted using a key that AWS owns and manages.

", - "ProjectVersionDescription$KmsKeyId": "

The identifer for the AWS Key Management Service (AWS KMS) customer master key that was used to encrypt the model during training.

" + "CreateProjectVersionRequest$KmsKeyId": "

The identifier for your AWS Key Management Service key (AWS KMS key). You can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your KMS key, or an alias ARN. The key is used to encrypt training and test images copied into the service for model training. Your source images are unaffected. The key is also used to encrypt training results and manifest files written to the output Amazon S3 bucket (OutputConfig).

If you choose to use your own KMS key, you need the following permissions on the KMS key.

If you don't specify a value for KmsKeyId, images copied into the service are encrypted using a key that AWS owns and manages.

", + "ProjectVersionDescription$KmsKeyId": "

The identifer for the AWS Key Management Service key (AWS KMS key) that was used to encrypt the model during training.

" } }, "KnownGender": { @@ -1171,6 +1370,38 @@ "refs": { } }, + "ListDatasetEntriesPageSize": { + "base": null, + "refs": { + "ListDatasetEntriesRequest$MaxResults": "

The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.

" + } + }, + "ListDatasetEntriesRequest": { + "base": null, + "refs": { + } + }, + "ListDatasetEntriesResponse": { + "base": null, + "refs": { + } + }, + "ListDatasetLabelsPageSize": { + "base": null, + "refs": { + "ListDatasetLabelsRequest$MaxResults": "

The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.

" + } + }, + "ListDatasetLabelsRequest": { + "base": null, + "refs": { + } + }, + "ListDatasetLabelsResponse": { + "base": null, + "refs": { + } + }, "ListFacesRequest": { "base": null, "refs": { @@ -1364,7 +1595,7 @@ "Face$Confidence": "

Confidence level that the bounding box contains a face (and not a different object such as a tree).

", "FaceDetail$Confidence": "

Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.

", "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 80. 0 is the lowest confidence. 100 is the highest confidence.

", + "FaceSearchSettings$FaceMatchThreshold": "

Minimum face match confidence score that must be met to return a result for a recognized face. The default is 80. 0 is the lowest confidence. 100 is the highest confidence. Values between 0 and 100 are accepted, and values lower than 80 are set to 80.

", "Gender$Confidence": "

Level of confidence in the prediction.

", "Instance$Confidence": "

The confidence that Amazon Rekognition has in the accuracy of the bounding box.

", "Label$Confidence": "

Level of confidence.

", @@ -1450,6 +1681,7 @@ "ProjectArn": { "base": null, "refs": { + "CreateDatasetRequest$ProjectArn": "

The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign the dataset.

", "CreateProjectResponse$ProjectArn": "

The Amazon Resource Name (ARN) of the new project. You can use the ARN to configure IAM access to the project.

", "CreateProjectVersionRequest$ProjectArn": "

The ARN of the Amazon Rekognition Custom Labels project that manages the model that you want to train.

", "DeleteProjectRequest$ProjectArn": "

The Amazon Resource Name (ARN) of the project that you want to delete.

", @@ -1458,7 +1690,7 @@ } }, "ProjectDescription": { - "base": "

A description of a Amazon Rekognition Custom Labels project.

", + "base": "

A description of an Amazon Rekognition Custom Labels project. For more information, see DescribeProjects.

", "refs": { "ProjectDescriptions$member": null } @@ -1472,7 +1704,14 @@ "ProjectName": { "base": null, "refs": { - "CreateProjectRequest$ProjectName": "

The name of the project to create.

" + "CreateProjectRequest$ProjectName": "

The name of the project to create.

", + "ProjectNames$member": null + } + }, + "ProjectNames": { + "base": null, + "refs": { + "DescribeProjectsRequest$ProjectNames": "

A list of the projects that you want Amazon Rekognition Custom Labels to describe. If you don't specify a value, the response includes descriptions for all the projects in your AWS account.

" } }, "ProjectStatus": { @@ -1494,7 +1733,7 @@ } }, "ProjectVersionDescription": { - "base": "

The description of a version of a model.

", + "base": "

A description of a version of an Amazon Rekognition Custom Labels model.

", "refs": { "ProjectVersionDescriptions$member": null } @@ -1590,6 +1829,12 @@ "SearchFacesByImageRequest$QualityFilter": "

A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces aren't searched for in the collection. If you specify AUTO, Amazon Rekognition chooses the quality bar. If you specify LOW, MEDIUM, or HIGH, filtering removes all faces that don’t meet the chosen quality bar. 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 NONE.

To use quality filtering, the collection you are using must be associated with version 3 of the face model or higher.

" } }, + "QueryString": { + "base": null, + "refs": { + "ListDatasetEntriesRequest$SourceRefContains": "

If specified, ListDatasetEntries only returns JSON Lines where the value of SourceRefContains is part of the source-ref field. The source-ref field contains the Amazon S3 location of the image. You can use SouceRefContains for tasks such as getting the JSON Line for a single image, or gettting JSON Lines for all images within a specific folder.

" + } + }, "Reason": { "base": null, "refs": { @@ -1921,6 +2166,8 @@ "StatusMessage": { "base": null, "refs": { + "DatasetDescription$StatusMessage": "

The status message for the dataset.

", + "DatasetMetadata$StatusMessage": "

The status message for the dataset.

", "GetCelebrityRecognitionResponse$StatusMessage": "

If the job fails, StatusMessage provides a descriptive error message.

", "GetContentModerationResponse$StatusMessage": "

If the job fails, StatusMessage provides a descriptive error message.

", "GetFaceDetectionResponse$StatusMessage": "

If the job fails, StatusMessage provides a descriptive error message.

", @@ -2114,9 +2361,9 @@ } }, "TestingData": { - "base": "

The dataset used for testing. Optionally, if AutoCreate is set, Amazon Rekognition Custom Labels creates a testing dataset using an 80/20 split of the training dataset.

", + "base": "

The dataset used for testing. Optionally, if AutoCreate is set, Amazon Rekognition Custom Labels uses the training dataset to create a test dataset with a temporary split of the training dataset.

", "refs": { - "CreateProjectVersionRequest$TestingData": "

The dataset to use for testing.

", + "CreateProjectVersionRequest$TestingData": "

Specifies an external manifest that the service uses to test the model. If you specify TestingData you must also specify TrainingData. The project must not have any associated datasets.

", "TestingDataResult$Input": "

The testing dataset that was supplied for training.

", "TestingDataResult$Output": "

The subset of the dataset that was actually tested. Some images (assets) might not be tested due to file formatting and other issues.

" } @@ -2188,7 +2435,7 @@ "TrainingData": { "base": "

The dataset used for training.

", "refs": { - "CreateProjectVersionRequest$TrainingData": "

The dataset to use for training.

", + "CreateProjectVersionRequest$TrainingData": "

Specifies an external manifest that the services uses to train the model. If you specify TrainingData you must also specify TestingData. The project must not have any associated datasets.

", "TrainingDataResult$Input": "

The training assets that you supplied for training.

", "TrainingDataResult$Output": "

The images (assets) that were actually trained by Amazon Rekognition Custom Labels.

" } @@ -2205,6 +2452,12 @@ "AgeRange$Low": "

The lowest estimated age.

", "AgeRange$High": "

The highest estimated age.

", "CreateCollectionResponse$StatusCode": "

HTTP status code indicating the result of the operation.

", + "DatasetLabelStats$EntryCount": "

The total number of images that use the label.

", + "DatasetLabelStats$BoundingBoxCount": "

The total number of images that have the label assigned to a bounding box.

", + "DatasetStats$LabeledEntries": "

The total number of images in the dataset that have labels.

", + "DatasetStats$TotalEntries": "

The total number of images in the dataset.

", + "DatasetStats$TotalLabels": "

The total number of labels declared in the dataset.

", + "DatasetStats$ErrorEntries": "

The total number of entries that contain at least one error.

", "DeleteCollectionResponse$StatusCode": "

HTTP status code that indicates the result of the operation.

", "DetectCustomLabelsRequest$MaxResults": "

Maximum number of results you want the service to return in the response. The service returns the specified number of highest confidence labels ranked from highest confidence to lowest.

", "DetectLabelsRequest$MaxLabels": "

Maximum number of labels you want the service to return in the response. The service returns the specified number of highest confidence labels.

", @@ -2221,7 +2474,7 @@ "AudioMetadata$SampleRate": "

The sample rate for the audio stream.

", "AudioMetadata$NumberOfChannels": "

The number of audio channels in the segment.

", "DescribeCollectionResponse$FaceCount": "

The number of faces that are indexed into the collection. To index faces into a collection, use IndexFaces.

", - "ProjectVersionDescription$BillableTrainingTimeInSeconds": "

The duration, in seconds, that the model version has been billed for training. This value is only returned if the model version has been successfully trained.

", + "ProjectVersionDescription$BillableTrainingTimeInSeconds": "

The duration, in seconds, that you were billed for a successful training of the model version. This value is only returned if the model version has been successfully trained.

", "SegmentDetection$DurationMillis": "

The duration of the detected segment in milliseconds.

", "SegmentDetection$StartFrameNumber": "

The frame number of the start of a video segment, using a frame index that starts with 0.

", "SegmentDetection$EndFrameNumber": "

The frame number at the end of a video segment, using a frame index that starts with 0.

", @@ -2254,6 +2507,16 @@ "refs": { } }, + "UpdateDatasetEntriesRequest": { + "base": null, + "refs": { + } + }, + "UpdateDatasetEntriesResponse": { + "base": null, + "refs": { + } + }, "Url": { "base": null, "refs": { @@ -2269,7 +2532,7 @@ } }, "ValidationData": { - "base": "

Contains the Amazon S3 bucket location of the validation data for a model training job.

The validation data includes error information for individual JSON lines in the dataset. For more information, see Debugging a Failed Model Training in the Amazon Rekognition Custom Labels Developer Guide.

You get the ValidationData object for the training dataset (TrainingDataResult) and the test dataset (TestingDataResult) by calling DescribeProjectVersions.

The assets array contains a single Asset object. The GroundTruthManifest field of the Asset object contains the S3 bucket location of the validation data.

", + "base": "

Contains the Amazon S3 bucket location of the validation data for a model training job.

The validation data includes error information for individual JSON Lines in the dataset. For more information, see Debugging a Failed Model Training in the Amazon Rekognition Custom Labels Developer Guide.

You get the ValidationData object for the training dataset (TrainingDataResult) and the test dataset (TestingDataResult) by calling DescribeProjectVersions.

The assets array contains a single Asset object. The GroundTruthManifest field of the Asset object contains the S3 bucket location of the validation data.

", "refs": { "TestingDataResult$Validation": "

The location of the data validation manifest. The data validation manifest is created for the test dataset during model training.

", "TrainingDataResult$Validation": "

The location of the data validation manifest. The data validation manifest is created for the training dataset during model training.

" diff --git a/models/apis/rekognition/2016-06-27/paginators-1.json b/models/apis/rekognition/2016-06-27/paginators-1.json index b74b5cc5536..57b297a6d88 100644 --- a/models/apis/rekognition/2016-06-27/paginators-1.json +++ b/models/apis/rekognition/2016-06-27/paginators-1.json @@ -58,6 +58,18 @@ "output_token": "NextToken", "result_key": "CollectionIds" }, + "ListDatasetEntries": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "DatasetEntries" + }, + "ListDatasetLabels": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "DatasetLabelDescriptions" + }, "ListFaces": { "input_token": "NextToken", "limit_key": "MaxResults", diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index cc88ca2bde2..de7e9596f5e 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -7972,6 +7972,7 @@ "protocols" : [ "https" ] }, "endpoints" : { + "af-south-1" : { }, "ap-east-1" : { }, "ap-northeast-1" : { }, "ap-northeast-2" : { }, @@ -7980,6 +7981,7 @@ "ap-southeast-2" : { }, "ca-central-1" : { }, "eu-central-1" : { }, + "eu-north-1" : { }, "eu-west-1" : { }, "eu-west-2" : { }, "eu-west-3" : { }, diff --git a/service/lightsail/api.go b/service/lightsail/api.go index 3ca8e0446c0..d5ae6fd9834 100644 --- a/service/lightsail/api.go +++ b/service/lightsail/api.go @@ -18014,6 +18014,9 @@ type Bucket struct { // Use the UpdateBucketBundle action to change a bucket's bundle. AbleToUpdateBundle *bool `locationName:"ableToUpdateBundle" type:"boolean"` + // An object that describes the access log configuration for the bucket. + AccessLogConfig *BucketAccessLogConfig `locationName:"accessLogConfig" type:"structure"` + // An object that describes the access rules of the bucket. AccessRules *AccessRules `locationName:"accessRules" type:"structure"` @@ -18104,6 +18107,12 @@ func (s *Bucket) SetAbleToUpdateBundle(v bool) *Bucket { return s } +// SetAccessLogConfig sets the AccessLogConfig field's value. +func (s *Bucket) SetAccessLogConfig(v *BucketAccessLogConfig) *Bucket { + s.AccessLogConfig = v + return s +} + // SetAccessRules sets the AccessRules field's value. func (s *Bucket) SetAccessRules(v *AccessRules) *Bucket { s.AccessRules = v @@ -18188,6 +18197,96 @@ func (s *Bucket) SetUrl(v string) *Bucket { return s } +// Describes the access log configuration for a bucket in the Amazon Lightsail +// object storage service. +// +// For more information about bucket access logs, see Logging bucket requests +// using access logging in Amazon Lightsail (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-bucket-access-logs) +// in the Amazon Lightsail Developer Guide. +type BucketAccessLogConfig struct { + _ struct{} `type:"structure"` + + // The name of the bucket where the access is saved. The destination can be + // a Lightsail bucket in the same account, and in the same AWS Region as the + // source bucket. + // + // This parameter is required when enabling the access log for a bucket, and + // should be omitted when disabling the access log. + Destination *string `locationName:"destination" min:"3" type:"string"` + + // A Boolean value that indicates whether bucket access logging is enabled for + // the bucket. + // + // Enabled is a required field + Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` + + // The optional object prefix for the bucket access log. + // + // The prefix is an optional addition to the object key that organizes your + // access log files in the destination bucket. For example, if you specify a + // logs/ prefix, then each log object will begin with the logs/ prefix in its + // key (for example, logs/2021-11-01-21-32-16-E568B2907131C0C0). + // + // This parameter can be optionally specified when enabling the access log for + // a bucket, and should be omitted when disabling the access log. + Prefix *string `locationName:"prefix" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BucketAccessLogConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BucketAccessLogConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BucketAccessLogConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BucketAccessLogConfig"} + if s.Destination != nil && len(*s.Destination) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Destination", 3)) + } + if s.Enabled == nil { + invalidParams.Add(request.NewErrParamRequired("Enabled")) + } + if s.Prefix != nil && len(*s.Prefix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Prefix", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestination sets the Destination field's value. +func (s *BucketAccessLogConfig) SetDestination(v string) *BucketAccessLogConfig { + s.Destination = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *BucketAccessLogConfig) SetEnabled(v bool) *BucketAccessLogConfig { + s.Enabled = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *BucketAccessLogConfig) SetPrefix(v string) *BucketAccessLogConfig { + s.Prefix = &v + return s +} + // Describes the specifications of a bundle that can be applied to an Amazon // Lightsail bucket. // @@ -19432,9 +19531,16 @@ type Container struct { // // Container images sourced from your Lightsail container service, that are // registered and stored on your service, start with a colon (:). For example, - // :container-service-1.mystaticwebsite.1. Container images sourced from a public - // registry like Docker Hub don't start with a colon. For example, nginx:latest - // or nginx. + // if your container service name is container-service-1, the container image + // label is mystaticsite, and you want to use the third (3) version of the registered + // container image, then you should specify :container-service-1.mystaticsite.3. + // To use the latest version of a container image, specify latest instead of + // a version number (for example, :container-service-1.mystaticsite.latest). + // Lightsail will automatically use the highest numbered version of the registered + // container image. + // + // Container images sourced from a public registry like Docker Hub don't start + // with a colon. For example, nginx:latest or nginx. Image *string `locationName:"image" type:"string"` // The open firewall ports of the container. @@ -21295,7 +21401,7 @@ type CreateContainerServiceInput struct { // ServiceName is a required field ServiceName *string `locationName:"serviceName" min:"1" type:"string" required:"true"` - // The tag keys and optional values to add to the certificate during create. + // The tag keys and optional values to add to the container service during create. // // Use the TagResource action to tag a resource after it's created. // @@ -41101,6 +41207,9 @@ func (s *UpdateBucketBundleOutput) SetOperations(v []*Operation) *UpdateBucketBu type UpdateBucketInput struct { _ struct{} `type:"structure"` + // An object that describes the access log configuration for the bucket. + AccessLogConfig *BucketAccessLogConfig `locationName:"accessLogConfig" type:"structure"` + // An object that sets the public accessibility of objects in the specified // bucket. AccessRules *AccessRules `locationName:"accessRules" type:"structure"` @@ -41153,6 +41262,11 @@ func (s *UpdateBucketInput) Validate() error { if s.BucketName != nil && len(*s.BucketName) < 3 { invalidParams.Add(request.NewErrParamMinLen("BucketName", 3)) } + if s.AccessLogConfig != nil { + if err := s.AccessLogConfig.Validate(); err != nil { + invalidParams.AddNested("AccessLogConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -41160,6 +41274,12 @@ func (s *UpdateBucketInput) Validate() error { return nil } +// SetAccessLogConfig sets the AccessLogConfig field's value. +func (s *UpdateBucketInput) SetAccessLogConfig(v *BucketAccessLogConfig) *UpdateBucketInput { + s.AccessLogConfig = v + return s +} + // SetAccessRules sets the AccessRules field's value. func (s *UpdateBucketInput) SetAccessRules(v *AccessRules) *UpdateBucketInput { s.AccessRules = v diff --git a/service/neptune/api.go b/service/neptune/api.go index 2d3c55dbd67..88b9872e71c 100644 --- a/service/neptune/api.go +++ b/service/neptune/api.go @@ -58,7 +58,7 @@ func (c *Neptune) AddRoleToDBClusterRequest(input *AddRoleToDBClusterInput) (req // AddRoleToDBCluster API operation for Amazon Neptune. // -// Associates an Identity and Access Management (IAM) role from an Neptune DB +// Associates an Identity and Access Management (IAM) role with an Neptune DB // cluster. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -6575,7 +6575,7 @@ func (c *Neptune) StartDBClusterRequest(input *StartDBClusterInput) (req *reques // StartDBCluster API operation for Amazon Neptune. // -// Starts an Amazon Neptune DB cluster that was stopped using the AWS console, +// Starts an Amazon Neptune DB cluster that was stopped using the Amazon console, // the Amazon CLI stop-db-cluster command, or the StopDBCluster API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -6715,7 +6715,8 @@ type AddRoleToDBClusterInput struct { DBClusterIdentifier *string `type:"string" required:"true"` // The name of the feature for the Neptune DB cluster that the IAM role is to - // be associated with. For the list of supported feature names, see DBEngineVersion. + // be associated with. For the list of supported feature names, see DBEngineVersion + // (neptune/latest/userguide/api-other-apis.html#DBEngineVersion). FeatureName *string `type:"string"` // The Amazon Resource Name (ARN) of the IAM role to associate with the Neptune @@ -10341,7 +10342,8 @@ type DBClusterRole struct { _ struct{} `type:"structure"` // The name of the feature associated with the Amazon Identity and Access Management - // (IAM) role. For the list of supported feature names, see DBEngineVersion. + // (IAM) role. For the list of supported feature names, see DescribeDBEngineVersions + // (https://docs.aws.amazon.com/neptune/latest/userguide/api-other-apis.html#DescribeDBEngineVersions). FeatureName *string `type:"string"` // The Amazon Resource Name (ARN) of the IAM role that is associated with the @@ -13056,8 +13058,8 @@ type DescribeDBClusterSnapshotsInput struct { IncludePublic *bool `type:"boolean"` // True to include shared manual DB cluster snapshots from other Amazon accounts - // that this AWS account has been given permission to copy or restore, and otherwise - // false. The default is false. + // that this Amazon account has been given permission to copy or restore, and + // otherwise false. The default is false. // // You can give an Amazon account permission to restore a manual DB cluster // snapshot from another Amazon account by the ModifyDBClusterSnapshotAttribute @@ -13085,7 +13087,7 @@ type DescribeDBClusterSnapshotsInput struct { // taken by Amazon Neptune for my Amazon account. // // * manual - Return all DB cluster snapshots that have been taken by my - // AWS account. + // Amazon account. // // * shared - Return all manual DB cluster snapshots that have been shared // to my Amazon account. @@ -16084,6 +16086,14 @@ func (s *ModifyDBClusterEndpointOutput) SetStatus(v string) *ModifyDBClusterEndp type ModifyDBClusterInput struct { _ struct{} `type:"structure"` + // A value that indicates whether upgrades between different major versions + // are allowed. + // + // Constraints: You must set the allow-major-version-upgrade flag when providing + // an EngineVersion parameter that uses a different major version than the DB + // cluster's current version. + AllowMajorVersionUpgrade *bool `type:"boolean"` + // 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 @@ -16130,6 +16140,23 @@ type ModifyDBClusterInput struct { // The name of the DB cluster parameter group to use for the DB cluster. DBClusterParameterGroupName *string `type:"string"` + // The name of the DB parameter group to apply to all instances of the DB cluster. + // + // When you apply a parameter group using DBInstanceParameterGroupName, parameter + // changes aren't applied during the next maintenance window but instead are + // applied immediately. + // + // Default: The existing name setting + // + // Constraints: + // + // * The DB parameter group must be in the same DB parameter group family + // as the target DB cluster version. + // + // * The DBInstanceParameterGroupName parameter is only valid in combination + // with the AllowMajorVersionUpgrade parameter. + DBInstanceParameterGroupName *string `type:"string"` + // A value that indicates whether the DB cluster has deletion protection enabled. // The database can't be deleted when deletion protection is enabled. By default, // deletion protection is disabled. @@ -16242,6 +16269,12 @@ func (s *ModifyDBClusterInput) Validate() error { return nil } +// SetAllowMajorVersionUpgrade sets the AllowMajorVersionUpgrade field's value. +func (s *ModifyDBClusterInput) SetAllowMajorVersionUpgrade(v bool) *ModifyDBClusterInput { + s.AllowMajorVersionUpgrade = &v + return s +} + // SetApplyImmediately sets the ApplyImmediately field's value. func (s *ModifyDBClusterInput) SetApplyImmediately(v bool) *ModifyDBClusterInput { s.ApplyImmediately = &v @@ -16278,6 +16311,12 @@ func (s *ModifyDBClusterInput) SetDBClusterParameterGroupName(v string) *ModifyD return s } +// SetDBInstanceParameterGroupName sets the DBInstanceParameterGroupName field's value. +func (s *ModifyDBClusterInput) SetDBInstanceParameterGroupName(v string) *ModifyDBClusterInput { + s.DBInstanceParameterGroupName = &v + return s +} + // SetDeletionProtection sets the DeletionProtection field's value. func (s *ModifyDBClusterInput) SetDeletionProtection(v bool) *ModifyDBClusterInput { s.DeletionProtection = &v @@ -16454,7 +16493,7 @@ type ModifyDBClusterSnapshotAttributeInput struct { // snapshot, set this list to include one or more Amazon account IDs, or all // to make the manual DB cluster snapshot restorable by any Amazon account. // 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. + // private information that you don't want available to all Amazon accounts. ValuesToAdd []*string `locationNameList:"AttributeValue" type:"list"` // A list of DB cluster snapshot attributes to remove from the attribute specified @@ -16612,7 +16651,7 @@ type ModifyDBInstanceInput struct { CopyTagsToSnapshot *bool `type:"boolean"` // The new compute and memory capacity of the DB instance, for example, db.m4.large. - // Not all DB instance classes are available in all AWS Regions. + // Not all DB instance classes are available in all Amazon Regions. // // If you modify the DB instance class, an outage occurs during the change. // The change is applied during the next maintenance window, unless ApplyImmediately @@ -18309,7 +18348,8 @@ type RemoveRoleFromDBClusterInput struct { DBClusterIdentifier *string `type:"string" required:"true"` // The name of the feature for the DB cluster that the IAM role is to be disassociated - // from. For the list of supported feature names, see DBEngineVersion. + // from. For the list of supported feature names, see DescribeDBEngineVersions + // (https://docs.aws.amazon.com/neptune/latest/userguide/api-other-apis.html#DescribeDBEngineVersions). FeatureName *string `type:"string"` // The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB @@ -19632,15 +19672,15 @@ type Tag struct { _ struct{} `type:"structure"` // A key is the required name of the tag. The string value can be from 1 to - // 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". - // The string can only contain only the set of Unicode letters, digits, white-space, + // 128 Unicode characters in length and can't be prefixed with aws: or rds:. + // The string can only contain the set of Unicode letters, digits, white-space, // '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$"). Key *string `type:"string"` // A value is the optional value of the tag. The string value can be from 1 - // to 256 Unicode characters in length and can't be prefixed with "aws:" or - // "rds:". The string can only contain only the set of Unicode letters, digits, - // white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$"). + // to 256 Unicode characters in length and can't be prefixed with aws: or rds:. + // The string can only contain the set of Unicode letters, digits, white-space, + // '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$"). Value *string `type:"string"` } diff --git a/service/networkmanager/api.go b/service/networkmanager/api.go index 1b1283701d5..ae2371d22d6 100644 --- a/service/networkmanager/api.go +++ b/service/networkmanager/api.go @@ -2585,37 +2585,37 @@ func (c *NetworkManager) GetLinksPagesWithContext(ctx aws.Context, input *GetLin return p.Err() } -const opGetSites = "GetSites" +const opGetNetworkResourceCounts = "GetNetworkResourceCounts" -// GetSitesRequest generates a "aws/request.Request" representing the -// client's request for the GetSites operation. The "output" return +// GetNetworkResourceCountsRequest generates a "aws/request.Request" representing the +// client's request for the GetNetworkResourceCounts operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetSites for more information on using the GetSites +// See GetNetworkResourceCounts for more information on using the GetNetworkResourceCounts // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetSitesRequest method. -// req, resp := client.GetSitesRequest(params) +// // Example sending a request using the GetNetworkResourceCountsRequest method. +// req, resp := client.GetNetworkResourceCountsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetSites -func (c *NetworkManager) GetSitesRequest(input *GetSitesInput) (req *request.Request, output *GetSitesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetNetworkResourceCounts +func (c *NetworkManager) GetNetworkResourceCountsRequest(input *GetNetworkResourceCountsInput) (req *request.Request, output *GetNetworkResourceCountsOutput) { op := &request.Operation{ - Name: opGetSites, + Name: opGetNetworkResourceCounts, HTTPMethod: "GET", - HTTPPath: "/global-networks/{globalNetworkId}/sites", + HTTPPath: "/global-networks/{globalNetworkId}/network-resource-count", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, @@ -2625,24 +2625,25 @@ func (c *NetworkManager) GetSitesRequest(input *GetSitesInput) (req *request.Req } if input == nil { - input = &GetSitesInput{} + input = &GetNetworkResourceCountsInput{} } - output = &GetSitesOutput{} + output = &GetNetworkResourceCountsOutput{} req = c.newRequest(op, input, output) return } -// GetSites API operation for AWS Network Manager. +// GetNetworkResourceCounts API operation for AWS Network Manager. // -// Gets information about one or more of your sites in a global network. +// Gets the count of network resources, by resource type, for the specified +// global 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 AWS Network Manager's -// API operation GetSites for usage and error information. +// API operation GetNetworkResourceCounts for usage and error information. // // Returned Error Types: // * ValidationException @@ -2651,74 +2652,71 @@ func (c *NetworkManager) GetSitesRequest(input *GetSitesInput) (req *request.Req // * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ResourceNotFoundException -// The specified resource could not be found. -// // * ThrottlingException // The request was denied due to request throttling. // // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetSites -func (c *NetworkManager) GetSites(input *GetSitesInput) (*GetSitesOutput, error) { - req, out := c.GetSitesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetNetworkResourceCounts +func (c *NetworkManager) GetNetworkResourceCounts(input *GetNetworkResourceCountsInput) (*GetNetworkResourceCountsOutput, error) { + req, out := c.GetNetworkResourceCountsRequest(input) return out, req.Send() } -// GetSitesWithContext is the same as GetSites with the addition of +// GetNetworkResourceCountsWithContext is the same as GetNetworkResourceCounts with the addition of // the ability to pass a context and additional request options. // -// See GetSites for details on how to use this API operation. +// See GetNetworkResourceCounts for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *NetworkManager) GetSitesWithContext(ctx aws.Context, input *GetSitesInput, opts ...request.Option) (*GetSitesOutput, error) { - req, out := c.GetSitesRequest(input) +func (c *NetworkManager) GetNetworkResourceCountsWithContext(ctx aws.Context, input *GetNetworkResourceCountsInput, opts ...request.Option) (*GetNetworkResourceCountsOutput, error) { + req, out := c.GetNetworkResourceCountsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// GetSitesPages iterates over the pages of a GetSites operation, +// GetNetworkResourceCountsPages iterates over the pages of a GetNetworkResourceCounts operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See GetSites method for more information on how to use this operation. +// See GetNetworkResourceCounts 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 GetSites operation. +// // Example iterating over at most 3 pages of a GetNetworkResourceCounts operation. // pageNum := 0 -// err := client.GetSitesPages(params, -// func(page *networkmanager.GetSitesOutput, lastPage bool) bool { +// err := client.GetNetworkResourceCountsPages(params, +// func(page *networkmanager.GetNetworkResourceCountsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *NetworkManager) GetSitesPages(input *GetSitesInput, fn func(*GetSitesOutput, bool) bool) error { - return c.GetSitesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *NetworkManager) GetNetworkResourceCountsPages(input *GetNetworkResourceCountsInput, fn func(*GetNetworkResourceCountsOutput, bool) bool) error { + return c.GetNetworkResourceCountsPagesWithContext(aws.BackgroundContext(), input, fn) } -// GetSitesPagesWithContext same as GetSitesPages except +// GetNetworkResourceCountsPagesWithContext same as GetNetworkResourceCountsPages 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 *NetworkManager) GetSitesPagesWithContext(ctx aws.Context, input *GetSitesInput, fn func(*GetSitesOutput, bool) bool, opts ...request.Option) error { +func (c *NetworkManager) GetNetworkResourceCountsPagesWithContext(ctx aws.Context, input *GetNetworkResourceCountsInput, fn func(*GetNetworkResourceCountsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *GetSitesInput + var inCpy *GetNetworkResourceCountsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.GetSitesRequest(inCpy) + req, _ := c.GetNetworkResourceCountsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2726,7 +2724,7 @@ func (c *NetworkManager) GetSitesPagesWithContext(ctx aws.Context, input *GetSit } for p.Next() { - if !fn(p.Page().(*GetSitesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*GetNetworkResourceCountsOutput), !p.HasNextPage()) { break } } @@ -2734,37 +2732,37 @@ func (c *NetworkManager) GetSitesPagesWithContext(ctx aws.Context, input *GetSit return p.Err() } -const opGetTransitGatewayConnectPeerAssociations = "GetTransitGatewayConnectPeerAssociations" +const opGetNetworkResourceRelationships = "GetNetworkResourceRelationships" -// GetTransitGatewayConnectPeerAssociationsRequest generates a "aws/request.Request" representing the -// client's request for the GetTransitGatewayConnectPeerAssociations operation. The "output" return +// GetNetworkResourceRelationshipsRequest generates a "aws/request.Request" representing the +// client's request for the GetNetworkResourceRelationships operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetTransitGatewayConnectPeerAssociations for more information on using the GetTransitGatewayConnectPeerAssociations +// See GetNetworkResourceRelationships for more information on using the GetNetworkResourceRelationships // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetTransitGatewayConnectPeerAssociationsRequest method. -// req, resp := client.GetTransitGatewayConnectPeerAssociationsRequest(params) +// // Example sending a request using the GetNetworkResourceRelationshipsRequest method. +// req, resp := client.GetNetworkResourceRelationshipsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetTransitGatewayConnectPeerAssociations -func (c *NetworkManager) GetTransitGatewayConnectPeerAssociationsRequest(input *GetTransitGatewayConnectPeerAssociationsInput) (req *request.Request, output *GetTransitGatewayConnectPeerAssociationsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetNetworkResourceRelationships +func (c *NetworkManager) GetNetworkResourceRelationshipsRequest(input *GetNetworkResourceRelationshipsInput) (req *request.Request, output *GetNetworkResourceRelationshipsOutput) { op := &request.Operation{ - Name: opGetTransitGatewayConnectPeerAssociations, + Name: opGetNetworkResourceRelationships, HTTPMethod: "GET", - HTTPPath: "/global-networks/{globalNetworkId}/transit-gateway-connect-peer-associations", + HTTPPath: "/global-networks/{globalNetworkId}/network-resource-relationships", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, @@ -2774,25 +2772,24 @@ func (c *NetworkManager) GetTransitGatewayConnectPeerAssociationsRequest(input * } if input == nil { - input = &GetTransitGatewayConnectPeerAssociationsInput{} + input = &GetNetworkResourceRelationshipsInput{} } - output = &GetTransitGatewayConnectPeerAssociationsOutput{} + output = &GetNetworkResourceRelationshipsOutput{} req = c.newRequest(op, input, output) return } -// GetTransitGatewayConnectPeerAssociations API operation for AWS Network Manager. +// GetNetworkResourceRelationships API operation for AWS Network Manager. // -// Gets information about one or more of your transit gateway Connect peer associations -// in a global network. +// Gets the network resource relationships for the specified global 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 AWS Network Manager's -// API operation GetTransitGatewayConnectPeerAssociations for usage and error information. +// API operation GetNetworkResourceRelationships for usage and error information. // // Returned Error Types: // * ValidationException @@ -2804,75 +2801,71 @@ func (c *NetworkManager) GetTransitGatewayConnectPeerAssociationsRequest(input * // * ResourceNotFoundException // The specified resource could not be found. // -// * ConflictException -// There was a conflict processing the request. Updating or deleting the resource -// can cause an inconsistent state. -// // * ThrottlingException // The request was denied due to request throttling. // // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetTransitGatewayConnectPeerAssociations -func (c *NetworkManager) GetTransitGatewayConnectPeerAssociations(input *GetTransitGatewayConnectPeerAssociationsInput) (*GetTransitGatewayConnectPeerAssociationsOutput, error) { - req, out := c.GetTransitGatewayConnectPeerAssociationsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetNetworkResourceRelationships +func (c *NetworkManager) GetNetworkResourceRelationships(input *GetNetworkResourceRelationshipsInput) (*GetNetworkResourceRelationshipsOutput, error) { + req, out := c.GetNetworkResourceRelationshipsRequest(input) return out, req.Send() } -// GetTransitGatewayConnectPeerAssociationsWithContext is the same as GetTransitGatewayConnectPeerAssociations with the addition of +// GetNetworkResourceRelationshipsWithContext is the same as GetNetworkResourceRelationships with the addition of // the ability to pass a context and additional request options. // -// See GetTransitGatewayConnectPeerAssociations for details on how to use this API operation. +// See GetNetworkResourceRelationships for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *NetworkManager) GetTransitGatewayConnectPeerAssociationsWithContext(ctx aws.Context, input *GetTransitGatewayConnectPeerAssociationsInput, opts ...request.Option) (*GetTransitGatewayConnectPeerAssociationsOutput, error) { - req, out := c.GetTransitGatewayConnectPeerAssociationsRequest(input) +func (c *NetworkManager) GetNetworkResourceRelationshipsWithContext(ctx aws.Context, input *GetNetworkResourceRelationshipsInput, opts ...request.Option) (*GetNetworkResourceRelationshipsOutput, error) { + req, out := c.GetNetworkResourceRelationshipsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// GetTransitGatewayConnectPeerAssociationsPages iterates over the pages of a GetTransitGatewayConnectPeerAssociations operation, +// GetNetworkResourceRelationshipsPages iterates over the pages of a GetNetworkResourceRelationships operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See GetTransitGatewayConnectPeerAssociations method for more information on how to use this operation. +// See GetNetworkResourceRelationships 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 GetTransitGatewayConnectPeerAssociations operation. +// // Example iterating over at most 3 pages of a GetNetworkResourceRelationships operation. // pageNum := 0 -// err := client.GetTransitGatewayConnectPeerAssociationsPages(params, -// func(page *networkmanager.GetTransitGatewayConnectPeerAssociationsOutput, lastPage bool) bool { +// err := client.GetNetworkResourceRelationshipsPages(params, +// func(page *networkmanager.GetNetworkResourceRelationshipsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *NetworkManager) GetTransitGatewayConnectPeerAssociationsPages(input *GetTransitGatewayConnectPeerAssociationsInput, fn func(*GetTransitGatewayConnectPeerAssociationsOutput, bool) bool) error { - return c.GetTransitGatewayConnectPeerAssociationsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *NetworkManager) GetNetworkResourceRelationshipsPages(input *GetNetworkResourceRelationshipsInput, fn func(*GetNetworkResourceRelationshipsOutput, bool) bool) error { + return c.GetNetworkResourceRelationshipsPagesWithContext(aws.BackgroundContext(), input, fn) } -// GetTransitGatewayConnectPeerAssociationsPagesWithContext same as GetTransitGatewayConnectPeerAssociationsPages except +// GetNetworkResourceRelationshipsPagesWithContext same as GetNetworkResourceRelationshipsPages 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 *NetworkManager) GetTransitGatewayConnectPeerAssociationsPagesWithContext(ctx aws.Context, input *GetTransitGatewayConnectPeerAssociationsInput, fn func(*GetTransitGatewayConnectPeerAssociationsOutput, bool) bool, opts ...request.Option) error { +func (c *NetworkManager) GetNetworkResourceRelationshipsPagesWithContext(ctx aws.Context, input *GetNetworkResourceRelationshipsInput, fn func(*GetNetworkResourceRelationshipsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *GetTransitGatewayConnectPeerAssociationsInput + var inCpy *GetNetworkResourceRelationshipsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.GetTransitGatewayConnectPeerAssociationsRequest(inCpy) + req, _ := c.GetNetworkResourceRelationshipsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2880,7 +2873,7 @@ func (c *NetworkManager) GetTransitGatewayConnectPeerAssociationsPagesWithContex } for p.Next() { - if !fn(p.Page().(*GetTransitGatewayConnectPeerAssociationsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*GetNetworkResourceRelationshipsOutput), !p.HasNextPage()) { break } } @@ -2888,37 +2881,37 @@ func (c *NetworkManager) GetTransitGatewayConnectPeerAssociationsPagesWithContex return p.Err() } -const opGetTransitGatewayRegistrations = "GetTransitGatewayRegistrations" +const opGetNetworkResources = "GetNetworkResources" -// GetTransitGatewayRegistrationsRequest generates a "aws/request.Request" representing the -// client's request for the GetTransitGatewayRegistrations operation. The "output" return +// GetNetworkResourcesRequest generates a "aws/request.Request" representing the +// client's request for the GetNetworkResources operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetTransitGatewayRegistrations for more information on using the GetTransitGatewayRegistrations +// See GetNetworkResources for more information on using the GetNetworkResources // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetTransitGatewayRegistrationsRequest method. -// req, resp := client.GetTransitGatewayRegistrationsRequest(params) +// // Example sending a request using the GetNetworkResourcesRequest method. +// req, resp := client.GetNetworkResourcesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetTransitGatewayRegistrations -func (c *NetworkManager) GetTransitGatewayRegistrationsRequest(input *GetTransitGatewayRegistrationsInput) (req *request.Request, output *GetTransitGatewayRegistrationsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetNetworkResources +func (c *NetworkManager) GetNetworkResourcesRequest(input *GetNetworkResourcesInput) (req *request.Request, output *GetNetworkResourcesOutput) { op := &request.Operation{ - Name: opGetTransitGatewayRegistrations, + Name: opGetNetworkResources, HTTPMethod: "GET", - HTTPPath: "/global-networks/{globalNetworkId}/transit-gateway-registrations", + HTTPPath: "/global-networks/{globalNetworkId}/network-resources", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, @@ -2928,25 +2921,27 @@ func (c *NetworkManager) GetTransitGatewayRegistrationsRequest(input *GetTransit } if input == nil { - input = &GetTransitGatewayRegistrationsInput{} + input = &GetNetworkResourcesInput{} } - output = &GetTransitGatewayRegistrationsOutput{} + output = &GetNetworkResourcesOutput{} req = c.newRequest(op, input, output) return } -// GetTransitGatewayRegistrations API operation for AWS Network Manager. +// GetNetworkResources API operation for AWS Network Manager. // -// Gets information about the transit gateway registrations in a specified global -// network. +// Describes the network resources for the specified global network. +// +// The results include information from the corresponding Describe call for +// the resource, minus any sensitive information such as pre-shared keys. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Network Manager's -// API operation GetTransitGatewayRegistrations for usage and error information. +// API operation GetNetworkResources for usage and error information. // // Returned Error Types: // * ValidationException @@ -2964,65 +2959,65 @@ func (c *NetworkManager) GetTransitGatewayRegistrationsRequest(input *GetTransit // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetTransitGatewayRegistrations -func (c *NetworkManager) GetTransitGatewayRegistrations(input *GetTransitGatewayRegistrationsInput) (*GetTransitGatewayRegistrationsOutput, error) { - req, out := c.GetTransitGatewayRegistrationsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetNetworkResources +func (c *NetworkManager) GetNetworkResources(input *GetNetworkResourcesInput) (*GetNetworkResourcesOutput, error) { + req, out := c.GetNetworkResourcesRequest(input) return out, req.Send() } -// GetTransitGatewayRegistrationsWithContext is the same as GetTransitGatewayRegistrations with the addition of +// GetNetworkResourcesWithContext is the same as GetNetworkResources with the addition of // the ability to pass a context and additional request options. // -// See GetTransitGatewayRegistrations for details on how to use this API operation. +// See GetNetworkResources for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *NetworkManager) GetTransitGatewayRegistrationsWithContext(ctx aws.Context, input *GetTransitGatewayRegistrationsInput, opts ...request.Option) (*GetTransitGatewayRegistrationsOutput, error) { - req, out := c.GetTransitGatewayRegistrationsRequest(input) +func (c *NetworkManager) GetNetworkResourcesWithContext(ctx aws.Context, input *GetNetworkResourcesInput, opts ...request.Option) (*GetNetworkResourcesOutput, error) { + req, out := c.GetNetworkResourcesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// GetTransitGatewayRegistrationsPages iterates over the pages of a GetTransitGatewayRegistrations operation, +// GetNetworkResourcesPages iterates over the pages of a GetNetworkResources operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See GetTransitGatewayRegistrations method for more information on how to use this operation. +// See GetNetworkResources 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 GetTransitGatewayRegistrations operation. +// // Example iterating over at most 3 pages of a GetNetworkResources operation. // pageNum := 0 -// err := client.GetTransitGatewayRegistrationsPages(params, -// func(page *networkmanager.GetTransitGatewayRegistrationsOutput, lastPage bool) bool { +// err := client.GetNetworkResourcesPages(params, +// func(page *networkmanager.GetNetworkResourcesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *NetworkManager) GetTransitGatewayRegistrationsPages(input *GetTransitGatewayRegistrationsInput, fn func(*GetTransitGatewayRegistrationsOutput, bool) bool) error { - return c.GetTransitGatewayRegistrationsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *NetworkManager) GetNetworkResourcesPages(input *GetNetworkResourcesInput, fn func(*GetNetworkResourcesOutput, bool) bool) error { + return c.GetNetworkResourcesPagesWithContext(aws.BackgroundContext(), input, fn) } -// GetTransitGatewayRegistrationsPagesWithContext same as GetTransitGatewayRegistrationsPages except +// GetNetworkResourcesPagesWithContext same as GetNetworkResourcesPages 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 *NetworkManager) GetTransitGatewayRegistrationsPagesWithContext(ctx aws.Context, input *GetTransitGatewayRegistrationsInput, fn func(*GetTransitGatewayRegistrationsOutput, bool) bool, opts ...request.Option) error { +func (c *NetworkManager) GetNetworkResourcesPagesWithContext(ctx aws.Context, input *GetNetworkResourcesInput, fn func(*GetNetworkResourcesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *GetTransitGatewayRegistrationsInput + var inCpy *GetNetworkResourcesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.GetTransitGatewayRegistrationsRequest(inCpy) + req, _ := c.GetNetworkResourcesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3030,7 +3025,7 @@ func (c *NetworkManager) GetTransitGatewayRegistrationsPagesWithContext(ctx aws. } for p.Next() { - if !fn(p.Page().(*GetTransitGatewayRegistrationsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*GetNetworkResourcesOutput), !p.HasNextPage()) { break } } @@ -3038,58 +3033,58 @@ func (c *NetworkManager) GetTransitGatewayRegistrationsPagesWithContext(ctx aws. return p.Err() } -const opListTagsForResource = "ListTagsForResource" +const opGetNetworkRoutes = "GetNetworkRoutes" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// GetNetworkRoutesRequest generates a "aws/request.Request" representing the +// client's request for the GetNetworkRoutes operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the 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 +// See GetNetworkRoutes for more information on using the GetNetworkRoutes // API call, and error handling. // // This method is useful when you want to 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) +// // Example sending a request using the GetNetworkRoutesRequest method. +// req, resp := client.GetNetworkRoutesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/ListTagsForResource -func (c *NetworkManager) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetNetworkRoutes +func (c *NetworkManager) GetNetworkRoutesRequest(input *GetNetworkRoutesInput) (req *request.Request, output *GetNetworkRoutesOutput) { op := &request.Operation{ - Name: opListTagsForResource, - HTTPMethod: "GET", - HTTPPath: "/tags/{resourceArn}", + Name: opGetNetworkRoutes, + HTTPMethod: "POST", + HTTPPath: "/global-networks/{globalNetworkId}/network-routes", } if input == nil { - input = &ListTagsForResourceInput{} + input = &GetNetworkRoutesInput{} } - output = &ListTagsForResourceOutput{} + output = &GetNetworkRoutesOutput{} req = c.newRequest(op, input, output) return } -// ListTagsForResource API operation for AWS Network Manager. +// GetNetworkRoutes API operation for AWS Network Manager. // -// Lists the tags for a specified resource. +// Gets the network routes of the specified global 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 AWS Network Manager's -// API operation ListTagsForResource for usage and error information. +// API operation GetNetworkRoutes for usage and error information. // // Returned Error Types: // * ValidationException @@ -3107,83 +3102,86 @@ func (c *NetworkManager) ListTagsForResourceRequest(input *ListTagsForResourceIn // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/ListTagsForResource -func (c *NetworkManager) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetNetworkRoutes +func (c *NetworkManager) GetNetworkRoutes(input *GetNetworkRoutesInput) (*GetNetworkRoutesOutput, error) { + req, out := c.GetNetworkRoutesRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// GetNetworkRoutesWithContext is the same as GetNetworkRoutes 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. +// See GetNetworkRoutes for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *NetworkManager) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *NetworkManager) GetNetworkRoutesWithContext(ctx aws.Context, input *GetNetworkRoutesInput, opts ...request.Option) (*GetNetworkRoutesOutput, error) { + req, out := c.GetNetworkRoutesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRegisterTransitGateway = "RegisterTransitGateway" +const opGetNetworkTelemetry = "GetNetworkTelemetry" -// RegisterTransitGatewayRequest generates a "aws/request.Request" representing the -// client's request for the RegisterTransitGateway operation. The "output" return +// GetNetworkTelemetryRequest generates a "aws/request.Request" representing the +// client's request for the GetNetworkTelemetry operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See RegisterTransitGateway for more information on using the RegisterTransitGateway +// See GetNetworkTelemetry for more information on using the GetNetworkTelemetry // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the RegisterTransitGatewayRequest method. -// req, resp := client.RegisterTransitGatewayRequest(params) +// // Example sending a request using the GetNetworkTelemetryRequest method. +// req, resp := client.GetNetworkTelemetryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/RegisterTransitGateway -func (c *NetworkManager) RegisterTransitGatewayRequest(input *RegisterTransitGatewayInput) (req *request.Request, output *RegisterTransitGatewayOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetNetworkTelemetry +func (c *NetworkManager) GetNetworkTelemetryRequest(input *GetNetworkTelemetryInput) (req *request.Request, output *GetNetworkTelemetryOutput) { op := &request.Operation{ - Name: opRegisterTransitGateway, - HTTPMethod: "POST", - HTTPPath: "/global-networks/{globalNetworkId}/transit-gateway-registrations", + Name: opGetNetworkTelemetry, + HTTPMethod: "GET", + HTTPPath: "/global-networks/{globalNetworkId}/network-telemetry", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &RegisterTransitGatewayInput{} + input = &GetNetworkTelemetryInput{} } - output = &RegisterTransitGatewayOutput{} + output = &GetNetworkTelemetryOutput{} req = c.newRequest(op, input, output) return } -// RegisterTransitGateway API operation for AWS Network Manager. +// GetNetworkTelemetry API operation for AWS Network Manager. // -// Registers a transit gateway in your global network. The transit gateway can -// be in any AWS Region, but it must be owned by the same AWS account that owns -// the global network. You cannot register a transit gateway in more than one -// global network. +// Gets the network telemetry of the specified global 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 AWS Network Manager's -// API operation RegisterTransitGateway for usage and error information. +// API operation GetNetworkTelemetry for usage and error information. // // Returned Error Types: // * ValidationException @@ -3195,190 +3193,235 @@ func (c *NetworkManager) RegisterTransitGatewayRequest(input *RegisterTransitGat // * ResourceNotFoundException // The specified resource could not be found. // -// * ConflictException -// There was a conflict processing the request. Updating or deleting the resource -// can cause an inconsistent state. -// // * ThrottlingException // The request was denied due to request throttling. // // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/RegisterTransitGateway -func (c *NetworkManager) RegisterTransitGateway(input *RegisterTransitGatewayInput) (*RegisterTransitGatewayOutput, error) { - req, out := c.RegisterTransitGatewayRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetNetworkTelemetry +func (c *NetworkManager) GetNetworkTelemetry(input *GetNetworkTelemetryInput) (*GetNetworkTelemetryOutput, error) { + req, out := c.GetNetworkTelemetryRequest(input) return out, req.Send() } -// RegisterTransitGatewayWithContext is the same as RegisterTransitGateway with the addition of +// GetNetworkTelemetryWithContext is the same as GetNetworkTelemetry with the addition of // the ability to pass a context and additional request options. // -// See RegisterTransitGateway for details on how to use this API operation. +// See GetNetworkTelemetry for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *NetworkManager) RegisterTransitGatewayWithContext(ctx aws.Context, input *RegisterTransitGatewayInput, opts ...request.Option) (*RegisterTransitGatewayOutput, error) { - req, out := c.RegisterTransitGatewayRequest(input) +func (c *NetworkManager) GetNetworkTelemetryWithContext(ctx aws.Context, input *GetNetworkTelemetryInput, opts ...request.Option) (*GetNetworkTelemetryOutput, error) { + req, out := c.GetNetworkTelemetryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagResource = "TagResource" +// GetNetworkTelemetryPages iterates over the pages of a GetNetworkTelemetry operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetNetworkTelemetry 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 GetNetworkTelemetry operation. +// pageNum := 0 +// err := client.GetNetworkTelemetryPages(params, +// func(page *networkmanager.GetNetworkTelemetryOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *NetworkManager) GetNetworkTelemetryPages(input *GetNetworkTelemetryInput, fn func(*GetNetworkTelemetryOutput, bool) bool) error { + return c.GetNetworkTelemetryPagesWithContext(aws.BackgroundContext(), input, fn) +} -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// GetNetworkTelemetryPagesWithContext same as GetNetworkTelemetryPages 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 *NetworkManager) GetNetworkTelemetryPagesWithContext(ctx aws.Context, input *GetNetworkTelemetryInput, fn func(*GetNetworkTelemetryOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetNetworkTelemetryInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetNetworkTelemetryRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*GetNetworkTelemetryOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opGetRouteAnalysis = "GetRouteAnalysis" + +// GetRouteAnalysisRequest generates a "aws/request.Request" representing the +// client's request for the GetRouteAnalysis operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the 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 GetRouteAnalysis for more information on using the GetRouteAnalysis // API call, and error handling. // // This method is useful when you want to 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 GetRouteAnalysisRequest method. +// req, resp := client.GetRouteAnalysisRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/TagResource -func (c *NetworkManager) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetRouteAnalysis +func (c *NetworkManager) GetRouteAnalysisRequest(input *GetRouteAnalysisInput) (req *request.Request, output *GetRouteAnalysisOutput) { op := &request.Operation{ - Name: opTagResource, - HTTPMethod: "POST", - HTTPPath: "/tags/{resourceArn}", + Name: opGetRouteAnalysis, + HTTPMethod: "GET", + HTTPPath: "/global-networks/{globalNetworkId}/route-analyses/{routeAnalysisId}", } if input == nil { - input = &TagResourceInput{} + input = &GetRouteAnalysisInput{} } - output = &TagResourceOutput{} + output = &GetRouteAnalysisOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// TagResource API operation for AWS Network Manager. +// GetRouteAnalysis API operation for AWS Network Manager. // -// Tags a specified resource. +// Gets information about the specified route analysis. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Network Manager's -// API operation TagResource for usage and error information. +// API operation GetRouteAnalysis for usage and error information. // // Returned Error Types: // * ValidationException // The input fails to satisfy the constraints. // -// * ServiceQuotaExceededException -// A service limit was exceeded. -// // * AccessDeniedException // You do not have sufficient access to perform this action. // // * ResourceNotFoundException // The specified resource could not be found. // -// * ConflictException -// There was a conflict processing the request. Updating or deleting the resource -// can cause an inconsistent state. -// // * ThrottlingException // The request was denied due to request throttling. // // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/TagResource -func (c *NetworkManager) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetRouteAnalysis +func (c *NetworkManager) GetRouteAnalysis(input *GetRouteAnalysisInput) (*GetRouteAnalysisOutput, error) { + req, out := c.GetRouteAnalysisRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// GetRouteAnalysisWithContext is the same as GetRouteAnalysis 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 GetRouteAnalysis for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *NetworkManager) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *NetworkManager) GetRouteAnalysisWithContext(ctx aws.Context, input *GetRouteAnalysisInput, opts ...request.Option) (*GetRouteAnalysisOutput, error) { + req, out := c.GetRouteAnalysisRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" +const opGetSites = "GetSites" -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// GetSitesRequest generates a "aws/request.Request" representing the +// client's request for the GetSites operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the 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 GetSites for more information on using the GetSites // API call, and error handling. // // This method is useful when you want to 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 GetSitesRequest method. +// req, resp := client.GetSitesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UntagResource -func (c *NetworkManager) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetSites +func (c *NetworkManager) GetSitesRequest(input *GetSitesInput) (req *request.Request, output *GetSitesOutput) { op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "DELETE", - HTTPPath: "/tags/{resourceArn}", + Name: opGetSites, + HTTPMethod: "GET", + HTTPPath: "/global-networks/{globalNetworkId}/sites", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UntagResourceInput{} + input = &GetSitesInput{} } - output = &UntagResourceOutput{} + output = &GetSitesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UntagResource API operation for AWS Network Manager. +// GetSites API operation for AWS Network Manager. // -// Removes tags from a specified resource. +// Gets information about one or more of your sites in a global 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 AWS Network Manager's -// API operation UntagResource for usage and error information. +// API operation GetSites for usage and error information. // // Returned Error Types: // * ValidationException @@ -3390,91 +3433,145 @@ func (c *NetworkManager) UntagResourceRequest(input *UntagResourceInput) (req *r // * ResourceNotFoundException // The specified resource could not be found. // -// * ConflictException -// There was a conflict processing the request. Updating or deleting the resource -// can cause an inconsistent state. -// // * ThrottlingException // The request was denied due to request throttling. // // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UntagResource -func (c *NetworkManager) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetSites +func (c *NetworkManager) GetSites(input *GetSitesInput) (*GetSitesOutput, error) { + req, out := c.GetSitesRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// GetSitesWithContext is the same as GetSites 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 GetSites for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *NetworkManager) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *NetworkManager) GetSitesWithContext(ctx aws.Context, input *GetSitesInput, opts ...request.Option) (*GetSitesOutput, error) { + req, out := c.GetSitesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateConnection = "UpdateConnection" +// GetSitesPages iterates over the pages of a GetSites operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetSites 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 GetSites operation. +// pageNum := 0 +// err := client.GetSitesPages(params, +// func(page *networkmanager.GetSitesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *NetworkManager) GetSitesPages(input *GetSitesInput, fn func(*GetSitesOutput, bool) bool) error { + return c.GetSitesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateConnectionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateConnection operation. The "output" return +// GetSitesPagesWithContext same as GetSitesPages 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 *NetworkManager) GetSitesPagesWithContext(ctx aws.Context, input *GetSitesInput, fn func(*GetSitesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetSitesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetSitesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*GetSitesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opGetTransitGatewayConnectPeerAssociations = "GetTransitGatewayConnectPeerAssociations" + +// GetTransitGatewayConnectPeerAssociationsRequest generates a "aws/request.Request" representing the +// client's request for the GetTransitGatewayConnectPeerAssociations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateConnection for more information on using the UpdateConnection +// See GetTransitGatewayConnectPeerAssociations for more information on using the GetTransitGatewayConnectPeerAssociations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateConnectionRequest method. -// req, resp := client.UpdateConnectionRequest(params) +// // Example sending a request using the GetTransitGatewayConnectPeerAssociationsRequest method. +// req, resp := client.GetTransitGatewayConnectPeerAssociationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateConnection -func (c *NetworkManager) UpdateConnectionRequest(input *UpdateConnectionInput) (req *request.Request, output *UpdateConnectionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetTransitGatewayConnectPeerAssociations +func (c *NetworkManager) GetTransitGatewayConnectPeerAssociationsRequest(input *GetTransitGatewayConnectPeerAssociationsInput) (req *request.Request, output *GetTransitGatewayConnectPeerAssociationsOutput) { op := &request.Operation{ - Name: opUpdateConnection, - HTTPMethod: "PATCH", - HTTPPath: "/global-networks/{globalNetworkId}/connections/{connectionId}", + Name: opGetTransitGatewayConnectPeerAssociations, + HTTPMethod: "GET", + HTTPPath: "/global-networks/{globalNetworkId}/transit-gateway-connect-peer-associations", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateConnectionInput{} + input = &GetTransitGatewayConnectPeerAssociationsInput{} } - output = &UpdateConnectionOutput{} + output = &GetTransitGatewayConnectPeerAssociationsOutput{} req = c.newRequest(op, input, output) return } -// UpdateConnection API operation for AWS Network Manager. +// GetTransitGatewayConnectPeerAssociations API operation for AWS Network Manager. // -// Updates the information for an existing connection. To remove information -// for any of the parameters, specify an empty string. +// Gets information about one or more of your transit gateway Connect peer associations +// in a global 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 AWS Network Manager's -// API operation UpdateConnection for usage and error information. +// API operation GetTransitGatewayConnectPeerAssociations for usage and error information. // // Returned Error Types: // * ValidationException @@ -3496,81 +3593,139 @@ func (c *NetworkManager) UpdateConnectionRequest(input *UpdateConnectionInput) ( // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateConnection -func (c *NetworkManager) UpdateConnection(input *UpdateConnectionInput) (*UpdateConnectionOutput, error) { - req, out := c.UpdateConnectionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetTransitGatewayConnectPeerAssociations +func (c *NetworkManager) GetTransitGatewayConnectPeerAssociations(input *GetTransitGatewayConnectPeerAssociationsInput) (*GetTransitGatewayConnectPeerAssociationsOutput, error) { + req, out := c.GetTransitGatewayConnectPeerAssociationsRequest(input) return out, req.Send() } -// UpdateConnectionWithContext is the same as UpdateConnection with the addition of +// GetTransitGatewayConnectPeerAssociationsWithContext is the same as GetTransitGatewayConnectPeerAssociations with the addition of // the ability to pass a context and additional request options. // -// See UpdateConnection for details on how to use this API operation. +// See GetTransitGatewayConnectPeerAssociations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *NetworkManager) UpdateConnectionWithContext(ctx aws.Context, input *UpdateConnectionInput, opts ...request.Option) (*UpdateConnectionOutput, error) { - req, out := c.UpdateConnectionRequest(input) +func (c *NetworkManager) GetTransitGatewayConnectPeerAssociationsWithContext(ctx aws.Context, input *GetTransitGatewayConnectPeerAssociationsInput, opts ...request.Option) (*GetTransitGatewayConnectPeerAssociationsOutput, error) { + req, out := c.GetTransitGatewayConnectPeerAssociationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateDevice = "UpdateDevice" +// GetTransitGatewayConnectPeerAssociationsPages iterates over the pages of a GetTransitGatewayConnectPeerAssociations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetTransitGatewayConnectPeerAssociations 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 GetTransitGatewayConnectPeerAssociations operation. +// pageNum := 0 +// err := client.GetTransitGatewayConnectPeerAssociationsPages(params, +// func(page *networkmanager.GetTransitGatewayConnectPeerAssociationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *NetworkManager) GetTransitGatewayConnectPeerAssociationsPages(input *GetTransitGatewayConnectPeerAssociationsInput, fn func(*GetTransitGatewayConnectPeerAssociationsOutput, bool) bool) error { + return c.GetTransitGatewayConnectPeerAssociationsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateDeviceRequest generates a "aws/request.Request" representing the -// client's request for the UpdateDevice operation. The "output" return +// GetTransitGatewayConnectPeerAssociationsPagesWithContext same as GetTransitGatewayConnectPeerAssociationsPages 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 *NetworkManager) GetTransitGatewayConnectPeerAssociationsPagesWithContext(ctx aws.Context, input *GetTransitGatewayConnectPeerAssociationsInput, fn func(*GetTransitGatewayConnectPeerAssociationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetTransitGatewayConnectPeerAssociationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetTransitGatewayConnectPeerAssociationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*GetTransitGatewayConnectPeerAssociationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opGetTransitGatewayRegistrations = "GetTransitGatewayRegistrations" + +// GetTransitGatewayRegistrationsRequest generates a "aws/request.Request" representing the +// client's request for the GetTransitGatewayRegistrations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the 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 GetTransitGatewayRegistrations for more information on using the GetTransitGatewayRegistrations // API call, and error handling. // // This method is useful when you want to 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 GetTransitGatewayRegistrationsRequest method. +// req, resp := client.GetTransitGatewayRegistrationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateDevice -func (c *NetworkManager) UpdateDeviceRequest(input *UpdateDeviceInput) (req *request.Request, output *UpdateDeviceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetTransitGatewayRegistrations +func (c *NetworkManager) GetTransitGatewayRegistrationsRequest(input *GetTransitGatewayRegistrationsInput) (req *request.Request, output *GetTransitGatewayRegistrationsOutput) { op := &request.Operation{ - Name: opUpdateDevice, - HTTPMethod: "PATCH", - HTTPPath: "/global-networks/{globalNetworkId}/devices/{deviceId}", + Name: opGetTransitGatewayRegistrations, + HTTPMethod: "GET", + HTTPPath: "/global-networks/{globalNetworkId}/transit-gateway-registrations", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateDeviceInput{} + input = &GetTransitGatewayRegistrationsInput{} } - output = &UpdateDeviceOutput{} + output = &GetTransitGatewayRegistrationsOutput{} req = c.newRequest(op, input, output) return } -// UpdateDevice API operation for AWS Network Manager. +// GetTransitGatewayRegistrations API operation for AWS Network Manager. // -// Updates the details for an existing device. To remove information for any -// of the parameters, specify an empty string. +// Gets information about the transit gateway registrations in a specified global +// 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 AWS Network Manager's -// API operation UpdateDevice for usage and error information. +// API operation GetTransitGatewayRegistrations for usage and error information. // // Returned Error Types: // * ValidationException @@ -3582,91 +3737,138 @@ func (c *NetworkManager) UpdateDeviceRequest(input *UpdateDeviceInput) (req *req // * ResourceNotFoundException // The specified resource could not be found. // -// * ConflictException -// There was a conflict processing the request. Updating or deleting the resource -// can cause an inconsistent state. -// // * ThrottlingException // The request was denied due to request throttling. // // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateDevice -func (c *NetworkManager) UpdateDevice(input *UpdateDeviceInput) (*UpdateDeviceOutput, error) { - req, out := c.UpdateDeviceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetTransitGatewayRegistrations +func (c *NetworkManager) GetTransitGatewayRegistrations(input *GetTransitGatewayRegistrationsInput) (*GetTransitGatewayRegistrationsOutput, error) { + req, out := c.GetTransitGatewayRegistrationsRequest(input) return out, req.Send() } -// UpdateDeviceWithContext is the same as UpdateDevice with the addition of +// GetTransitGatewayRegistrationsWithContext is the same as GetTransitGatewayRegistrations 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 GetTransitGatewayRegistrations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *NetworkManager) UpdateDeviceWithContext(ctx aws.Context, input *UpdateDeviceInput, opts ...request.Option) (*UpdateDeviceOutput, error) { - req, out := c.UpdateDeviceRequest(input) +func (c *NetworkManager) GetTransitGatewayRegistrationsWithContext(ctx aws.Context, input *GetTransitGatewayRegistrationsInput, opts ...request.Option) (*GetTransitGatewayRegistrationsOutput, error) { + req, out := c.GetTransitGatewayRegistrationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateGlobalNetwork = "UpdateGlobalNetwork" +// GetTransitGatewayRegistrationsPages iterates over the pages of a GetTransitGatewayRegistrations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetTransitGatewayRegistrations 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 GetTransitGatewayRegistrations operation. +// pageNum := 0 +// err := client.GetTransitGatewayRegistrationsPages(params, +// func(page *networkmanager.GetTransitGatewayRegistrationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *NetworkManager) GetTransitGatewayRegistrationsPages(input *GetTransitGatewayRegistrationsInput, fn func(*GetTransitGatewayRegistrationsOutput, bool) bool) error { + return c.GetTransitGatewayRegistrationsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateGlobalNetworkRequest generates a "aws/request.Request" representing the -// client's request for the UpdateGlobalNetwork operation. The "output" return +// GetTransitGatewayRegistrationsPagesWithContext same as GetTransitGatewayRegistrationsPages 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 *NetworkManager) GetTransitGatewayRegistrationsPagesWithContext(ctx aws.Context, input *GetTransitGatewayRegistrationsInput, fn func(*GetTransitGatewayRegistrationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetTransitGatewayRegistrationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetTransitGatewayRegistrationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*GetTransitGatewayRegistrationsOutput), !p.HasNextPage()) { + break + } + } + + 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 UpdateGlobalNetwork for more information on using the UpdateGlobalNetwork +// 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 UpdateGlobalNetworkRequest method. -// req, resp := client.UpdateGlobalNetworkRequest(params) +// // 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/networkmanager-2019-07-05/UpdateGlobalNetwork -func (c *NetworkManager) UpdateGlobalNetworkRequest(input *UpdateGlobalNetworkInput) (req *request.Request, output *UpdateGlobalNetworkOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/ListTagsForResource +func (c *NetworkManager) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opUpdateGlobalNetwork, - HTTPMethod: "PATCH", - HTTPPath: "/global-networks/{globalNetworkId}", + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags/{resourceArn}", } if input == nil { - input = &UpdateGlobalNetworkInput{} + input = &ListTagsForResourceInput{} } - output = &UpdateGlobalNetworkOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } -// UpdateGlobalNetwork API operation for AWS Network Manager. +// ListTagsForResource API operation for AWS Network Manager. // -// Updates an existing global network. To remove information for any of the -// parameters, specify an empty string. +// Lists the tags for 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 AWS Network Manager's -// API operation UpdateGlobalNetwork for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * ValidationException @@ -3678,99 +3880,94 @@ func (c *NetworkManager) UpdateGlobalNetworkRequest(input *UpdateGlobalNetworkIn // * ResourceNotFoundException // The specified resource could not be found. // -// * ConflictException -// There was a conflict processing the request. Updating or deleting the resource -// can cause an inconsistent state. -// // * ThrottlingException // The request was denied due to request throttling. // // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateGlobalNetwork -func (c *NetworkManager) UpdateGlobalNetwork(input *UpdateGlobalNetworkInput) (*UpdateGlobalNetworkOutput, error) { - req, out := c.UpdateGlobalNetworkRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/ListTagsForResource +func (c *NetworkManager) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// UpdateGlobalNetworkWithContext is the same as UpdateGlobalNetwork with the addition of +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateGlobalNetwork for details on how to use this API operation. +// 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 *NetworkManager) UpdateGlobalNetworkWithContext(ctx aws.Context, input *UpdateGlobalNetworkInput, opts ...request.Option) (*UpdateGlobalNetworkOutput, error) { - req, out := c.UpdateGlobalNetworkRequest(input) +func (c *NetworkManager) 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 opUpdateLink = "UpdateLink" +const opRegisterTransitGateway = "RegisterTransitGateway" -// UpdateLinkRequest generates a "aws/request.Request" representing the -// client's request for the UpdateLink operation. The "output" return +// RegisterTransitGatewayRequest generates a "aws/request.Request" representing the +// client's request for the RegisterTransitGateway operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateLink for more information on using the UpdateLink +// See RegisterTransitGateway for more information on using the RegisterTransitGateway // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateLinkRequest method. -// req, resp := client.UpdateLinkRequest(params) +// // Example sending a request using the RegisterTransitGatewayRequest method. +// req, resp := client.RegisterTransitGatewayRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateLink -func (c *NetworkManager) UpdateLinkRequest(input *UpdateLinkInput) (req *request.Request, output *UpdateLinkOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/RegisterTransitGateway +func (c *NetworkManager) RegisterTransitGatewayRequest(input *RegisterTransitGatewayInput) (req *request.Request, output *RegisterTransitGatewayOutput) { op := &request.Operation{ - Name: opUpdateLink, - HTTPMethod: "PATCH", - HTTPPath: "/global-networks/{globalNetworkId}/links/{linkId}", + Name: opRegisterTransitGateway, + HTTPMethod: "POST", + HTTPPath: "/global-networks/{globalNetworkId}/transit-gateway-registrations", } if input == nil { - input = &UpdateLinkInput{} + input = &RegisterTransitGatewayInput{} } - output = &UpdateLinkOutput{} + output = &RegisterTransitGatewayOutput{} req = c.newRequest(op, input, output) return } -// UpdateLink API operation for AWS Network Manager. +// RegisterTransitGateway API operation for AWS Network Manager. // -// Updates the details for an existing link. To remove information for any of -// the parameters, specify an empty string. +// Registers a transit gateway in your global network. The transit gateway can +// be in any Amazon Web Services Region, but it must be owned by the same Amazon +// Web Services account that owns the global network. You cannot register a +// transit gateway in more than one global 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 AWS Network Manager's -// API operation UpdateLink for usage and error information. +// API operation RegisterTransitGateway for usage and error information. // // Returned Error Types: // * ValidationException // The input fails to satisfy the constraints. // -// * ServiceQuotaExceededException -// A service limit was exceeded. -// // * AccessDeniedException // You do not have sufficient access to perform this action. // @@ -3787,81 +3984,81 @@ func (c *NetworkManager) UpdateLinkRequest(input *UpdateLinkInput) (req *request // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateLink -func (c *NetworkManager) UpdateLink(input *UpdateLinkInput) (*UpdateLinkOutput, error) { - req, out := c.UpdateLinkRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/RegisterTransitGateway +func (c *NetworkManager) RegisterTransitGateway(input *RegisterTransitGatewayInput) (*RegisterTransitGatewayOutput, error) { + req, out := c.RegisterTransitGatewayRequest(input) return out, req.Send() } -// UpdateLinkWithContext is the same as UpdateLink with the addition of +// RegisterTransitGatewayWithContext is the same as RegisterTransitGateway with the addition of // the ability to pass a context and additional request options. // -// See UpdateLink for details on how to use this API operation. +// See RegisterTransitGateway for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *NetworkManager) UpdateLinkWithContext(ctx aws.Context, input *UpdateLinkInput, opts ...request.Option) (*UpdateLinkOutput, error) { - req, out := c.UpdateLinkRequest(input) +func (c *NetworkManager) RegisterTransitGatewayWithContext(ctx aws.Context, input *RegisterTransitGatewayInput, opts ...request.Option) (*RegisterTransitGatewayOutput, error) { + req, out := c.RegisterTransitGatewayRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateSite = "UpdateSite" +const opStartRouteAnalysis = "StartRouteAnalysis" -// UpdateSiteRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSite operation. The "output" return +// StartRouteAnalysisRequest generates a "aws/request.Request" representing the +// client's request for the StartRouteAnalysis operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateSite for more information on using the UpdateSite +// See StartRouteAnalysis for more information on using the StartRouteAnalysis // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateSiteRequest method. -// req, resp := client.UpdateSiteRequest(params) +// // Example sending a request using the StartRouteAnalysisRequest method. +// req, resp := client.StartRouteAnalysisRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateSite -func (c *NetworkManager) UpdateSiteRequest(input *UpdateSiteInput) (req *request.Request, output *UpdateSiteOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/StartRouteAnalysis +func (c *NetworkManager) StartRouteAnalysisRequest(input *StartRouteAnalysisInput) (req *request.Request, output *StartRouteAnalysisOutput) { op := &request.Operation{ - Name: opUpdateSite, - HTTPMethod: "PATCH", - HTTPPath: "/global-networks/{globalNetworkId}/sites/{siteId}", + Name: opStartRouteAnalysis, + HTTPMethod: "POST", + HTTPPath: "/global-networks/{globalNetworkId}/route-analyses", } if input == nil { - input = &UpdateSiteInput{} + input = &StartRouteAnalysisInput{} } - output = &UpdateSiteOutput{} + output = &StartRouteAnalysisOutput{} req = c.newRequest(op, input, output) return } -// UpdateSite API operation for AWS Network Manager. +// StartRouteAnalysis API operation for AWS Network Manager. // -// Updates the information for an existing site. To remove information for any -// of the parameters, specify an empty string. +// Starts analyzing the routing path between the specified source and destination. +// For more information, see Route Analyzer (https://docs.aws.amazon.com/vpc/latest/tgw/route-analyzer.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 Network Manager's -// API operation UpdateSite for usage and error information. +// API operation StartRouteAnalysis for usage and error information. // // Returned Error Types: // * ValidationException @@ -3883,76 +4080,2283 @@ func (c *NetworkManager) UpdateSiteRequest(input *UpdateSiteInput) (req *request // * InternalServerException // The request has failed due to an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateSite -func (c *NetworkManager) UpdateSite(input *UpdateSiteInput) (*UpdateSiteOutput, error) { - req, out := c.UpdateSiteRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/StartRouteAnalysis +func (c *NetworkManager) StartRouteAnalysis(input *StartRouteAnalysisInput) (*StartRouteAnalysisOutput, error) { + req, out := c.StartRouteAnalysisRequest(input) return out, req.Send() } -// UpdateSiteWithContext is the same as UpdateSite with the addition of +// StartRouteAnalysisWithContext is the same as StartRouteAnalysis with the addition of // the ability to pass a context and additional request options. // -// See UpdateSite for details on how to use this API operation. +// See StartRouteAnalysis for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *NetworkManager) UpdateSiteWithContext(ctx aws.Context, input *UpdateSiteInput, opts ...request.Option) (*UpdateSiteOutput, error) { - req, out := c.UpdateSiteRequest(input) +func (c *NetworkManager) StartRouteAnalysisWithContext(ctx aws.Context, input *StartRouteAnalysisInput, opts ...request.Option) (*StartRouteAnalysisOutput, error) { + req, out := c.StartRouteAnalysisRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// Specifies a location in AWS. -type AWSLocation struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the subnet the device is located in. - SubnetArn *string `type:"string"` - - // The Zone the device is located in. This can be the ID of an Availability - // Zone, Local Zone, Wavelength Zone, or an Outpost. - Zone *string `type:"string"` -} +const opTagResource = "TagResource" -// String returns the string representation. +// 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. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AWSLocation) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AWSLocation) GoString() string { - return s.String() -} +// 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/networkmanager-2019-07-05/TagResource +func (c *NetworkManager) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{resourceArn}", + } -// SetSubnetArn sets the SubnetArn field's value. -func (s *AWSLocation) SetSubnetArn(v string) *AWSLocation { - s.SubnetArn = &v - return s -} + if input == nil { + input = &TagResourceInput{} + } -// SetZone sets the Zone field's value. -func (s *AWSLocation) SetZone(v string) *AWSLocation { - s.Zone = &v - return s + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return } -// You do not have sufficient access to perform this action. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - +// TagResource API operation for AWS Network Manager. +// +// Tags 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 AWS Network Manager's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input fails to satisfy the constraints. +// +// * ServiceQuotaExceededException +// A service limit was exceeded. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ResourceNotFoundException +// The specified resource could not be found. +// +// * ConflictException +// There was a conflict processing the request. Updating or deleting the resource +// can cause an inconsistent state. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * InternalServerException +// The request has failed due to an internal error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/TagResource +func (c *NetworkManager) 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 *NetworkManager) 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/networkmanager-2019-07-05/UntagResource +func (c *NetworkManager) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for AWS Network Manager. +// +// Removes 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 AWS Network Manager's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input fails to satisfy the constraints. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ResourceNotFoundException +// The specified resource could not be found. +// +// * ConflictException +// There was a conflict processing the request. Updating or deleting the resource +// can cause an inconsistent state. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * InternalServerException +// The request has failed due to an internal error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UntagResource +func (c *NetworkManager) 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 *NetworkManager) 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 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 +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateConnection for more information on using the UpdateConnection +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateConnectionRequest method. +// req, resp := client.UpdateConnectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateConnection +func (c *NetworkManager) UpdateConnectionRequest(input *UpdateConnectionInput) (req *request.Request, output *UpdateConnectionOutput) { + op := &request.Operation{ + Name: opUpdateConnection, + HTTPMethod: "PATCH", + HTTPPath: "/global-networks/{globalNetworkId}/connections/{connectionId}", + } + + if input == nil { + input = &UpdateConnectionInput{} + } + + output = &UpdateConnectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateConnection API operation for AWS Network Manager. +// +// Updates the information for an existing connection. To remove information +// for any of the parameters, specify an empty string. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Network Manager's +// API operation UpdateConnection for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input fails to satisfy the constraints. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ResourceNotFoundException +// The specified resource could not be found. +// +// * ConflictException +// There was a conflict processing the request. Updating or deleting the resource +// can cause an inconsistent state. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * InternalServerException +// The request has failed due to an internal error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateConnection +func (c *NetworkManager) UpdateConnection(input *UpdateConnectionInput) (*UpdateConnectionOutput, error) { + req, out := c.UpdateConnectionRequest(input) + return out, req.Send() +} + +// UpdateConnectionWithContext is the same as UpdateConnection with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateConnection for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *NetworkManager) UpdateConnectionWithContext(ctx aws.Context, input *UpdateConnectionInput, opts ...request.Option) (*UpdateConnectionOutput, error) { + req, out := c.UpdateConnectionRequest(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/networkmanager-2019-07-05/UpdateDevice +func (c *NetworkManager) UpdateDeviceRequest(input *UpdateDeviceInput) (req *request.Request, output *UpdateDeviceOutput) { + op := &request.Operation{ + Name: opUpdateDevice, + HTTPMethod: "PATCH", + HTTPPath: "/global-networks/{globalNetworkId}/devices/{deviceId}", + } + + if input == nil { + input = &UpdateDeviceInput{} + } + + output = &UpdateDeviceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateDevice API operation for AWS Network Manager. +// +// Updates the details for an existing device. To remove information for any +// of the parameters, specify an empty string. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Network Manager's +// API operation UpdateDevice for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input fails to satisfy the constraints. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ResourceNotFoundException +// The specified resource could not be found. +// +// * ConflictException +// There was a conflict processing the request. Updating or deleting the resource +// can cause an inconsistent state. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * InternalServerException +// The request has failed due to an internal error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateDevice +func (c *NetworkManager) 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 *NetworkManager) 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 opUpdateGlobalNetwork = "UpdateGlobalNetwork" + +// UpdateGlobalNetworkRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGlobalNetwork operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateGlobalNetwork for more information on using the UpdateGlobalNetwork +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateGlobalNetworkRequest method. +// req, resp := client.UpdateGlobalNetworkRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateGlobalNetwork +func (c *NetworkManager) UpdateGlobalNetworkRequest(input *UpdateGlobalNetworkInput) (req *request.Request, output *UpdateGlobalNetworkOutput) { + op := &request.Operation{ + Name: opUpdateGlobalNetwork, + HTTPMethod: "PATCH", + HTTPPath: "/global-networks/{globalNetworkId}", + } + + if input == nil { + input = &UpdateGlobalNetworkInput{} + } + + output = &UpdateGlobalNetworkOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateGlobalNetwork API operation for AWS Network Manager. +// +// Updates an existing global network. To remove information for any of the +// parameters, specify an empty string. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Network Manager's +// API operation UpdateGlobalNetwork for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input fails to satisfy the constraints. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ResourceNotFoundException +// The specified resource could not be found. +// +// * ConflictException +// There was a conflict processing the request. Updating or deleting the resource +// can cause an inconsistent state. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * InternalServerException +// The request has failed due to an internal error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateGlobalNetwork +func (c *NetworkManager) UpdateGlobalNetwork(input *UpdateGlobalNetworkInput) (*UpdateGlobalNetworkOutput, error) { + req, out := c.UpdateGlobalNetworkRequest(input) + return out, req.Send() +} + +// UpdateGlobalNetworkWithContext is the same as UpdateGlobalNetwork with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateGlobalNetwork for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *NetworkManager) UpdateGlobalNetworkWithContext(ctx aws.Context, input *UpdateGlobalNetworkInput, opts ...request.Option) (*UpdateGlobalNetworkOutput, error) { + req, out := c.UpdateGlobalNetworkRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateLink = "UpdateLink" + +// UpdateLinkRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLink operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateLink for more information on using the UpdateLink +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateLinkRequest method. +// req, resp := client.UpdateLinkRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateLink +func (c *NetworkManager) UpdateLinkRequest(input *UpdateLinkInput) (req *request.Request, output *UpdateLinkOutput) { + op := &request.Operation{ + Name: opUpdateLink, + HTTPMethod: "PATCH", + HTTPPath: "/global-networks/{globalNetworkId}/links/{linkId}", + } + + if input == nil { + input = &UpdateLinkInput{} + } + + output = &UpdateLinkOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateLink API operation for AWS Network Manager. +// +// Updates the details for an existing link. To remove information for any of +// the parameters, specify an empty string. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Network Manager's +// API operation UpdateLink for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input fails to satisfy the constraints. +// +// * ServiceQuotaExceededException +// A service limit was exceeded. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ResourceNotFoundException +// The specified resource could not be found. +// +// * ConflictException +// There was a conflict processing the request. Updating or deleting the resource +// can cause an inconsistent state. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * InternalServerException +// The request has failed due to an internal error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateLink +func (c *NetworkManager) UpdateLink(input *UpdateLinkInput) (*UpdateLinkOutput, error) { + req, out := c.UpdateLinkRequest(input) + return out, req.Send() +} + +// UpdateLinkWithContext is the same as UpdateLink with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateLink for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *NetworkManager) UpdateLinkWithContext(ctx aws.Context, input *UpdateLinkInput, opts ...request.Option) (*UpdateLinkOutput, error) { + req, out := c.UpdateLinkRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateNetworkResourceMetadata = "UpdateNetworkResourceMetadata" + +// UpdateNetworkResourceMetadataRequest generates a "aws/request.Request" representing the +// client's request for the UpdateNetworkResourceMetadata operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateNetworkResourceMetadata for more information on using the UpdateNetworkResourceMetadata +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateNetworkResourceMetadataRequest method. +// req, resp := client.UpdateNetworkResourceMetadataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateNetworkResourceMetadata +func (c *NetworkManager) UpdateNetworkResourceMetadataRequest(input *UpdateNetworkResourceMetadataInput) (req *request.Request, output *UpdateNetworkResourceMetadataOutput) { + op := &request.Operation{ + Name: opUpdateNetworkResourceMetadata, + HTTPMethod: "PATCH", + HTTPPath: "/global-networks/{globalNetworkId}/network-resources/{resourceArn}/metadata", + } + + if input == nil { + input = &UpdateNetworkResourceMetadataInput{} + } + + output = &UpdateNetworkResourceMetadataOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateNetworkResourceMetadata API operation for AWS Network Manager. +// +// Updates the resource metadata for the specified global 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 AWS Network Manager's +// API operation UpdateNetworkResourceMetadata for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input fails to satisfy the constraints. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ResourceNotFoundException +// The specified resource could not be found. +// +// * ConflictException +// There was a conflict processing the request. Updating or deleting the resource +// can cause an inconsistent state. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * InternalServerException +// The request has failed due to an internal error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateNetworkResourceMetadata +func (c *NetworkManager) UpdateNetworkResourceMetadata(input *UpdateNetworkResourceMetadataInput) (*UpdateNetworkResourceMetadataOutput, error) { + req, out := c.UpdateNetworkResourceMetadataRequest(input) + return out, req.Send() +} + +// UpdateNetworkResourceMetadataWithContext is the same as UpdateNetworkResourceMetadata with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateNetworkResourceMetadata for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *NetworkManager) UpdateNetworkResourceMetadataWithContext(ctx aws.Context, input *UpdateNetworkResourceMetadataInput, opts ...request.Option) (*UpdateNetworkResourceMetadataOutput, error) { + req, out := c.UpdateNetworkResourceMetadataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSite = "UpdateSite" + +// UpdateSiteRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSite operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateSite for more information on using the UpdateSite +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateSiteRequest method. +// req, resp := client.UpdateSiteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateSite +func (c *NetworkManager) UpdateSiteRequest(input *UpdateSiteInput) (req *request.Request, output *UpdateSiteOutput) { + op := &request.Operation{ + Name: opUpdateSite, + HTTPMethod: "PATCH", + HTTPPath: "/global-networks/{globalNetworkId}/sites/{siteId}", + } + + if input == nil { + input = &UpdateSiteInput{} + } + + output = &UpdateSiteOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSite API operation for AWS Network Manager. +// +// Updates the information for an existing site. To remove information for any +// of the parameters, specify an empty string. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Network Manager's +// API operation UpdateSite for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input fails to satisfy the constraints. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ResourceNotFoundException +// The specified resource could not be found. +// +// * ConflictException +// There was a conflict processing the request. Updating or deleting the resource +// can cause an inconsistent state. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * InternalServerException +// The request has failed due to an internal error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateSite +func (c *NetworkManager) UpdateSite(input *UpdateSiteInput) (*UpdateSiteOutput, error) { + req, out := c.UpdateSiteRequest(input) + return out, req.Send() +} + +// UpdateSiteWithContext is the same as UpdateSite with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSite for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *NetworkManager) UpdateSiteWithContext(ctx aws.Context, input *UpdateSiteInput, opts ...request.Option) (*UpdateSiteOutput, error) { + req, out := c.UpdateSiteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Specifies a location in Amazon Web Services. +type AWSLocation struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the subnet that the device is located in. + SubnetArn *string `type:"string"` + + // The Zone that the device is located in. Specify the ID of an Availability + // Zone, Local Zone, Wavelength Zone, or an Outpost. + Zone *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AWSLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AWSLocation) GoString() string { + return s.String() +} + +// SetSubnetArn sets the SubnetArn field's value. +func (s *AWSLocation) SetSubnetArn(v string) *AWSLocation { + s.SubnetArn = &v + return s +} + +// SetZone sets the Zone field's value. +func (s *AWSLocation) SetZone(v string) *AWSLocation { + s.Zone = &v + return s +} + +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +type AssociateCustomerGatewayInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the customer gateway. + // + // CustomerGatewayArn is a required field + CustomerGatewayArn *string `type:"string" required:"true"` + + // The ID of the device. + // + // DeviceId is a required field + DeviceId *string `type:"string" required:"true"` + + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The ID of the link. + LinkId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateCustomerGatewayInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateCustomerGatewayInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateCustomerGatewayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateCustomerGatewayInput"} + if s.CustomerGatewayArn == nil { + invalidParams.Add(request.NewErrParamRequired("CustomerGatewayArn")) + } + if s.DeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceId")) + } + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCustomerGatewayArn sets the CustomerGatewayArn field's value. +func (s *AssociateCustomerGatewayInput) SetCustomerGatewayArn(v string) *AssociateCustomerGatewayInput { + s.CustomerGatewayArn = &v + return s +} + +// SetDeviceId sets the DeviceId field's value. +func (s *AssociateCustomerGatewayInput) SetDeviceId(v string) *AssociateCustomerGatewayInput { + s.DeviceId = &v + return s +} + +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *AssociateCustomerGatewayInput) SetGlobalNetworkId(v string) *AssociateCustomerGatewayInput { + s.GlobalNetworkId = &v + return s +} + +// SetLinkId sets the LinkId field's value. +func (s *AssociateCustomerGatewayInput) SetLinkId(v string) *AssociateCustomerGatewayInput { + s.LinkId = &v + return s +} + +type AssociateCustomerGatewayOutput struct { + _ struct{} `type:"structure"` + + // The customer gateway association. + CustomerGatewayAssociation *CustomerGatewayAssociation `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateCustomerGatewayOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateCustomerGatewayOutput) GoString() string { + return s.String() +} + +// SetCustomerGatewayAssociation sets the CustomerGatewayAssociation field's value. +func (s *AssociateCustomerGatewayOutput) SetCustomerGatewayAssociation(v *CustomerGatewayAssociation) *AssociateCustomerGatewayOutput { + s.CustomerGatewayAssociation = v + return s +} + +type AssociateLinkInput struct { + _ struct{} `type:"structure"` + + // The ID of the device. + // + // DeviceId is a required field + DeviceId *string `type:"string" required:"true"` + + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The ID of the link. + // + // LinkId is a required field + LinkId *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateLinkInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateLinkInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateLinkInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateLinkInput"} + if s.DeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceId")) + } + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + if s.LinkId == nil { + invalidParams.Add(request.NewErrParamRequired("LinkId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceId sets the DeviceId field's value. +func (s *AssociateLinkInput) SetDeviceId(v string) *AssociateLinkInput { + s.DeviceId = &v + return s +} + +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *AssociateLinkInput) SetGlobalNetworkId(v string) *AssociateLinkInput { + s.GlobalNetworkId = &v + return s +} + +// SetLinkId sets the LinkId field's value. +func (s *AssociateLinkInput) SetLinkId(v string) *AssociateLinkInput { + s.LinkId = &v + return s +} + +type AssociateLinkOutput struct { + _ struct{} `type:"structure"` + + // The link association. + LinkAssociation *LinkAssociation `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateLinkOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateLinkOutput) GoString() string { + return s.String() +} + +// SetLinkAssociation sets the LinkAssociation field's value. +func (s *AssociateLinkOutput) SetLinkAssociation(v *LinkAssociation) *AssociateLinkOutput { + s.LinkAssociation = v + return s +} + +type AssociateTransitGatewayConnectPeerInput struct { + _ struct{} `type:"structure"` + + // The ID of the device. + // + // DeviceId is a required field + DeviceId *string `type:"string" required:"true"` + + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The ID of the link. + LinkId *string `type:"string"` + + // The Amazon Resource Name (ARN) of the Connect peer. + // + // TransitGatewayConnectPeerArn is a required field + TransitGatewayConnectPeerArn *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateTransitGatewayConnectPeerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateTransitGatewayConnectPeerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateTransitGatewayConnectPeerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateTransitGatewayConnectPeerInput"} + if s.DeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceId")) + } + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + if s.TransitGatewayConnectPeerArn == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayConnectPeerArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceId sets the DeviceId field's value. +func (s *AssociateTransitGatewayConnectPeerInput) SetDeviceId(v string) *AssociateTransitGatewayConnectPeerInput { + s.DeviceId = &v + return s +} + +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *AssociateTransitGatewayConnectPeerInput) SetGlobalNetworkId(v string) *AssociateTransitGatewayConnectPeerInput { + s.GlobalNetworkId = &v + return s +} + +// SetLinkId sets the LinkId field's value. +func (s *AssociateTransitGatewayConnectPeerInput) SetLinkId(v string) *AssociateTransitGatewayConnectPeerInput { + s.LinkId = &v + return s +} + +// SetTransitGatewayConnectPeerArn sets the TransitGatewayConnectPeerArn field's value. +func (s *AssociateTransitGatewayConnectPeerInput) SetTransitGatewayConnectPeerArn(v string) *AssociateTransitGatewayConnectPeerInput { + s.TransitGatewayConnectPeerArn = &v + return s +} + +type AssociateTransitGatewayConnectPeerOutput struct { + _ struct{} `type:"structure"` + + // The transit gateway Connect peer association. + TransitGatewayConnectPeerAssociation *TransitGatewayConnectPeerAssociation `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateTransitGatewayConnectPeerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateTransitGatewayConnectPeerOutput) GoString() string { + return s.String() +} + +// SetTransitGatewayConnectPeerAssociation sets the TransitGatewayConnectPeerAssociation field's value. +func (s *AssociateTransitGatewayConnectPeerOutput) SetTransitGatewayConnectPeerAssociation(v *TransitGatewayConnectPeerAssociation) *AssociateTransitGatewayConnectPeerOutput { + s.TransitGatewayConnectPeerAssociation = v + return s +} + +// Describes bandwidth information. +type Bandwidth struct { + _ struct{} `type:"structure"` + + // Download speed in Mbps. + DownloadSpeed *int64 `type:"integer"` + + // Upload speed in Mbps. + UploadSpeed *int64 `type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Bandwidth) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Bandwidth) GoString() string { + return s.String() +} + +// SetDownloadSpeed sets the DownloadSpeed field's value. +func (s *Bandwidth) SetDownloadSpeed(v int64) *Bandwidth { + s.DownloadSpeed = &v + return s +} + +// SetUploadSpeed sets the UploadSpeed field's value. +func (s *Bandwidth) SetUploadSpeed(v int64) *Bandwidth { + s.UploadSpeed = &v + return s +} + +// There was a conflict processing the request. Updating or deleting the resource +// can cause an inconsistent state. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Message_ *string `locationName:"Message" type:"string"` + + // The ID of the resource. + // + // ResourceId is a required field + ResourceId *string `type:"string" required:"true"` + + // The resource type. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Describes a connection. +type Connection struct { + _ struct{} `type:"structure"` + + // The ID of the second device in the connection. + ConnectedDeviceId *string `type:"string"` + + // The ID of the link for the second device in the connection. + ConnectedLinkId *string `type:"string"` + + // The Amazon Resource Name (ARN) of the connection. + ConnectionArn *string `type:"string"` + + // The ID of the connection. + ConnectionId *string `type:"string"` + + // The date and time that the connection was created. + CreatedAt *time.Time `type:"timestamp"` + + // The description of the connection. + Description *string `type:"string"` + + // The ID of the first device in the connection. + DeviceId *string `type:"string"` + + // The ID of the global network. + GlobalNetworkId *string `type:"string"` + + // The ID of the link for the first device in the connection. + LinkId *string `type:"string"` + + // The state of the connection. + State *string `type:"string" enum:"ConnectionState"` + + // The tags for the connection. + Tags []*Tag `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Connection) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Connection) GoString() string { + return s.String() +} + +// SetConnectedDeviceId sets the ConnectedDeviceId field's value. +func (s *Connection) SetConnectedDeviceId(v string) *Connection { + s.ConnectedDeviceId = &v + return s +} + +// SetConnectedLinkId sets the ConnectedLinkId field's value. +func (s *Connection) SetConnectedLinkId(v string) *Connection { + s.ConnectedLinkId = &v + return s +} + +// SetConnectionArn sets the ConnectionArn field's value. +func (s *Connection) SetConnectionArn(v string) *Connection { + s.ConnectionArn = &v + return s +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *Connection) SetConnectionId(v string) *Connection { + s.ConnectionId = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Connection) SetCreatedAt(v time.Time) *Connection { + s.CreatedAt = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Connection) SetDescription(v string) *Connection { + s.Description = &v + return s +} + +// SetDeviceId sets the DeviceId field's value. +func (s *Connection) SetDeviceId(v string) *Connection { + s.DeviceId = &v + return s +} + +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *Connection) SetGlobalNetworkId(v string) *Connection { + s.GlobalNetworkId = &v + return s +} + +// SetLinkId sets the LinkId field's value. +func (s *Connection) SetLinkId(v string) *Connection { + s.LinkId = &v + return s +} + +// SetState sets the State field's value. +func (s *Connection) SetState(v string) *Connection { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Connection) SetTags(v []*Tag) *Connection { + s.Tags = v + return s +} + +// Describes connection health. +type ConnectionHealth struct { + _ struct{} `type:"structure"` + + // The connection status. + Status *string `type:"string" enum:"ConnectionStatus"` + + // The time the status was last updated. + Timestamp *time.Time `type:"timestamp"` + + // The connection type. + Type *string `type:"string" enum:"ConnectionType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConnectionHealth) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConnectionHealth) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *ConnectionHealth) SetStatus(v string) *ConnectionHealth { + s.Status = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *ConnectionHealth) SetTimestamp(v time.Time) *ConnectionHealth { + s.Timestamp = &v + return s +} + +// SetType sets the Type field's value. +func (s *ConnectionHealth) SetType(v string) *ConnectionHealth { + s.Type = &v + return s +} + +type CreateConnectionInput struct { + _ struct{} `type:"structure"` + + // The ID of the second device in the connection. + // + // ConnectedDeviceId is a required field + ConnectedDeviceId *string `type:"string" required:"true"` + + // The ID of the link for the second device. + ConnectedLinkId *string `type:"string"` + + // A description of the connection. + // + // Length Constraints: Maximum length of 256 characters. + Description *string `type:"string"` + + // The ID of the first device in the connection. + // + // DeviceId is a required field + DeviceId *string `type:"string" required:"true"` + + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The ID of the link for the first device. + LinkId *string `type:"string"` + + // The tags to apply to the resource during creation. + Tags []*Tag `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateConnectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateConnectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"} + if s.ConnectedDeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectedDeviceId")) + } + if s.DeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceId")) + } + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectedDeviceId sets the ConnectedDeviceId field's value. +func (s *CreateConnectionInput) SetConnectedDeviceId(v string) *CreateConnectionInput { + s.ConnectedDeviceId = &v + return s +} + +// SetConnectedLinkId sets the ConnectedLinkId field's value. +func (s *CreateConnectionInput) SetConnectedLinkId(v string) *CreateConnectionInput { + s.ConnectedLinkId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateConnectionInput) SetDescription(v string) *CreateConnectionInput { + s.Description = &v + return s +} + +// SetDeviceId sets the DeviceId field's value. +func (s *CreateConnectionInput) SetDeviceId(v string) *CreateConnectionInput { + s.DeviceId = &v + return s +} + +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *CreateConnectionInput) SetGlobalNetworkId(v string) *CreateConnectionInput { + s.GlobalNetworkId = &v + return s +} + +// SetLinkId sets the LinkId field's value. +func (s *CreateConnectionInput) SetLinkId(v string) *CreateConnectionInput { + s.LinkId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateConnectionInput) SetTags(v []*Tag) *CreateConnectionInput { + s.Tags = v + return s +} + +type CreateConnectionOutput struct { + _ struct{} `type:"structure"` + + // Information about the connection. + Connection *Connection `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateConnectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateConnectionOutput) GoString() string { + return s.String() +} + +// SetConnection sets the Connection field's value. +func (s *CreateConnectionOutput) SetConnection(v *Connection) *CreateConnectionOutput { + s.Connection = v + return s +} + +type CreateDeviceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Web Services location of the device, if applicable. For an on-premises + // device, you can omit this parameter. + AWSLocation *AWSLocation `type:"structure"` + + // A description of the device. + // + // Constraints: Maximum length of 256 characters. + Description *string `type:"string"` + + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The location of the device. + // + // Location is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateDeviceInput's + // String and GoString methods. + Location *Location `type:"structure" sensitive:"true"` + + // The model of the device. + // + // Constraints: Maximum length of 128 characters. + Model *string `type:"string"` + + // The serial number of the device. + // + // Constraints: Maximum length of 128 characters. + SerialNumber *string `type:"string"` + + // The ID of the site. + SiteId *string `type:"string"` + + // The tags to apply to the resource during creation. + Tags []*Tag `type:"list"` + + // The type of the device. + Type *string `type:"string"` + + // The vendor of the device. + // + // Constraints: Maximum length of 128 characters. + Vendor *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDeviceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDeviceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDeviceInput"} + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAWSLocation sets the AWSLocation field's value. +func (s *CreateDeviceInput) SetAWSLocation(v *AWSLocation) *CreateDeviceInput { + s.AWSLocation = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateDeviceInput) SetDescription(v string) *CreateDeviceInput { + s.Description = &v + return s +} + +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *CreateDeviceInput) SetGlobalNetworkId(v string) *CreateDeviceInput { + s.GlobalNetworkId = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateDeviceInput) SetLocation(v *Location) *CreateDeviceInput { + s.Location = v + return s +} + +// SetModel sets the Model field's value. +func (s *CreateDeviceInput) SetModel(v string) *CreateDeviceInput { + s.Model = &v + return s +} + +// SetSerialNumber sets the SerialNumber field's value. +func (s *CreateDeviceInput) SetSerialNumber(v string) *CreateDeviceInput { + s.SerialNumber = &v + return s +} + +// SetSiteId sets the SiteId field's value. +func (s *CreateDeviceInput) SetSiteId(v string) *CreateDeviceInput { + s.SiteId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDeviceInput) SetTags(v []*Tag) *CreateDeviceInput { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *CreateDeviceInput) SetType(v string) *CreateDeviceInput { + s.Type = &v + return s +} + +// SetVendor sets the Vendor field's value. +func (s *CreateDeviceInput) SetVendor(v string) *CreateDeviceInput { + s.Vendor = &v + return s +} + +type CreateDeviceOutput struct { + _ struct{} `type:"structure"` + + // Information about the device. + Device *Device `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDeviceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDeviceOutput) GoString() string { + return s.String() +} + +// SetDevice sets the Device field's value. +func (s *CreateDeviceOutput) SetDevice(v *Device) *CreateDeviceOutput { + s.Device = v + return s +} + +type CreateGlobalNetworkInput struct { + _ struct{} `type:"structure"` + + // A description of the global network. + // + // Constraints: Maximum length of 256 characters. + Description *string `type:"string"` + + // The tags to apply to the resource during creation. + Tags []*Tag `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGlobalNetworkInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGlobalNetworkInput) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *CreateGlobalNetworkInput) SetDescription(v string) *CreateGlobalNetworkInput { + s.Description = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateGlobalNetworkInput) SetTags(v []*Tag) *CreateGlobalNetworkInput { + s.Tags = v + return s +} + +type CreateGlobalNetworkOutput struct { + _ struct{} `type:"structure"` + + // Information about the global network object. + GlobalNetwork *GlobalNetwork `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGlobalNetworkOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGlobalNetworkOutput) GoString() string { + return s.String() +} + +// SetGlobalNetwork sets the GlobalNetwork field's value. +func (s *CreateGlobalNetworkOutput) SetGlobalNetwork(v *GlobalNetwork) *CreateGlobalNetworkOutput { + s.GlobalNetwork = v + return s +} + +type CreateLinkInput struct { + _ struct{} `type:"structure"` + + // The upload speed and download speed in Mbps. + // + // Bandwidth is a required field + Bandwidth *Bandwidth `type:"structure" required:"true"` + + // A description of the link. + // + // Constraints: Maximum length of 256 characters. + Description *string `type:"string"` + + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The provider of the link. + // + // Constraints: Maximum length of 128 characters. Cannot include the following + // characters: | \ ^ + Provider *string `type:"string"` + + // The ID of the site. + // + // SiteId is a required field + SiteId *string `type:"string" required:"true"` + + // The tags to apply to the resource during creation. + Tags []*Tag `type:"list"` + + // The type of the link. + // + // Constraints: Maximum length of 128 characters. Cannot include the following + // characters: | \ ^ + Type *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLinkInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLinkInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLinkInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLinkInput"} + if s.Bandwidth == nil { + invalidParams.Add(request.NewErrParamRequired("Bandwidth")) + } + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + if s.SiteId == nil { + invalidParams.Add(request.NewErrParamRequired("SiteId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBandwidth sets the Bandwidth field's value. +func (s *CreateLinkInput) SetBandwidth(v *Bandwidth) *CreateLinkInput { + s.Bandwidth = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateLinkInput) SetDescription(v string) *CreateLinkInput { + s.Description = &v + return s +} + +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *CreateLinkInput) SetGlobalNetworkId(v string) *CreateLinkInput { + s.GlobalNetworkId = &v + return s +} + +// SetProvider sets the Provider field's value. +func (s *CreateLinkInput) SetProvider(v string) *CreateLinkInput { + s.Provider = &v + return s +} + +// SetSiteId sets the SiteId field's value. +func (s *CreateLinkInput) SetSiteId(v string) *CreateLinkInput { + s.SiteId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLinkInput) SetTags(v []*Tag) *CreateLinkInput { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *CreateLinkInput) SetType(v string) *CreateLinkInput { + s.Type = &v + return s +} + +type CreateLinkOutput struct { + _ struct{} `type:"structure"` + + // Information about the link. + Link *Link `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLinkOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLinkOutput) GoString() string { + return s.String() +} + +// SetLink sets the Link field's value. +func (s *CreateLinkOutput) SetLink(v *Link) *CreateLinkOutput { + s.Link = v + return s +} + +type CreateSiteInput struct { + _ struct{} `type:"structure"` + + // A description of your site. + // + // Constraints: Maximum length of 256 characters. + Description *string `type:"string"` + + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The site location. This information is used for visualization in the Network + // Manager console. If you specify the address, the latitude and longitude are + // automatically calculated. + // + // * Address: The physical address of the site. + // + // * Latitude: The latitude of the site. + // + // * Longitude: The longitude of the site. + // + // Location is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateSiteInput's + // String and GoString methods. + Location *Location `type:"structure" sensitive:"true"` + + // The tags to apply to the resource during creation. + Tags []*Tag `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSiteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSiteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSiteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSiteInput"} + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateSiteInput) SetDescription(v string) *CreateSiteInput { + s.Description = &v + return s +} + +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *CreateSiteInput) SetGlobalNetworkId(v string) *CreateSiteInput { + s.GlobalNetworkId = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateSiteInput) SetLocation(v *Location) *CreateSiteInput { + s.Location = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateSiteInput) SetTags(v []*Tag) *CreateSiteInput { + s.Tags = v + return s +} + +type CreateSiteOutput struct { + _ struct{} `type:"structure"` + + // Information about the site. + Site *Site `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSiteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSiteOutput) GoString() string { + return s.String() +} + +// SetSite sets the Site field's value. +func (s *CreateSiteOutput) SetSite(v *Site) *CreateSiteOutput { + s.Site = v + return s +} + +// Describes the association between a customer gateway, a device, and a link. +type CustomerGatewayAssociation struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the customer gateway. + CustomerGatewayArn *string `type:"string"` + + // The ID of the device. + DeviceId *string `type:"string"` + + // The ID of the global network. + GlobalNetworkId *string `type:"string"` + + // The ID of the link. + LinkId *string `type:"string"` + + // The association state. + State *string `type:"string" enum:"CustomerGatewayAssociationState"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CustomerGatewayAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CustomerGatewayAssociation) GoString() string { + return s.String() +} + +// SetCustomerGatewayArn sets the CustomerGatewayArn field's value. +func (s *CustomerGatewayAssociation) SetCustomerGatewayArn(v string) *CustomerGatewayAssociation { + s.CustomerGatewayArn = &v + return s +} + +// SetDeviceId sets the DeviceId field's value. +func (s *CustomerGatewayAssociation) SetDeviceId(v string) *CustomerGatewayAssociation { + s.DeviceId = &v + return s +} + +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *CustomerGatewayAssociation) SetGlobalNetworkId(v string) *CustomerGatewayAssociation { + s.GlobalNetworkId = &v + return s +} + +// SetLinkId sets the LinkId field's value. +func (s *CustomerGatewayAssociation) SetLinkId(v string) *CustomerGatewayAssociation { + s.LinkId = &v + return s +} + +// SetState sets the State field's value. +func (s *CustomerGatewayAssociation) SetState(v string) *CustomerGatewayAssociation { + s.State = &v + return s +} + +type DeleteConnectionInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the connection. + // + // ConnectionId is a required field + ConnectionId *string `location:"uri" locationName:"connectionId" type:"string" required:"true"` + + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` } // String returns the string representation. @@ -3960,7 +6364,7 @@ type AccessDeniedException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AccessDeniedException) String() string { +func (s DeleteConnectionInput) String() string { return awsutil.Prettify(s) } @@ -3969,69 +6373,87 @@ func (s AccessDeniedException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AccessDeniedException) GoString() string { +func (s DeleteConnectionInput) GoString() string { return s.String() } -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} + if s.ConnectionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionId")) + } + if s.ConnectionId != nil && len(*s.ConnectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectionId", 1)) + } + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } -} -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetConnectionId sets the ConnectionId field's value. +func (s *DeleteConnectionInput) SetConnectionId(v string) *DeleteConnectionInput { + s.ConnectionId = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *DeleteConnectionInput) SetGlobalNetworkId(v string) *DeleteConnectionInput { + s.GlobalNetworkId = &v + return s } -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +type DeleteConnectionOutput struct { + _ struct{} `type:"structure"` + + // Information about the connection. + Connection *Connection `type:"structure"` } -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteConnectionOutput) String() string { + return awsutil.Prettify(s) } -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteConnectionOutput) GoString() string { + return s.String() } -type AssociateCustomerGatewayInput struct { - _ struct{} `type:"structure"` +// SetConnection sets the Connection field's value. +func (s *DeleteConnectionOutput) SetConnection(v *Connection) *DeleteConnectionOutput { + s.Connection = v + return s +} - // The Amazon Resource Name (ARN) of the customer gateway. For more information, - // see Resources Defined by Amazon EC2 (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazonec2.html#amazonec2-resources-for-iam-policies). - // - // CustomerGatewayArn is a required field - CustomerGatewayArn *string `type:"string" required:"true"` +type DeleteDeviceInput struct { + _ struct{} `type:"structure" nopayload:"true"` // The ID of the device. // // DeviceId is a required field - DeviceId *string `type:"string" required:"true"` + DeviceId *string `location:"uri" locationName:"deviceId" type:"string" required:"true"` // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - - // The ID of the link. - LinkId *string `type:"string"` } // String returns the string representation. @@ -4039,7 +6461,7 @@ type AssociateCustomerGatewayInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateCustomerGatewayInput) String() string { +func (s DeleteDeviceInput) String() string { return awsutil.Prettify(s) } @@ -4048,19 +6470,19 @@ func (s AssociateCustomerGatewayInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateCustomerGatewayInput) GoString() string { +func (s DeleteDeviceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateCustomerGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateCustomerGatewayInput"} - if s.CustomerGatewayArn == nil { - invalidParams.Add(request.NewErrParamRequired("CustomerGatewayArn")) - } +func (s *DeleteDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDeviceInput"} 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.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } @@ -4074,35 +6496,56 @@ func (s *AssociateCustomerGatewayInput) Validate() error { return nil } -// SetCustomerGatewayArn sets the CustomerGatewayArn field's value. -func (s *AssociateCustomerGatewayInput) SetCustomerGatewayArn(v string) *AssociateCustomerGatewayInput { - s.CustomerGatewayArn = &v - return s -} - // SetDeviceId sets the DeviceId field's value. -func (s *AssociateCustomerGatewayInput) SetDeviceId(v string) *AssociateCustomerGatewayInput { +func (s *DeleteDeviceInput) SetDeviceId(v string) *DeleteDeviceInput { s.DeviceId = &v return s } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *AssociateCustomerGatewayInput) SetGlobalNetworkId(v string) *AssociateCustomerGatewayInput { +func (s *DeleteDeviceInput) SetGlobalNetworkId(v string) *DeleteDeviceInput { s.GlobalNetworkId = &v return s } -// SetLinkId sets the LinkId field's value. -func (s *AssociateCustomerGatewayInput) SetLinkId(v string) *AssociateCustomerGatewayInput { - s.LinkId = &v +type DeleteDeviceOutput struct { + _ struct{} `type:"structure"` + + // Information about the device. + Device *Device `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteDeviceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteDeviceOutput) GoString() string { + return s.String() +} + +// SetDevice sets the Device field's value. +func (s *DeleteDeviceOutput) SetDevice(v *Device) *DeleteDeviceOutput { + s.Device = v return s } -type AssociateCustomerGatewayOutput struct { - _ struct{} `type:"structure"` +type DeleteGlobalNetworkInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The customer gateway association. - CustomerGatewayAssociation *CustomerGatewayAssociation `type:"structure"` + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` } // String returns the string representation. @@ -4110,7 +6553,7 @@ type AssociateCustomerGatewayOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateCustomerGatewayOutput) String() string { +func (s DeleteGlobalNetworkInput) String() string { return awsutil.Prettify(s) } @@ -4119,23 +6562,65 @@ func (s AssociateCustomerGatewayOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateCustomerGatewayOutput) GoString() string { +func (s DeleteGlobalNetworkInput) GoString() string { return s.String() } -// SetCustomerGatewayAssociation sets the CustomerGatewayAssociation field's value. -func (s *AssociateCustomerGatewayOutput) SetCustomerGatewayAssociation(v *CustomerGatewayAssociation) *AssociateCustomerGatewayOutput { - s.CustomerGatewayAssociation = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteGlobalNetworkInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGlobalNetworkInput"} + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *DeleteGlobalNetworkInput) SetGlobalNetworkId(v string) *DeleteGlobalNetworkInput { + s.GlobalNetworkId = &v return s } -type AssociateLinkInput struct { +type DeleteGlobalNetworkOutput struct { _ struct{} `type:"structure"` - // The ID of the device. - // - // DeviceId is a required field - DeviceId *string `type:"string" required:"true"` + // Information about the global network. + GlobalNetwork *GlobalNetwork `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteGlobalNetworkOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteGlobalNetworkOutput) GoString() string { + return s.String() +} + +// SetGlobalNetwork sets the GlobalNetwork field's value. +func (s *DeleteGlobalNetworkOutput) SetGlobalNetwork(v *GlobalNetwork) *DeleteGlobalNetworkOutput { + s.GlobalNetwork = v + return s +} + +type DeleteLinkInput struct { + _ struct{} `type:"structure" nopayload:"true"` // The ID of the global network. // @@ -4145,7 +6630,7 @@ type AssociateLinkInput struct { // The ID of the link. // // LinkId is a required field - LinkId *string `type:"string" required:"true"` + LinkId *string `location:"uri" locationName:"linkId" type:"string" required:"true"` } // String returns the string representation. @@ -4153,7 +6638,7 @@ type AssociateLinkInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateLinkInput) String() string { +func (s DeleteLinkInput) String() string { return awsutil.Prettify(s) } @@ -4162,16 +6647,13 @@ func (s AssociateLinkInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateLinkInput) GoString() string { +func (s DeleteLinkInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateLinkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateLinkInput"} - if s.DeviceId == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceId")) - } +func (s *DeleteLinkInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLinkInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } @@ -4181,6 +6663,9 @@ func (s *AssociateLinkInput) Validate() error { if s.LinkId == nil { invalidParams.Add(request.NewErrParamRequired("LinkId")) } + if s.LinkId != nil && len(*s.LinkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LinkId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4188,29 +6673,23 @@ func (s *AssociateLinkInput) Validate() error { return nil } -// SetDeviceId sets the DeviceId field's value. -func (s *AssociateLinkInput) SetDeviceId(v string) *AssociateLinkInput { - s.DeviceId = &v - return s -} - // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *AssociateLinkInput) SetGlobalNetworkId(v string) *AssociateLinkInput { +func (s *DeleteLinkInput) SetGlobalNetworkId(v string) *DeleteLinkInput { s.GlobalNetworkId = &v return s } // SetLinkId sets the LinkId field's value. -func (s *AssociateLinkInput) SetLinkId(v string) *AssociateLinkInput { +func (s *DeleteLinkInput) SetLinkId(v string) *DeleteLinkInput { s.LinkId = &v return s } -type AssociateLinkOutput struct { +type DeleteLinkOutput struct { _ struct{} `type:"structure"` - // The link association. - LinkAssociation *LinkAssociation `type:"structure"` + // Information about the link. + Link *Link `type:"structure"` } // String returns the string representation. @@ -4218,7 +6697,7 @@ type AssociateLinkOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateLinkOutput) String() string { +func (s DeleteLinkOutput) String() string { return awsutil.Prettify(s) } @@ -4227,36 +6706,28 @@ func (s AssociateLinkOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateLinkOutput) GoString() string { +func (s DeleteLinkOutput) GoString() string { return s.String() } -// SetLinkAssociation sets the LinkAssociation field's value. -func (s *AssociateLinkOutput) SetLinkAssociation(v *LinkAssociation) *AssociateLinkOutput { - s.LinkAssociation = v +// SetLink sets the Link field's value. +func (s *DeleteLinkOutput) SetLink(v *Link) *DeleteLinkOutput { + s.Link = v return s } -type AssociateTransitGatewayConnectPeerInput struct { - _ struct{} `type:"structure"` - - // The ID of the device. - // - // DeviceId is a required field - DeviceId *string `type:"string" required:"true"` +type DeleteSiteInput struct { + _ struct{} `type:"structure" nopayload:"true"` // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // The ID of the link. - LinkId *string `type:"string"` - - // The Amazon Resource Name (ARN) of the Connect peer. + // The ID of the site. // - // TransitGatewayConnectPeerArn is a required field - TransitGatewayConnectPeerArn *string `type:"string" required:"true"` + // SiteId is a required field + SiteId *string `location:"uri" locationName:"siteId" type:"string" required:"true"` } // String returns the string representation. @@ -4264,7 +6735,7 @@ type AssociateTransitGatewayConnectPeerInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateTransitGatewayConnectPeerInput) String() string { +func (s DeleteSiteInput) String() string { return awsutil.Prettify(s) } @@ -4273,24 +6744,24 @@ func (s AssociateTransitGatewayConnectPeerInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateTransitGatewayConnectPeerInput) GoString() string { +func (s DeleteSiteInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateTransitGatewayConnectPeerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateTransitGatewayConnectPeerInput"} - if s.DeviceId == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceId")) - } +func (s *DeleteSiteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSiteInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } - if s.TransitGatewayConnectPeerArn == nil { - invalidParams.Add(request.NewErrParamRequired("TransitGatewayConnectPeerArn")) + if s.SiteId == nil { + invalidParams.Add(request.NewErrParamRequired("SiteId")) + } + if s.SiteId != nil && len(*s.SiteId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) } if invalidParams.Len() > 0 { @@ -4299,35 +6770,23 @@ func (s *AssociateTransitGatewayConnectPeerInput) Validate() error { return nil } -// SetDeviceId sets the DeviceId field's value. -func (s *AssociateTransitGatewayConnectPeerInput) SetDeviceId(v string) *AssociateTransitGatewayConnectPeerInput { - s.DeviceId = &v - return s -} - // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *AssociateTransitGatewayConnectPeerInput) SetGlobalNetworkId(v string) *AssociateTransitGatewayConnectPeerInput { +func (s *DeleteSiteInput) SetGlobalNetworkId(v string) *DeleteSiteInput { s.GlobalNetworkId = &v return s } -// SetLinkId sets the LinkId field's value. -func (s *AssociateTransitGatewayConnectPeerInput) SetLinkId(v string) *AssociateTransitGatewayConnectPeerInput { - s.LinkId = &v - return s -} - -// SetTransitGatewayConnectPeerArn sets the TransitGatewayConnectPeerArn field's value. -func (s *AssociateTransitGatewayConnectPeerInput) SetTransitGatewayConnectPeerArn(v string) *AssociateTransitGatewayConnectPeerInput { - s.TransitGatewayConnectPeerArn = &v +// SetSiteId sets the SiteId field's value. +func (s *DeleteSiteInput) SetSiteId(v string) *DeleteSiteInput { + s.SiteId = &v return s } -type AssociateTransitGatewayConnectPeerOutput struct { +type DeleteSiteOutput struct { _ struct{} `type:"structure"` - // The transit gateway Connect peer association. - TransitGatewayConnectPeerAssociation *TransitGatewayConnectPeerAssociation `type:"structure"` + // Information about the site. + Site *Site `type:"structure"` } // String returns the string representation. @@ -4335,7 +6794,7 @@ type AssociateTransitGatewayConnectPeerOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateTransitGatewayConnectPeerOutput) String() string { +func (s DeleteSiteOutput) String() string { return awsutil.Prettify(s) } @@ -4344,25 +6803,28 @@ func (s AssociateTransitGatewayConnectPeerOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociateTransitGatewayConnectPeerOutput) GoString() string { +func (s DeleteSiteOutput) GoString() string { return s.String() } -// SetTransitGatewayConnectPeerAssociation sets the TransitGatewayConnectPeerAssociation field's value. -func (s *AssociateTransitGatewayConnectPeerOutput) SetTransitGatewayConnectPeerAssociation(v *TransitGatewayConnectPeerAssociation) *AssociateTransitGatewayConnectPeerOutput { - s.TransitGatewayConnectPeerAssociation = v +// SetSite sets the Site field's value. +func (s *DeleteSiteOutput) SetSite(v *Site) *DeleteSiteOutput { + s.Site = v return s } -// Describes bandwidth information. -type Bandwidth struct { - _ struct{} `type:"structure"` +type DeregisterTransitGatewayInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // Download speed in Mbps. - DownloadSpeed *int64 `type:"integer"` + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // Upload speed in Mbps. - UploadSpeed *int64 `type:"integer"` + // The Amazon Resource Name (ARN) of the transit gateway. + // + // TransitGatewayArn is a required field + TransitGatewayArn *string `location:"uri" locationName:"transitGatewayArn" type:"string" required:"true"` } // String returns the string representation. @@ -4370,7 +6832,7 @@ type Bandwidth struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Bandwidth) String() string { +func (s DeregisterTransitGatewayInput) String() string { return awsutil.Prettify(s) } @@ -4379,39 +6841,49 @@ func (s Bandwidth) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Bandwidth) GoString() string { +func (s DeregisterTransitGatewayInput) GoString() string { return s.String() } -// SetDownloadSpeed sets the DownloadSpeed field's value. -func (s *Bandwidth) SetDownloadSpeed(v int64) *Bandwidth { - s.DownloadSpeed = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeregisterTransitGatewayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeregisterTransitGatewayInput"} + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + if s.TransitGatewayArn == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayArn")) + } + if s.TransitGatewayArn != nil && len(*s.TransitGatewayArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TransitGatewayArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetUploadSpeed sets the UploadSpeed field's value. -func (s *Bandwidth) SetUploadSpeed(v int64) *Bandwidth { - s.UploadSpeed = &v +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *DeregisterTransitGatewayInput) SetGlobalNetworkId(v string) *DeregisterTransitGatewayInput { + s.GlobalNetworkId = &v return s } -// There was a conflict processing the request. Updating or deleting the resource -// can cause an inconsistent state. -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` +// SetTransitGatewayArn sets the TransitGatewayArn field's value. +func (s *DeregisterTransitGatewayInput) SetTransitGatewayArn(v string) *DeregisterTransitGatewayInput { + s.TransitGatewayArn = &v + return s +} - // The ID of the resource. - // - // ResourceId is a required field - ResourceId *string `type:"string" required:"true"` +type DeregisterTransitGatewayOutput struct { + _ struct{} `type:"structure"` - // The resource type. - // - // ResourceType is a required field - ResourceType *string `type:"string" required:"true"` + // The transit gateway registration information. + TransitGatewayRegistration *TransitGatewayRegistration `type:"structure"` } // String returns the string representation. @@ -4419,7 +6891,7 @@ type ConflictException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConflictException) String() string { +func (s DeregisterTransitGatewayOutput) String() string { return awsutil.Prettify(s) } @@ -4428,84 +6900,27 @@ func (s ConflictException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConflictException) GoString() string { +func (s DeregisterTransitGatewayOutput) GoString() string { return s.String() } -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" -} - -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil -} - -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID -} - -// Describes a connection. -type Connection struct { - _ struct{} `type:"structure"` - - // The ID of the second device in the connection. - ConnectedDeviceId *string `type:"string"` - - // The ID of the link for the second device in the connection. - ConnectedLinkId *string `type:"string"` - - // The Amazon Resource Name (ARN) of the connection. - ConnectionArn *string `type:"string"` - - // The ID of the connection. - ConnectionId *string `type:"string"` - - // The date and time that the connection was created. - CreatedAt *time.Time `type:"timestamp"` - - // The description of the connection. - Description *string `type:"string"` - - // The ID of the first device in the connection. - DeviceId *string `type:"string"` +// SetTransitGatewayRegistration sets the TransitGatewayRegistration field's value. +func (s *DeregisterTransitGatewayOutput) SetTransitGatewayRegistration(v *TransitGatewayRegistration) *DeregisterTransitGatewayOutput { + s.TransitGatewayRegistration = v + return s +} - // The ID of the global network. - GlobalNetworkId *string `type:"string"` +type DescribeGlobalNetworksInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The ID of the link for the first device in the connection. - LinkId *string `type:"string"` + // The IDs of one or more global networks. The maximum is 10. + GlobalNetworkIds []*string `location:"querystring" locationName:"globalNetworkIds" type:"list"` - // The state of the connection. - State *string `type:"string" enum:"ConnectionState"` + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - // The tags for the connection. - Tags []*Tag `type:"list"` + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -4513,7 +6928,7 @@ type Connection struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Connection) String() string { +func (s DescribeGlobalNetworksInput) String() string { return awsutil.Prettify(s) } @@ -4522,107 +6937,130 @@ func (s Connection) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Connection) GoString() string { +func (s DescribeGlobalNetworksInput) GoString() string { return s.String() } -// SetConnectedDeviceId sets the ConnectedDeviceId field's value. -func (s *Connection) SetConnectedDeviceId(v string) *Connection { - s.ConnectedDeviceId = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeGlobalNetworksInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeGlobalNetworksInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } -// SetConnectedLinkId sets the ConnectedLinkId field's value. -func (s *Connection) SetConnectedLinkId(v string) *Connection { - s.ConnectedLinkId = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetConnectionArn sets the ConnectionArn field's value. -func (s *Connection) SetConnectionArn(v string) *Connection { - s.ConnectionArn = &v +// SetGlobalNetworkIds sets the GlobalNetworkIds field's value. +func (s *DescribeGlobalNetworksInput) SetGlobalNetworkIds(v []*string) *DescribeGlobalNetworksInput { + s.GlobalNetworkIds = v return s } -// SetConnectionId sets the ConnectionId field's value. -func (s *Connection) SetConnectionId(v string) *Connection { - s.ConnectionId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeGlobalNetworksInput) SetMaxResults(v int64) *DescribeGlobalNetworksInput { + s.MaxResults = &v return s } -// SetCreatedAt sets the CreatedAt field's value. -func (s *Connection) SetCreatedAt(v time.Time) *Connection { - s.CreatedAt = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeGlobalNetworksInput) SetNextToken(v string) *DescribeGlobalNetworksInput { + s.NextToken = &v return s } -// SetDescription sets the Description field's value. -func (s *Connection) SetDescription(v string) *Connection { - s.Description = &v - return s -} +type DescribeGlobalNetworksOutput struct { + _ struct{} `type:"structure"` -// SetDeviceId sets the DeviceId field's value. -func (s *Connection) SetDeviceId(v string) *Connection { - s.DeviceId = &v - return s + // Information about the global networks. + GlobalNetworks []*GlobalNetwork `type:"list"` + + // The token for the next page of results. + NextToken *string `type:"string"` } -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *Connection) SetGlobalNetworkId(v string) *Connection { - s.GlobalNetworkId = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeGlobalNetworksOutput) String() string { + return awsutil.Prettify(s) } -// SetLinkId sets the LinkId field's value. -func (s *Connection) SetLinkId(v string) *Connection { - s.LinkId = &v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeGlobalNetworksOutput) GoString() string { + return s.String() } -// SetState sets the State field's value. -func (s *Connection) SetState(v string) *Connection { - s.State = &v +// SetGlobalNetworks sets the GlobalNetworks field's value. +func (s *DescribeGlobalNetworksOutput) SetGlobalNetworks(v []*GlobalNetwork) *DescribeGlobalNetworksOutput { + s.GlobalNetworks = v return s } -// SetTags sets the Tags field's value. -func (s *Connection) SetTags(v []*Tag) *Connection { - s.Tags = v +// SetNextToken sets the NextToken field's value. +func (s *DescribeGlobalNetworksOutput) SetNextToken(v string) *DescribeGlobalNetworksOutput { + s.NextToken = &v return s } -type CreateConnectionInput struct { +// Describes a device. +type Device struct { _ struct{} `type:"structure"` - // The ID of the second device in the connection. - // - // ConnectedDeviceId is a required field - ConnectedDeviceId *string `type:"string" required:"true"` + // The Amazon Web Services location of the device. + AWSLocation *AWSLocation `type:"structure"` - // The ID of the link for the second device. - ConnectedLinkId *string `type:"string"` + // The date and time that the site was created. + CreatedAt *time.Time `type:"timestamp"` - // A description of the connection. - // - // Length Constraints: Maximum length of 256 characters. + // The description of the device. Description *string `type:"string"` - // The ID of the first device in the connection. - // - // DeviceId is a required field - DeviceId *string `type:"string" required:"true"` + // The Amazon Resource Name (ARN) of the device. + DeviceArn *string `type:"string"` + + // The ID of the device. + DeviceId *string `type:"string"` // The ID of the global network. + GlobalNetworkId *string `type:"string"` + + // The site location. // - // GlobalNetworkId is a required field - GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + // Location is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Device's + // String and GoString methods. + Location *Location `type:"structure" sensitive:"true"` - // The ID of the link for the first device. - LinkId *string `type:"string"` + // The device model. + Model *string `type:"string"` - // The tags to apply to the resource during creation. + // The device serial number. + SerialNumber *string `type:"string"` + + // The site ID. + SiteId *string `type:"string"` + + // The device state. + State *string `type:"string" enum:"DeviceState"` + + // The tags for the device. Tags []*Tag `type:"list"` + + // The device type. + Type *string `type:"string"` + + // The device vendor. + Vendor *string `type:"string"` } // String returns the string representation. @@ -4630,7 +7068,7 @@ type CreateConnectionInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateConnectionInput) String() string { +func (s Device) String() string { return awsutil.Prettify(s) } @@ -4639,151 +7077,106 @@ func (s CreateConnectionInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateConnectionInput) 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 *CreateConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"} - if s.ConnectedDeviceId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectedDeviceId")) - } - if s.DeviceId == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceId")) - } - if s.GlobalNetworkId == nil { - invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) - } - if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetConnectedDeviceId sets the ConnectedDeviceId field's value. -func (s *CreateConnectionInput) SetConnectedDeviceId(v string) *CreateConnectionInput { - s.ConnectedDeviceId = &v +// SetAWSLocation sets the AWSLocation field's value. +func (s *Device) SetAWSLocation(v *AWSLocation) *Device { + s.AWSLocation = v return s } -// SetConnectedLinkId sets the ConnectedLinkId field's value. -func (s *CreateConnectionInput) SetConnectedLinkId(v string) *CreateConnectionInput { - s.ConnectedLinkId = &v +// SetCreatedAt sets the CreatedAt field's value. +func (s *Device) SetCreatedAt(v time.Time) *Device { + s.CreatedAt = &v return s } // SetDescription sets the Description field's value. -func (s *CreateConnectionInput) SetDescription(v string) *CreateConnectionInput { +func (s *Device) SetDescription(v string) *Device { s.Description = &v return s } +// SetDeviceArn sets the DeviceArn field's value. +func (s *Device) SetDeviceArn(v string) *Device { + s.DeviceArn = &v + return s +} + // SetDeviceId sets the DeviceId field's value. -func (s *CreateConnectionInput) SetDeviceId(v string) *CreateConnectionInput { +func (s *Device) SetDeviceId(v string) *Device { s.DeviceId = &v return s } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *CreateConnectionInput) SetGlobalNetworkId(v string) *CreateConnectionInput { +func (s *Device) SetGlobalNetworkId(v string) *Device { s.GlobalNetworkId = &v return s } -// SetLinkId sets the LinkId field's value. -func (s *CreateConnectionInput) SetLinkId(v string) *CreateConnectionInput { - s.LinkId = &v +// SetLocation sets the Location field's value. +func (s *Device) SetLocation(v *Location) *Device { + s.Location = v return s } -// SetTags sets the Tags field's value. -func (s *CreateConnectionInput) SetTags(v []*Tag) *CreateConnectionInput { - s.Tags = v +// SetModel sets the Model field's value. +func (s *Device) SetModel(v string) *Device { + s.Model = &v return s } -type CreateConnectionOutput struct { - _ struct{} `type:"structure"` +// SetSerialNumber sets the SerialNumber field's value. +func (s *Device) SetSerialNumber(v string) *Device { + s.SerialNumber = &v + return s +} - // Information about the connection. - Connection *Connection `type:"structure"` +// SetSiteId sets the SiteId field's value. +func (s *Device) SetSiteId(v string) *Device { + s.SiteId = &v + return s } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateConnectionOutput) String() string { - return awsutil.Prettify(s) +// SetState sets the State field's value. +func (s *Device) SetState(v string) *Device { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Device) SetTags(v []*Tag) *Device { + s.Tags = v + return s } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateConnectionOutput) GoString() string { - return s.String() +// SetType sets the Type field's value. +func (s *Device) SetType(v string) *Device { + s.Type = &v + return s } -// SetConnection sets the Connection field's value. -func (s *CreateConnectionOutput) SetConnection(v *Connection) *CreateConnectionOutput { - s.Connection = v +// SetVendor sets the Vendor field's value. +func (s *Device) SetVendor(v string) *Device { + s.Vendor = &v return s } -type CreateDeviceInput struct { - _ struct{} `type:"structure"` - - // The AWS location of the device. - AWSLocation *AWSLocation `type:"structure"` +type DisassociateCustomerGatewayInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // A description of the device. + // The Amazon Resource Name (ARN) of the customer gateway. // - // Length Constraints: Maximum length of 256 characters. - Description *string `type:"string"` + // CustomerGatewayArn is a required field + CustomerGatewayArn *string `location:"uri" locationName:"customerGatewayArn" type:"string" required:"true"` // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - - // The location of the device. - // - // Location is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateDeviceInput's - // String and GoString methods. - Location *Location `type:"structure" sensitive:"true"` - - // The model of the device. - // - // Length Constraints: Maximum length of 128 characters. - Model *string `type:"string"` - - // The serial number of the device. - // - // Length Constraints: Maximum length of 128 characters. - SerialNumber *string `type:"string"` - - // The ID of the site. - SiteId *string `type:"string"` - - // The tags to apply to the resource during creation. - Tags []*Tag `type:"list"` - - // The type of the device. - Type *string `type:"string"` - - // The vendor of the device. - // - // Length Constraints: Maximum length of 128 characters. - Vendor *string `type:"string"` } // String returns the string representation. @@ -4791,7 +7184,7 @@ type CreateDeviceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateDeviceInput) String() string { +func (s DisassociateCustomerGatewayInput) String() string { return awsutil.Prettify(s) } @@ -4800,13 +7193,19 @@ func (s CreateDeviceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateDeviceInput) GoString() string { +func (s DisassociateCustomerGatewayInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDeviceInput"} +func (s *DisassociateCustomerGatewayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateCustomerGatewayInput"} + if s.CustomerGatewayArn == nil { + invalidParams.Add(request.NewErrParamRequired("CustomerGatewayArn")) + } + if s.CustomerGatewayArn != nil && len(*s.CustomerGatewayArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomerGatewayArn", 1)) + } if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } @@ -4820,71 +7219,23 @@ func (s *CreateDeviceInput) Validate() error { return nil } -// SetAWSLocation sets the AWSLocation field's value. -func (s *CreateDeviceInput) SetAWSLocation(v *AWSLocation) *CreateDeviceInput { - s.AWSLocation = v - return s -} - -// SetDescription sets the Description field's value. -func (s *CreateDeviceInput) SetDescription(v string) *CreateDeviceInput { - s.Description = &v +// SetCustomerGatewayArn sets the CustomerGatewayArn field's value. +func (s *DisassociateCustomerGatewayInput) SetCustomerGatewayArn(v string) *DisassociateCustomerGatewayInput { + s.CustomerGatewayArn = &v return s } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *CreateDeviceInput) SetGlobalNetworkId(v string) *CreateDeviceInput { +func (s *DisassociateCustomerGatewayInput) SetGlobalNetworkId(v string) *DisassociateCustomerGatewayInput { s.GlobalNetworkId = &v return s } -// SetLocation sets the Location field's value. -func (s *CreateDeviceInput) SetLocation(v *Location) *CreateDeviceInput { - s.Location = v - return s -} - -// SetModel sets the Model field's value. -func (s *CreateDeviceInput) SetModel(v string) *CreateDeviceInput { - s.Model = &v - return s -} - -// SetSerialNumber sets the SerialNumber field's value. -func (s *CreateDeviceInput) SetSerialNumber(v string) *CreateDeviceInput { - s.SerialNumber = &v - return s -} - -// SetSiteId sets the SiteId field's value. -func (s *CreateDeviceInput) SetSiteId(v string) *CreateDeviceInput { - s.SiteId = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateDeviceInput) SetTags(v []*Tag) *CreateDeviceInput { - s.Tags = v - return s -} - -// SetType sets the Type field's value. -func (s *CreateDeviceInput) SetType(v string) *CreateDeviceInput { - s.Type = &v - return s -} - -// SetVendor sets the Vendor field's value. -func (s *CreateDeviceInput) SetVendor(v string) *CreateDeviceInput { - s.Vendor = &v - return s -} - -type CreateDeviceOutput struct { +type DisassociateCustomerGatewayOutput struct { _ struct{} `type:"structure"` - // Information about the device. - Device *Device `type:"structure"` + // Information about the customer gateway association. + CustomerGatewayAssociation *CustomerGatewayAssociation `type:"structure"` } // String returns the string representation. @@ -4892,7 +7243,7 @@ type CreateDeviceOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateDeviceOutput) String() string { +func (s DisassociateCustomerGatewayOutput) String() string { return awsutil.Prettify(s) } @@ -4901,26 +7252,33 @@ func (s CreateDeviceOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateDeviceOutput) GoString() string { +func (s DisassociateCustomerGatewayOutput) GoString() string { return s.String() } -// SetDevice sets the Device field's value. -func (s *CreateDeviceOutput) SetDevice(v *Device) *CreateDeviceOutput { - s.Device = v +// SetCustomerGatewayAssociation sets the CustomerGatewayAssociation field's value. +func (s *DisassociateCustomerGatewayOutput) SetCustomerGatewayAssociation(v *CustomerGatewayAssociation) *DisassociateCustomerGatewayOutput { + s.CustomerGatewayAssociation = v return s } -type CreateGlobalNetworkInput struct { - _ struct{} `type:"structure"` +type DisassociateLinkInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // A description of the global network. + // The ID of the device. // - // Length Constraints: Maximum length of 256 characters. - Description *string `type:"string"` + // DeviceId is a required field + DeviceId *string `location:"querystring" locationName:"deviceId" type:"string" required:"true"` - // The tags to apply to the resource during creation. - Tags []*Tag `type:"list"` + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The ID of the link. + // + // LinkId is a required field + LinkId *string `location:"querystring" locationName:"linkId" type:"string" required:"true"` } // String returns the string representation. @@ -4928,7 +7286,7 @@ type CreateGlobalNetworkInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateGlobalNetworkInput) String() string { +func (s DisassociateLinkInput) String() string { return awsutil.Prettify(s) } @@ -4937,27 +7295,55 @@ func (s CreateGlobalNetworkInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateGlobalNetworkInput) GoString() string { +func (s DisassociateLinkInput) GoString() string { return s.String() } -// SetDescription sets the Description field's value. -func (s *CreateGlobalNetworkInput) SetDescription(v string) *CreateGlobalNetworkInput { - s.Description = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateLinkInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateLinkInput"} + if s.DeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceId")) + } + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + if s.LinkId == nil { + invalidParams.Add(request.NewErrParamRequired("LinkId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceId sets the DeviceId field's value. +func (s *DisassociateLinkInput) SetDeviceId(v string) *DisassociateLinkInput { + s.DeviceId = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateGlobalNetworkInput) SetTags(v []*Tag) *CreateGlobalNetworkInput { - s.Tags = v +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *DisassociateLinkInput) SetGlobalNetworkId(v string) *DisassociateLinkInput { + s.GlobalNetworkId = &v return s } -type CreateGlobalNetworkOutput struct { +// SetLinkId sets the LinkId field's value. +func (s *DisassociateLinkInput) SetLinkId(v string) *DisassociateLinkInput { + s.LinkId = &v + return s +} + +type DisassociateLinkOutput struct { _ struct{} `type:"structure"` - // Information about the global network object. - GlobalNetwork *GlobalNetwork `type:"structure"` + // Information about the link association. + LinkAssociation *LinkAssociation `type:"structure"` } // String returns the string representation. @@ -4965,7 +7351,7 @@ type CreateGlobalNetworkOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateGlobalNetworkOutput) String() string { +func (s DisassociateLinkOutput) String() string { return awsutil.Prettify(s) } @@ -4974,55 +7360,28 @@ func (s CreateGlobalNetworkOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateGlobalNetworkOutput) GoString() string { +func (s DisassociateLinkOutput) GoString() string { return s.String() } -// SetGlobalNetwork sets the GlobalNetwork field's value. -func (s *CreateGlobalNetworkOutput) SetGlobalNetwork(v *GlobalNetwork) *CreateGlobalNetworkOutput { - s.GlobalNetwork = v +// SetLinkAssociation sets the LinkAssociation field's value. +func (s *DisassociateLinkOutput) SetLinkAssociation(v *LinkAssociation) *DisassociateLinkOutput { + s.LinkAssociation = v return s } -type CreateLinkInput struct { - _ struct{} `type:"structure"` - - // The upload speed and download speed in Mbps. - // - // Bandwidth is a required field - Bandwidth *Bandwidth `type:"structure" required:"true"` - - // A description of the link. - // - // Length Constraints: Maximum length of 256 characters. - Description *string `type:"string"` +type DisassociateTransitGatewayConnectPeerInput struct { + _ struct{} `type:"structure" nopayload:"true"` // The ID of the global network. // - // GlobalNetworkId is a required field - GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - - // The provider of the link. - // - // Constraints: Cannot include the following characters: | \ ^ - // - // Length Constraints: Maximum length of 128 characters. - Provider *string `type:"string"` - - // The ID of the site. - // - // SiteId is a required field - SiteId *string `type:"string" required:"true"` - - // The tags to apply to the resource during creation. - Tags []*Tag `type:"list"` - - // The type of the link. - // - // Constraints: Cannot include the following characters: | \ ^ + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the transit gateway Connect peer. // - // Length Constraints: Maximum length of 128 characters. - Type *string `type:"string"` + // TransitGatewayConnectPeerArn is a required field + TransitGatewayConnectPeerArn *string `location:"uri" locationName:"transitGatewayConnectPeerArn" type:"string" required:"true"` } // String returns the string representation. @@ -5030,7 +7389,7 @@ type CreateLinkInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateLinkInput) String() string { +func (s DisassociateTransitGatewayConnectPeerInput) String() string { return awsutil.Prettify(s) } @@ -5039,24 +7398,24 @@ func (s CreateLinkInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateLinkInput) GoString() string { +func (s DisassociateTransitGatewayConnectPeerInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLinkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLinkInput"} - if s.Bandwidth == nil { - invalidParams.Add(request.NewErrParamRequired("Bandwidth")) - } +func (s *DisassociateTransitGatewayConnectPeerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateTransitGatewayConnectPeerInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } - if s.SiteId == nil { - invalidParams.Add(request.NewErrParamRequired("SiteId")) + if s.TransitGatewayConnectPeerArn == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayConnectPeerArn")) + } + if s.TransitGatewayConnectPeerArn != nil && len(*s.TransitGatewayConnectPeerArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TransitGatewayConnectPeerArn", 1)) } if invalidParams.Len() > 0 { @@ -5065,53 +7424,23 @@ func (s *CreateLinkInput) Validate() error { return nil } -// SetBandwidth sets the Bandwidth field's value. -func (s *CreateLinkInput) SetBandwidth(v *Bandwidth) *CreateLinkInput { - s.Bandwidth = v - return s -} - -// SetDescription sets the Description field's value. -func (s *CreateLinkInput) SetDescription(v string) *CreateLinkInput { - s.Description = &v - return s -} - // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *CreateLinkInput) SetGlobalNetworkId(v string) *CreateLinkInput { +func (s *DisassociateTransitGatewayConnectPeerInput) SetGlobalNetworkId(v string) *DisassociateTransitGatewayConnectPeerInput { s.GlobalNetworkId = &v return s } -// SetProvider sets the Provider field's value. -func (s *CreateLinkInput) SetProvider(v string) *CreateLinkInput { - s.Provider = &v - return s -} - -// SetSiteId sets the SiteId field's value. -func (s *CreateLinkInput) SetSiteId(v string) *CreateLinkInput { - s.SiteId = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateLinkInput) SetTags(v []*Tag) *CreateLinkInput { - s.Tags = v - return s -} - -// SetType sets the Type field's value. -func (s *CreateLinkInput) SetType(v string) *CreateLinkInput { - s.Type = &v +// SetTransitGatewayConnectPeerArn sets the TransitGatewayConnectPeerArn field's value. +func (s *DisassociateTransitGatewayConnectPeerInput) SetTransitGatewayConnectPeerArn(v string) *DisassociateTransitGatewayConnectPeerInput { + s.TransitGatewayConnectPeerArn = &v return s } -type CreateLinkOutput struct { +type DisassociateTransitGatewayConnectPeerOutput struct { _ struct{} `type:"structure"` - // Information about the link. - Link *Link `type:"structure"` + // The transit gateway Connect peer association. + TransitGatewayConnectPeerAssociation *TransitGatewayConnectPeerAssociation `type:"structure"` } // String returns the string representation. @@ -5119,7 +7448,7 @@ type CreateLinkOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateLinkOutput) String() string { +func (s DisassociateTransitGatewayConnectPeerOutput) String() string { return awsutil.Prettify(s) } @@ -5128,46 +7457,35 @@ func (s CreateLinkOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateLinkOutput) GoString() string { +func (s DisassociateTransitGatewayConnectPeerOutput) GoString() string { return s.String() } -// SetLink sets the Link field's value. -func (s *CreateLinkOutput) SetLink(v *Link) *CreateLinkOutput { - s.Link = v +// SetTransitGatewayConnectPeerAssociation sets the TransitGatewayConnectPeerAssociation field's value. +func (s *DisassociateTransitGatewayConnectPeerOutput) SetTransitGatewayConnectPeerAssociation(v *TransitGatewayConnectPeerAssociation) *DisassociateTransitGatewayConnectPeerOutput { + s.TransitGatewayConnectPeerAssociation = v return s } -type CreateSiteInput struct { - _ struct{} `type:"structure"` +type GetConnectionsInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // A description of your site. - // - // Length Constraints: Maximum length of 256 characters. - Description *string `type:"string"` + // One or more connection IDs. + ConnectionIds []*string `location:"querystring" locationName:"connectionIds" type:"list"` + + // The ID of the device. + DeviceId *string `location:"querystring" locationName:"deviceId" type:"string"` // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // The site location. This information is used for visualization in the Network - // Manager console. If you specify the address, the latitude and longitude are - // automatically calculated. - // - // * Address: The physical address of the site. - // - // * Latitude: The latitude of the site. - // - // * Longitude: The longitude of the site. - // - // Location is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateSiteInput's - // String and GoString methods. - Location *Location `type:"structure" sensitive:"true"` + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - // The tags to apply to the resource during creation. - Tags []*Tag `type:"list"` + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -5175,7 +7493,7 @@ type CreateSiteInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSiteInput) String() string { +func (s GetConnectionsInput) String() string { return awsutil.Prettify(s) } @@ -5184,19 +7502,22 @@ func (s CreateSiteInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSiteInput) GoString() string { +func (s GetConnectionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSiteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSiteInput"} +func (s *GetConnectionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetConnectionsInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5204,35 +7525,44 @@ func (s *CreateSiteInput) Validate() error { return nil } -// SetDescription sets the Description field's value. -func (s *CreateSiteInput) SetDescription(v string) *CreateSiteInput { - s.Description = &v +// SetConnectionIds sets the ConnectionIds field's value. +func (s *GetConnectionsInput) SetConnectionIds(v []*string) *GetConnectionsInput { + s.ConnectionIds = v + return s +} + +// SetDeviceId sets the DeviceId field's value. +func (s *GetConnectionsInput) SetDeviceId(v string) *GetConnectionsInput { + s.DeviceId = &v return s } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *CreateSiteInput) SetGlobalNetworkId(v string) *CreateSiteInput { +func (s *GetConnectionsInput) SetGlobalNetworkId(v string) *GetConnectionsInput { s.GlobalNetworkId = &v return s } -// SetLocation sets the Location field's value. -func (s *CreateSiteInput) SetLocation(v *Location) *CreateSiteInput { - s.Location = v +// SetMaxResults sets the MaxResults field's value. +func (s *GetConnectionsInput) SetMaxResults(v int64) *GetConnectionsInput { + s.MaxResults = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateSiteInput) SetTags(v []*Tag) *CreateSiteInput { - s.Tags = v +// SetNextToken sets the NextToken field's value. +func (s *GetConnectionsInput) SetNextToken(v string) *GetConnectionsInput { + s.NextToken = &v return s } -type CreateSiteOutput struct { +type GetConnectionsOutput struct { _ struct{} `type:"structure"` - // Information about the site. - Site *Site `type:"structure"` + // Information about the connections. + Connections []*Connection `type:"list"` + + // The token to use for the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -5240,7 +7570,7 @@ type CreateSiteOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSiteOutput) String() string { +func (s GetConnectionsOutput) String() string { return awsutil.Prettify(s) } @@ -5249,34 +7579,39 @@ func (s CreateSiteOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSiteOutput) GoString() string { +func (s GetConnectionsOutput) GoString() string { return s.String() } -// SetSite sets the Site field's value. -func (s *CreateSiteOutput) SetSite(v *Site) *CreateSiteOutput { - s.Site = v +// SetConnections sets the Connections field's value. +func (s *GetConnectionsOutput) SetConnections(v []*Connection) *GetConnectionsOutput { + s.Connections = v return s } -// Describes the association between a customer gateway, a device, and a link. -type CustomerGatewayAssociation struct { - _ struct{} `type:"structure"` +// SetNextToken sets the NextToken field's value. +func (s *GetConnectionsOutput) SetNextToken(v string) *GetConnectionsOutput { + s.NextToken = &v + return s +} - // The Amazon Resource Name (ARN) of the customer gateway. - CustomerGatewayArn *string `type:"string"` +type GetCustomerGatewayAssociationsInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The ID of the device. - DeviceId *string `type:"string"` + // One or more customer gateway Amazon Resource Names (ARNs). The maximum is + // 10. + CustomerGatewayArns []*string `location:"querystring" locationName:"customerGatewayArns" type:"list"` // The ID of the global network. - GlobalNetworkId *string `type:"string"` + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // The ID of the link. - LinkId *string `type:"string"` + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - // The association state. - State *string `type:"string" enum:"CustomerGatewayAssociationState"` + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -5284,7 +7619,7 @@ type CustomerGatewayAssociation struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CustomerGatewayAssociation) String() string { +func (s GetCustomerGatewayAssociationsInput) String() string { return awsutil.Prettify(s) } @@ -5293,52 +7628,112 @@ func (s CustomerGatewayAssociation) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CustomerGatewayAssociation) GoString() string { +func (s GetCustomerGatewayAssociationsInput) GoString() string { return s.String() } -// SetCustomerGatewayArn sets the CustomerGatewayArn field's value. -func (s *CustomerGatewayAssociation) SetCustomerGatewayArn(v string) *CustomerGatewayAssociation { - s.CustomerGatewayArn = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCustomerGatewayAssociationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCustomerGatewayAssociationsInput"} + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCustomerGatewayArns sets the CustomerGatewayArns field's value. +func (s *GetCustomerGatewayAssociationsInput) SetCustomerGatewayArns(v []*string) *GetCustomerGatewayAssociationsInput { + s.CustomerGatewayArns = v return s } -// SetDeviceId sets the DeviceId field's value. -func (s *CustomerGatewayAssociation) SetDeviceId(v string) *CustomerGatewayAssociation { - s.DeviceId = &v +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *GetCustomerGatewayAssociationsInput) SetGlobalNetworkId(v string) *GetCustomerGatewayAssociationsInput { + s.GlobalNetworkId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetCustomerGatewayAssociationsInput) SetMaxResults(v int64) *GetCustomerGatewayAssociationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetCustomerGatewayAssociationsInput) SetNextToken(v string) *GetCustomerGatewayAssociationsInput { + s.NextToken = &v return s } -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *CustomerGatewayAssociation) SetGlobalNetworkId(v string) *CustomerGatewayAssociation { - s.GlobalNetworkId = &v - return s +type GetCustomerGatewayAssociationsOutput struct { + _ struct{} `type:"structure"` + + // The customer gateway associations. + CustomerGatewayAssociations []*CustomerGatewayAssociation `type:"list"` + + // The token for the next page of results. + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetCustomerGatewayAssociationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetCustomerGatewayAssociationsOutput) GoString() string { + return s.String() } -// SetLinkId sets the LinkId field's value. -func (s *CustomerGatewayAssociation) SetLinkId(v string) *CustomerGatewayAssociation { - s.LinkId = &v +// SetCustomerGatewayAssociations sets the CustomerGatewayAssociations field's value. +func (s *GetCustomerGatewayAssociationsOutput) SetCustomerGatewayAssociations(v []*CustomerGatewayAssociation) *GetCustomerGatewayAssociationsOutput { + s.CustomerGatewayAssociations = v return s } -// SetState sets the State field's value. -func (s *CustomerGatewayAssociation) SetState(v string) *CustomerGatewayAssociation { - s.State = &v +// SetNextToken sets the NextToken field's value. +func (s *GetCustomerGatewayAssociationsOutput) SetNextToken(v string) *GetCustomerGatewayAssociationsOutput { + s.NextToken = &v return s } -type DeleteConnectionInput struct { +type GetDevicesInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the connection. - // - // ConnectionId is a required field - ConnectionId *string `location:"uri" locationName:"connectionId" type:"string" required:"true"` + // One or more device IDs. The maximum is 10. + DeviceIds []*string `location:"querystring" locationName:"deviceIds" type:"list"` // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // The ID of the site. + SiteId *string `location:"querystring" locationName:"siteId" type:"string"` } // String returns the string representation. @@ -5346,7 +7741,7 @@ type DeleteConnectionInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteConnectionInput) String() string { +func (s GetDevicesInput) String() string { return awsutil.Prettify(s) } @@ -5355,25 +7750,22 @@ func (s DeleteConnectionInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteConnectionInput) GoString() string { +func (s GetDevicesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - if s.ConnectionId != nil && len(*s.ConnectionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConnectionId", 1)) - } +func (s *GetDevicesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDevicesInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5381,23 +7773,44 @@ func (s *DeleteConnectionInput) Validate() error { return nil } -// SetConnectionId sets the ConnectionId field's value. -func (s *DeleteConnectionInput) SetConnectionId(v string) *DeleteConnectionInput { - s.ConnectionId = &v +// SetDeviceIds sets the DeviceIds field's value. +func (s *GetDevicesInput) SetDeviceIds(v []*string) *GetDevicesInput { + s.DeviceIds = v return s } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *DeleteConnectionInput) SetGlobalNetworkId(v string) *DeleteConnectionInput { +func (s *GetDevicesInput) SetGlobalNetworkId(v string) *GetDevicesInput { s.GlobalNetworkId = &v return s } -type DeleteConnectionOutput struct { +// SetMaxResults sets the MaxResults field's value. +func (s *GetDevicesInput) SetMaxResults(v int64) *GetDevicesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetDevicesInput) SetNextToken(v string) *GetDevicesInput { + s.NextToken = &v + return s +} + +// SetSiteId sets the SiteId field's value. +func (s *GetDevicesInput) SetSiteId(v string) *GetDevicesInput { + s.SiteId = &v + return s +} + +type GetDevicesOutput struct { _ struct{} `type:"structure"` - // Information about the connection. - Connection *Connection `type:"structure"` + // The devices. + Devices []*Device `type:"list"` + + // The token for the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -5405,7 +7818,7 @@ type DeleteConnectionOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteConnectionOutput) String() string { +func (s GetDevicesOutput) String() string { return awsutil.Prettify(s) } @@ -5414,28 +7827,41 @@ func (s DeleteConnectionOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteConnectionOutput) GoString() string { +func (s GetDevicesOutput) GoString() string { return s.String() } -// SetConnection sets the Connection field's value. -func (s *DeleteConnectionOutput) SetConnection(v *Connection) *DeleteConnectionOutput { - s.Connection = v +// SetDevices sets the Devices field's value. +func (s *GetDevicesOutput) SetDevices(v []*Device) *GetDevicesOutput { + s.Devices = v return s } -type DeleteDeviceInput struct { +// SetNextToken sets the NextToken field's value. +func (s *GetDevicesOutput) SetNextToken(v string) *GetDevicesOutput { + s.NextToken = &v + return s +} + +type GetLinkAssociationsInput struct { _ struct{} `type:"structure" nopayload:"true"` // The ID of the device. - // - // DeviceId is a required field - DeviceId *string `location:"uri" locationName:"deviceId" type:"string" required:"true"` + DeviceId *string `location:"querystring" locationName:"deviceId" type:"string"` // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The ID of the link. + LinkId *string `location:"querystring" locationName:"linkId" type:"string"` + + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -5443,7 +7869,7 @@ type DeleteDeviceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteDeviceInput) String() string { +func (s GetLinkAssociationsInput) String() string { return awsutil.Prettify(s) } @@ -5452,25 +7878,22 @@ func (s DeleteDeviceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteDeviceInput) GoString() string { +func (s GetLinkAssociationsInput) 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.DeviceId == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceId")) - } - if s.DeviceId != nil && len(*s.DeviceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) - } +func (s *GetLinkAssociationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLinkAssociationsInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5479,22 +7902,43 @@ func (s *DeleteDeviceInput) Validate() error { } // SetDeviceId sets the DeviceId field's value. -func (s *DeleteDeviceInput) SetDeviceId(v string) *DeleteDeviceInput { +func (s *GetLinkAssociationsInput) SetDeviceId(v string) *GetLinkAssociationsInput { s.DeviceId = &v return s } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *DeleteDeviceInput) SetGlobalNetworkId(v string) *DeleteDeviceInput { +func (s *GetLinkAssociationsInput) SetGlobalNetworkId(v string) *GetLinkAssociationsInput { s.GlobalNetworkId = &v return s } -type DeleteDeviceOutput struct { +// SetLinkId sets the LinkId field's value. +func (s *GetLinkAssociationsInput) SetLinkId(v string) *GetLinkAssociationsInput { + s.LinkId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetLinkAssociationsInput) SetMaxResults(v int64) *GetLinkAssociationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetLinkAssociationsInput) SetNextToken(v string) *GetLinkAssociationsInput { + s.NextToken = &v + return s +} + +type GetLinkAssociationsOutput struct { _ struct{} `type:"structure"` - // Information about the device. - Device *Device `type:"structure"` + // The link associations. + LinkAssociations []*LinkAssociation `type:"list"` + + // The token for the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -5502,7 +7946,7 @@ type DeleteDeviceOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteDeviceOutput) String() string { +func (s GetLinkAssociationsOutput) String() string { return awsutil.Prettify(s) } @@ -5511,23 +7955,47 @@ func (s DeleteDeviceOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteDeviceOutput) GoString() string { +func (s GetLinkAssociationsOutput) GoString() string { return s.String() } -// SetDevice sets the Device field's value. -func (s *DeleteDeviceOutput) SetDevice(v *Device) *DeleteDeviceOutput { - s.Device = v +// SetLinkAssociations sets the LinkAssociations field's value. +func (s *GetLinkAssociationsOutput) SetLinkAssociations(v []*LinkAssociation) *GetLinkAssociationsOutput { + s.LinkAssociations = v return s } -type DeleteGlobalNetworkInput struct { +// SetNextToken sets the NextToken field's value. +func (s *GetLinkAssociationsOutput) SetNextToken(v string) *GetLinkAssociationsOutput { + s.NextToken = &v + return s +} + +type GetLinksInput struct { _ struct{} `type:"structure" nopayload:"true"` // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // One or more link IDs. The maximum is 10. + LinkIds []*string `location:"querystring" locationName:"linkIds" type:"list"` + + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // The link provider. + Provider *string `location:"querystring" locationName:"provider" type:"string"` + + // The ID of the site. + SiteId *string `location:"querystring" locationName:"siteId" type:"string"` + + // The link type. + Type *string `location:"querystring" locationName:"type" type:"string"` } // String returns the string representation. @@ -5535,7 +8003,7 @@ type DeleteGlobalNetworkInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteGlobalNetworkInput) String() string { +func (s GetLinksInput) String() string { return awsutil.Prettify(s) } @@ -5544,19 +8012,22 @@ func (s DeleteGlobalNetworkInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteGlobalNetworkInput) GoString() string { +func (s GetLinksInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteGlobalNetworkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteGlobalNetworkInput"} +func (s *GetLinksInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLinksInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5564,17 +8035,56 @@ func (s *DeleteGlobalNetworkInput) Validate() error { return nil } -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *DeleteGlobalNetworkInput) SetGlobalNetworkId(v string) *DeleteGlobalNetworkInput { - s.GlobalNetworkId = &v +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *GetLinksInput) SetGlobalNetworkId(v string) *GetLinksInput { + s.GlobalNetworkId = &v + return s +} + +// SetLinkIds sets the LinkIds field's value. +func (s *GetLinksInput) SetLinkIds(v []*string) *GetLinksInput { + s.LinkIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetLinksInput) SetMaxResults(v int64) *GetLinksInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetLinksInput) SetNextToken(v string) *GetLinksInput { + s.NextToken = &v + return s +} + +// SetProvider sets the Provider field's value. +func (s *GetLinksInput) SetProvider(v string) *GetLinksInput { + s.Provider = &v + return s +} + +// SetSiteId sets the SiteId field's value. +func (s *GetLinksInput) SetSiteId(v string) *GetLinksInput { + s.SiteId = &v + return s +} + +// SetType sets the Type field's value. +func (s *GetLinksInput) SetType(v string) *GetLinksInput { + s.Type = &v return s } -type DeleteGlobalNetworkOutput struct { +type GetLinksOutput struct { _ struct{} `type:"structure"` - // Information about the global network. - GlobalNetwork *GlobalNetwork `type:"structure"` + // The links. + Links []*Link `type:"list"` + + // The token for the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -5582,7 +8092,7 @@ type DeleteGlobalNetworkOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteGlobalNetworkOutput) String() string { +func (s GetLinksOutput) String() string { return awsutil.Prettify(s) } @@ -5591,17 +8101,23 @@ func (s DeleteGlobalNetworkOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteGlobalNetworkOutput) GoString() string { +func (s GetLinksOutput) GoString() string { return s.String() } -// SetGlobalNetwork sets the GlobalNetwork field's value. -func (s *DeleteGlobalNetworkOutput) SetGlobalNetwork(v *GlobalNetwork) *DeleteGlobalNetworkOutput { - s.GlobalNetwork = v +// SetLinks sets the Links field's value. +func (s *GetLinksOutput) SetLinks(v []*Link) *GetLinksOutput { + s.Links = v return s } -type DeleteLinkInput struct { +// SetNextToken sets the NextToken field's value. +func (s *GetLinksOutput) SetNextToken(v string) *GetLinksOutput { + s.NextToken = &v + return s +} + +type GetNetworkResourceCountsInput struct { _ struct{} `type:"structure" nopayload:"true"` // The ID of the global network. @@ -5609,10 +8125,46 @@ type DeleteLinkInput struct { // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // The ID of the link. + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // The resource type. // - // LinkId is a required field - LinkId *string `location:"uri" locationName:"linkId" type:"string" required:"true"` + // The following are the supported resource types for Direct Connect: + // + // * dxcon + // + // * dx-gateway + // + // * dx-vif + // + // The following are the supported resource types for Network Manager: + // + // * connection + // + // * device + // + // * link + // + // * site + // + // The following are the supported resource types for Amazon VPC: + // + // * customer-gateway + // + // * transit-gateway + // + // * transit-gateway-attachment + // + // * transit-gateway-connect-peer + // + // * transit-gateway-route-table + // + // * vpn-connection + ResourceType *string `location:"querystring" locationName:"resourceType" type:"string"` } // String returns the string representation. @@ -5620,7 +8172,7 @@ type DeleteLinkInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteLinkInput) String() string { +func (s GetNetworkResourceCountsInput) String() string { return awsutil.Prettify(s) } @@ -5629,24 +8181,21 @@ func (s DeleteLinkInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteLinkInput) GoString() string { +func (s GetNetworkResourceCountsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLinkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLinkInput"} +func (s *GetNetworkResourceCountsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetNetworkResourceCountsInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } - if s.LinkId == nil { - invalidParams.Add(request.NewErrParamRequired("LinkId")) - } - if s.LinkId != nil && len(*s.LinkId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LinkId", 1)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -5656,22 +8205,37 @@ func (s *DeleteLinkInput) Validate() error { } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *DeleteLinkInput) SetGlobalNetworkId(v string) *DeleteLinkInput { +func (s *GetNetworkResourceCountsInput) SetGlobalNetworkId(v string) *GetNetworkResourceCountsInput { s.GlobalNetworkId = &v return s } -// SetLinkId sets the LinkId field's value. -func (s *DeleteLinkInput) SetLinkId(v string) *DeleteLinkInput { - s.LinkId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *GetNetworkResourceCountsInput) SetMaxResults(v int64) *GetNetworkResourceCountsInput { + s.MaxResults = &v return s } -type DeleteLinkOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *GetNetworkResourceCountsInput) SetNextToken(v string) *GetNetworkResourceCountsInput { + s.NextToken = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *GetNetworkResourceCountsInput) SetResourceType(v string) *GetNetworkResourceCountsInput { + s.ResourceType = &v + return s +} + +type GetNetworkResourceCountsOutput struct { _ struct{} `type:"structure"` - // Information about the link. - Link *Link `type:"structure"` + // The count of resources. + NetworkResourceCounts []*NetworkResourceCount `type:"list"` + + // The token for the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -5679,7 +8243,7 @@ type DeleteLinkOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteLinkOutput) String() string { +func (s GetNetworkResourceCountsOutput) String() string { return awsutil.Prettify(s) } @@ -5688,28 +8252,82 @@ func (s DeleteLinkOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteLinkOutput) GoString() string { +func (s GetNetworkResourceCountsOutput) GoString() string { return s.String() } -// SetLink sets the Link field's value. -func (s *DeleteLinkOutput) SetLink(v *Link) *DeleteLinkOutput { - s.Link = v +// SetNetworkResourceCounts sets the NetworkResourceCounts field's value. +func (s *GetNetworkResourceCountsOutput) SetNetworkResourceCounts(v []*NetworkResourceCount) *GetNetworkResourceCountsOutput { + s.NetworkResourceCounts = v return s } -type DeleteSiteInput struct { +// SetNextToken sets the NextToken field's value. +func (s *GetNetworkResourceCountsOutput) SetNextToken(v string) *GetNetworkResourceCountsOutput { + s.NextToken = &v + return s +} + +type GetNetworkResourceRelationshipsInput struct { _ struct{} `type:"structure" nopayload:"true"` + // The Amazon Web Services account ID. + AccountId *string `location:"querystring" locationName:"accountId" type:"string"` + + // The Amazon Web Services Region. + AwsRegion *string `location:"querystring" locationName:"awsRegion" type:"string"` + // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // The ID of the site. + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // The ARN of the registered gateway. + RegisteredGatewayArn *string `location:"querystring" locationName:"registeredGatewayArn" type:"string"` + + // The ARN of the gateway. + ResourceArn *string `location:"querystring" locationName:"resourceArn" type:"string"` + + // The resource type. // - // SiteId is a required field - SiteId *string `location:"uri" locationName:"siteId" type:"string" required:"true"` + // The following are the supported resource types for Direct Connect: + // + // * dxcon + // + // * dx-gateway + // + // * dx-vif + // + // The following are the supported resource types for Network Manager: + // + // * connection + // + // * device + // + // * link + // + // * site + // + // The following are the supported resource types for Amazon VPC: + // + // * customer-gateway + // + // * transit-gateway + // + // * transit-gateway-attachment + // + // * transit-gateway-connect-peer + // + // * transit-gateway-route-table + // + // * vpn-connection + ResourceType *string `location:"querystring" locationName:"resourceType" type:"string"` } // String returns the string representation. @@ -5717,7 +8335,7 @@ type DeleteSiteInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSiteInput) String() string { +func (s GetNetworkResourceRelationshipsInput) String() string { return awsutil.Prettify(s) } @@ -5726,24 +8344,21 @@ func (s DeleteSiteInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSiteInput) GoString() string { +func (s GetNetworkResourceRelationshipsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSiteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSiteInput"} +func (s *GetNetworkResourceRelationshipsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetNetworkResourceRelationshipsInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } - if s.SiteId == nil { - invalidParams.Add(request.NewErrParamRequired("SiteId")) - } - if s.SiteId != nil && len(*s.SiteId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -5752,23 +8367,62 @@ func (s *DeleteSiteInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetNetworkResourceRelationshipsInput) SetAccountId(v string) *GetNetworkResourceRelationshipsInput { + s.AccountId = &v + return s +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *GetNetworkResourceRelationshipsInput) SetAwsRegion(v string) *GetNetworkResourceRelationshipsInput { + s.AwsRegion = &v + return s +} + // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *DeleteSiteInput) SetGlobalNetworkId(v string) *DeleteSiteInput { +func (s *GetNetworkResourceRelationshipsInput) SetGlobalNetworkId(v string) *GetNetworkResourceRelationshipsInput { s.GlobalNetworkId = &v return s } -// SetSiteId sets the SiteId field's value. -func (s *DeleteSiteInput) SetSiteId(v string) *DeleteSiteInput { - s.SiteId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *GetNetworkResourceRelationshipsInput) SetMaxResults(v int64) *GetNetworkResourceRelationshipsInput { + s.MaxResults = &v return s } -type DeleteSiteOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *GetNetworkResourceRelationshipsInput) SetNextToken(v string) *GetNetworkResourceRelationshipsInput { + s.NextToken = &v + return s +} + +// SetRegisteredGatewayArn sets the RegisteredGatewayArn field's value. +func (s *GetNetworkResourceRelationshipsInput) SetRegisteredGatewayArn(v string) *GetNetworkResourceRelationshipsInput { + s.RegisteredGatewayArn = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *GetNetworkResourceRelationshipsInput) SetResourceArn(v string) *GetNetworkResourceRelationshipsInput { + s.ResourceArn = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *GetNetworkResourceRelationshipsInput) SetResourceType(v string) *GetNetworkResourceRelationshipsInput { + s.ResourceType = &v + return s +} + +type GetNetworkResourceRelationshipsOutput struct { _ struct{} `type:"structure"` - // Information about the site. - Site *Site `type:"structure"` + // The token for the next page of results. + NextToken *string `type:"string"` + + // The resource relationships. + Relationships []*Relationship `type:"list"` } // String returns the string representation. @@ -5776,7 +8430,7 @@ type DeleteSiteOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSiteOutput) String() string { +func (s GetNetworkResourceRelationshipsOutput) String() string { return awsutil.Prettify(s) } @@ -5785,28 +8439,85 @@ func (s DeleteSiteOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSiteOutput) GoString() string { +func (s GetNetworkResourceRelationshipsOutput) GoString() string { return s.String() } -// SetSite sets the Site field's value. -func (s *DeleteSiteOutput) SetSite(v *Site) *DeleteSiteOutput { - s.Site = v +// SetNextToken sets the NextToken field's value. +func (s *GetNetworkResourceRelationshipsOutput) SetNextToken(v string) *GetNetworkResourceRelationshipsOutput { + s.NextToken = &v return s } -type DeregisterTransitGatewayInput struct { +// SetRelationships sets the Relationships field's value. +func (s *GetNetworkResourceRelationshipsOutput) SetRelationships(v []*Relationship) *GetNetworkResourceRelationshipsOutput { + s.Relationships = v + return s +} + +type GetNetworkResourcesInput struct { _ struct{} `type:"structure" nopayload:"true"` + // The Amazon Web Services account ID. + AccountId *string `location:"querystring" locationName:"accountId" type:"string"` + + // The Amazon Web Services Region. + AwsRegion *string `location:"querystring" locationName:"awsRegion" type:"string"` + // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the transit gateway. + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // The ARN of the gateway. + RegisteredGatewayArn *string `location:"querystring" locationName:"registeredGatewayArn" type:"string"` + + // The ARN of the resource. + ResourceArn *string `location:"querystring" locationName:"resourceArn" type:"string"` + + // The resource type. // - // TransitGatewayArn is a required field - TransitGatewayArn *string `location:"uri" locationName:"transitGatewayArn" type:"string" required:"true"` + // The following are the supported resource types for Direct Connect: + // + // * dxcon - The definition model is Connection (https://docs.aws.amazon.com/directconnect/latest/APIReference/API_Connection.html). + // + // * dx-gateway - The definition model is DirectConnectGateway (https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DirectConnectGateway.html). + // + // * dx-vif - The definition model is VirtualInterface (https://docs.aws.amazon.com/directconnect/latest/APIReference/API_VirtualInterface.html). + // + // The following are the supported resource types for Network Manager: + // + // * connection - The definition model is Connection (https://docs.aws.amazon.com/networkmanager/latest/APIReference/API_Connection.html). + // + // * device - The definition model is Device (https://docs.aws.amazon.com/networkmanager/latest/APIReference/API_Device.html). + // + // * link - The definition model is Link (https://docs.aws.amazon.com/networkmanager/latest/APIReference/API_Link.html). + // + // * site - The definition model is Site (https://docs.aws.amazon.com/networkmanager/latest/APIReference/API_Site.html). + // + // The following are the supported resource types for Amazon VPC: + // + // * customer-gateway - The definition model is CustomerGateway (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CustomerGateway.html). + // + // * transit-gateway - The definition model is TransitGateway (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TransitGateway.html). + // + // * transit-gateway-attachment - The definition model is TransitGatewayAttachment + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TransitGatewayAttachment.html). + // + // * transit-gateway-connect-peer - The definition model is TransitGatewayConnectPeer + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TransitGatewayConnectPeer.html). + // + // * transit-gateway-route-table - The definition model is TransitGatewayRouteTable + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TransitGatewayRouteTable.html). + // + // * vpn-connection - The definition model is VpnConnection (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_VpnConnection.html). + ResourceType *string `location:"querystring" locationName:"resourceType" type:"string"` } // String returns the string representation. @@ -5814,7 +8525,7 @@ type DeregisterTransitGatewayInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeregisterTransitGatewayInput) String() string { +func (s GetNetworkResourcesInput) String() string { return awsutil.Prettify(s) } @@ -5823,24 +8534,21 @@ func (s DeregisterTransitGatewayInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeregisterTransitGatewayInput) GoString() string { +func (s GetNetworkResourcesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterTransitGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterTransitGatewayInput"} +func (s *GetNetworkResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetNetworkResourcesInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } - if s.TransitGatewayArn == nil { - invalidParams.Add(request.NewErrParamRequired("TransitGatewayArn")) - } - if s.TransitGatewayArn != nil && len(*s.TransitGatewayArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TransitGatewayArn", 1)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -5849,23 +8557,62 @@ func (s *DeregisterTransitGatewayInput) Validate() error { return nil } +// SetAccountId sets the AccountId field's value. +func (s *GetNetworkResourcesInput) SetAccountId(v string) *GetNetworkResourcesInput { + s.AccountId = &v + return s +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *GetNetworkResourcesInput) SetAwsRegion(v string) *GetNetworkResourcesInput { + s.AwsRegion = &v + return s +} + // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *DeregisterTransitGatewayInput) SetGlobalNetworkId(v string) *DeregisterTransitGatewayInput { +func (s *GetNetworkResourcesInput) SetGlobalNetworkId(v string) *GetNetworkResourcesInput { s.GlobalNetworkId = &v return s } -// SetTransitGatewayArn sets the TransitGatewayArn field's value. -func (s *DeregisterTransitGatewayInput) SetTransitGatewayArn(v string) *DeregisterTransitGatewayInput { - s.TransitGatewayArn = &v +// SetMaxResults sets the MaxResults field's value. +func (s *GetNetworkResourcesInput) SetMaxResults(v int64) *GetNetworkResourcesInput { + s.MaxResults = &v return s } -type DeregisterTransitGatewayOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *GetNetworkResourcesInput) SetNextToken(v string) *GetNetworkResourcesInput { + s.NextToken = &v + return s +} + +// SetRegisteredGatewayArn sets the RegisteredGatewayArn field's value. +func (s *GetNetworkResourcesInput) SetRegisteredGatewayArn(v string) *GetNetworkResourcesInput { + s.RegisteredGatewayArn = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *GetNetworkResourcesInput) SetResourceArn(v string) *GetNetworkResourcesInput { + s.ResourceArn = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *GetNetworkResourcesInput) SetResourceType(v string) *GetNetworkResourcesInput { + s.ResourceType = &v + return s +} + +type GetNetworkResourcesOutput struct { _ struct{} `type:"structure"` - // The transit gateway registration information. - TransitGatewayRegistration *TransitGatewayRegistration `type:"structure"` + // The network resources. + NetworkResources []*NetworkResource `type:"list"` + + // The token for the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -5873,7 +8620,7 @@ type DeregisterTransitGatewayOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeregisterTransitGatewayOutput) String() string { +func (s GetNetworkResourcesOutput) String() string { return awsutil.Prettify(s) } @@ -5882,27 +8629,60 @@ func (s DeregisterTransitGatewayOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeregisterTransitGatewayOutput) GoString() string { +func (s GetNetworkResourcesOutput) GoString() string { return s.String() } -// SetTransitGatewayRegistration sets the TransitGatewayRegistration field's value. -func (s *DeregisterTransitGatewayOutput) SetTransitGatewayRegistration(v *TransitGatewayRegistration) *DeregisterTransitGatewayOutput { - s.TransitGatewayRegistration = v +// SetNetworkResources sets the NetworkResources field's value. +func (s *GetNetworkResourcesOutput) SetNetworkResources(v []*NetworkResource) *GetNetworkResourcesOutput { + s.NetworkResources = v return s } -type DescribeGlobalNetworksInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetNextToken sets the NextToken field's value. +func (s *GetNetworkResourcesOutput) SetNextToken(v string) *GetNetworkResourcesOutput { + s.NextToken = &v + return s +} - // The IDs of one or more global networks. The maximum is 10. - GlobalNetworkIds []*string `location:"querystring" locationName:"globalNetworkIds" type:"list"` +type GetNetworkRoutesInput struct { + _ struct{} `type:"structure"` - // The maximum number of results to return. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + // Filter by route table destination. Possible Values: TRANSIT_GATEWAY_ATTACHMENT_ID, + // RESOURCE_ID, or RESOURCE_TYPE. + DestinationFilters map[string][]*string `type:"map"` - // The token for the next page of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // An exact CIDR block. + ExactCidrMatches []*string `type:"list"` + + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The most specific route that matches the traffic (longest prefix match). + LongestPrefixMatches []*string `type:"list"` + + // The IDs of the prefix lists. + PrefixListIds []*string `type:"list"` + + // The ID of the route table. + // + // RouteTableIdentifier is a required field + RouteTableIdentifier *RouteTableIdentifier `type:"structure" required:"true"` + + // The route states. + States []*string `type:"list"` + + // The routes with a subnet that match the specified CIDR filter. + SubnetOfMatches []*string `type:"list"` + + // The routes with a CIDR that encompasses the CIDR filter. Example: If you + // specify 10.0.1.0/30, then the result returns 10.0.1.0/29. + SupernetOfMatches []*string `type:"list"` + + // The route types. + Types []*string `type:"list"` } // String returns the string representation. @@ -5910,7 +8690,7 @@ type DescribeGlobalNetworksInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeGlobalNetworksInput) String() string { +func (s GetNetworkRoutesInput) String() string { return awsutil.Prettify(s) } @@ -5919,15 +8699,21 @@ func (s DescribeGlobalNetworksInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeGlobalNetworksInput) GoString() string { +func (s GetNetworkRoutesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeGlobalNetworksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeGlobalNetworksInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *GetNetworkRoutesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetNetworkRoutesInput"} + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + if s.RouteTableIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("RouteTableIdentifier")) } if invalidParams.Len() > 0 { @@ -5936,32 +8722,80 @@ func (s *DescribeGlobalNetworksInput) Validate() error { return nil } -// SetGlobalNetworkIds sets the GlobalNetworkIds field's value. -func (s *DescribeGlobalNetworksInput) SetGlobalNetworkIds(v []*string) *DescribeGlobalNetworksInput { - s.GlobalNetworkIds = v +// SetDestinationFilters sets the DestinationFilters field's value. +func (s *GetNetworkRoutesInput) SetDestinationFilters(v map[string][]*string) *GetNetworkRoutesInput { + s.DestinationFilters = v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *DescribeGlobalNetworksInput) SetMaxResults(v int64) *DescribeGlobalNetworksInput { - s.MaxResults = &v +// SetExactCidrMatches sets the ExactCidrMatches field's value. +func (s *GetNetworkRoutesInput) SetExactCidrMatches(v []*string) *GetNetworkRoutesInput { + s.ExactCidrMatches = v return s } -// SetNextToken sets the NextToken field's value. -func (s *DescribeGlobalNetworksInput) SetNextToken(v string) *DescribeGlobalNetworksInput { - s.NextToken = &v +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *GetNetworkRoutesInput) SetGlobalNetworkId(v string) *GetNetworkRoutesInput { + s.GlobalNetworkId = &v return s } -type DescribeGlobalNetworksOutput struct { +// SetLongestPrefixMatches sets the LongestPrefixMatches field's value. +func (s *GetNetworkRoutesInput) SetLongestPrefixMatches(v []*string) *GetNetworkRoutesInput { + s.LongestPrefixMatches = v + return s +} + +// SetPrefixListIds sets the PrefixListIds field's value. +func (s *GetNetworkRoutesInput) SetPrefixListIds(v []*string) *GetNetworkRoutesInput { + s.PrefixListIds = v + return s +} + +// SetRouteTableIdentifier sets the RouteTableIdentifier field's value. +func (s *GetNetworkRoutesInput) SetRouteTableIdentifier(v *RouteTableIdentifier) *GetNetworkRoutesInput { + s.RouteTableIdentifier = v + return s +} + +// SetStates sets the States field's value. +func (s *GetNetworkRoutesInput) SetStates(v []*string) *GetNetworkRoutesInput { + s.States = v + return s +} + +// SetSubnetOfMatches sets the SubnetOfMatches field's value. +func (s *GetNetworkRoutesInput) SetSubnetOfMatches(v []*string) *GetNetworkRoutesInput { + s.SubnetOfMatches = v + return s +} + +// SetSupernetOfMatches sets the SupernetOfMatches field's value. +func (s *GetNetworkRoutesInput) SetSupernetOfMatches(v []*string) *GetNetworkRoutesInput { + s.SupernetOfMatches = v + return s +} + +// SetTypes sets the Types field's value. +func (s *GetNetworkRoutesInput) SetTypes(v []*string) *GetNetworkRoutesInput { + s.Types = v + return s +} + +type GetNetworkRoutesOutput struct { _ struct{} `type:"structure"` - // Information about the global networks. - GlobalNetworks []*GlobalNetwork `type:"list"` + // The network routes. + NetworkRoutes []*NetworkRoute `type:"list"` - // The token for the next page of results. - NextToken *string `type:"string"` + // The ARN of the route table. + RouteTableArn *string `type:"string"` + + // The route table creation time. + RouteTableTimestamp *time.Time `type:"timestamp"` + + // The route table type. + RouteTableType *string `type:"string" enum:"RouteTableType"` } // String returns the string representation. @@ -5969,7 +8803,7 @@ type DescribeGlobalNetworksOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeGlobalNetworksOutput) String() string { +func (s GetNetworkRoutesOutput) String() string { return awsutil.Prettify(s) } @@ -5978,71 +8812,94 @@ func (s DescribeGlobalNetworksOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeGlobalNetworksOutput) GoString() string { +func (s GetNetworkRoutesOutput) GoString() string { return s.String() } -// SetGlobalNetworks sets the GlobalNetworks field's value. -func (s *DescribeGlobalNetworksOutput) SetGlobalNetworks(v []*GlobalNetwork) *DescribeGlobalNetworksOutput { - s.GlobalNetworks = v +// SetNetworkRoutes sets the NetworkRoutes field's value. +func (s *GetNetworkRoutesOutput) SetNetworkRoutes(v []*NetworkRoute) *GetNetworkRoutesOutput { + s.NetworkRoutes = v return s } -// SetNextToken sets the NextToken field's value. -func (s *DescribeGlobalNetworksOutput) SetNextToken(v string) *DescribeGlobalNetworksOutput { - s.NextToken = &v +// SetRouteTableArn sets the RouteTableArn field's value. +func (s *GetNetworkRoutesOutput) SetRouteTableArn(v string) *GetNetworkRoutesOutput { + s.RouteTableArn = &v return s } -// Describes a device. -type Device struct { - _ struct{} `type:"structure"` - - // The AWS location of the device. - AWSLocation *AWSLocation `type:"structure"` +// SetRouteTableTimestamp sets the RouteTableTimestamp field's value. +func (s *GetNetworkRoutesOutput) SetRouteTableTimestamp(v time.Time) *GetNetworkRoutesOutput { + s.RouteTableTimestamp = &v + return s +} - // The date and time that the site was created. - CreatedAt *time.Time `type:"timestamp"` +// SetRouteTableType sets the RouteTableType field's value. +func (s *GetNetworkRoutesOutput) SetRouteTableType(v string) *GetNetworkRoutesOutput { + s.RouteTableType = &v + return s +} - // The description of the device. - Description *string `type:"string"` +type GetNetworkTelemetryInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The Amazon Resource Name (ARN) of the device. - DeviceArn *string `type:"string"` + // The Amazon Web Services account ID. + AccountId *string `location:"querystring" locationName:"accountId" type:"string"` - // The ID of the device. - DeviceId *string `type:"string"` + // The Amazon Web Services Region. + AwsRegion *string `location:"querystring" locationName:"awsRegion" type:"string"` // The ID of the global network. - GlobalNetworkId *string `type:"string"` - - // The site location. // - // Location is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Device's - // String and GoString methods. - Location *Location `type:"structure" sensitive:"true"` - - // The device model. - Model *string `type:"string"` - - // The device serial number. - SerialNumber *string `type:"string"` + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // The site ID. - SiteId *string `type:"string"` + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - // The device state. - State *string `type:"string" enum:"DeviceState"` + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` - // The tags for the device. - Tags []*Tag `type:"list"` + // The ARN of the gateway. + RegisteredGatewayArn *string `location:"querystring" locationName:"registeredGatewayArn" type:"string"` - // The device type. - Type *string `type:"string"` + // The ARN of the resource. + ResourceArn *string `location:"querystring" locationName:"resourceArn" type:"string"` - // The device vendor. - Vendor *string `type:"string"` + // The resource type. + // + // The following are the supported resource types for Direct Connect: + // + // * dxcon + // + // * dx-gateway + // + // * dx-vif + // + // The following are the supported resource types for Network Manager: + // + // * connection + // + // * device + // + // * link + // + // * site + // + // The following are the supported resource types for Amazon VPC: + // + // * customer-gateway + // + // * transit-gateway + // + // * transit-gateway-attachment + // + // * transit-gateway-connect-peer + // + // * transit-gateway-route-table + // + // * vpn-connection + ResourceType *string `location:"querystring" locationName:"resourceType" type:"string"` } // String returns the string representation. @@ -6050,7 +8907,7 @@ type Device struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Device) String() string { +func (s GetNetworkTelemetryInput) String() string { return awsutil.Prettify(s) } @@ -6059,107 +8916,129 @@ func (s Device) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Device) GoString() string { +func (s GetNetworkTelemetryInput) GoString() string { return s.String() } -// SetAWSLocation sets the AWSLocation field's value. -func (s *Device) SetAWSLocation(v *AWSLocation) *Device { - s.AWSLocation = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetNetworkTelemetryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetNetworkTelemetryInput"} + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetCreatedAt sets the CreatedAt field's value. -func (s *Device) SetCreatedAt(v time.Time) *Device { - s.CreatedAt = &v +// SetAccountId sets the AccountId field's value. +func (s *GetNetworkTelemetryInput) SetAccountId(v string) *GetNetworkTelemetryInput { + s.AccountId = &v return s } -// SetDescription sets the Description field's value. -func (s *Device) SetDescription(v string) *Device { - s.Description = &v +// SetAwsRegion sets the AwsRegion field's value. +func (s *GetNetworkTelemetryInput) SetAwsRegion(v string) *GetNetworkTelemetryInput { + s.AwsRegion = &v return s } -// SetDeviceArn sets the DeviceArn field's value. -func (s *Device) SetDeviceArn(v string) *Device { - s.DeviceArn = &v +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *GetNetworkTelemetryInput) SetGlobalNetworkId(v string) *GetNetworkTelemetryInput { + s.GlobalNetworkId = &v return s } -// SetDeviceId sets the DeviceId field's value. -func (s *Device) SetDeviceId(v string) *Device { - s.DeviceId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *GetNetworkTelemetryInput) SetMaxResults(v int64) *GetNetworkTelemetryInput { + s.MaxResults = &v return s } -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *Device) SetGlobalNetworkId(v string) *Device { - s.GlobalNetworkId = &v +// SetNextToken sets the NextToken field's value. +func (s *GetNetworkTelemetryInput) SetNextToken(v string) *GetNetworkTelemetryInput { + s.NextToken = &v return s } -// SetLocation sets the Location field's value. -func (s *Device) SetLocation(v *Location) *Device { - s.Location = v +// SetRegisteredGatewayArn sets the RegisteredGatewayArn field's value. +func (s *GetNetworkTelemetryInput) SetRegisteredGatewayArn(v string) *GetNetworkTelemetryInput { + s.RegisteredGatewayArn = &v return s } -// SetModel sets the Model field's value. -func (s *Device) SetModel(v string) *Device { - s.Model = &v +// SetResourceArn sets the ResourceArn field's value. +func (s *GetNetworkTelemetryInput) SetResourceArn(v string) *GetNetworkTelemetryInput { + s.ResourceArn = &v return s } -// SetSerialNumber sets the SerialNumber field's value. -func (s *Device) SetSerialNumber(v string) *Device { - s.SerialNumber = &v +// SetResourceType sets the ResourceType field's value. +func (s *GetNetworkTelemetryInput) SetResourceType(v string) *GetNetworkTelemetryInput { + s.ResourceType = &v return s } -// SetSiteId sets the SiteId field's value. -func (s *Device) SetSiteId(v string) *Device { - s.SiteId = &v - return s +type GetNetworkTelemetryOutput struct { + _ struct{} `type:"structure"` + + // The network telemetry. + NetworkTelemetry []*NetworkTelemetry `type:"list"` + + // The token for the next page of results. + NextToken *string `type:"string"` } -// SetState sets the State field's value. -func (s *Device) SetState(v string) *Device { - s.State = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetNetworkTelemetryOutput) String() string { + return awsutil.Prettify(s) } -// SetTags sets the Tags field's value. -func (s *Device) SetTags(v []*Tag) *Device { - s.Tags = v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetNetworkTelemetryOutput) GoString() string { + return s.String() } -// SetType sets the Type field's value. -func (s *Device) SetType(v string) *Device { - s.Type = &v +// SetNetworkTelemetry sets the NetworkTelemetry field's value. +func (s *GetNetworkTelemetryOutput) SetNetworkTelemetry(v []*NetworkTelemetry) *GetNetworkTelemetryOutput { + s.NetworkTelemetry = v return s } -// SetVendor sets the Vendor field's value. -func (s *Device) SetVendor(v string) *Device { - s.Vendor = &v +// SetNextToken sets the NextToken field's value. +func (s *GetNetworkTelemetryOutput) SetNextToken(v string) *GetNetworkTelemetryOutput { + s.NextToken = &v return s } -type DisassociateCustomerGatewayInput struct { +type GetRouteAnalysisInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The Amazon Resource Name (ARN) of the customer gateway. For more information, - // see Resources Defined by Amazon EC2 (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazonec2.html#amazonec2-resources-for-iam-policies). - // - // CustomerGatewayArn is a required field - CustomerGatewayArn *string `location:"uri" locationName:"customerGatewayArn" type:"string" required:"true"` - // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The ID of the route analysis. + // + // RouteAnalysisId is a required field + RouteAnalysisId *string `location:"uri" locationName:"routeAnalysisId" type:"string" required:"true"` } // String returns the string representation. @@ -6167,7 +9046,7 @@ type DisassociateCustomerGatewayInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateCustomerGatewayInput) String() string { +func (s GetRouteAnalysisInput) String() string { return awsutil.Prettify(s) } @@ -6176,25 +9055,25 @@ func (s DisassociateCustomerGatewayInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateCustomerGatewayInput) GoString() string { +func (s GetRouteAnalysisInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateCustomerGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateCustomerGatewayInput"} - if s.CustomerGatewayArn == nil { - invalidParams.Add(request.NewErrParamRequired("CustomerGatewayArn")) - } - if s.CustomerGatewayArn != nil && len(*s.CustomerGatewayArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CustomerGatewayArn", 1)) - } +func (s *GetRouteAnalysisInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRouteAnalysisInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } + if s.RouteAnalysisId == nil { + invalidParams.Add(request.NewErrParamRequired("RouteAnalysisId")) + } + if s.RouteAnalysisId != nil && len(*s.RouteAnalysisId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RouteAnalysisId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6202,23 +9081,23 @@ func (s *DisassociateCustomerGatewayInput) Validate() error { return nil } -// SetCustomerGatewayArn sets the CustomerGatewayArn field's value. -func (s *DisassociateCustomerGatewayInput) SetCustomerGatewayArn(v string) *DisassociateCustomerGatewayInput { - s.CustomerGatewayArn = &v +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *GetRouteAnalysisInput) SetGlobalNetworkId(v string) *GetRouteAnalysisInput { + s.GlobalNetworkId = &v return s } -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *DisassociateCustomerGatewayInput) SetGlobalNetworkId(v string) *DisassociateCustomerGatewayInput { - s.GlobalNetworkId = &v +// SetRouteAnalysisId sets the RouteAnalysisId field's value. +func (s *GetRouteAnalysisInput) SetRouteAnalysisId(v string) *GetRouteAnalysisInput { + s.RouteAnalysisId = &v return s } -type DisassociateCustomerGatewayOutput struct { +type GetRouteAnalysisOutput struct { _ struct{} `type:"structure"` - // Information about the customer gateway association. - CustomerGatewayAssociation *CustomerGatewayAssociation `type:"structure"` + // The route analysis. + RouteAnalysis *RouteAnalysis `type:"structure"` } // String returns the string representation. @@ -6226,7 +9105,7 @@ type DisassociateCustomerGatewayOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateCustomerGatewayOutput) String() string { +func (s GetRouteAnalysisOutput) String() string { return awsutil.Prettify(s) } @@ -6235,33 +9114,32 @@ func (s DisassociateCustomerGatewayOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateCustomerGatewayOutput) GoString() string { +func (s GetRouteAnalysisOutput) GoString() string { return s.String() } -// SetCustomerGatewayAssociation sets the CustomerGatewayAssociation field's value. -func (s *DisassociateCustomerGatewayOutput) SetCustomerGatewayAssociation(v *CustomerGatewayAssociation) *DisassociateCustomerGatewayOutput { - s.CustomerGatewayAssociation = v +// SetRouteAnalysis sets the RouteAnalysis field's value. +func (s *GetRouteAnalysisOutput) SetRouteAnalysis(v *RouteAnalysis) *GetRouteAnalysisOutput { + s.RouteAnalysis = v return s } -type DisassociateLinkInput struct { +type GetSitesInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the device. - // - // DeviceId is a required field - DeviceId *string `location:"querystring" locationName:"deviceId" type:"string" required:"true"` - // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // The ID of the link. - // - // LinkId is a required field - LinkId *string `location:"querystring" locationName:"linkId" type:"string" required:"true"` + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // One or more site IDs. The maximum is 10. + SiteIds []*string `location:"querystring" locationName:"siteIds" type:"list"` } // String returns the string representation. @@ -6269,7 +9147,7 @@ type DisassociateLinkInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateLinkInput) String() string { +func (s GetSitesInput) String() string { return awsutil.Prettify(s) } @@ -6278,24 +9156,21 @@ func (s DisassociateLinkInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateLinkInput) GoString() string { +func (s GetSitesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateLinkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateLinkInput"} - if s.DeviceId == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceId")) - } +func (s *GetSitesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSitesInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } - if s.LinkId == nil { - invalidParams.Add(request.NewErrParamRequired("LinkId")) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -6304,29 +9179,38 @@ func (s *DisassociateLinkInput) Validate() error { return nil } -// SetDeviceId sets the DeviceId field's value. -func (s *DisassociateLinkInput) SetDeviceId(v string) *DisassociateLinkInput { - s.DeviceId = &v +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *GetSitesInput) SetGlobalNetworkId(v string) *GetSitesInput { + s.GlobalNetworkId = &v return s } -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *DisassociateLinkInput) SetGlobalNetworkId(v string) *DisassociateLinkInput { - s.GlobalNetworkId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *GetSitesInput) SetMaxResults(v int64) *GetSitesInput { + s.MaxResults = &v return s } -// SetLinkId sets the LinkId field's value. -func (s *DisassociateLinkInput) SetLinkId(v string) *DisassociateLinkInput { - s.LinkId = &v +// SetNextToken sets the NextToken field's value. +func (s *GetSitesInput) SetNextToken(v string) *GetSitesInput { + s.NextToken = &v return s } -type DisassociateLinkOutput struct { +// SetSiteIds sets the SiteIds field's value. +func (s *GetSitesInput) SetSiteIds(v []*string) *GetSitesInput { + s.SiteIds = v + return s +} + +type GetSitesOutput struct { _ struct{} `type:"structure"` - // Information about the link association. - LinkAssociation *LinkAssociation `type:"structure"` + // The token for the next page of results. + NextToken *string `type:"string"` + + // The sites. + Sites []*Site `type:"list"` } // String returns the string representation. @@ -6334,7 +9218,7 @@ type DisassociateLinkOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateLinkOutput) String() string { +func (s GetSitesOutput) String() string { return awsutil.Prettify(s) } @@ -6343,17 +9227,23 @@ func (s DisassociateLinkOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateLinkOutput) GoString() string { +func (s GetSitesOutput) GoString() string { return s.String() } -// SetLinkAssociation sets the LinkAssociation field's value. -func (s *DisassociateLinkOutput) SetLinkAssociation(v *LinkAssociation) *DisassociateLinkOutput { - s.LinkAssociation = v +// SetNextToken sets the NextToken field's value. +func (s *GetSitesOutput) SetNextToken(v string) *GetSitesOutput { + s.NextToken = &v return s } -type DisassociateTransitGatewayConnectPeerInput struct { +// SetSites sets the Sites field's value. +func (s *GetSitesOutput) SetSites(v []*Site) *GetSitesOutput { + s.Sites = v + return s +} + +type GetTransitGatewayConnectPeerAssociationsInput struct { _ struct{} `type:"structure" nopayload:"true"` // The ID of the global network. @@ -6361,10 +9251,14 @@ type DisassociateTransitGatewayConnectPeerInput struct { // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the transit gateway Connect peer. - // - // TransitGatewayConnectPeerArn is a required field - TransitGatewayConnectPeerArn *string `location:"uri" locationName:"transitGatewayConnectPeerArn" type:"string" required:"true"` + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // One or more transit gateway Connect peer Amazon Resource Names (ARNs). + TransitGatewayConnectPeerArns []*string `location:"querystring" locationName:"transitGatewayConnectPeerArns" type:"list"` } // String returns the string representation. @@ -6372,7 +9266,7 @@ type DisassociateTransitGatewayConnectPeerInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateTransitGatewayConnectPeerInput) String() string { +func (s GetTransitGatewayConnectPeerAssociationsInput) String() string { return awsutil.Prettify(s) } @@ -6381,24 +9275,21 @@ func (s DisassociateTransitGatewayConnectPeerInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateTransitGatewayConnectPeerInput) GoString() string { +func (s GetTransitGatewayConnectPeerAssociationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateTransitGatewayConnectPeerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateTransitGatewayConnectPeerInput"} +func (s *GetTransitGatewayConnectPeerAssociationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayConnectPeerAssociationsInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } - if s.TransitGatewayConnectPeerArn == nil { - invalidParams.Add(request.NewErrParamRequired("TransitGatewayConnectPeerArn")) - } - if s.TransitGatewayConnectPeerArn != nil && len(*s.TransitGatewayConnectPeerArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TransitGatewayConnectPeerArn", 1)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -6408,22 +9299,37 @@ func (s *DisassociateTransitGatewayConnectPeerInput) Validate() error { } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *DisassociateTransitGatewayConnectPeerInput) SetGlobalNetworkId(v string) *DisassociateTransitGatewayConnectPeerInput { +func (s *GetTransitGatewayConnectPeerAssociationsInput) SetGlobalNetworkId(v string) *GetTransitGatewayConnectPeerAssociationsInput { s.GlobalNetworkId = &v return s } -// SetTransitGatewayConnectPeerArn sets the TransitGatewayConnectPeerArn field's value. -func (s *DisassociateTransitGatewayConnectPeerInput) SetTransitGatewayConnectPeerArn(v string) *DisassociateTransitGatewayConnectPeerInput { - s.TransitGatewayConnectPeerArn = &v +// SetMaxResults sets the MaxResults field's value. +func (s *GetTransitGatewayConnectPeerAssociationsInput) SetMaxResults(v int64) *GetTransitGatewayConnectPeerAssociationsInput { + s.MaxResults = &v return s } -type DisassociateTransitGatewayConnectPeerOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *GetTransitGatewayConnectPeerAssociationsInput) SetNextToken(v string) *GetTransitGatewayConnectPeerAssociationsInput { + s.NextToken = &v + return s +} + +// SetTransitGatewayConnectPeerArns sets the TransitGatewayConnectPeerArns field's value. +func (s *GetTransitGatewayConnectPeerAssociationsInput) SetTransitGatewayConnectPeerArns(v []*string) *GetTransitGatewayConnectPeerAssociationsInput { + s.TransitGatewayConnectPeerArns = v + return s +} + +type GetTransitGatewayConnectPeerAssociationsOutput struct { _ struct{} `type:"structure"` - // The transit gateway Connect peer association. - TransitGatewayConnectPeerAssociation *TransitGatewayConnectPeerAssociation `type:"structure"` + // The token to use for the next page of results. + NextToken *string `type:"string"` + + // Information about the transit gateway Connect peer associations. + TransitGatewayConnectPeerAssociations []*TransitGatewayConnectPeerAssociation `type:"list"` } // String returns the string representation. @@ -6431,7 +9337,7 @@ type DisassociateTransitGatewayConnectPeerOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateTransitGatewayConnectPeerOutput) String() string { +func (s GetTransitGatewayConnectPeerAssociationsOutput) String() string { return awsutil.Prettify(s) } @@ -6440,24 +9346,24 @@ func (s DisassociateTransitGatewayConnectPeerOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociateTransitGatewayConnectPeerOutput) GoString() string { +func (s GetTransitGatewayConnectPeerAssociationsOutput) GoString() string { return s.String() } -// SetTransitGatewayConnectPeerAssociation sets the TransitGatewayConnectPeerAssociation field's value. -func (s *DisassociateTransitGatewayConnectPeerOutput) SetTransitGatewayConnectPeerAssociation(v *TransitGatewayConnectPeerAssociation) *DisassociateTransitGatewayConnectPeerOutput { - s.TransitGatewayConnectPeerAssociation = v +// SetNextToken sets the NextToken field's value. +func (s *GetTransitGatewayConnectPeerAssociationsOutput) SetNextToken(v string) *GetTransitGatewayConnectPeerAssociationsOutput { + s.NextToken = &v return s } -type GetConnectionsInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // One or more connection IDs. - ConnectionIds []*string `location:"querystring" locationName:"connectionIds" type:"list"` +// SetTransitGatewayConnectPeerAssociations sets the TransitGatewayConnectPeerAssociations field's value. +func (s *GetTransitGatewayConnectPeerAssociationsOutput) SetTransitGatewayConnectPeerAssociations(v []*TransitGatewayConnectPeerAssociation) *GetTransitGatewayConnectPeerAssociationsOutput { + s.TransitGatewayConnectPeerAssociations = v + return s +} - // The ID of the device. - DeviceId *string `location:"querystring" locationName:"deviceId" type:"string"` +type GetTransitGatewayRegistrationsInput struct { + _ struct{} `type:"structure" nopayload:"true"` // The ID of the global network. // @@ -6469,6 +9375,10 @@ type GetConnectionsInput struct { // The token for the next page of results. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // The Amazon Resource Names (ARNs) of one or more transit gateways. The maximum + // is 10. + TransitGatewayArns []*string `location:"querystring" locationName:"transitGatewayArns" type:"list"` } // String returns the string representation. @@ -6476,7 +9386,7 @@ type GetConnectionsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetConnectionsInput) String() string { +func (s GetTransitGatewayRegistrationsInput) String() string { return awsutil.Prettify(s) } @@ -6485,13 +9395,13 @@ func (s GetConnectionsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetConnectionsInput) GoString() string { +func (s GetTransitGatewayRegistrationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetConnectionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetConnectionsInput"} +func (s *GetTransitGatewayRegistrationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayRegistrationsInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } @@ -6508,44 +9418,38 @@ func (s *GetConnectionsInput) Validate() error { return nil } -// SetConnectionIds sets the ConnectionIds field's value. -func (s *GetConnectionsInput) SetConnectionIds(v []*string) *GetConnectionsInput { - s.ConnectionIds = v - return s -} - -// SetDeviceId sets the DeviceId field's value. -func (s *GetConnectionsInput) SetDeviceId(v string) *GetConnectionsInput { - s.DeviceId = &v - return s -} - // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *GetConnectionsInput) SetGlobalNetworkId(v string) *GetConnectionsInput { +func (s *GetTransitGatewayRegistrationsInput) SetGlobalNetworkId(v string) *GetTransitGatewayRegistrationsInput { s.GlobalNetworkId = &v return s } // SetMaxResults sets the MaxResults field's value. -func (s *GetConnectionsInput) SetMaxResults(v int64) *GetConnectionsInput { +func (s *GetTransitGatewayRegistrationsInput) SetMaxResults(v int64) *GetTransitGatewayRegistrationsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *GetConnectionsInput) SetNextToken(v string) *GetConnectionsInput { +func (s *GetTransitGatewayRegistrationsInput) SetNextToken(v string) *GetTransitGatewayRegistrationsInput { s.NextToken = &v return s } -type GetConnectionsOutput struct { - _ struct{} `type:"structure"` +// SetTransitGatewayArns sets the TransitGatewayArns field's value. +func (s *GetTransitGatewayRegistrationsInput) SetTransitGatewayArns(v []*string) *GetTransitGatewayRegistrationsInput { + s.TransitGatewayArns = v + return s +} - // Information about the connections. - Connections []*Connection `type:"list"` +type GetTransitGatewayRegistrationsOutput struct { + _ struct{} `type:"structure"` - // The token to use for the next page of results. + // The token for the next page of results. NextToken *string `type:"string"` + + // The transit gateway registrations. + TransitGatewayRegistrations []*TransitGatewayRegistration `type:"list"` } // String returns the string representation. @@ -6553,7 +9457,7 @@ type GetConnectionsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetConnectionsOutput) String() string { +func (s GetTransitGatewayRegistrationsOutput) String() string { return awsutil.Prettify(s) } @@ -6562,40 +9466,43 @@ func (s GetConnectionsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetConnectionsOutput) GoString() string { +func (s GetTransitGatewayRegistrationsOutput) GoString() string { return s.String() } -// SetConnections sets the Connections field's value. -func (s *GetConnectionsOutput) SetConnections(v []*Connection) *GetConnectionsOutput { - s.Connections = v +// SetNextToken sets the NextToken field's value. +func (s *GetTransitGatewayRegistrationsOutput) SetNextToken(v string) *GetTransitGatewayRegistrationsOutput { + s.NextToken = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetConnectionsOutput) SetNextToken(v string) *GetConnectionsOutput { - s.NextToken = &v +// SetTransitGatewayRegistrations sets the TransitGatewayRegistrations field's value. +func (s *GetTransitGatewayRegistrationsOutput) SetTransitGatewayRegistrations(v []*TransitGatewayRegistration) *GetTransitGatewayRegistrationsOutput { + s.TransitGatewayRegistrations = v return s } -type GetCustomerGatewayAssociationsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// Describes a global network. +type GlobalNetwork struct { + _ struct{} `type:"structure"` + + // The date and time that the global network was created. + CreatedAt *time.Time `type:"timestamp"` - // One or more customer gateway Amazon Resource Names (ARNs). For more information, - // see Resources Defined by Amazon EC2 (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazonec2.html#amazonec2-resources-for-iam-policies). - // The maximum is 10. - CustomerGatewayArns []*string `location:"querystring" locationName:"customerGatewayArns" type:"list"` + // The description of the global network. + Description *string `type:"string"` + + // The Amazon Resource Name (ARN) of the global network. + GlobalNetworkArn *string `type:"string"` // The ID of the global network. - // - // GlobalNetworkId is a required field - GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + GlobalNetworkId *string `type:"string"` - // The maximum number of results to return. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + // The state of the global network. + State *string `type:"string" enum:"GlobalNetworkState"` - // The token for the next page of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // The tags for the global network. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -6603,7 +9510,7 @@ type GetCustomerGatewayAssociationsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetCustomerGatewayAssociationsInput) String() string { +func (s GlobalNetwork) String() string { return awsutil.Prettify(s) } @@ -6612,61 +9519,55 @@ func (s GetCustomerGatewayAssociationsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetCustomerGatewayAssociationsInput) GoString() string { +func (s GlobalNetwork) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetCustomerGatewayAssociationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCustomerGatewayAssociationsInput"} - if s.GlobalNetworkId == nil { - invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) - } - if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } +// SetCreatedAt sets the CreatedAt field's value. +func (s *GlobalNetwork) SetCreatedAt(v time.Time) *GlobalNetwork { + s.CreatedAt = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDescription sets the Description field's value. +func (s *GlobalNetwork) SetDescription(v string) *GlobalNetwork { + s.Description = &v + return s } -// SetCustomerGatewayArns sets the CustomerGatewayArns field's value. -func (s *GetCustomerGatewayAssociationsInput) SetCustomerGatewayArns(v []*string) *GetCustomerGatewayAssociationsInput { - s.CustomerGatewayArns = v +// SetGlobalNetworkArn sets the GlobalNetworkArn field's value. +func (s *GlobalNetwork) SetGlobalNetworkArn(v string) *GlobalNetwork { + s.GlobalNetworkArn = &v return s } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *GetCustomerGatewayAssociationsInput) SetGlobalNetworkId(v string) *GetCustomerGatewayAssociationsInput { +func (s *GlobalNetwork) SetGlobalNetworkId(v string) *GlobalNetwork { s.GlobalNetworkId = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *GetCustomerGatewayAssociationsInput) SetMaxResults(v int64) *GetCustomerGatewayAssociationsInput { - s.MaxResults = &v +// SetState sets the State field's value. +func (s *GlobalNetwork) SetState(v string) *GlobalNetwork { + s.State = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetCustomerGatewayAssociationsInput) SetNextToken(v string) *GetCustomerGatewayAssociationsInput { - s.NextToken = &v +// SetTags sets the Tags field's value. +func (s *GlobalNetwork) SetTags(v []*Tag) *GlobalNetwork { + s.Tags = v return s } -type GetCustomerGatewayAssociationsOutput struct { - _ struct{} `type:"structure"` +// The request has failed due to an internal error. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The customer gateway associations. - CustomerGatewayAssociations []*CustomerGatewayAssociation `type:"list"` + Message_ *string `locationName:"Message" type:"string"` - // The token for the next page of results. - NextToken *string `type:"string"` + // Indicates when to retry the request. + RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"` } // String returns the string representation. @@ -6674,7 +9575,7 @@ type GetCustomerGatewayAssociationsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetCustomerGatewayAssociationsOutput) String() string { +func (s InternalServerException) String() string { return awsutil.Prettify(s) } @@ -6683,41 +9584,84 @@ func (s GetCustomerGatewayAssociationsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetCustomerGatewayAssociationsOutput) GoString() string { +func (s InternalServerException) GoString() string { return s.String() } -// SetCustomerGatewayAssociations sets the CustomerGatewayAssociations field's value. -func (s *GetCustomerGatewayAssociationsOutput) SetCustomerGatewayAssociations(v []*CustomerGatewayAssociation) *GetCustomerGatewayAssociationsOutput { - s.CustomerGatewayAssociations = v - return s +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } } -// SetNextToken sets the NextToken field's value. -func (s *GetCustomerGatewayAssociationsOutput) SetNextToken(v string) *GetCustomerGatewayAssociationsOutput { - s.NextToken = &v - return s +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" } -type GetDevicesInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // One or more device IDs. The maximum is 10. - DeviceIds []*string `location:"querystring" locationName:"deviceIds" type:"list"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Describes a link. +type Link struct { + _ struct{} `type:"structure"` + + // The bandwidth for the link. + Bandwidth *Bandwidth `type:"structure"` + + // The date and time that the link was created. + CreatedAt *time.Time `type:"timestamp"` + + // The description of the link. + Description *string `type:"string"` // The ID of the global network. - // - // GlobalNetworkId is a required field - GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + GlobalNetworkId *string `type:"string"` - // The maximum number of results to return. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + // The Amazon Resource Name (ARN) of the link. + LinkArn *string `type:"string"` - // The token for the next page of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // The ID of the link. + LinkId *string `type:"string"` + + // The provider of the link. + Provider *string `type:"string"` // The ID of the site. - SiteId *string `location:"querystring" locationName:"siteId" type:"string"` + SiteId *string `type:"string"` + + // The state of the link. + State *string `type:"string" enum:"LinkState"` + + // The tags for the link. + Tags []*Tag `type:"list"` + + // The type of the link. + Type *string `type:"string"` } // String returns the string representation. @@ -6725,7 +9669,7 @@ type GetDevicesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetDevicesInput) String() string { +func (s Link) String() string { return awsutil.Prettify(s) } @@ -6734,67 +9678,91 @@ func (s GetDevicesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetDevicesInput) GoString() string { +func (s Link) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDevicesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDevicesInput"} - if s.GlobalNetworkId == nil { - invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) - } - if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } +// SetBandwidth sets the Bandwidth field's value. +func (s *Link) SetBandwidth(v *Bandwidth) *Link { + s.Bandwidth = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCreatedAt sets the CreatedAt field's value. +func (s *Link) SetCreatedAt(v time.Time) *Link { + s.CreatedAt = &v + return s } -// SetDeviceIds sets the DeviceIds field's value. -func (s *GetDevicesInput) SetDeviceIds(v []*string) *GetDevicesInput { - s.DeviceIds = v +// SetDescription sets the Description field's value. +func (s *Link) SetDescription(v string) *Link { + s.Description = &v return s } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *GetDevicesInput) SetGlobalNetworkId(v string) *GetDevicesInput { +func (s *Link) SetGlobalNetworkId(v string) *Link { s.GlobalNetworkId = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *GetDevicesInput) SetMaxResults(v int64) *GetDevicesInput { - s.MaxResults = &v +// SetLinkArn sets the LinkArn field's value. +func (s *Link) SetLinkArn(v string) *Link { + s.LinkArn = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetDevicesInput) SetNextToken(v string) *GetDevicesInput { - s.NextToken = &v +// SetLinkId sets the LinkId field's value. +func (s *Link) SetLinkId(v string) *Link { + s.LinkId = &v + return s +} + +// SetProvider sets the Provider field's value. +func (s *Link) SetProvider(v string) *Link { + s.Provider = &v return s } // SetSiteId sets the SiteId field's value. -func (s *GetDevicesInput) SetSiteId(v string) *GetDevicesInput { +func (s *Link) SetSiteId(v string) *Link { s.SiteId = &v return s } -type GetDevicesOutput struct { +// SetState sets the State field's value. +func (s *Link) SetState(v string) *Link { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Link) SetTags(v []*Tag) *Link { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *Link) SetType(v string) *Link { + s.Type = &v + return s +} + +// Describes the association between a device and a link. +type LinkAssociation struct { _ struct{} `type:"structure"` - // The devices. - Devices []*Device `type:"list"` + // The device ID for the link association. + DeviceId *string `type:"string"` + + // The ID of the global network. + GlobalNetworkId *string `type:"string"` + + // The state of the association. + LinkAssociationState *string `type:"string" enum:"LinkAssociationState"` - // The token for the next page of results. - NextToken *string `type:"string"` + // The ID of the link. + LinkId *string `type:"string"` } // String returns the string representation. @@ -6802,7 +9770,7 @@ type GetDevicesOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetDevicesOutput) String() string { +func (s LinkAssociation) String() string { return awsutil.Prettify(s) } @@ -6811,41 +9779,41 @@ func (s GetDevicesOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetDevicesOutput) GoString() string { +func (s LinkAssociation) GoString() string { return s.String() } -// SetDevices sets the Devices field's value. -func (s *GetDevicesOutput) SetDevices(v []*Device) *GetDevicesOutput { - s.Devices = v +// SetDeviceId sets the DeviceId field's value. +func (s *LinkAssociation) SetDeviceId(v string) *LinkAssociation { + s.DeviceId = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetDevicesOutput) SetNextToken(v string) *GetDevicesOutput { - s.NextToken = &v +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *LinkAssociation) SetGlobalNetworkId(v string) *LinkAssociation { + s.GlobalNetworkId = &v return s } -type GetLinkAssociationsInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The ID of the device. - DeviceId *string `location:"querystring" locationName:"deviceId" type:"string"` - - // The ID of the global network. - // - // GlobalNetworkId is a required field - GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` +// SetLinkAssociationState sets the LinkAssociationState field's value. +func (s *LinkAssociation) SetLinkAssociationState(v string) *LinkAssociation { + s.LinkAssociationState = &v + return s +} - // The ID of the link. - LinkId *string `location:"querystring" locationName:"linkId" type:"string"` +// SetLinkId sets the LinkId field's value. +func (s *LinkAssociation) SetLinkId(v string) *LinkAssociation { + s.LinkId = &v + return s +} - // The maximum number of results to return. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` +type ListTagsForResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The token for the next page of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // The Amazon Resource Name (ARN) of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` } // String returns the string representation. @@ -6853,7 +9821,7 @@ type GetLinkAssociationsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetLinkAssociationsInput) String() string { +func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } @@ -6862,21 +9830,18 @@ func (s GetLinkAssociationsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetLinkAssociationsInput) GoString() string { +func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetLinkAssociationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetLinkAssociationsInput"} - if s.GlobalNetworkId == nil { - invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) - } - if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if invalidParams.Len() > 0 { @@ -6885,44 +9850,55 @@ func (s *GetLinkAssociationsInput) Validate() error { return nil } -// SetDeviceId sets the DeviceId field's value. -func (s *GetLinkAssociationsInput) SetDeviceId(v string) *GetLinkAssociationsInput { - s.DeviceId = &v +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v return s } -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *GetLinkAssociationsInput) SetGlobalNetworkId(v string) *GetLinkAssociationsInput { - s.GlobalNetworkId = &v - return s +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // The list of tags. + TagList []*Tag `type:"list"` } -// SetLinkId sets the LinkId field's value. -func (s *GetLinkAssociationsInput) SetLinkId(v string) *GetLinkAssociationsInput { - s.LinkId = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) } -// SetMaxResults sets the MaxResults field's value. -func (s *GetLinkAssociationsInput) SetMaxResults(v int64) *GetLinkAssociationsInput { - s.MaxResults = &v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) GoString() string { + return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *GetLinkAssociationsInput) SetNextToken(v string) *GetLinkAssociationsInput { - s.NextToken = &v +// SetTagList sets the TagList field's value. +func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput { + s.TagList = v return s } -type GetLinkAssociationsOutput struct { - _ struct{} `type:"structure"` +// Describes a location. +type Location struct { + _ struct{} `type:"structure" sensitive:"true"` - // The link associations. - LinkAssociations []*LinkAssociation `type:"list"` + // The physical address. + Address *string `type:"string"` - // The token for the next page of results. - NextToken *string `type:"string"` + // The latitude. + Latitude *string `type:"string"` + + // The longitude. + Longitude *string `type:"string"` } // String returns the string representation. @@ -6930,7 +9906,7 @@ type GetLinkAssociationsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetLinkAssociationsOutput) String() string { +func (s Location) String() string { return awsutil.Prettify(s) } @@ -6939,47 +9915,94 @@ func (s GetLinkAssociationsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetLinkAssociationsOutput) GoString() string { +func (s Location) GoString() string { return s.String() } -// SetLinkAssociations sets the LinkAssociations field's value. -func (s *GetLinkAssociationsOutput) SetLinkAssociations(v []*LinkAssociation) *GetLinkAssociationsOutput { - s.LinkAssociations = v +// SetAddress sets the Address field's value. +func (s *Location) SetAddress(v string) *Location { + s.Address = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetLinkAssociationsOutput) SetNextToken(v string) *GetLinkAssociationsOutput { - s.NextToken = &v +// SetLatitude sets the Latitude field's value. +func (s *Location) SetLatitude(v string) *Location { + s.Latitude = &v return s } -type GetLinksInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetLongitude sets the Longitude field's value. +func (s *Location) SetLongitude(v string) *Location { + s.Longitude = &v + return s +} - // The ID of the global network. - // - // GlobalNetworkId is a required field - GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` +// Describes a network resource. +type NetworkResource struct { + _ struct{} `type:"structure"` - // One or more link IDs. The maximum is 10. - LinkIds []*string `location:"querystring" locationName:"linkIds" type:"list"` + // The Amazon Web Services account ID. + AccountId *string `type:"string"` - // The maximum number of results to return. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + // The Amazon Web Services Region. + AwsRegion *string `type:"string"` - // The token for the next page of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // Information about the resource, in JSON format. Network Manager gets this + // information by describing the resource using its Describe API call. + Definition *string `type:"string"` - // The link provider. - Provider *string `location:"querystring" locationName:"provider" type:"string"` + // The time that the resource definition was retrieved. + DefinitionTimestamp *time.Time `type:"timestamp"` - // The ID of the site. - SiteId *string `location:"querystring" locationName:"siteId" type:"string"` + // The resource metadata. + Metadata map[string]*string `type:"map"` - // The link type. - Type *string `location:"querystring" locationName:"type" type:"string"` + // The ARN of the gateway. + RegisteredGatewayArn *string `type:"string"` + + // The ARN of the resource. + ResourceArn *string `type:"string"` + + // The ID of the resource. + ResourceId *string `type:"string"` + + // The resource type. + // + // The following are the supported resource types for Direct Connect: + // + // * dxcon + // + // * dx-gateway + // + // * dx-vif + // + // The following are the supported resource types for Network Manager: + // + // * connection + // + // * device + // + // * link + // + // * site + // + // The following are the supported resource types for Amazon VPC: + // + // * customer-gateway + // + // * transit-gateway + // + // * transit-gateway-attachment + // + // * transit-gateway-connect-peer + // + // * transit-gateway-route-table + // + // * vpn-connection + ResourceType *string `type:"string"` + + // The tags. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -6987,7 +10010,7 @@ type GetLinksInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetLinksInput) String() string { +func (s NetworkResource) String() string { return awsutil.Prettify(s) } @@ -6996,79 +10019,133 @@ func (s GetLinksInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetLinksInput) GoString() string { +func (s NetworkResource) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetLinksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetLinksInput"} - if s.GlobalNetworkId == nil { - invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) - } - if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } +// SetAccountId sets the AccountId field's value. +func (s *NetworkResource) SetAccountId(v string) *NetworkResource { + s.AccountId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAwsRegion sets the AwsRegion field's value. +func (s *NetworkResource) SetAwsRegion(v string) *NetworkResource { + s.AwsRegion = &v + return s } -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *GetLinksInput) SetGlobalNetworkId(v string) *GetLinksInput { - s.GlobalNetworkId = &v +// SetDefinition sets the Definition field's value. +func (s *NetworkResource) SetDefinition(v string) *NetworkResource { + s.Definition = &v return s } -// SetLinkIds sets the LinkIds field's value. -func (s *GetLinksInput) SetLinkIds(v []*string) *GetLinksInput { - s.LinkIds = v +// SetDefinitionTimestamp sets the DefinitionTimestamp field's value. +func (s *NetworkResource) SetDefinitionTimestamp(v time.Time) *NetworkResource { + s.DefinitionTimestamp = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *GetLinksInput) SetMaxResults(v int64) *GetLinksInput { - s.MaxResults = &v +// SetMetadata sets the Metadata field's value. +func (s *NetworkResource) SetMetadata(v map[string]*string) *NetworkResource { + s.Metadata = v + return s +} + +// SetRegisteredGatewayArn sets the RegisteredGatewayArn field's value. +func (s *NetworkResource) SetRegisteredGatewayArn(v string) *NetworkResource { + s.RegisteredGatewayArn = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *NetworkResource) SetResourceArn(v string) *NetworkResource { + s.ResourceArn = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *NetworkResource) SetResourceId(v string) *NetworkResource { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *NetworkResource) SetResourceType(v string) *NetworkResource { + s.ResourceType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *NetworkResource) SetTags(v []*Tag) *NetworkResource { + s.Tags = v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetLinksInput) SetNextToken(v string) *GetLinksInput { - s.NextToken = &v - return s +// Describes a resource count. +type NetworkResourceCount struct { + _ struct{} `type:"structure"` + + // The resource count. + Count *int64 `type:"integer"` + + // The resource type. + ResourceType *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s NetworkResourceCount) String() string { + return awsutil.Prettify(s) } -// SetProvider sets the Provider field's value. -func (s *GetLinksInput) SetProvider(v string) *GetLinksInput { - s.Provider = &v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s NetworkResourceCount) GoString() string { + return s.String() } -// SetSiteId sets the SiteId field's value. -func (s *GetLinksInput) SetSiteId(v string) *GetLinksInput { - s.SiteId = &v +// SetCount sets the Count field's value. +func (s *NetworkResourceCount) SetCount(v int64) *NetworkResourceCount { + s.Count = &v return s } -// SetType sets the Type field's value. -func (s *GetLinksInput) SetType(v string) *GetLinksInput { - s.Type = &v +// SetResourceType sets the ResourceType field's value. +func (s *NetworkResourceCount) SetResourceType(v string) *NetworkResourceCount { + s.ResourceType = &v return s } -type GetLinksOutput struct { +// Describes a network resource. +type NetworkResourceSummary struct { _ struct{} `type:"structure"` - // The links. - Links []*Link `type:"list"` + // Information about the resource, in JSON format. Network Manager gets this + // information by describing the resource using its Describe API call. + Definition *string `type:"string"` - // The token for the next page of results. - NextToken *string `type:"string"` + // Indicates whether this is a middlebox appliance. + IsMiddlebox *bool `type:"boolean"` + + // The value for the Name tag. + NameTag *string `type:"string"` + + // The ARN of the gateway. + RegisteredGatewayArn *string `type:"string"` + + // The ARN of the resource. + ResourceArn *string `type:"string"` + + // The resource type. + ResourceType *string `type:"string"` } // String returns the string representation. @@ -7076,7 +10153,7 @@ type GetLinksOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetLinksOutput) String() string { +func (s NetworkResourceSummary) String() string { return awsutil.Prettify(s) } @@ -7085,38 +10162,64 @@ func (s GetLinksOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetLinksOutput) GoString() string { +func (s NetworkResourceSummary) GoString() string { return s.String() } -// SetLinks sets the Links field's value. -func (s *GetLinksOutput) SetLinks(v []*Link) *GetLinksOutput { - s.Links = v +// SetDefinition sets the Definition field's value. +func (s *NetworkResourceSummary) SetDefinition(v string) *NetworkResourceSummary { + s.Definition = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetLinksOutput) SetNextToken(v string) *GetLinksOutput { - s.NextToken = &v +// SetIsMiddlebox sets the IsMiddlebox field's value. +func (s *NetworkResourceSummary) SetIsMiddlebox(v bool) *NetworkResourceSummary { + s.IsMiddlebox = &v return s } -type GetSitesInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetNameTag sets the NameTag field's value. +func (s *NetworkResourceSummary) SetNameTag(v string) *NetworkResourceSummary { + s.NameTag = &v + return s +} - // The ID of the global network. - // - // GlobalNetworkId is a required field - GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` +// SetRegisteredGatewayArn sets the RegisteredGatewayArn field's value. +func (s *NetworkResourceSummary) SetRegisteredGatewayArn(v string) *NetworkResourceSummary { + s.RegisteredGatewayArn = &v + return s +} - // The maximum number of results to return. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` +// SetResourceArn sets the ResourceArn field's value. +func (s *NetworkResourceSummary) SetResourceArn(v string) *NetworkResourceSummary { + s.ResourceArn = &v + return s +} - // The token for the next page of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +// SetResourceType sets the ResourceType field's value. +func (s *NetworkResourceSummary) SetResourceType(v string) *NetworkResourceSummary { + s.ResourceType = &v + return s +} - // One or more site IDs. The maximum is 10. - SiteIds []*string `location:"querystring" locationName:"siteIds" type:"list"` +// Describes a network route. +type NetworkRoute struct { + _ struct{} `type:"structure"` + + // A unique identifier for the route, such as a CIDR block. + DestinationCidrBlock *string `type:"string"` + + // The destinations. + Destinations []*NetworkRouteDestination `type:"list"` + + // The ID of the prefix list. + PrefixListId *string `type:"string"` + + // The route state. The possible values are active and blackhole. + State *string `type:"string" enum:"RouteState"` + + // The route type. The possible values are propagated and static. + Type *string `type:"string" enum:"RouteType"` } // String returns the string representation. @@ -7124,7 +10227,7 @@ type GetSitesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSitesInput) String() string { +func (s NetworkRoute) String() string { return awsutil.Prettify(s) } @@ -7133,61 +10236,52 @@ func (s GetSitesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSitesInput) GoString() string { +func (s NetworkRoute) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSitesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSitesInput"} - if s.GlobalNetworkId == nil { - invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) - } - if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *NetworkRoute) SetDestinationCidrBlock(v string) *NetworkRoute { + s.DestinationCidrBlock = &v + return s } -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *GetSitesInput) SetGlobalNetworkId(v string) *GetSitesInput { - s.GlobalNetworkId = &v +// SetDestinations sets the Destinations field's value. +func (s *NetworkRoute) SetDestinations(v []*NetworkRouteDestination) *NetworkRoute { + s.Destinations = v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *GetSitesInput) SetMaxResults(v int64) *GetSitesInput { - s.MaxResults = &v +// SetPrefixListId sets the PrefixListId field's value. +func (s *NetworkRoute) SetPrefixListId(v string) *NetworkRoute { + s.PrefixListId = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetSitesInput) SetNextToken(v string) *GetSitesInput { - s.NextToken = &v +// SetState sets the State field's value. +func (s *NetworkRoute) SetState(v string) *NetworkRoute { + s.State = &v return s } -// SetSiteIds sets the SiteIds field's value. -func (s *GetSitesInput) SetSiteIds(v []*string) *GetSitesInput { - s.SiteIds = v +// SetType sets the Type field's value. +func (s *NetworkRoute) SetType(v string) *NetworkRoute { + s.Type = &v return s } -type GetSitesOutput struct { +// Describes the destination of a network route. +type NetworkRouteDestination struct { _ struct{} `type:"structure"` - // The token for the next page of results. - NextToken *string `type:"string"` + // The ID of the resource. + ResourceId *string `type:"string"` - // The sites. - Sites []*Site `type:"list"` + // The resource type. + ResourceType *string `type:"string"` + + // The ID of the transit gateway attachment. + TransitGatewayAttachmentId *string `type:"string"` } // String returns the string representation. @@ -7195,7 +10289,7 @@ type GetSitesOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSitesOutput) String() string { +func (s NetworkRouteDestination) String() string { return awsutil.Prettify(s) } @@ -7204,38 +10298,55 @@ func (s GetSitesOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSitesOutput) GoString() string { +func (s NetworkRouteDestination) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *GetSitesOutput) SetNextToken(v string) *GetSitesOutput { - s.NextToken = &v +// SetResourceId sets the ResourceId field's value. +func (s *NetworkRouteDestination) SetResourceId(v string) *NetworkRouteDestination { + s.ResourceId = &v return s } -// SetSites sets the Sites field's value. -func (s *GetSitesOutput) SetSites(v []*Site) *GetSitesOutput { - s.Sites = v +// SetResourceType sets the ResourceType field's value. +func (s *NetworkRouteDestination) SetResourceType(v string) *NetworkRouteDestination { + s.ResourceType = &v return s } -type GetTransitGatewayConnectPeerAssociationsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *NetworkRouteDestination) SetTransitGatewayAttachmentId(v string) *NetworkRouteDestination { + s.TransitGatewayAttachmentId = &v + return s +} - // The ID of the global network. - // - // GlobalNetworkId is a required field - GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` +// Describes the telemetry information for a resource. +type NetworkTelemetry struct { + _ struct{} `type:"structure"` - // The maximum number of results to return. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + // The Amazon Web Services account ID. + AccountId *string `type:"string"` - // The token for the next page of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // The address. + Address *string `type:"string"` - // One or more transit gateway Connect peer Amazon Resource Names (ARNs). - TransitGatewayConnectPeerArns []*string `location:"querystring" locationName:"transitGatewayConnectPeerArns" type:"list"` + // The Amazon Web Services Region. + AwsRegion *string `type:"string"` + + // The connection health. + Health *ConnectionHealth `type:"structure"` + + // The ARN of the gateway. + RegisteredGatewayArn *string `type:"string"` + + // The ARN of the resource. + ResourceArn *string `type:"string"` + + // The ID of the resource. + ResourceId *string `type:"string"` + + // The resource type. + ResourceType *string `type:"string"` } // String returns the string representation. @@ -7243,7 +10354,7 @@ type GetTransitGatewayConnectPeerAssociationsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetTransitGatewayConnectPeerAssociationsInput) String() string { +func (s NetworkTelemetry) String() string { return awsutil.Prettify(s) } @@ -7252,61 +10363,70 @@ func (s GetTransitGatewayConnectPeerAssociationsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetTransitGatewayConnectPeerAssociationsInput) GoString() string { +func (s NetworkTelemetry) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetTransitGatewayConnectPeerAssociationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayConnectPeerAssociationsInput"} - if s.GlobalNetworkId == nil { - invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) - } - if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } +// SetAccountId sets the AccountId field's value. +func (s *NetworkTelemetry) SetAccountId(v string) *NetworkTelemetry { + s.AccountId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAddress sets the Address field's value. +func (s *NetworkTelemetry) SetAddress(v string) *NetworkTelemetry { + s.Address = &v + return s } -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *GetTransitGatewayConnectPeerAssociationsInput) SetGlobalNetworkId(v string) *GetTransitGatewayConnectPeerAssociationsInput { - s.GlobalNetworkId = &v +// SetAwsRegion sets the AwsRegion field's value. +func (s *NetworkTelemetry) SetAwsRegion(v string) *NetworkTelemetry { + s.AwsRegion = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *GetTransitGatewayConnectPeerAssociationsInput) SetMaxResults(v int64) *GetTransitGatewayConnectPeerAssociationsInput { - s.MaxResults = &v +// SetHealth sets the Health field's value. +func (s *NetworkTelemetry) SetHealth(v *ConnectionHealth) *NetworkTelemetry { + s.Health = v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetTransitGatewayConnectPeerAssociationsInput) SetNextToken(v string) *GetTransitGatewayConnectPeerAssociationsInput { - s.NextToken = &v +// SetRegisteredGatewayArn sets the RegisteredGatewayArn field's value. +func (s *NetworkTelemetry) SetRegisteredGatewayArn(v string) *NetworkTelemetry { + s.RegisteredGatewayArn = &v return s } -// SetTransitGatewayConnectPeerArns sets the TransitGatewayConnectPeerArns field's value. -func (s *GetTransitGatewayConnectPeerAssociationsInput) SetTransitGatewayConnectPeerArns(v []*string) *GetTransitGatewayConnectPeerAssociationsInput { - s.TransitGatewayConnectPeerArns = v +// SetResourceArn sets the ResourceArn field's value. +func (s *NetworkTelemetry) SetResourceArn(v string) *NetworkTelemetry { + s.ResourceArn = &v return s } -type GetTransitGatewayConnectPeerAssociationsOutput struct { +// SetResourceId sets the ResourceId field's value. +func (s *NetworkTelemetry) SetResourceId(v string) *NetworkTelemetry { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *NetworkTelemetry) SetResourceType(v string) *NetworkTelemetry { + s.ResourceType = &v + return s +} + +// Describes a path component. +type PathComponent struct { _ struct{} `type:"structure"` - // The token to use for the next page of results. - NextToken *string `type:"string"` + // The destination CIDR block in the route table. + DestinationCidrBlock *string `type:"string"` - // Information about the transit gateway Connect peer associations. - TransitGatewayConnectPeerAssociations []*TransitGatewayConnectPeerAssociation `type:"list"` + // The resource. + Resource *NetworkResourceSummary `type:"structure"` + + // The sequence number in the path. The destination is 0. + Sequence *int64 `type:"integer"` } // String returns the string representation. @@ -7314,7 +10434,7 @@ type GetTransitGatewayConnectPeerAssociationsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetTransitGatewayConnectPeerAssociationsOutput) String() string { +func (s PathComponent) String() string { return awsutil.Prettify(s) } @@ -7323,39 +10443,40 @@ func (s GetTransitGatewayConnectPeerAssociationsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetTransitGatewayConnectPeerAssociationsOutput) GoString() string { +func (s PathComponent) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *GetTransitGatewayConnectPeerAssociationsOutput) SetNextToken(v string) *GetTransitGatewayConnectPeerAssociationsOutput { - s.NextToken = &v +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *PathComponent) SetDestinationCidrBlock(v string) *PathComponent { + s.DestinationCidrBlock = &v return s } -// SetTransitGatewayConnectPeerAssociations sets the TransitGatewayConnectPeerAssociations field's value. -func (s *GetTransitGatewayConnectPeerAssociationsOutput) SetTransitGatewayConnectPeerAssociations(v []*TransitGatewayConnectPeerAssociation) *GetTransitGatewayConnectPeerAssociationsOutput { - s.TransitGatewayConnectPeerAssociations = v +// SetResource sets the Resource field's value. +func (s *PathComponent) SetResource(v *NetworkResourceSummary) *PathComponent { + s.Resource = v return s } -type GetTransitGatewayRegistrationsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetSequence sets the Sequence field's value. +func (s *PathComponent) SetSequence(v int64) *PathComponent { + s.Sequence = &v + return s +} + +type RegisterTransitGatewayInput struct { + _ struct{} `type:"structure"` // The ID of the global network. // // GlobalNetworkId is a required field GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // The maximum number of results to return. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - - // The token for the next page of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` - - // The Amazon Resource Names (ARNs) of one or more transit gateways. The maximum - // is 10. - TransitGatewayArns []*string `location:"querystring" locationName:"transitGatewayArns" type:"list"` + // The Amazon Resource Name (ARN) of the transit gateway. + // + // TransitGatewayArn is a required field + TransitGatewayArn *string `type:"string" required:"true"` } // String returns the string representation. @@ -7363,7 +10484,7 @@ type GetTransitGatewayRegistrationsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetTransitGatewayRegistrationsInput) String() string { +func (s RegisterTransitGatewayInput) String() string { return awsutil.Prettify(s) } @@ -7372,61 +10493,46 @@ func (s GetTransitGatewayRegistrationsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetTransitGatewayRegistrationsInput) GoString() string { +func (s RegisterTransitGatewayInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetTransitGatewayRegistrationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayRegistrationsInput"} +func (s *RegisterTransitGatewayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterTransitGatewayInput"} if s.GlobalNetworkId == nil { invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) } if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.TransitGatewayArn == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayArn")) } if invalidParams.Len() > 0 { return invalidParams - } - return nil -} - -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *GetTransitGatewayRegistrationsInput) SetGlobalNetworkId(v string) *GetTransitGatewayRegistrationsInput { - s.GlobalNetworkId = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *GetTransitGatewayRegistrationsInput) SetMaxResults(v int64) *GetTransitGatewayRegistrationsInput { - s.MaxResults = &v - return s + } + return nil } -// SetNextToken sets the NextToken field's value. -func (s *GetTransitGatewayRegistrationsInput) SetNextToken(v string) *GetTransitGatewayRegistrationsInput { - s.NextToken = &v +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *RegisterTransitGatewayInput) SetGlobalNetworkId(v string) *RegisterTransitGatewayInput { + s.GlobalNetworkId = &v return s } -// SetTransitGatewayArns sets the TransitGatewayArns field's value. -func (s *GetTransitGatewayRegistrationsInput) SetTransitGatewayArns(v []*string) *GetTransitGatewayRegistrationsInput { - s.TransitGatewayArns = v +// SetTransitGatewayArn sets the TransitGatewayArn field's value. +func (s *RegisterTransitGatewayInput) SetTransitGatewayArn(v string) *RegisterTransitGatewayInput { + s.TransitGatewayArn = &v return s } -type GetTransitGatewayRegistrationsOutput struct { +type RegisterTransitGatewayOutput struct { _ struct{} `type:"structure"` - // The token for the next page of results. - NextToken *string `type:"string"` - - // The transit gateway registrations. - TransitGatewayRegistrations []*TransitGatewayRegistration `type:"list"` + // Information about the transit gateway registration. + TransitGatewayRegistration *TransitGatewayRegistration `type:"structure"` } // String returns the string representation. @@ -7434,7 +10540,7 @@ type GetTransitGatewayRegistrationsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetTransitGatewayRegistrationsOutput) String() string { +func (s RegisterTransitGatewayOutput) String() string { return awsutil.Prettify(s) } @@ -7443,43 +10549,25 @@ func (s GetTransitGatewayRegistrationsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetTransitGatewayRegistrationsOutput) GoString() string { +func (s RegisterTransitGatewayOutput) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *GetTransitGatewayRegistrationsOutput) SetNextToken(v string) *GetTransitGatewayRegistrationsOutput { - s.NextToken = &v - return s -} - -// SetTransitGatewayRegistrations sets the TransitGatewayRegistrations field's value. -func (s *GetTransitGatewayRegistrationsOutput) SetTransitGatewayRegistrations(v []*TransitGatewayRegistration) *GetTransitGatewayRegistrationsOutput { - s.TransitGatewayRegistrations = v +// SetTransitGatewayRegistration sets the TransitGatewayRegistration field's value. +func (s *RegisterTransitGatewayOutput) SetTransitGatewayRegistration(v *TransitGatewayRegistration) *RegisterTransitGatewayOutput { + s.TransitGatewayRegistration = v return s } -// Describes a global network. -type GlobalNetwork struct { +// Describes a resource relationship. +type Relationship struct { _ struct{} `type:"structure"` - // The date and time that the global network was created. - CreatedAt *time.Time `type:"timestamp"` - - // The description of the global network. - Description *string `type:"string"` - - // The Amazon Resource Name (ARN) of the global network. - GlobalNetworkArn *string `type:"string"` - - // The ID of the global network. - GlobalNetworkId *string `type:"string"` - - // The state of the global network. - State *string `type:"string" enum:"GlobalNetworkState"` + // The ARN of the resource. + From *string `type:"string"` - // The tags for the global network. - Tags []*Tag `type:"list"` + // The ARN of the resource. + To *string `type:"string"` } // String returns the string representation. @@ -7487,7 +10575,7 @@ type GlobalNetwork struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GlobalNetwork) String() string { +func (s Relationship) String() string { return awsutil.Prettify(s) } @@ -7496,55 +10584,40 @@ func (s GlobalNetwork) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GlobalNetwork) GoString() string { +func (s Relationship) GoString() string { return s.String() } -// SetCreatedAt sets the CreatedAt field's value. -func (s *GlobalNetwork) SetCreatedAt(v time.Time) *GlobalNetwork { - s.CreatedAt = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *GlobalNetwork) SetDescription(v string) *GlobalNetwork { - s.Description = &v - return s -} - -// SetGlobalNetworkArn sets the GlobalNetworkArn field's value. -func (s *GlobalNetwork) SetGlobalNetworkArn(v string) *GlobalNetwork { - s.GlobalNetworkArn = &v - return s -} - -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *GlobalNetwork) SetGlobalNetworkId(v string) *GlobalNetwork { - s.GlobalNetworkId = &v - return s -} - -// SetState sets the State field's value. -func (s *GlobalNetwork) SetState(v string) *GlobalNetwork { - s.State = &v +// SetFrom sets the From field's value. +func (s *Relationship) SetFrom(v string) *Relationship { + s.From = &v return s } -// SetTags sets the Tags field's value. -func (s *GlobalNetwork) SetTags(v []*Tag) *GlobalNetwork { - s.Tags = v +// SetTo sets the To field's value. +func (s *Relationship) SetTo(v string) *Relationship { + s.To = &v return s } -// The request has failed due to an internal error. -type InternalServerException struct { +// The specified resource could not be found. +type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Context map[string]*string `type:"map"` + Message_ *string `locationName:"Message" type:"string"` - // Indicates when to retry the request. - RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"` + // The ID of the resource. + // + // ResourceId is a required field + ResourceId *string `type:"string" required:"true"` + + // The resource type. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true"` } // String returns the string representation. @@ -7552,7 +10625,7 @@ type InternalServerException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InternalServerException) String() string { +func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } @@ -7561,23 +10634,23 @@ func (s InternalServerException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InternalServerException) GoString() string { +func (s ResourceNotFoundException) GoString() string { return s.String() } -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" } // Message returns the exception's message. -func (s *InternalServerException) Message() string { +func (s *ResourceNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -7585,60 +10658,62 @@ func (s *InternalServerException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { +func (s *ResourceNotFoundException) OrigErr() error { return nil } -func (s *InternalServerException) Error() string { +func (s *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { +func (s *ResourceNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { +func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } -// Describes a link. -type Link struct { +// Describes a route analysis. +type RouteAnalysis struct { _ struct{} `type:"structure"` - // The bandwidth for the link. - Bandwidth *Bandwidth `type:"structure"` - - // The date and time that the link was created. - CreatedAt *time.Time `type:"timestamp"` + // The destination. + Destination *RouteAnalysisEndpointOptions `type:"structure"` - // The description of the link. - Description *string `type:"string"` + // The forward path. + ForwardPath *RouteAnalysisPath `type:"structure"` // The ID of the global network. GlobalNetworkId *string `type:"string"` - // The Amazon Resource Name (ARN) of the link. - LinkArn *string `type:"string"` + // Indicates whether to analyze the return path. The return path is not analyzed + // if the forward path analysis does not succeed. + IncludeReturnPath *bool `type:"boolean"` - // The ID of the link. - LinkId *string `type:"string"` + // The ID of the AWS account that created the route analysis. + OwnerAccountId *string `type:"string"` - // The provider of the link. - Provider *string `type:"string"` + // The return path. + ReturnPath *RouteAnalysisPath `type:"structure"` - // The ID of the site. - SiteId *string `type:"string"` + // The ID of the route analysis. + RouteAnalysisId *string `type:"string"` - // The state of the link. - State *string `type:"string" enum:"LinkState"` + // The source. + Source *RouteAnalysisEndpointOptions `type:"structure"` - // The tags for the link. - Tags []*Tag `type:"list"` + // The time that the analysis started. + StartTimestamp *time.Time `type:"timestamp"` - // The type of the link. - Type *string `type:"string"` + // The status of the route analysis. + Status *string `type:"string" enum:"RouteAnalysisStatus"` + + // Indicates whether to include the location of middlebox appliances in the + // route analysis. + UseMiddleboxes *bool `type:"boolean"` } // String returns the string representation. @@ -7646,7 +10721,7 @@ type Link struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Link) String() string { +func (s RouteAnalysis) String() string { return awsutil.Prettify(s) } @@ -7655,142 +10730,115 @@ func (s Link) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Link) GoString() string { +func (s RouteAnalysis) GoString() string { return s.String() } -// SetBandwidth sets the Bandwidth field's value. -func (s *Link) SetBandwidth(v *Bandwidth) *Link { - s.Bandwidth = v - return s -} - -// SetCreatedAt sets the CreatedAt field's value. -func (s *Link) SetCreatedAt(v time.Time) *Link { - s.CreatedAt = &v +// SetDestination sets the Destination field's value. +func (s *RouteAnalysis) SetDestination(v *RouteAnalysisEndpointOptions) *RouteAnalysis { + s.Destination = v return s } -// SetDescription sets the Description field's value. -func (s *Link) SetDescription(v string) *Link { - s.Description = &v +// SetForwardPath sets the ForwardPath field's value. +func (s *RouteAnalysis) SetForwardPath(v *RouteAnalysisPath) *RouteAnalysis { + s.ForwardPath = v return s } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *Link) SetGlobalNetworkId(v string) *Link { +func (s *RouteAnalysis) SetGlobalNetworkId(v string) *RouteAnalysis { s.GlobalNetworkId = &v return s } -// SetLinkArn sets the LinkArn field's value. -func (s *Link) SetLinkArn(v string) *Link { - s.LinkArn = &v - return s -} - -// SetLinkId sets the LinkId field's value. -func (s *Link) SetLinkId(v string) *Link { - s.LinkId = &v - return s -} - -// SetProvider sets the Provider field's value. -func (s *Link) SetProvider(v string) *Link { - s.Provider = &v - return s -} - -// SetSiteId sets the SiteId field's value. -func (s *Link) SetSiteId(v string) *Link { - s.SiteId = &v +// SetIncludeReturnPath sets the IncludeReturnPath field's value. +func (s *RouteAnalysis) SetIncludeReturnPath(v bool) *RouteAnalysis { + s.IncludeReturnPath = &v return s } -// SetState sets the State field's value. -func (s *Link) SetState(v string) *Link { - s.State = &v +// SetOwnerAccountId sets the OwnerAccountId field's value. +func (s *RouteAnalysis) SetOwnerAccountId(v string) *RouteAnalysis { + s.OwnerAccountId = &v return s } -// SetTags sets the Tags field's value. -func (s *Link) SetTags(v []*Tag) *Link { - s.Tags = v +// SetReturnPath sets the ReturnPath field's value. +func (s *RouteAnalysis) SetReturnPath(v *RouteAnalysisPath) *RouteAnalysis { + s.ReturnPath = v return s } -// SetType sets the Type field's value. -func (s *Link) SetType(v string) *Link { - s.Type = &v +// SetRouteAnalysisId sets the RouteAnalysisId field's value. +func (s *RouteAnalysis) SetRouteAnalysisId(v string) *RouteAnalysis { + s.RouteAnalysisId = &v return s } -// Describes the association between a device and a link. -type LinkAssociation struct { - _ struct{} `type:"structure"` - - // The device ID for the link association. - DeviceId *string `type:"string"` - - // The ID of the global network. - GlobalNetworkId *string `type:"string"` - - // The state of the association. - LinkAssociationState *string `type:"string" enum:"LinkAssociationState"` - - // The ID of the link. - LinkId *string `type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s LinkAssociation) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s LinkAssociation) GoString() string { - return s.String() -} - -// SetDeviceId sets the DeviceId field's value. -func (s *LinkAssociation) SetDeviceId(v string) *LinkAssociation { - s.DeviceId = &v +// SetSource sets the Source field's value. +func (s *RouteAnalysis) SetSource(v *RouteAnalysisEndpointOptions) *RouteAnalysis { + s.Source = v return s } -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *LinkAssociation) SetGlobalNetworkId(v string) *LinkAssociation { - s.GlobalNetworkId = &v +// SetStartTimestamp sets the StartTimestamp field's value. +func (s *RouteAnalysis) SetStartTimestamp(v time.Time) *RouteAnalysis { + s.StartTimestamp = &v return s } -// SetLinkAssociationState sets the LinkAssociationState field's value. -func (s *LinkAssociation) SetLinkAssociationState(v string) *LinkAssociation { - s.LinkAssociationState = &v +// SetStatus sets the Status field's value. +func (s *RouteAnalysis) SetStatus(v string) *RouteAnalysis { + s.Status = &v return s } -// SetLinkId sets the LinkId field's value. -func (s *LinkAssociation) SetLinkId(v string) *LinkAssociation { - s.LinkId = &v +// SetUseMiddleboxes sets the UseMiddleboxes field's value. +func (s *RouteAnalysis) SetUseMiddleboxes(v bool) *RouteAnalysis { + s.UseMiddleboxes = &v return s } -type ListTagsForResourceInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// Describes the status of an analysis at completion. +type RouteAnalysisCompletion struct { + _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the resource. + // The reason code. Available only if a connection is not found. // - // ResourceArn is a required field - ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + // * BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND - Found a black hole route with + // the destination CIDR block. + // + // * CYCLIC_PATH_DETECTED - Found the same resource multiple times while + // traversing the path. + // + // * INACTIVE_ROUTE_FOR_DESTINATION_FOUND - Found an inactive route with + // the destination CIDR block. + // + // * MAX_HOPS_EXCEEDED - Analysis exceeded 64 hops without finding the destination. + // + // * ROUTE_NOT_FOUND - Cannot find a route table with the destination CIDR + // block. + // + // * TGW_ATTACH_ARN_NO_MATCH - Found an attachment, but not with the correct + // destination ARN. + // + // * TGW_ATTACH_NOT_FOUND - Cannot find an attachment. + // + // * TGW_ATTACH_NOT_IN_TGW - Found an attachment, but not to the correct + // transit gateway. + // + // * TGW_ATTACH_STABLE_ROUTE_TABLE_NOT_FOUND - The state of the route table + // association is not associated. + ReasonCode *string `type:"string" enum:"RouteAnalysisCompletionReasonCode"` + + // Additional information about the path. Available only if a connection is + // not found. + ReasonContext map[string]*string `type:"map"` + + // The result of the analysis. If the status is NOT_CONNECTED, check the reason + // code. + ResultCode *string `type:"string" enum:"RouteAnalysisCompletionResultCode"` } // String returns the string representation. @@ -7798,7 +10846,7 @@ type ListTagsForResourceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceInput) String() string { +func (s RouteAnalysisCompletion) String() string { return awsutil.Prettify(s) } @@ -7807,37 +10855,40 @@ func (s ListTagsForResourceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceInput) GoString() string { +func (s RouteAnalysisCompletion) 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 s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } +// SetReasonCode sets the ReasonCode field's value. +func (s *RouteAnalysisCompletion) SetReasonCode(v string) *RouteAnalysisCompletion { + s.ReasonCode = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetReasonContext sets the ReasonContext field's value. +func (s *RouteAnalysisCompletion) SetReasonContext(v map[string]*string) *RouteAnalysisCompletion { + s.ReasonContext = v + return s } -// SetResourceArn sets the ResourceArn field's value. -func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { - s.ResourceArn = &v +// SetResultCode sets the ResultCode field's value. +func (s *RouteAnalysisCompletion) SetResultCode(v string) *RouteAnalysisCompletion { + s.ResultCode = &v return s } -type ListTagsForResourceOutput struct { +// Describes a source or a destination. +type RouteAnalysisEndpointOptions struct { _ struct{} `type:"structure"` - // The list of tags. - TagList []*Tag `type:"list"` + // The IP address. + IpAddress *string `type:"string"` + + // The ARN of the transit gateway. + TransitGatewayArn *string `type:"string"` + + // The ARN of the transit gateway attachment. + TransitGatewayAttachmentArn *string `type:"string"` } // String returns the string representation. @@ -7845,7 +10896,7 @@ type ListTagsForResourceOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) String() string { +func (s RouteAnalysisEndpointOptions) String() string { return awsutil.Prettify(s) } @@ -7854,28 +10905,37 @@ func (s ListTagsForResourceOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) GoString() string { +func (s RouteAnalysisEndpointOptions) GoString() string { return s.String() } -// SetTagList sets the TagList field's value. -func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput { - s.TagList = v +// SetIpAddress sets the IpAddress field's value. +func (s *RouteAnalysisEndpointOptions) SetIpAddress(v string) *RouteAnalysisEndpointOptions { + s.IpAddress = &v return s } -// Describes a location. -type Location struct { - _ struct{} `type:"structure" sensitive:"true"` +// SetTransitGatewayArn sets the TransitGatewayArn field's value. +func (s *RouteAnalysisEndpointOptions) SetTransitGatewayArn(v string) *RouteAnalysisEndpointOptions { + s.TransitGatewayArn = &v + return s +} - // The physical address. - Address *string `type:"string"` +// SetTransitGatewayAttachmentArn sets the TransitGatewayAttachmentArn field's value. +func (s *RouteAnalysisEndpointOptions) SetTransitGatewayAttachmentArn(v string) *RouteAnalysisEndpointOptions { + s.TransitGatewayAttachmentArn = &v + return s +} - // The latitude. - Latitude *string `type:"string"` +// Describes a source or a destination. +type RouteAnalysisEndpointOptionsSpecification struct { + _ struct{} `type:"structure"` - // The longitude. - Longitude *string `type:"string"` + // The IP address. + IpAddress *string `type:"string"` + + // The ARN of the transit gateway attachment. + TransitGatewayAttachmentArn *string `type:"string"` } // String returns the string representation. @@ -7883,7 +10943,7 @@ type Location struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Location) String() string { +func (s RouteAnalysisEndpointOptionsSpecification) String() string { return awsutil.Prettify(s) } @@ -7892,41 +10952,31 @@ func (s Location) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Location) GoString() string { +func (s RouteAnalysisEndpointOptionsSpecification) GoString() string { return s.String() } -// SetAddress sets the Address field's value. -func (s *Location) SetAddress(v string) *Location { - s.Address = &v - return s -} - -// SetLatitude sets the Latitude field's value. -func (s *Location) SetLatitude(v string) *Location { - s.Latitude = &v +// SetIpAddress sets the IpAddress field's value. +func (s *RouteAnalysisEndpointOptionsSpecification) SetIpAddress(v string) *RouteAnalysisEndpointOptionsSpecification { + s.IpAddress = &v return s } -// SetLongitude sets the Longitude field's value. -func (s *Location) SetLongitude(v string) *Location { - s.Longitude = &v +// SetTransitGatewayAttachmentArn sets the TransitGatewayAttachmentArn field's value. +func (s *RouteAnalysisEndpointOptionsSpecification) SetTransitGatewayAttachmentArn(v string) *RouteAnalysisEndpointOptionsSpecification { + s.TransitGatewayAttachmentArn = &v return s } -type RegisterTransitGatewayInput struct { +// Describes a route analysis path. +type RouteAnalysisPath struct { _ struct{} `type:"structure"` - // The ID of the global network. - // - // GlobalNetworkId is a required field - GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + // The status of the analysis at completion. + CompletionStatus *RouteAnalysisCompletion `type:"structure"` - // The Amazon Resource Name (ARN) of the transit gateway. For more information, - // see Resources Defined by Amazon EC2 (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazonec2.html#amazonec2-resources-for-iam-policies). - // - // TransitGatewayArn is a required field - TransitGatewayArn *string `type:"string" required:"true"` + // The route analysis path. + Path []*PathComponent `type:"list"` } // String returns the string representation. @@ -7934,7 +10984,7 @@ type RegisterTransitGatewayInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RegisterTransitGatewayInput) String() string { +func (s RouteAnalysisPath) String() string { return awsutil.Prettify(s) } @@ -7943,46 +10993,28 @@ func (s RegisterTransitGatewayInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RegisterTransitGatewayInput) GoString() string { +func (s RouteAnalysisPath) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterTransitGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterTransitGatewayInput"} - if s.GlobalNetworkId == nil { - invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) - } - if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) - } - if s.TransitGatewayArn == nil { - invalidParams.Add(request.NewErrParamRequired("TransitGatewayArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *RegisterTransitGatewayInput) SetGlobalNetworkId(v string) *RegisterTransitGatewayInput { - s.GlobalNetworkId = &v +// SetCompletionStatus sets the CompletionStatus field's value. +func (s *RouteAnalysisPath) SetCompletionStatus(v *RouteAnalysisCompletion) *RouteAnalysisPath { + s.CompletionStatus = v return s } -// SetTransitGatewayArn sets the TransitGatewayArn field's value. -func (s *RegisterTransitGatewayInput) SetTransitGatewayArn(v string) *RegisterTransitGatewayInput { - s.TransitGatewayArn = &v +// SetPath sets the Path field's value. +func (s *RouteAnalysisPath) SetPath(v []*PathComponent) *RouteAnalysisPath { + s.Path = v return s } -type RegisterTransitGatewayOutput struct { +// Describes a route table. +type RouteTableIdentifier struct { _ struct{} `type:"structure"` - // Information about the transit gateway registration. - TransitGatewayRegistration *TransitGatewayRegistration `type:"structure"` + // The ARN of the transit gateway route table. + TransitGatewayRouteTableArn *string `type:"string"` } // String returns the string representation. @@ -7990,7 +11022,7 @@ type RegisterTransitGatewayOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RegisterTransitGatewayOutput) String() string { +func (s RouteTableIdentifier) String() string { return awsutil.Prettify(s) } @@ -7999,32 +11031,39 @@ func (s RegisterTransitGatewayOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RegisterTransitGatewayOutput) GoString() string { +func (s RouteTableIdentifier) GoString() string { return s.String() } -// SetTransitGatewayRegistration sets the TransitGatewayRegistration field's value. -func (s *RegisterTransitGatewayOutput) SetTransitGatewayRegistration(v *TransitGatewayRegistration) *RegisterTransitGatewayOutput { - s.TransitGatewayRegistration = v +// SetTransitGatewayRouteTableArn sets the TransitGatewayRouteTableArn field's value. +func (s *RouteTableIdentifier) SetTransitGatewayRouteTableArn(v string) *RouteTableIdentifier { + s.TransitGatewayRouteTableArn = &v return s } -// The specified resource could not be found. -type ResourceNotFoundException struct { +// A service limit was exceeded. +type ServiceQuotaExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The limit code. + // + // LimitCode is a required field + LimitCode *string `type:"string" required:"true"` + + // The error message. Message_ *string `locationName:"Message" type:"string"` // The ID of the resource. - // - // ResourceId is a required field - ResourceId *string `type:"string" required:"true"` + ResourceId *string `type:"string"` // The resource type. + ResourceType *string `type:"string"` + + // The service code. // - // ResourceType is a required field - ResourceType *string `type:"string" required:"true"` + // ServiceCode is a required field + ServiceCode *string `type:"string" required:"true"` } // String returns the string representation. @@ -8032,7 +11071,7 @@ type ResourceNotFoundException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceNotFoundException) String() string { +func (s ServiceQuotaExceededException) String() string { return awsutil.Prettify(s) } @@ -8041,23 +11080,23 @@ func (s ResourceNotFoundException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceNotFoundException) GoString() string { +func (s ServiceQuotaExceededException) GoString() string { return s.String() } -func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { - return &ResourceNotFoundException{ +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *ResourceNotFoundException) Code() string { - return "ResourceNotFoundException" +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" } // Message returns the exception's message. -func (s *ResourceNotFoundException) Message() string { +func (s *ServiceQuotaExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -8065,47 +11104,55 @@ func (s *ResourceNotFoundException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceNotFoundException) OrigErr() error { +func (s *ServiceQuotaExceededException) OrigErr() error { return nil } -func (s *ResourceNotFoundException) Error() string { +func (s *ServiceQuotaExceededException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. -func (s *ResourceNotFoundException) StatusCode() int { +func (s *ServiceQuotaExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *ResourceNotFoundException) RequestID() string { +func (s *ServiceQuotaExceededException) RequestID() string { return s.RespMetadata.RequestID } -// A service limit was exceeded. -type ServiceQuotaExceededException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// Describes a site. +type Site struct { + _ struct{} `type:"structure"` - // The limit code. + // The date and time that the site was created. + CreatedAt *time.Time `type:"timestamp"` + + // The description of the site. + Description *string `type:"string"` + + // The ID of the global network. + GlobalNetworkId *string `type:"string"` + + // The location of the site. // - // LimitCode is a required field - LimitCode *string `type:"string" required:"true"` + // Location is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Site's + // String and GoString methods. + Location *Location `type:"structure" sensitive:"true"` - // The error message. - Message_ *string `locationName:"Message" type:"string"` + // The Amazon Resource Name (ARN) of the site. + SiteArn *string `type:"string"` - // The ID of the resource. - ResourceId *string `type:"string"` + // The ID of the site. + SiteId *string `type:"string"` - // The resource type. - ResourceType *string `type:"string"` + // The state of the site. + State *string `type:"string" enum:"SiteState"` - // The service code. - // - // ServiceCode is a required field - ServiceCode *string `type:"string" required:"true"` + // The tags for the site. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -8113,7 +11160,7 @@ type ServiceQuotaExceededException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceQuotaExceededException) String() string { +func (s Site) String() string { return awsutil.Prettify(s) } @@ -8122,79 +11169,82 @@ func (s ServiceQuotaExceededException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceQuotaExceededException) GoString() string { +func (s Site) GoString() string { return s.String() } -func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { - return &ServiceQuotaExceededException{ - RespMetadata: v, - } +// SetCreatedAt sets the CreatedAt field's value. +func (s *Site) SetCreatedAt(v time.Time) *Site { + s.CreatedAt = &v + return s } -// Code returns the exception type name. -func (s *ServiceQuotaExceededException) Code() string { - return "ServiceQuotaExceededException" +// SetDescription sets the Description field's value. +func (s *Site) SetDescription(v string) *Site { + s.Description = &v + return s } -// Message returns the exception's message. -func (s *ServiceQuotaExceededException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *Site) SetGlobalNetworkId(v string) *Site { + s.GlobalNetworkId = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceQuotaExceededException) OrigErr() error { - return nil +// SetLocation sets the Location field's value. +func (s *Site) SetLocation(v *Location) *Site { + s.Location = v + return s } -func (s *ServiceQuotaExceededException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// SetSiteArn sets the SiteArn field's value. +func (s *Site) SetSiteArn(v string) *Site { + s.SiteArn = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceQuotaExceededException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetSiteId sets the SiteId field's value. +func (s *Site) SetSiteId(v string) *Site { + s.SiteId = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ServiceQuotaExceededException) RequestID() string { - return s.RespMetadata.RequestID +// SetState sets the State field's value. +func (s *Site) SetState(v string) *Site { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Site) SetTags(v []*Tag) *Site { + s.Tags = v + return s } -// Describes a site. -type Site struct { +type StartRouteAnalysisInput struct { _ struct{} `type:"structure"` - // The date and time that the site was created. - CreatedAt *time.Time `type:"timestamp"` - - // The description of the site. - Description *string `type:"string"` + // The destination. + // + // Destination is a required field + Destination *RouteAnalysisEndpointOptionsSpecification `type:"structure" required:"true"` // The ID of the global network. - GlobalNetworkId *string `type:"string"` - - // The location of the site. // - // Location is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Site's - // String and GoString methods. - Location *Location `type:"structure" sensitive:"true"` - - // The Amazon Resource Name (ARN) of the site. - SiteArn *string `type:"string"` + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` - // The ID of the site. - SiteId *string `type:"string"` + // Indicates whether to analyze the return path. The default is false. + IncludeReturnPath *bool `type:"boolean"` - // The state of the site. - State *string `type:"string" enum:"SiteState"` + // The source from which traffic originates. + // + // Source is a required field + Source *RouteAnalysisEndpointOptionsSpecification `type:"structure" required:"true"` - // The tags for the site. - Tags []*Tag `type:"list"` + // Indicates whether to include the location of middlebox appliances in the + // route analysis. The default is false. + UseMiddleboxes *bool `type:"boolean"` } // String returns the string representation. @@ -8202,7 +11252,7 @@ type Site struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Site) String() string { +func (s StartRouteAnalysisInput) String() string { return awsutil.Prettify(s) } @@ -8211,55 +11261,90 @@ func (s Site) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Site) GoString() string { +func (s StartRouteAnalysisInput) GoString() string { return s.String() } -// SetCreatedAt sets the CreatedAt field's value. -func (s *Site) SetCreatedAt(v time.Time) *Site { - s.CreatedAt = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartRouteAnalysisInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartRouteAnalysisInput"} + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) + } + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + if s.Source == nil { + invalidParams.Add(request.NewErrParamRequired("Source")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetDescription sets the Description field's value. -func (s *Site) SetDescription(v string) *Site { - s.Description = &v +// SetDestination sets the Destination field's value. +func (s *StartRouteAnalysisInput) SetDestination(v *RouteAnalysisEndpointOptionsSpecification) *StartRouteAnalysisInput { + s.Destination = v return s } // SetGlobalNetworkId sets the GlobalNetworkId field's value. -func (s *Site) SetGlobalNetworkId(v string) *Site { +func (s *StartRouteAnalysisInput) SetGlobalNetworkId(v string) *StartRouteAnalysisInput { s.GlobalNetworkId = &v return s } -// SetLocation sets the Location field's value. -func (s *Site) SetLocation(v *Location) *Site { - s.Location = v +// SetIncludeReturnPath sets the IncludeReturnPath field's value. +func (s *StartRouteAnalysisInput) SetIncludeReturnPath(v bool) *StartRouteAnalysisInput { + s.IncludeReturnPath = &v return s } -// SetSiteArn sets the SiteArn field's value. -func (s *Site) SetSiteArn(v string) *Site { - s.SiteArn = &v +// SetSource sets the Source field's value. +func (s *StartRouteAnalysisInput) SetSource(v *RouteAnalysisEndpointOptionsSpecification) *StartRouteAnalysisInput { + s.Source = v return s } -// SetSiteId sets the SiteId field's value. -func (s *Site) SetSiteId(v string) *Site { - s.SiteId = &v +// SetUseMiddleboxes sets the UseMiddleboxes field's value. +func (s *StartRouteAnalysisInput) SetUseMiddleboxes(v bool) *StartRouteAnalysisInput { + s.UseMiddleboxes = &v return s } -// SetState sets the State field's value. -func (s *Site) SetState(v string) *Site { - s.State = &v - return s +type StartRouteAnalysisOutput struct { + _ struct{} `type:"structure"` + + // The route analysis. + RouteAnalysis *RouteAnalysis `type:"structure"` } -// SetTags sets the Tags field's value. -func (s *Site) SetTags(v []*Tag) *Site { - s.Tags = v +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StartRouteAnalysisOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StartRouteAnalysisOutput) GoString() string { + return s.String() +} + +// SetRouteAnalysis sets the RouteAnalysis field's value. +func (s *StartRouteAnalysisOutput) SetRouteAnalysis(v *RouteAnalysis) *StartRouteAnalysisOutput { + s.RouteAnalysis = v return s } @@ -8269,12 +11354,12 @@ type Tag struct { // The tag key. // - // Length Constraints: Maximum length of 128 characters. + // Constraints: Maximum length of 128 characters. Key *string `type:"string"` // The tag value. // - // Length Constraints: Maximum length of 256 characters. + // Constraints: Maximum length of 256 characters. Value *string `type:"string"` } @@ -8833,12 +11918,13 @@ func (s *UpdateConnectionOutput) SetConnection(v *Connection) *UpdateConnectionO type UpdateDeviceInput struct { _ struct{} `type:"structure"` - // The AWS location of the device. + // The Amazon Web Services location of the device, if applicable. For an on-premises + // device, you can omit this parameter. AWSLocation *AWSLocation `type:"structure"` // A description of the device. // - // Length Constraints: Maximum length of 256 characters. + // Constraints: Maximum length of 256 characters. Description *string `type:"string"` // The ID of the device. @@ -8860,12 +11946,12 @@ type UpdateDeviceInput struct { // The model of the device. // - // Length Constraints: Maximum length of 128 characters. + // Constraints: Maximum length of 128 characters. Model *string `type:"string"` // The serial number of the device. // - // Length Constraints: Maximum length of 128 characters. + // Constraints: Maximum length of 128 characters. SerialNumber *string `type:"string"` // The ID of the site. @@ -8876,7 +11962,7 @@ type UpdateDeviceInput struct { // The vendor of the device. // - // Length Constraints: Maximum length of 128 characters. + // Constraints: Maximum length of 128 characters. Vendor *string `type:"string"` } @@ -9016,7 +12102,7 @@ type UpdateGlobalNetworkInput struct { // A description of the global network. // - // Length Constraints: Maximum length of 256 characters. + // Constraints: Maximum length of 256 characters. Description *string `type:"string"` // The ID of your global network. @@ -9110,7 +12196,7 @@ type UpdateLinkInput struct { // A description of the link. // - // Length Constraints: Maximum length of 256 characters. + // Constraints: Maximum length of 256 characters. Description *string `type:"string"` // The ID of the global network. @@ -9125,12 +12211,12 @@ type UpdateLinkInput struct { // The provider of the link. // - // Length Constraints: Maximum length of 128 characters. + // Constraints: Maximum length of 128 characters. Provider *string `type:"string"` // The type of the link. // - // Length Constraints: Maximum length of 128 characters. + // Constraints: Maximum length of 128 characters. Type *string `type:"string"` } @@ -9241,12 +12327,132 @@ func (s *UpdateLinkOutput) SetLink(v *Link) *UpdateLinkOutput { return s } +type UpdateNetworkResourceMetadataInput struct { + _ struct{} `type:"structure"` + + // The ID of the global network. + // + // GlobalNetworkId is a required field + GlobalNetworkId *string `location:"uri" locationName:"globalNetworkId" type:"string" required:"true"` + + // The resource metadata. + // + // Metadata is a required field + Metadata map[string]*string `type:"map" required:"true"` + + // The ARN of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateNetworkResourceMetadataInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateNetworkResourceMetadataInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateNetworkResourceMetadataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateNetworkResourceMetadataInput"} + if s.GlobalNetworkId == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalNetworkId")) + } + if s.GlobalNetworkId != nil && len(*s.GlobalNetworkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalNetworkId", 1)) + } + if s.Metadata == nil { + invalidParams.Add(request.NewErrParamRequired("Metadata")) + } + 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 +} + +// SetGlobalNetworkId sets the GlobalNetworkId field's value. +func (s *UpdateNetworkResourceMetadataInput) SetGlobalNetworkId(v string) *UpdateNetworkResourceMetadataInput { + s.GlobalNetworkId = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *UpdateNetworkResourceMetadataInput) SetMetadata(v map[string]*string) *UpdateNetworkResourceMetadataInput { + s.Metadata = v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UpdateNetworkResourceMetadataInput) SetResourceArn(v string) *UpdateNetworkResourceMetadataInput { + s.ResourceArn = &v + return s +} + +type UpdateNetworkResourceMetadataOutput struct { + _ struct{} `type:"structure"` + + // The updated resource metadata. + Metadata map[string]*string `type:"map"` + + // The ARN of the resource. + ResourceArn *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateNetworkResourceMetadataOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateNetworkResourceMetadataOutput) GoString() string { + return s.String() +} + +// SetMetadata sets the Metadata field's value. +func (s *UpdateNetworkResourceMetadataOutput) SetMetadata(v map[string]*string) *UpdateNetworkResourceMetadataOutput { + s.Metadata = v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UpdateNetworkResourceMetadataOutput) SetResourceArn(v string) *UpdateNetworkResourceMetadataOutput { + s.ResourceArn = &v + return s +} + type UpdateSiteInput struct { _ struct{} `type:"structure"` // A description of your site. // - // Length Constraints: Maximum length of 256 characters. + // Constraints: Maximum length of 256 characters. Description *string `type:"string"` // The ID of the global network. @@ -9507,6 +12713,38 @@ func ConnectionState_Values() []string { } } +const ( + // ConnectionStatusUp is a ConnectionStatus enum value + ConnectionStatusUp = "UP" + + // ConnectionStatusDown is a ConnectionStatus enum value + ConnectionStatusDown = "DOWN" +) + +// ConnectionStatus_Values returns all elements of the ConnectionStatus enum +func ConnectionStatus_Values() []string { + return []string{ + ConnectionStatusUp, + ConnectionStatusDown, + } +} + +const ( + // ConnectionTypeBgp is a ConnectionType enum value + ConnectionTypeBgp = "BGP" + + // ConnectionTypeIpsec is a ConnectionType enum value + ConnectionTypeIpsec = "IPSEC" +) + +// ConnectionType_Values returns all elements of the ConnectionType enum +func ConnectionType_Values() []string { + return []string{ + ConnectionTypeBgp, + ConnectionTypeIpsec, + } +} + const ( // CustomerGatewayAssociationStatePending is a CustomerGatewayAssociationState enum value CustomerGatewayAssociationStatePending = "PENDING" @@ -9627,6 +12865,138 @@ func LinkState_Values() []string { } } +const ( + // RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentNotFound is a RouteAnalysisCompletionReasonCode enum value + RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentNotFound = "TRANSIT_GATEWAY_ATTACHMENT_NOT_FOUND" + + // RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentNotInTransitGateway is a RouteAnalysisCompletionReasonCode enum value + RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentNotInTransitGateway = "TRANSIT_GATEWAY_ATTACHMENT_NOT_IN_TRANSIT_GATEWAY" + + // RouteAnalysisCompletionReasonCodeCyclicPathDetected is a RouteAnalysisCompletionReasonCode enum value + RouteAnalysisCompletionReasonCodeCyclicPathDetected = "CYCLIC_PATH_DETECTED" + + // RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentStableRouteTableNotFound is a RouteAnalysisCompletionReasonCode enum value + RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentStableRouteTableNotFound = "TRANSIT_GATEWAY_ATTACHMENT_STABLE_ROUTE_TABLE_NOT_FOUND" + + // RouteAnalysisCompletionReasonCodeRouteNotFound is a RouteAnalysisCompletionReasonCode enum value + RouteAnalysisCompletionReasonCodeRouteNotFound = "ROUTE_NOT_FOUND" + + // RouteAnalysisCompletionReasonCodeBlackholeRouteForDestinationFound is a RouteAnalysisCompletionReasonCode enum value + RouteAnalysisCompletionReasonCodeBlackholeRouteForDestinationFound = "BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND" + + // RouteAnalysisCompletionReasonCodeInactiveRouteForDestinationFound is a RouteAnalysisCompletionReasonCode enum value + RouteAnalysisCompletionReasonCodeInactiveRouteForDestinationFound = "INACTIVE_ROUTE_FOR_DESTINATION_FOUND" + + // RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentAttachArnNoMatch is a RouteAnalysisCompletionReasonCode enum value + RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentAttachArnNoMatch = "TRANSIT_GATEWAY_ATTACHMENT_ATTACH_ARN_NO_MATCH" + + // RouteAnalysisCompletionReasonCodeMaxHopsExceeded is a RouteAnalysisCompletionReasonCode enum value + RouteAnalysisCompletionReasonCodeMaxHopsExceeded = "MAX_HOPS_EXCEEDED" + + // RouteAnalysisCompletionReasonCodePossibleMiddlebox is a RouteAnalysisCompletionReasonCode enum value + RouteAnalysisCompletionReasonCodePossibleMiddlebox = "POSSIBLE_MIDDLEBOX" + + // RouteAnalysisCompletionReasonCodeNoDestinationArnProvided is a RouteAnalysisCompletionReasonCode enum value + RouteAnalysisCompletionReasonCodeNoDestinationArnProvided = "NO_DESTINATION_ARN_PROVIDED" +) + +// RouteAnalysisCompletionReasonCode_Values returns all elements of the RouteAnalysisCompletionReasonCode enum +func RouteAnalysisCompletionReasonCode_Values() []string { + return []string{ + RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentNotFound, + RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentNotInTransitGateway, + RouteAnalysisCompletionReasonCodeCyclicPathDetected, + RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentStableRouteTableNotFound, + RouteAnalysisCompletionReasonCodeRouteNotFound, + RouteAnalysisCompletionReasonCodeBlackholeRouteForDestinationFound, + RouteAnalysisCompletionReasonCodeInactiveRouteForDestinationFound, + RouteAnalysisCompletionReasonCodeTransitGatewayAttachmentAttachArnNoMatch, + RouteAnalysisCompletionReasonCodeMaxHopsExceeded, + RouteAnalysisCompletionReasonCodePossibleMiddlebox, + RouteAnalysisCompletionReasonCodeNoDestinationArnProvided, + } +} + +const ( + // RouteAnalysisCompletionResultCodeConnected is a RouteAnalysisCompletionResultCode enum value + RouteAnalysisCompletionResultCodeConnected = "CONNECTED" + + // RouteAnalysisCompletionResultCodeNotConnected is a RouteAnalysisCompletionResultCode enum value + RouteAnalysisCompletionResultCodeNotConnected = "NOT_CONNECTED" +) + +// RouteAnalysisCompletionResultCode_Values returns all elements of the RouteAnalysisCompletionResultCode enum +func RouteAnalysisCompletionResultCode_Values() []string { + return []string{ + RouteAnalysisCompletionResultCodeConnected, + RouteAnalysisCompletionResultCodeNotConnected, + } +} + +const ( + // RouteAnalysisStatusRunning is a RouteAnalysisStatus enum value + RouteAnalysisStatusRunning = "RUNNING" + + // RouteAnalysisStatusCompleted is a RouteAnalysisStatus enum value + RouteAnalysisStatusCompleted = "COMPLETED" + + // RouteAnalysisStatusFailed is a RouteAnalysisStatus enum value + RouteAnalysisStatusFailed = "FAILED" +) + +// RouteAnalysisStatus_Values returns all elements of the RouteAnalysisStatus enum +func RouteAnalysisStatus_Values() []string { + return []string{ + RouteAnalysisStatusRunning, + RouteAnalysisStatusCompleted, + RouteAnalysisStatusFailed, + } +} + +const ( + // RouteStateActive is a RouteState enum value + RouteStateActive = "ACTIVE" + + // RouteStateBlackhole is a RouteState enum value + RouteStateBlackhole = "BLACKHOLE" +) + +// RouteState_Values returns all elements of the RouteState enum +func RouteState_Values() []string { + return []string{ + RouteStateActive, + RouteStateBlackhole, + } +} + +const ( + // RouteTableTypeTransitGatewayRouteTable is a RouteTableType enum value + RouteTableTypeTransitGatewayRouteTable = "TRANSIT_GATEWAY_ROUTE_TABLE" +) + +// RouteTableType_Values returns all elements of the RouteTableType enum +func RouteTableType_Values() []string { + return []string{ + RouteTableTypeTransitGatewayRouteTable, + } +} + +const ( + // RouteTypePropagated is a RouteType enum value + RouteTypePropagated = "PROPAGATED" + + // RouteTypeStatic is a RouteType enum value + RouteTypeStatic = "STATIC" +) + +// RouteType_Values returns all elements of the RouteType enum +func RouteType_Values() []string { + return []string{ + RouteTypePropagated, + RouteTypeStatic, + } +} + const ( // SiteStatePending is a SiteState enum value SiteStatePending = "PENDING" diff --git a/service/networkmanager/doc.go b/service/networkmanager/doc.go index 4beb2180a33..96c3cc8e8aa 100644 --- a/service/networkmanager/doc.go +++ b/service/networkmanager/doc.go @@ -4,11 +4,8 @@ // requests to AWS Network Manager. // // Transit Gateway Network Manager (Network Manager) enables you to create a -// global network, in which you can monitor your AWS and on-premises networks -// that are built around transit gateways. -// -// The Network Manager APIs are supported in the US West (Oregon) Region only. -// You must specify the us-west-2 Region in all requests made to Network Manager. +// global network, in which you can monitor your Amazon Web Services and on-premises +// networks that are built around transit gateways. // // See https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05 for more information on this service. // diff --git a/service/networkmanager/networkmanageriface/interface.go b/service/networkmanager/networkmanageriface/interface.go index aceaa02d425..8a1cc779cce 100644 --- a/service/networkmanager/networkmanageriface/interface.go +++ b/service/networkmanager/networkmanageriface/interface.go @@ -170,6 +170,42 @@ type NetworkManagerAPI interface { GetLinksPages(*networkmanager.GetLinksInput, func(*networkmanager.GetLinksOutput, bool) bool) error GetLinksPagesWithContext(aws.Context, *networkmanager.GetLinksInput, func(*networkmanager.GetLinksOutput, bool) bool, ...request.Option) error + GetNetworkResourceCounts(*networkmanager.GetNetworkResourceCountsInput) (*networkmanager.GetNetworkResourceCountsOutput, error) + GetNetworkResourceCountsWithContext(aws.Context, *networkmanager.GetNetworkResourceCountsInput, ...request.Option) (*networkmanager.GetNetworkResourceCountsOutput, error) + GetNetworkResourceCountsRequest(*networkmanager.GetNetworkResourceCountsInput) (*request.Request, *networkmanager.GetNetworkResourceCountsOutput) + + GetNetworkResourceCountsPages(*networkmanager.GetNetworkResourceCountsInput, func(*networkmanager.GetNetworkResourceCountsOutput, bool) bool) error + GetNetworkResourceCountsPagesWithContext(aws.Context, *networkmanager.GetNetworkResourceCountsInput, func(*networkmanager.GetNetworkResourceCountsOutput, bool) bool, ...request.Option) error + + GetNetworkResourceRelationships(*networkmanager.GetNetworkResourceRelationshipsInput) (*networkmanager.GetNetworkResourceRelationshipsOutput, error) + GetNetworkResourceRelationshipsWithContext(aws.Context, *networkmanager.GetNetworkResourceRelationshipsInput, ...request.Option) (*networkmanager.GetNetworkResourceRelationshipsOutput, error) + GetNetworkResourceRelationshipsRequest(*networkmanager.GetNetworkResourceRelationshipsInput) (*request.Request, *networkmanager.GetNetworkResourceRelationshipsOutput) + + GetNetworkResourceRelationshipsPages(*networkmanager.GetNetworkResourceRelationshipsInput, func(*networkmanager.GetNetworkResourceRelationshipsOutput, bool) bool) error + GetNetworkResourceRelationshipsPagesWithContext(aws.Context, *networkmanager.GetNetworkResourceRelationshipsInput, func(*networkmanager.GetNetworkResourceRelationshipsOutput, bool) bool, ...request.Option) error + + GetNetworkResources(*networkmanager.GetNetworkResourcesInput) (*networkmanager.GetNetworkResourcesOutput, error) + GetNetworkResourcesWithContext(aws.Context, *networkmanager.GetNetworkResourcesInput, ...request.Option) (*networkmanager.GetNetworkResourcesOutput, error) + GetNetworkResourcesRequest(*networkmanager.GetNetworkResourcesInput) (*request.Request, *networkmanager.GetNetworkResourcesOutput) + + GetNetworkResourcesPages(*networkmanager.GetNetworkResourcesInput, func(*networkmanager.GetNetworkResourcesOutput, bool) bool) error + GetNetworkResourcesPagesWithContext(aws.Context, *networkmanager.GetNetworkResourcesInput, func(*networkmanager.GetNetworkResourcesOutput, bool) bool, ...request.Option) error + + GetNetworkRoutes(*networkmanager.GetNetworkRoutesInput) (*networkmanager.GetNetworkRoutesOutput, error) + GetNetworkRoutesWithContext(aws.Context, *networkmanager.GetNetworkRoutesInput, ...request.Option) (*networkmanager.GetNetworkRoutesOutput, error) + GetNetworkRoutesRequest(*networkmanager.GetNetworkRoutesInput) (*request.Request, *networkmanager.GetNetworkRoutesOutput) + + GetNetworkTelemetry(*networkmanager.GetNetworkTelemetryInput) (*networkmanager.GetNetworkTelemetryOutput, error) + GetNetworkTelemetryWithContext(aws.Context, *networkmanager.GetNetworkTelemetryInput, ...request.Option) (*networkmanager.GetNetworkTelemetryOutput, error) + GetNetworkTelemetryRequest(*networkmanager.GetNetworkTelemetryInput) (*request.Request, *networkmanager.GetNetworkTelemetryOutput) + + GetNetworkTelemetryPages(*networkmanager.GetNetworkTelemetryInput, func(*networkmanager.GetNetworkTelemetryOutput, bool) bool) error + GetNetworkTelemetryPagesWithContext(aws.Context, *networkmanager.GetNetworkTelemetryInput, func(*networkmanager.GetNetworkTelemetryOutput, bool) bool, ...request.Option) error + + GetRouteAnalysis(*networkmanager.GetRouteAnalysisInput) (*networkmanager.GetRouteAnalysisOutput, error) + GetRouteAnalysisWithContext(aws.Context, *networkmanager.GetRouteAnalysisInput, ...request.Option) (*networkmanager.GetRouteAnalysisOutput, error) + GetRouteAnalysisRequest(*networkmanager.GetRouteAnalysisInput) (*request.Request, *networkmanager.GetRouteAnalysisOutput) + GetSites(*networkmanager.GetSitesInput) (*networkmanager.GetSitesOutput, error) GetSitesWithContext(aws.Context, *networkmanager.GetSitesInput, ...request.Option) (*networkmanager.GetSitesOutput, error) GetSitesRequest(*networkmanager.GetSitesInput) (*request.Request, *networkmanager.GetSitesOutput) @@ -199,6 +235,10 @@ type NetworkManagerAPI interface { RegisterTransitGatewayWithContext(aws.Context, *networkmanager.RegisterTransitGatewayInput, ...request.Option) (*networkmanager.RegisterTransitGatewayOutput, error) RegisterTransitGatewayRequest(*networkmanager.RegisterTransitGatewayInput) (*request.Request, *networkmanager.RegisterTransitGatewayOutput) + StartRouteAnalysis(*networkmanager.StartRouteAnalysisInput) (*networkmanager.StartRouteAnalysisOutput, error) + StartRouteAnalysisWithContext(aws.Context, *networkmanager.StartRouteAnalysisInput, ...request.Option) (*networkmanager.StartRouteAnalysisOutput, error) + StartRouteAnalysisRequest(*networkmanager.StartRouteAnalysisInput) (*request.Request, *networkmanager.StartRouteAnalysisOutput) + TagResource(*networkmanager.TagResourceInput) (*networkmanager.TagResourceOutput, error) TagResourceWithContext(aws.Context, *networkmanager.TagResourceInput, ...request.Option) (*networkmanager.TagResourceOutput, error) TagResourceRequest(*networkmanager.TagResourceInput) (*request.Request, *networkmanager.TagResourceOutput) @@ -223,6 +263,10 @@ type NetworkManagerAPI interface { UpdateLinkWithContext(aws.Context, *networkmanager.UpdateLinkInput, ...request.Option) (*networkmanager.UpdateLinkOutput, error) UpdateLinkRequest(*networkmanager.UpdateLinkInput) (*request.Request, *networkmanager.UpdateLinkOutput) + UpdateNetworkResourceMetadata(*networkmanager.UpdateNetworkResourceMetadataInput) (*networkmanager.UpdateNetworkResourceMetadataOutput, error) + UpdateNetworkResourceMetadataWithContext(aws.Context, *networkmanager.UpdateNetworkResourceMetadataInput, ...request.Option) (*networkmanager.UpdateNetworkResourceMetadataOutput, error) + UpdateNetworkResourceMetadataRequest(*networkmanager.UpdateNetworkResourceMetadataInput) (*request.Request, *networkmanager.UpdateNetworkResourceMetadataOutput) + UpdateSite(*networkmanager.UpdateSiteInput) (*networkmanager.UpdateSiteOutput, error) UpdateSiteWithContext(aws.Context, *networkmanager.UpdateSiteInput, ...request.Option) (*networkmanager.UpdateSiteOutput, error) UpdateSiteRequest(*networkmanager.UpdateSiteInput) (*request.Request, *networkmanager.UpdateSiteOutput) diff --git a/service/rekognition/api.go b/service/rekognition/api.go index 4917158fdf5..1a6f0e55e0a 100644 --- a/service/rekognition/api.go +++ b/service/rekognition/api.go @@ -285,6 +285,137 @@ func (c *Rekognition) CreateCollectionWithContext(ctx aws.Context, input *Create return out, req.Send() } +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 +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateDataset for more information on using the CreateDataset +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateDatasetRequest method. +// req, resp := client.CreateDatasetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) CreateDatasetRequest(input *CreateDatasetInput) (req *request.Request, output *CreateDatasetOutput) { + op := &request.Operation{ + Name: opCreateDataset, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateDatasetInput{} + } + + output = &CreateDatasetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDataset API operation for Amazon Rekognition. +// +// Creates a new Amazon Rekognition Custom Labels dataset. You can create a +// dataset by using an Amazon Sagemaker format manifest file or by copying an +// existing Amazon Rekognition Custom Labels dataset. +// +// To create a training dataset for a project, specify train for the value of +// DatasetType. To create the test dataset for a project, specify test for the +// value of DatasetType. +// +// The response from CreateDataset is the Amazon Resource Name (ARN) for the +// dataset. Creating a dataset takes a while to complete. Use DescribeDataset +// to check the current status. The dataset created successfully if the value +// of Status is CREATE_COMPLETE. +// +// To check if any non-terminal errors occurred, call ListDatasetEntries and +// check for the presence of errors lists in the JSON Lines. +// +// Dataset creation fails if a terminal error occurs (Status = CREATE_FAILED). +// Currently, you can't access the terminal error information. +// +// For more information, see Creating dataset in the Amazon Rekognition Custom +// Labels Developer Guide. +// +// This operation requires permissions to perform the rekognition:CreateDataset +// action. If you want to copy an existing dataset, you also require permission +// to perform the rekognition:ListDatasetEntries action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation CreateDataset for usage and error information. +// +// Returned Error Types: +// * InternalServerError +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ThrottlingException +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ProvisionedThroughputExceededException +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * InvalidParameterException +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * AccessDeniedException +// You are not authorized to perform the action. +// +// * LimitExceededException +// An Amazon Rekognition service limit was exceeded. For example, if you start +// too many Amazon Rekognition Video jobs concurrently, calls to start operations +// (StartLabelDetection, for example) will raise a LimitExceededException exception +// (HTTP status code: 400) until the number of concurrently running jobs is +// below the Amazon Rekognition service limit. +// +// * InvalidS3ObjectException +// Amazon Rekognition is unable to access the S3 object specified in the request. +// +// * ResourceAlreadyExistsException +// A resource with the specified ID already exists. +// +// * ResourceNotFoundException +// The resource specified in the request cannot be found. +// +func (c *Rekognition) CreateDataset(input *CreateDatasetInput) (*CreateDatasetOutput, error) { + req, out := c.CreateDatasetRequest(input) + return out, req.Send() +} + +// CreateDatasetWithContext is the same as CreateDataset with the addition of +// the ability to pass a context and additional request options. +// +// See CreateDataset for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Rekognition) CreateDatasetWithContext(ctx aws.Context, input *CreateDatasetInput, opts ...request.Option) (*CreateDatasetOutput, error) { + req, out := c.CreateDatasetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateProject = "CreateProject" // CreateProjectRequest generates a "aws/request.Request" representing the @@ -327,9 +458,9 @@ func (c *Rekognition) CreateProjectRequest(input *CreateProjectInput) (req *requ // CreateProject API operation for Amazon Rekognition. // -// Creates a new Amazon Rekognition Custom Labels project. A project is a logical -// grouping of resources (images, Labels, models) and operations (training, -// evaluation and detection). +// Creates a new Amazon Rekognition Custom Labels project. A project is a group +// of resources (datasets, model versions) that you use to create and manage +// Amazon Rekognition Custom Labels models. // // This operation requires permissions to perform the rekognition:CreateProject // action. @@ -434,15 +565,37 @@ func (c *Rekognition) CreateProjectVersionRequest(input *CreateProjectVersionInp // CreateProjectVersion API operation for Amazon Rekognition. // // Creates a new version of a model and begins training. Models are managed -// as part of an Amazon Rekognition Custom Labels project. You can specify one -// training dataset and one testing dataset. The response from CreateProjectVersion -// is an Amazon Resource Name (ARN) for the version of the model. +// as part of an Amazon Rekognition Custom Labels project. The response from +// CreateProjectVersion is an Amazon Resource Name (ARN) for the version of +// the model. +// +// Training uses the training and test datasets associated with the project. +// For more information, see Creating training and test dataset in the Amazon +// Rekognition Custom Labels Developer Guide. +// +// You can train a modelin a project that doesn't have associated datasets by +// specifying manifest files in the TrainingData and TestingData fields. +// +// If you open the console after training a model with manifest files, Amazon +// Rekognition Custom Labels creates the datasets for you using the most recent +// manifest files. You can no longer train a model version for the project by +// specifying manifest files. +// +// Instead of training with a project without associated datasets, we recommend +// that you use the manifest files to create training and test datasets for +// the project. // // Training takes a while to complete. You can get the current status by calling -// DescribeProjectVersions. +// DescribeProjectVersions. Training completed successfully if the value of +// the Status field is TRAINING_COMPLETED. +// +// If training fails, see Debugging a failed model training in the Amazon Rekognition +// Custom Labels developer guide. // // Once training has successfully completed, call DescribeProjectVersions to -// get the training results and evaluate the model. +// get the training results and evaluate the model. For more information, see +// Improving a trained Amazon Rekognition Custom Labels model in the Amazon +// Rekognition Custom Labels developers guide. // // After evaluating the model, you start the model by calling StartProjectVersion. // @@ -735,6 +888,121 @@ func (c *Rekognition) DeleteCollectionWithContext(ctx aws.Context, input *Delete return out, req.Send() } +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 +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteDataset for more information on using the DeleteDataset +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteDatasetRequest method. +// req, resp := client.DeleteDatasetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) DeleteDatasetRequest(input *DeleteDatasetInput) (req *request.Request, output *DeleteDatasetOutput) { + op := &request.Operation{ + Name: opDeleteDataset, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteDatasetInput{} + } + + output = &DeleteDatasetOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteDataset API operation for Amazon Rekognition. +// +// Deletes an existing Amazon Rekognition Custom Labels dataset. Deleting a +// dataset might take while. Use DescribeDataset to check the current status. +// The dataset is still deleting if the value of Status is DELETE_IN_PROGRESS. +// If you try to access the dataset after it is deleted, you get a ResourceNotFoundException +// exception. +// +// You can't delete a dataset while it is creating (Status = CREATE_IN_PROGRESS) +// or if the dataset is updating (Status = UPDATE_IN_PROGRESS). +// +// This operation requires permissions to perform the rekognition:DeleteDataset +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation DeleteDataset for usage and error information. +// +// Returned Error Types: +// * InternalServerError +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ThrottlingException +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ProvisionedThroughputExceededException +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * InvalidParameterException +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * AccessDeniedException +// You are not authorized to perform the action. +// +// * LimitExceededException +// An Amazon Rekognition service limit was exceeded. For example, if you start +// too many Amazon Rekognition Video jobs concurrently, calls to start operations +// (StartLabelDetection, for example) will raise a LimitExceededException exception +// (HTTP status code: 400) until the number of concurrently running jobs is +// below the Amazon Rekognition service limit. +// +// * ResourceInUseException +// The specified resource is already being used. +// +// * ResourceNotFoundException +// The resource specified in the request cannot be found. +// +func (c *Rekognition) DeleteDataset(input *DeleteDatasetInput) (*DeleteDatasetOutput, error) { + req, out := c.DeleteDatasetRequest(input) + return out, req.Send() +} + +// DeleteDatasetWithContext is the same as DeleteDataset with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteDataset for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Rekognition) DeleteDatasetWithContext(ctx aws.Context, input *DeleteDatasetInput, opts ...request.Option) (*DeleteDatasetOutput, error) { + req, out := c.DeleteDatasetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteFaces = "DeleteFaces" // DeleteFacesRequest generates a "aws/request.Request" representing the @@ -879,6 +1147,10 @@ func (c *Rekognition) DeleteProjectRequest(input *DeleteProjectInput) (req *requ // you must first delete all models associated with the project. To delete a // model, see DeleteProjectVersion. // +// DeleteProject is an asynchronous operation. To check if the project is deleted, +// call DescribeProjects. The project is deleted when the project no longer +// appears in the response. +// // This operation requires permissions to perform the rekognition:DeleteProject // action. // @@ -1240,59 +1512,53 @@ func (c *Rekognition) DescribeCollectionWithContext(ctx aws.Context, input *Desc return out, req.Send() } -const opDescribeProjectVersions = "DescribeProjectVersions" +const opDescribeDataset = "DescribeDataset" -// DescribeProjectVersionsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeProjectVersions operation. The "output" return +// 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 // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeProjectVersions for more information on using the DescribeProjectVersions +// See DescribeDataset for more information on using the DescribeDataset // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeProjectVersionsRequest method. -// req, resp := client.DescribeProjectVersionsRequest(params) +// // Example sending a request using the DescribeDatasetRequest method. +// req, resp := client.DescribeDatasetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -func (c *Rekognition) DescribeProjectVersionsRequest(input *DescribeProjectVersionsInput) (req *request.Request, output *DescribeProjectVersionsOutput) { +func (c *Rekognition) DescribeDatasetRequest(input *DescribeDatasetInput) (req *request.Request, output *DescribeDatasetOutput) { op := &request.Operation{ - Name: opDescribeProjectVersions, + Name: opDescribeDataset, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &DescribeProjectVersionsInput{} + input = &DescribeDatasetInput{} } - output = &DescribeProjectVersionsOutput{} + output = &DescribeDatasetOutput{} req = c.newRequest(op, input, output) return } -// DescribeProjectVersions API operation for Amazon Rekognition. +// DescribeDataset API operation for Amazon Rekognition. // -// Lists and describes the models in an Amazon Rekognition Custom Labels project. -// You can specify up to 10 model versions in ProjectVersionArns. If you don't -// specify a value, descriptions for all models are returned. +// Describes an Amazon Rekognition Custom Labels dataset. You can get information +// such as the current status of a dataset and statistics about the images and +// labels in a dataset. // -// This operation requires permissions to perform the rekognition:DescribeProjectVersions +// This operation requires permissions to perform the rekognition:DescribeDataset // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1300,22 +1566,9 @@ func (c *Rekognition) DescribeProjectVersionsRequest(input *DescribeProjectVersi // the error. // // See the AWS API reference guide for Amazon Rekognition's -// API operation DescribeProjectVersions for usage and error information. +// API operation DescribeDataset for usage and error information. // // Returned Error Types: -// * ResourceNotFoundException -// The resource specified in the request cannot be found. -// -// * InvalidPaginationTokenException -// Pagination token in the request is not valid. -// -// * InvalidParameterException -// Input parameter violated a constraint. Validate your parameter before calling -// the API operation again. -// -// * AccessDeniedException -// You are not authorized to perform the action. -// // * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // @@ -1327,38 +1580,157 @@ func (c *Rekognition) DescribeProjectVersionsRequest(input *DescribeProjectVersi // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -func (c *Rekognition) DescribeProjectVersions(input *DescribeProjectVersionsInput) (*DescribeProjectVersionsOutput, error) { - req, out := c.DescribeProjectVersionsRequest(input) +// * InvalidParameterException +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * AccessDeniedException +// You are not authorized to perform the action. +// +// * ResourceNotFoundException +// The resource specified in the request cannot be found. +// +func (c *Rekognition) DescribeDataset(input *DescribeDatasetInput) (*DescribeDatasetOutput, error) { + req, out := c.DescribeDatasetRequest(input) return out, req.Send() } -// DescribeProjectVersionsWithContext is the same as DescribeProjectVersions with the addition of +// DescribeDatasetWithContext is the same as DescribeDataset with the addition of // the ability to pass a context and additional request options. // -// See DescribeProjectVersions for details on how to use this API operation. +// See DescribeDataset for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Rekognition) DescribeProjectVersionsWithContext(ctx aws.Context, input *DescribeProjectVersionsInput, opts ...request.Option) (*DescribeProjectVersionsOutput, error) { - req, out := c.DescribeProjectVersionsRequest(input) +func (c *Rekognition) DescribeDatasetWithContext(ctx aws.Context, input *DescribeDatasetInput, opts ...request.Option) (*DescribeDatasetOutput, error) { + req, out := c.DescribeDatasetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeProjectVersionsPages iterates over the pages of a DescribeProjectVersions operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opDescribeProjectVersions = "DescribeProjectVersions" + +// DescribeProjectVersionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeProjectVersions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See DescribeProjectVersions 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 DescribeProjectVersions for more information on using the DescribeProjectVersions +// API call, and error handling. // -// // Example iterating over at most 3 pages of a DescribeProjectVersions operation. -// pageNum := 0 -// err := client.DescribeProjectVersionsPages(params, +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeProjectVersionsRequest method. +// req, resp := client.DescribeProjectVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) DescribeProjectVersionsRequest(input *DescribeProjectVersionsInput) (req *request.Request, output *DescribeProjectVersionsOutput) { + op := &request.Operation{ + Name: opDescribeProjectVersions, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeProjectVersionsInput{} + } + + output = &DescribeProjectVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeProjectVersions API operation for Amazon Rekognition. +// +// Lists and describes the versions of a model in an Amazon Rekognition Custom +// Labels project. You can specify up to 10 model versions in ProjectVersionArns. +// If you don't specify a value, descriptions for all model versions in the +// project are returned. +// +// This operation requires permissions to perform the rekognition:DescribeProjectVersions +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation DescribeProjectVersions for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// The resource specified in the request cannot be found. +// +// * InvalidPaginationTokenException +// Pagination token in the request is not valid. +// +// * InvalidParameterException +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * AccessDeniedException +// You are not authorized to perform the action. +// +// * InternalServerError +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ThrottlingException +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ProvisionedThroughputExceededException +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +func (c *Rekognition) DescribeProjectVersions(input *DescribeProjectVersionsInput) (*DescribeProjectVersionsOutput, error) { + req, out := c.DescribeProjectVersionsRequest(input) + return out, req.Send() +} + +// DescribeProjectVersionsWithContext is the same as DescribeProjectVersions with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeProjectVersions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Rekognition) DescribeProjectVersionsWithContext(ctx aws.Context, input *DescribeProjectVersionsInput, opts ...request.Option) (*DescribeProjectVersionsOutput, error) { + req, out := c.DescribeProjectVersionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeProjectVersionsPages iterates over the pages of a DescribeProjectVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeProjectVersions 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 DescribeProjectVersions operation. +// pageNum := 0 +// err := client.DescribeProjectVersionsPages(params, // func(page *rekognition.DescribeProjectVersionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) @@ -1448,7 +1820,7 @@ func (c *Rekognition) DescribeProjectsRequest(input *DescribeProjectsInput) (req // DescribeProjects API operation for Amazon Rekognition. // -// Lists and gets information about your Amazon Rekognition Custom Labels projects. +// Gets information about your Amazon Rekognition Custom Labels projects. // // This operation requires permissions to perform the rekognition:DescribeProjects // action. @@ -2491,6 +2863,121 @@ func (c *Rekognition) DetectTextWithContext(ctx aws.Context, input *DetectTextIn return out, req.Send() } +const opDistributeDatasetEntries = "DistributeDatasetEntries" + +// DistributeDatasetEntriesRequest generates a "aws/request.Request" representing the +// client's request for the DistributeDatasetEntries operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DistributeDatasetEntries for more information on using the DistributeDatasetEntries +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DistributeDatasetEntriesRequest method. +// req, resp := client.DistributeDatasetEntriesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) DistributeDatasetEntriesRequest(input *DistributeDatasetEntriesInput) (req *request.Request, output *DistributeDatasetEntriesOutput) { + op := &request.Operation{ + Name: opDistributeDatasetEntries, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DistributeDatasetEntriesInput{} + } + + output = &DistributeDatasetEntriesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DistributeDatasetEntries API operation for Amazon Rekognition. +// +// Distributes the entries (images) in a training dataset across the training +// dataset and the test dataset for a project. DistributeDatasetEntries moves +// 20% of the training dataset images to the test dataset. An entry is a JSON +// Line that describes an image. +// +// You supply the Amazon Resource Names (ARN) of a project's training dataset +// and test dataset. The training dataset must contain the images that you want +// to split. The test dataset must be empty. The datasets must belong to the +// same project. To create training and test datasets for a project, call CreateDataset. +// +// Distributing a dataset takes a while to complete. To check the status call +// DescribeDataset. The operation is complete when the Status field for the +// training dataset and the test dataset is UPDATE_COMPLETE. If the dataset +// split fails, the value of Status is UPDATE_FAILED. +// +// This operation requires permissions to perform the rekognition:DistributeDatasetEntries +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation DistributeDatasetEntries for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// The resource specified in the request cannot be found. +// +// * InvalidParameterException +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * AccessDeniedException +// You are not authorized to perform the action. +// +// * InternalServerError +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ThrottlingException +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ProvisionedThroughputExceededException +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * ResourceNotReadyException +// The requested resource isn't ready. For example, this exception occurs when +// you call DetectCustomLabels with a model version that isn't deployed. +// +func (c *Rekognition) DistributeDatasetEntries(input *DistributeDatasetEntriesInput) (*DistributeDatasetEntriesOutput, error) { + req, out := c.DistributeDatasetEntriesRequest(input) + return out, req.Send() +} + +// DistributeDatasetEntriesWithContext is the same as DistributeDatasetEntries with the addition of +// the ability to pass a context and additional request options. +// +// See DistributeDatasetEntries for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Rekognition) DistributeDatasetEntriesWithContext(ctx aws.Context, input *DistributeDatasetEntriesInput, opts ...request.Option) (*DistributeDatasetEntriesOutput, error) { + req, out := c.DistributeDatasetEntriesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetCelebrityInfo = "GetCelebrityInfo" // GetCelebrityInfoRequest generates a "aws/request.Request" representing the @@ -4447,33 +4934,33 @@ func (c *Rekognition) ListCollectionsPagesWithContext(ctx aws.Context, input *Li return p.Err() } -const opListFaces = "ListFaces" +const opListDatasetEntries = "ListDatasetEntries" -// ListFacesRequest generates a "aws/request.Request" representing the -// client's request for the ListFaces operation. The "output" return +// ListDatasetEntriesRequest generates a "aws/request.Request" representing the +// client's request for the ListDatasetEntries operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListFaces for more information on using the ListFaces +// See ListDatasetEntries for more information on using the ListDatasetEntries // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListFacesRequest method. -// req, resp := client.ListFacesRequest(params) +// // Example sending a request using the ListDatasetEntriesRequest method. +// req, resp := client.ListDatasetEntriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -func (c *Rekognition) ListFacesRequest(input *ListFacesInput) (req *request.Request, output *ListFacesOutput) { +func (c *Rekognition) ListDatasetEntriesRequest(input *ListDatasetEntriesInput) (req *request.Request, output *ListDatasetEntriesOutput) { op := &request.Operation{ - Name: opListFaces, + Name: opListDatasetEntries, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -4485,22 +4972,31 @@ func (c *Rekognition) ListFacesRequest(input *ListFacesInput) (req *request.Requ } if input == nil { - input = &ListFacesInput{} + input = &ListDatasetEntriesInput{} } - output = &ListFacesOutput{} + output = &ListDatasetEntriesOutput{} req = c.newRequest(op, input, output) return } -// ListFaces API operation for Amazon Rekognition. +// ListDatasetEntries API operation for Amazon Rekognition. // -// Returns metadata for faces in the specified collection. This metadata includes -// information such as the bounding box coordinates, the confidence (that the -// bounding box contains a face), and face ID. For an example, see Listing Faces -// in a Collection in the Amazon Rekognition Developer Guide. +// Lists the entries (images) within a dataset. An entry is a JSON Line that +// contains the information for a single image, including the image location, +// assigned labels, and object location bounding boxes. For more information, +// see Creating a manifest file (https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/md-manifest-files.html). // -// This operation requires permissions to perform the rekognition:ListFaces +// JSON Lines in the response include information about non-terminal errors +// found in the dataset. Non terminal errors are reported in errors lists within +// each JSON Line. The same information is reported in the training and testing +// validation result manifests that Amazon Rekognition Custom Labels creates +// during model training. +// +// You can filter the response in variety of ways, such as choosing which labels +// to return and returning JSON Lines created after a specific date. +// +// This operation requires permissions to perform the rekognition:ListDatasetEntries // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -4508,16 +5004,9 @@ func (c *Rekognition) ListFacesRequest(input *ListFacesInput) (req *request.Requ // the error. // // See the AWS API reference guide for Amazon Rekognition's -// API operation ListFaces for usage and error information. +// API operation ListDatasetEntries for usage and error information. // // Returned Error Types: -// * InvalidParameterException -// Input parameter violated a constraint. Validate your parameter before calling -// the API operation again. -// -// * AccessDeniedException -// You are not authorized to perform the action. -// // * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // @@ -4529,70 +5018,84 @@ func (c *Rekognition) ListFacesRequest(input *ListFacesInput) (req *request.Requ // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * InvalidPaginationTokenException -// Pagination token in the request is not valid. +// * InvalidParameterException +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * AccessDeniedException +// You are not authorized to perform the action. +// +// * ResourceInUseException +// The specified resource is already being used. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // -func (c *Rekognition) ListFaces(input *ListFacesInput) (*ListFacesOutput, error) { - req, out := c.ListFacesRequest(input) +// * InvalidPaginationTokenException +// Pagination token in the request is not valid. +// +// * ResourceNotReadyException +// The requested resource isn't ready. For example, this exception occurs when +// you call DetectCustomLabels with a model version that isn't deployed. +// +func (c *Rekognition) ListDatasetEntries(input *ListDatasetEntriesInput) (*ListDatasetEntriesOutput, error) { + req, out := c.ListDatasetEntriesRequest(input) return out, req.Send() } -// ListFacesWithContext is the same as ListFaces with the addition of +// ListDatasetEntriesWithContext is the same as ListDatasetEntries with the addition of // the ability to pass a context and additional request options. // -// See ListFaces for details on how to use this API operation. +// See ListDatasetEntries for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Rekognition) ListFacesWithContext(ctx aws.Context, input *ListFacesInput, opts ...request.Option) (*ListFacesOutput, error) { - req, out := c.ListFacesRequest(input) +func (c *Rekognition) ListDatasetEntriesWithContext(ctx aws.Context, input *ListDatasetEntriesInput, opts ...request.Option) (*ListDatasetEntriesOutput, error) { + req, out := c.ListDatasetEntriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListFacesPages iterates over the pages of a ListFaces operation, +// ListDatasetEntriesPages iterates over the pages of a ListDatasetEntries operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListFaces method for more information on how to use this operation. +// See ListDatasetEntries method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListFaces operation. +// // Example iterating over at most 3 pages of a ListDatasetEntries operation. // pageNum := 0 -// err := client.ListFacesPages(params, -// func(page *rekognition.ListFacesOutput, lastPage bool) bool { +// err := client.ListDatasetEntriesPages(params, +// func(page *rekognition.ListDatasetEntriesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Rekognition) ListFacesPages(input *ListFacesInput, fn func(*ListFacesOutput, bool) bool) error { - return c.ListFacesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Rekognition) ListDatasetEntriesPages(input *ListDatasetEntriesInput, fn func(*ListDatasetEntriesOutput, bool) bool) error { + return c.ListDatasetEntriesPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListFacesPagesWithContext same as ListFacesPages except +// ListDatasetEntriesPagesWithContext same as ListDatasetEntriesPages 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 *Rekognition) ListFacesPagesWithContext(ctx aws.Context, input *ListFacesInput, fn func(*ListFacesOutput, bool) bool, opts ...request.Option) error { +func (c *Rekognition) ListDatasetEntriesPagesWithContext(ctx aws.Context, input *ListDatasetEntriesInput, fn func(*ListDatasetEntriesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListFacesInput + var inCpy *ListDatasetEntriesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListFacesRequest(inCpy) + req, _ := c.ListDatasetEntriesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4600,7 +5103,7 @@ func (c *Rekognition) ListFacesPagesWithContext(ctx aws.Context, input *ListFace } for p.Next() { - if !fn(p.Page().(*ListFacesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListDatasetEntriesOutput), !p.HasNextPage()) { break } } @@ -4608,33 +5111,33 @@ func (c *Rekognition) ListFacesPagesWithContext(ctx aws.Context, input *ListFace return p.Err() } -const opListStreamProcessors = "ListStreamProcessors" +const opListDatasetLabels = "ListDatasetLabels" -// ListStreamProcessorsRequest generates a "aws/request.Request" representing the -// client's request for the ListStreamProcessors operation. The "output" return +// ListDatasetLabelsRequest generates a "aws/request.Request" representing the +// client's request for the ListDatasetLabels operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListStreamProcessors for more information on using the ListStreamProcessors +// See ListDatasetLabels for more information on using the ListDatasetLabels // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListStreamProcessorsRequest method. -// req, resp := client.ListStreamProcessorsRequest(params) +// // Example sending a request using the ListDatasetLabelsRequest method. +// req, resp := client.ListDatasetLabelsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -func (c *Rekognition) ListStreamProcessorsRequest(input *ListStreamProcessorsInput) (req *request.Request, output *ListStreamProcessorsOutput) { +func (c *Rekognition) ListDatasetLabelsRequest(input *ListDatasetLabelsInput) (req *request.Request, output *ListDatasetLabelsOutput) { op := &request.Operation{ - Name: opListStreamProcessors, + Name: opListDatasetLabels, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -4646,29 +5149,31 @@ func (c *Rekognition) ListStreamProcessorsRequest(input *ListStreamProcessorsInp } if input == nil { - input = &ListStreamProcessorsInput{} + input = &ListDatasetLabelsInput{} } - output = &ListStreamProcessorsOutput{} + output = &ListDatasetLabelsOutput{} req = c.newRequest(op, input, output) return } -// ListStreamProcessors API operation for Amazon Rekognition. +// ListDatasetLabels API operation for Amazon Rekognition. // -// Gets a list of stream processors that you have created with CreateStreamProcessor. +// Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels +// to describe images. For more information, see Labeling images (https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/md-labeling-images.html). +// +// Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels +// to describe images. For more information, see Labeling images in the Amazon +// Rekognition Custom Labels 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 Rekognition's -// API operation ListStreamProcessors for usage and error information. +// API operation ListDatasetLabels for usage and error information. // // Returned Error Types: -// * AccessDeniedException -// You are not authorized to perform the action. -// // * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // @@ -4676,75 +5181,88 @@ func (c *Rekognition) ListStreamProcessorsRequest(input *ListStreamProcessorsInp // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // +// * ProvisionedThroughputExceededException +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// // * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // +// * AccessDeniedException +// You are not authorized to perform the action. +// +// * ResourceInUseException +// The specified resource is already being used. +// // * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ProvisionedThroughputExceededException -// The number of requests exceeded your throughput limit. If you want to increase -// this limit, contact Amazon Rekognition. +// * ResourceNotFoundException +// The resource specified in the request cannot be found. // -func (c *Rekognition) ListStreamProcessors(input *ListStreamProcessorsInput) (*ListStreamProcessorsOutput, error) { - req, out := c.ListStreamProcessorsRequest(input) +// * ResourceNotReadyException +// The requested resource isn't ready. For example, this exception occurs when +// you call DetectCustomLabels with a model version that isn't deployed. +// +func (c *Rekognition) ListDatasetLabels(input *ListDatasetLabelsInput) (*ListDatasetLabelsOutput, error) { + req, out := c.ListDatasetLabelsRequest(input) return out, req.Send() } -// ListStreamProcessorsWithContext is the same as ListStreamProcessors with the addition of +// ListDatasetLabelsWithContext is the same as ListDatasetLabels with the addition of // the ability to pass a context and additional request options. // -// See ListStreamProcessors for details on how to use this API operation. +// See ListDatasetLabels for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Rekognition) ListStreamProcessorsWithContext(ctx aws.Context, input *ListStreamProcessorsInput, opts ...request.Option) (*ListStreamProcessorsOutput, error) { - req, out := c.ListStreamProcessorsRequest(input) +func (c *Rekognition) ListDatasetLabelsWithContext(ctx aws.Context, input *ListDatasetLabelsInput, opts ...request.Option) (*ListDatasetLabelsOutput, error) { + req, out := c.ListDatasetLabelsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListStreamProcessorsPages iterates over the pages of a ListStreamProcessors operation, +// ListDatasetLabelsPages iterates over the pages of a ListDatasetLabels operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListStreamProcessors method for more information on how to use this operation. +// See ListDatasetLabels 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 ListStreamProcessors operation. +// // Example iterating over at most 3 pages of a ListDatasetLabels operation. // pageNum := 0 -// err := client.ListStreamProcessorsPages(params, -// func(page *rekognition.ListStreamProcessorsOutput, lastPage bool) bool { +// err := client.ListDatasetLabelsPages(params, +// func(page *rekognition.ListDatasetLabelsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Rekognition) ListStreamProcessorsPages(input *ListStreamProcessorsInput, fn func(*ListStreamProcessorsOutput, bool) bool) error { - return c.ListStreamProcessorsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Rekognition) ListDatasetLabelsPages(input *ListDatasetLabelsInput, fn func(*ListDatasetLabelsOutput, bool) bool) error { + return c.ListDatasetLabelsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListStreamProcessorsPagesWithContext same as ListStreamProcessorsPages except +// ListDatasetLabelsPagesWithContext same as ListDatasetLabelsPages 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 *Rekognition) ListStreamProcessorsPagesWithContext(ctx aws.Context, input *ListStreamProcessorsInput, fn func(*ListStreamProcessorsOutput, bool) bool, opts ...request.Option) error { +func (c *Rekognition) ListDatasetLabelsPagesWithContext(ctx aws.Context, input *ListDatasetLabelsInput, fn func(*ListDatasetLabelsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListStreamProcessorsInput + var inCpy *ListDatasetLabelsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListStreamProcessorsRequest(inCpy) + req, _ := c.ListDatasetLabelsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4752,7 +5270,7 @@ func (c *Rekognition) ListStreamProcessorsPagesWithContext(ctx aws.Context, inpu } for p.Next() { - if !fn(p.Page().(*ListStreamProcessorsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListDatasetLabelsOutput), !p.HasNextPage()) { break } } @@ -4760,52 +5278,60 @@ func (c *Rekognition) ListStreamProcessorsPagesWithContext(ctx aws.Context, inpu return p.Err() } -const opListTagsForResource = "ListTagsForResource" +const opListFaces = "ListFaces" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// 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 // successfully. // // Use "Send" method on the 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 +// See ListFaces for more information on using the ListFaces // API call, and error handling. // // This method is useful when you want to 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) +// // Example sending a request using the ListFacesRequest method. +// req, resp := client.ListFacesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -func (c *Rekognition) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +func (c *Rekognition) ListFacesRequest(input *ListFacesInput) (req *request.Request, output *ListFacesOutput) { op := &request.Operation{ - Name: opListTagsForResource, + Name: opListFaces, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &ListTagsForResourceInput{} + input = &ListFacesInput{} } - output = &ListTagsForResourceOutput{} + output = &ListFacesOutput{} req = c.newRequest(op, input, output) return } -// ListTagsForResource API operation for Amazon Rekognition. +// ListFaces API operation for Amazon Rekognition. // -// Returns a list of tags in an Amazon Rekognition collection, stream processor, -// or Custom Labels model. +// 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:ListTagsForResource +// This operation requires permissions to perform the rekognition:ListFaces // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -4813,12 +5339,9 @@ func (c *Rekognition) ListTagsForResourceRequest(input *ListTagsForResourceInput // the error. // // See the AWS API reference guide for Amazon Rekognition's -// API operation ListTagsForResource for usage and error information. +// API operation ListFaces for usage and error information. // // Returned Error Types: -// * ResourceNotFoundException -// The resource specified in the request cannot be found. -// // * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. @@ -4837,123 +5360,143 @@ func (c *Rekognition) ListTagsForResourceRequest(input *ListTagsForResourceInput // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -func (c *Rekognition) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// * InvalidPaginationTokenException +// Pagination token in the request is not valid. +// +// * ResourceNotFoundException +// The resource specified in the request cannot be found. +// +func (c *Rekognition) ListFaces(input *ListFacesInput) (*ListFacesOutput, error) { + req, out := c.ListFacesRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// ListFacesWithContext is the same as ListFaces 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. +// See ListFaces for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Rekognition) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *Rekognition) ListFacesWithContext(ctx aws.Context, input *ListFacesInput, opts ...request.Option) (*ListFacesOutput, error) { + req, out := c.ListFacesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRecognizeCelebrities = "RecognizeCelebrities" +// ListFacesPages iterates over the pages of a ListFaces operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListFaces method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListFaces operation. +// pageNum := 0 +// err := client.ListFacesPages(params, +// func(page *rekognition.ListFacesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Rekognition) ListFacesPages(input *ListFacesInput, fn func(*ListFacesOutput, bool) bool) error { + return c.ListFacesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// RecognizeCelebritiesRequest generates a "aws/request.Request" representing the -// client's request for the RecognizeCelebrities operation. The "output" return +// ListFacesPagesWithContext same as ListFacesPages 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 *Rekognition) ListFacesPagesWithContext(ctx aws.Context, input *ListFacesInput, fn func(*ListFacesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListFacesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListFacesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListFacesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +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 // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See RecognizeCelebrities for more information on using the RecognizeCelebrities +// See ListStreamProcessors for more information on using the ListStreamProcessors // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the RecognizeCelebritiesRequest method. -// req, resp := client.RecognizeCelebritiesRequest(params) +// // Example sending a request using the ListStreamProcessorsRequest method. +// req, resp := client.ListStreamProcessorsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -func (c *Rekognition) RecognizeCelebritiesRequest(input *RecognizeCelebritiesInput) (req *request.Request, output *RecognizeCelebritiesOutput) { +func (c *Rekognition) ListStreamProcessorsRequest(input *ListStreamProcessorsInput) (req *request.Request, output *ListStreamProcessorsOutput) { op := &request.Operation{ - Name: opRecognizeCelebrities, + Name: opListStreamProcessors, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &RecognizeCelebritiesInput{} + input = &ListStreamProcessorsInput{} } - output = &RecognizeCelebritiesOutput{} + output = &ListStreamProcessorsOutput{} req = c.newRequest(op, input, output) return } -// RecognizeCelebrities API operation for Amazon Rekognition. -// -// 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 64 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 64 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 GetCelebrityInfo 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. +// ListStreamProcessors API operation for Amazon Rekognition. // -// This operation requires permissions to perform the rekognition:RecognizeCelebrities -// operation. +// Gets a list of stream processors that you have created with CreateStreamProcessor. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Rekognition's -// API operation RecognizeCelebrities for usage and error information. +// API operation ListStreamProcessors for usage and error information. // // Returned Error Types: -// * InvalidS3ObjectException -// Amazon Rekognition is unable to access the S3 object specified in the request. -// -// * InvalidParameterException -// Input parameter violated a constraint. Validate your parameter before calling -// the API operation again. -// -// * InvalidImageFormatException -// The provided image format is not supported. -// -// * ImageTooLargeException -// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment, -// the image size or resolution exceeds the allowed limit. For more information, -// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. -// // * AccessDeniedException // You are not authorized to perform the action. // @@ -4964,94 +5507,136 @@ func (c *Rekognition) RecognizeCelebritiesRequest(input *RecognizeCelebritiesInp // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // +// * InvalidParameterException +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * InvalidPaginationTokenException +// Pagination token in the request is not valid. +// // * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * InvalidImageFormatException -// The provided image format is not supported. -// -func (c *Rekognition) RecognizeCelebrities(input *RecognizeCelebritiesInput) (*RecognizeCelebritiesOutput, error) { - req, out := c.RecognizeCelebritiesRequest(input) +func (c *Rekognition) ListStreamProcessors(input *ListStreamProcessorsInput) (*ListStreamProcessorsOutput, error) { + req, out := c.ListStreamProcessorsRequest(input) return out, req.Send() } -// RecognizeCelebritiesWithContext is the same as RecognizeCelebrities with the addition of +// ListStreamProcessorsWithContext is the same as ListStreamProcessors with the addition of // the ability to pass a context and additional request options. // -// See RecognizeCelebrities for details on how to use this API operation. +// See ListStreamProcessors for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Rekognition) RecognizeCelebritiesWithContext(ctx aws.Context, input *RecognizeCelebritiesInput, opts ...request.Option) (*RecognizeCelebritiesOutput, error) { - req, out := c.RecognizeCelebritiesRequest(input) +func (c *Rekognition) ListStreamProcessorsWithContext(ctx aws.Context, input *ListStreamProcessorsInput, opts ...request.Option) (*ListStreamProcessorsOutput, error) { + req, out := c.ListStreamProcessorsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opSearchFaces = "SearchFaces" - -// SearchFacesRequest generates a "aws/request.Request" representing the -// client's request for the SearchFaces operation. The "output" return +// ListStreamProcessorsPages iterates over the pages of a ListStreamProcessors operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListStreamProcessors 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 ListStreamProcessors operation. +// pageNum := 0 +// err := client.ListStreamProcessorsPages(params, +// func(page *rekognition.ListStreamProcessorsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Rekognition) ListStreamProcessorsPages(input *ListStreamProcessorsInput, fn func(*ListStreamProcessorsOutput, bool) bool) error { + return c.ListStreamProcessorsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListStreamProcessorsPagesWithContext same as ListStreamProcessorsPages 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 *Rekognition) ListStreamProcessorsPagesWithContext(ctx aws.Context, input *ListStreamProcessorsInput, fn func(*ListStreamProcessorsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListStreamProcessorsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListStreamProcessorsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListStreamProcessorsOutput), !p.HasNextPage()) { + break + } + } + + 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 SearchFaces for more information on using the SearchFaces +// 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 SearchFacesRequest method. -// req, resp := client.SearchFacesRequest(params) +// // 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 *Rekognition) SearchFacesRequest(input *SearchFacesInput) (req *request.Request, output *SearchFacesOutput) { +func (c *Rekognition) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opSearchFaces, + Name: opListTagsForResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &SearchFacesInput{} + input = &ListTagsForResourceInput{} } - output = &SearchFacesOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } -// SearchFaces API operation for Amazon Rekognition. -// -// For a given input face ID, searches for matching faces in the collection -// the face belongs to. You get a face ID when you add a face to the collection -// using the IndexFaces operation. The operation compares the features of the -// input face with faces in the specified collection. -// -// You can also search faces without indexing faces by using the SearchFacesByImage -// operation. -// -// The operation response returns an array of faces that match, ordered by similarity -// score with the highest similarity first. More specifically, it is an array -// of metadata for each face match that is found. Along with the metadata, the -// response also includes a confidence value for each face match, indicating -// the confidence that the specific face matches the input face. +// ListTagsForResource API operation for Amazon Rekognition. // -// For an example, see Searching for a Face Using Its Face ID in the Amazon -// Rekognition Developer Guide. +// Returns a list of tags in an Amazon Rekognition collection, stream processor, +// or Custom Labels model. // -// This operation requires permissions to perform the rekognition:SearchFaces +// This operation requires permissions to perform the rekognition:ListTagsForResource // action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -5059,9 +5644,12 @@ func (c *Rekognition) SearchFacesRequest(input *SearchFacesInput) (req *request. // the error. // // See the AWS API reference guide for Amazon Rekognition's -// API operation SearchFaces for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The resource specified in the request cannot be found. +// // * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. @@ -5080,122 +5668,106 @@ func (c *Rekognition) SearchFacesRequest(input *SearchFacesInput) (req *request. // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ResourceNotFoundException -// The resource specified in the request cannot be found. -// -func (c *Rekognition) SearchFaces(input *SearchFacesInput) (*SearchFacesOutput, error) { - req, out := c.SearchFacesRequest(input) +func (c *Rekognition) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// SearchFacesWithContext is the same as SearchFaces with the addition of +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // -// See SearchFaces for details on how to use this API operation. +// 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 *Rekognition) SearchFacesWithContext(ctx aws.Context, input *SearchFacesInput, opts ...request.Option) (*SearchFacesOutput, error) { - req, out := c.SearchFacesRequest(input) +func (c *Rekognition) 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 opSearchFacesByImage = "SearchFacesByImage" +const opRecognizeCelebrities = "RecognizeCelebrities" -// SearchFacesByImageRequest generates a "aws/request.Request" representing the -// client's request for the SearchFacesByImage operation. The "output" return +// 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 // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SearchFacesByImage for more information on using the SearchFacesByImage +// See RecognizeCelebrities for more information on using the RecognizeCelebrities // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SearchFacesByImageRequest method. -// req, resp := client.SearchFacesByImageRequest(params) +// // Example sending a request using the RecognizeCelebritiesRequest method. +// req, resp := client.RecognizeCelebritiesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -func (c *Rekognition) SearchFacesByImageRequest(input *SearchFacesByImageInput) (req *request.Request, output *SearchFacesByImageOutput) { +func (c *Rekognition) RecognizeCelebritiesRequest(input *RecognizeCelebritiesInput) (req *request.Request, output *RecognizeCelebritiesOutput) { op := &request.Operation{ - Name: opSearchFacesByImage, + Name: opRecognizeCelebrities, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &SearchFacesByImageInput{} + input = &RecognizeCelebritiesInput{} } - output = &SearchFacesByImageOutput{} + output = &RecognizeCelebritiesOutput{} req = c.newRequest(op, input, output) return } -// SearchFacesByImage API operation for Amazon Rekognition. +// RecognizeCelebrities API operation for Amazon Rekognition. // -// For a given input image, first detects the largest face in the image, and -// then searches the specified collection for matching faces. The operation -// compares the features of the input face with faces in the specified collection. +// Returns an array of celebrities recognized in the input image. For more information, +// see Recognizing Celebrities in the Amazon Rekognition Developer Guide. // -// To search for all faces in an input image, you might first call the IndexFaces -// operation, and then use the face IDs returned in subsequent calls to the -// SearchFaces operation. +// RecognizeCelebrities returns the 64 largest faces in the image. It lists +// the recognized celebrities in the CelebrityFaces array and any unrecognized +// faces in the UnrecognizedFaces array. RecognizeCelebrities doesn't return +// celebrities whose faces aren't among the largest 64 faces in the image. // -// 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. +// 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 GetCelebrityInfo 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. -// -// If no faces are detected in the input image, SearchFacesByImage returns an -// InvalidParameterException error. -// -// For an example, Searching for a Face Using an Image in the Amazon Rekognition +// For an example, see Recognizing Celebrities in an Image in the Amazon Rekognition // Developer Guide. // -// The QualityFilter input parameter allows you to filter out detected faces -// that don’t meet a required quality bar. The quality bar is based on a variety -// of common use cases. Use QualityFilter to set the quality bar for filtering -// by specifying LOW, MEDIUM, or HIGH. If you do not want to filter detected -// faces, specify NONE. The default value is NONE. -// -// To use quality filtering, you need a collection associated with version 3 -// of the face model or higher. To get the version of the face model associated -// with a collection, call DescribeCollection. -// -// This operation requires permissions to perform the rekognition:SearchFacesByImage -// action. +// This operation requires permissions to perform the rekognition:RecognizeCelebrities +// 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 Rekognition's -// API operation SearchFacesByImage for usage and error information. +// API operation RecognizeCelebrities for usage and error information. // // Returned Error Types: // * InvalidS3ObjectException @@ -5205,6 +5777,9 @@ func (c *Rekognition) SearchFacesByImageRequest(input *SearchFacesByImageInput) // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // +// * InvalidImageFormatException +// The provided image format is not supported. +// // * ImageTooLargeException // The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment, // the image size or resolution exceeds the allowed limit. For more information, @@ -5224,346 +5799,353 @@ func (c *Rekognition) SearchFacesByImageRequest(input *SearchFacesByImageInput) // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ResourceNotFoundException -// The resource specified in the request cannot be found. -// // * InvalidImageFormatException // The provided image format is not supported. // -func (c *Rekognition) SearchFacesByImage(input *SearchFacesByImageInput) (*SearchFacesByImageOutput, error) { - req, out := c.SearchFacesByImageRequest(input) +func (c *Rekognition) RecognizeCelebrities(input *RecognizeCelebritiesInput) (*RecognizeCelebritiesOutput, error) { + req, out := c.RecognizeCelebritiesRequest(input) return out, req.Send() } -// SearchFacesByImageWithContext is the same as SearchFacesByImage with the addition of +// RecognizeCelebritiesWithContext is the same as RecognizeCelebrities with the addition of // the ability to pass a context and additional request options. // -// See SearchFacesByImage for details on how to use this API operation. +// See RecognizeCelebrities for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Rekognition) SearchFacesByImageWithContext(ctx aws.Context, input *SearchFacesByImageInput, opts ...request.Option) (*SearchFacesByImageOutput, error) { - req, out := c.SearchFacesByImageRequest(input) +func (c *Rekognition) RecognizeCelebritiesWithContext(ctx aws.Context, input *RecognizeCelebritiesInput, opts ...request.Option) (*RecognizeCelebritiesOutput, error) { + req, out := c.RecognizeCelebritiesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartCelebrityRecognition = "StartCelebrityRecognition" +const opSearchFaces = "SearchFaces" -// StartCelebrityRecognitionRequest generates a "aws/request.Request" representing the -// client's request for the StartCelebrityRecognition operation. The "output" return +// 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 // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartCelebrityRecognition for more information on using the StartCelebrityRecognition +// See SearchFaces for more information on using the SearchFaces // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartCelebrityRecognitionRequest method. -// req, resp := client.StartCelebrityRecognitionRequest(params) +// // Example sending a request using the SearchFacesRequest method. +// req, resp := client.SearchFacesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -func (c *Rekognition) StartCelebrityRecognitionRequest(input *StartCelebrityRecognitionInput) (req *request.Request, output *StartCelebrityRecognitionOutput) { +func (c *Rekognition) SearchFacesRequest(input *SearchFacesInput) (req *request.Request, output *SearchFacesOutput) { op := &request.Operation{ - Name: opStartCelebrityRecognition, + Name: opSearchFaces, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartCelebrityRecognitionInput{} + input = &SearchFacesInput{} } - output = &StartCelebrityRecognitionOutput{} + output = &SearchFacesOutput{} req = c.newRequest(op, input, output) return } -// StartCelebrityRecognition API operation for Amazon Rekognition. +// SearchFaces API operation for Amazon Rekognition. // -// Starts asynchronous recognition of celebrities in a stored video. +// 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. // -// 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 -// GetCelebrityRecognition and pass the job identifier (JobId) from the initial -// call to StartCelebrityRecognition. +// You can also search faces without indexing faces by using the SearchFacesByImage +// operation. // -// For more information, see Recognizing Celebrities in the Amazon Rekognition -// Developer Guide. +// 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. // -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. +// For an example, see Searching for a Face Using Its Face ID in the Amazon +// Rekognition Developer Guide. // -// See the AWS API reference guide for Amazon Rekognition's -// API operation StartCelebrityRecognition for usage and error information. +// This operation requires permissions to perform the rekognition:SearchFaces +// action. // -// Returned Error Types: -// * AccessDeniedException -// You are not authorized to perform the action. +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. // -// * IdempotentParameterMismatchException -// A ClientRequestToken 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. +// See the AWS API reference guide for Amazon Rekognition's +// API operation SearchFaces for usage and error information. // +// Returned Error Types: // * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * InvalidS3ObjectException -// Amazon Rekognition is unable to access the S3 object specified in the request. +// * AccessDeniedException +// You are not authorized to perform the action. // // * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * VideoTooLargeException -// The file size or duration of the supplied media is too large. The maximum -// file size is 10GB. The maximum duration is 6 hours. +// * ThrottlingException +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. // // * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * LimitExceededException -// An Amazon Rekognition service limit was exceeded. For example, if you start -// too many Amazon Rekognition Video jobs concurrently, calls to start operations -// (StartLabelDetection, for example) will raise a LimitExceededException exception -// (HTTP status code: 400) until the number of concurrently running jobs is -// below the Amazon Rekognition service limit. -// -// * ThrottlingException -// Amazon Rekognition is temporarily unable to process the request. Try your -// call again. +// * ResourceNotFoundException +// The resource specified in the request cannot be found. // -func (c *Rekognition) StartCelebrityRecognition(input *StartCelebrityRecognitionInput) (*StartCelebrityRecognitionOutput, error) { - req, out := c.StartCelebrityRecognitionRequest(input) +func (c *Rekognition) SearchFaces(input *SearchFacesInput) (*SearchFacesOutput, error) { + req, out := c.SearchFacesRequest(input) return out, req.Send() } -// StartCelebrityRecognitionWithContext is the same as StartCelebrityRecognition with the addition of +// SearchFacesWithContext is the same as SearchFaces with the addition of // the ability to pass a context and additional request options. // -// See StartCelebrityRecognition for details on how to use this API operation. +// See SearchFaces for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Rekognition) StartCelebrityRecognitionWithContext(ctx aws.Context, input *StartCelebrityRecognitionInput, opts ...request.Option) (*StartCelebrityRecognitionOutput, error) { - req, out := c.StartCelebrityRecognitionRequest(input) +func (c *Rekognition) SearchFacesWithContext(ctx aws.Context, input *SearchFacesInput, opts ...request.Option) (*SearchFacesOutput, error) { + req, out := c.SearchFacesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartContentModeration = "StartContentModeration" +const opSearchFacesByImage = "SearchFacesByImage" -// StartContentModerationRequest generates a "aws/request.Request" representing the -// client's request for the StartContentModeration operation. The "output" return +// 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 // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartContentModeration for more information on using the StartContentModeration +// See SearchFacesByImage for more information on using the SearchFacesByImage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartContentModerationRequest method. -// req, resp := client.StartContentModerationRequest(params) +// // Example sending a request using the SearchFacesByImageRequest method. +// req, resp := client.SearchFacesByImageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -func (c *Rekognition) StartContentModerationRequest(input *StartContentModerationInput) (req *request.Request, output *StartContentModerationOutput) { +func (c *Rekognition) SearchFacesByImageRequest(input *SearchFacesByImageInput) (req *request.Request, output *SearchFacesByImageOutput) { op := &request.Operation{ - Name: opStartContentModeration, + Name: opSearchFacesByImage, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartContentModerationInput{} + input = &SearchFacesByImageInput{} } - output = &StartContentModerationOutput{} + output = &SearchFacesByImageOutput{} req = c.newRequest(op, input, output) return } -// StartContentModeration API operation for Amazon Rekognition. +// SearchFacesByImage API operation for Amazon Rekognition. // -// Starts asynchronous detection of inappropriate, unwanted, or offensive content -// in a stored video. For a list of moderation labels in Amazon Rekognition, -// see Using the image and video moderation APIs (https://docs.aws.amazon.com/rekognition/latest/dg/moderation.html#moderation-api). +// 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. // -// 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 analysis is finished, Amazon -// Rekognition Video publishes a completion status to the Amazon Simple Notification -// Service topic that you specify in NotificationChannel. +// To search for all faces in an input image, you might first call the IndexFaces +// operation, and then use the face IDs returned in subsequent calls to the +// SearchFaces operation. // -// To get the results of the content analysis, first check that the status value -// published to the Amazon SNS topic is SUCCEEDED. If so, call GetContentModeration -// and pass the job identifier (JobId) from the initial call to StartContentModeration. +// 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. // -// For more information, see Content moderation 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. +// +// 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. +// +// If no faces are detected in the input image, SearchFacesByImage returns an +// InvalidParameterException error. +// +// For an example, Searching for a Face Using an Image in the Amazon Rekognition +// Developer Guide. +// +// The QualityFilter input parameter allows you to filter out detected faces +// that don’t meet a required quality bar. The quality bar is based on a variety +// of common use cases. Use QualityFilter to set the quality bar for filtering +// by specifying LOW, MEDIUM, or HIGH. If you do not want to filter detected +// faces, specify NONE. The default value is NONE. +// +// To use quality filtering, you need a collection associated with version 3 +// of the face model or higher. To get the version of the face model associated +// with a collection, call DescribeCollection. +// +// This operation requires permissions to perform the rekognition:SearchFacesByImage +// action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Rekognition's -// API operation StartContentModeration for usage and error information. +// API operation SearchFacesByImage for usage and error information. // // Returned Error Types: -// * AccessDeniedException -// You are not authorized to perform the action. -// -// * IdempotentParameterMismatchException -// A ClientRequestToken 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. +// * InvalidS3ObjectException +// Amazon Rekognition is unable to access the S3 object specified in the request. // // * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * InvalidS3ObjectException -// Amazon Rekognition is unable to access the S3 object specified in the request. +// * ImageTooLargeException +// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment, +// the image size or resolution exceeds the allowed limit. For more information, +// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. +// +// * AccessDeniedException +// You are not authorized to perform the action. // // * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * VideoTooLargeException -// The file size or duration of the supplied media is too large. The maximum -// file size is 10GB. The maximum duration is 6 hours. +// * ThrottlingException +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. // // * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * LimitExceededException -// An Amazon Rekognition service limit was exceeded. For example, if you start -// too many Amazon Rekognition Video jobs concurrently, calls to start operations -// (StartLabelDetection, for example) will raise a LimitExceededException exception -// (HTTP status code: 400) until the number of concurrently running jobs is -// below the Amazon Rekognition service limit. +// * ResourceNotFoundException +// The resource specified in the request cannot be found. // -// * ThrottlingException -// Amazon Rekognition is temporarily unable to process the request. Try your -// call again. +// * InvalidImageFormatException +// The provided image format is not supported. // -func (c *Rekognition) StartContentModeration(input *StartContentModerationInput) (*StartContentModerationOutput, error) { - req, out := c.StartContentModerationRequest(input) +func (c *Rekognition) SearchFacesByImage(input *SearchFacesByImageInput) (*SearchFacesByImageOutput, error) { + req, out := c.SearchFacesByImageRequest(input) return out, req.Send() } -// StartContentModerationWithContext is the same as StartContentModeration with the addition of +// SearchFacesByImageWithContext is the same as SearchFacesByImage with the addition of // the ability to pass a context and additional request options. // -// See StartContentModeration for details on how to use this API operation. +// See SearchFacesByImage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Rekognition) StartContentModerationWithContext(ctx aws.Context, input *StartContentModerationInput, opts ...request.Option) (*StartContentModerationOutput, error) { - req, out := c.StartContentModerationRequest(input) +func (c *Rekognition) SearchFacesByImageWithContext(ctx aws.Context, input *SearchFacesByImageInput, opts ...request.Option) (*SearchFacesByImageOutput, error) { + req, out := c.SearchFacesByImageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartFaceDetection = "StartFaceDetection" +const opStartCelebrityRecognition = "StartCelebrityRecognition" -// StartFaceDetectionRequest generates a "aws/request.Request" representing the -// client's request for the StartFaceDetection operation. The "output" return +// 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 // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartFaceDetection for more information on using the StartFaceDetection +// See StartCelebrityRecognition for more information on using the StartCelebrityRecognition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartFaceDetectionRequest method. -// req, resp := client.StartFaceDetectionRequest(params) +// // Example sending a request using the StartCelebrityRecognitionRequest method. +// req, resp := client.StartCelebrityRecognitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -func (c *Rekognition) StartFaceDetectionRequest(input *StartFaceDetectionInput) (req *request.Request, output *StartFaceDetectionOutput) { +func (c *Rekognition) StartCelebrityRecognitionRequest(input *StartCelebrityRecognitionInput) (req *request.Request, output *StartCelebrityRecognitionOutput) { op := &request.Operation{ - Name: opStartFaceDetection, + Name: opStartCelebrityRecognition, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartFaceDetectionInput{} + input = &StartCelebrityRecognitionInput{} } - output = &StartFaceDetectionOutput{} + output = &StartCelebrityRecognitionOutput{} req = c.newRequest(op, input, output) return } -// StartFaceDetection API operation for Amazon Rekognition. +// StartCelebrityRecognition API operation for Amazon Rekognition. // -// Starts asynchronous detection of faces in a stored video. +// Starts asynchronous recognition of celebrities 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 GetFaceDetection and pass -// the job identifier (JobId) from the initial call to StartFaceDetection. +// 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 +// GetCelebrityRecognition and pass the job identifier (JobId) from the initial +// call to StartCelebrityRecognition. // -// For more information, see Detecting Faces in a Stored Video in the Amazon -// Rekognition Developer Guide. +// For more information, see Recognizing Celebrities in the Amazon Rekognition +// 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 Rekognition's -// API operation StartFaceDetection for usage and error information. +// API operation StartCelebrityRecognition for usage and error information. // // Returned Error Types: // * AccessDeniedException @@ -5603,60 +6185,309 @@ func (c *Rekognition) StartFaceDetectionRequest(input *StartFaceDetectionInput) // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -func (c *Rekognition) StartFaceDetection(input *StartFaceDetectionInput) (*StartFaceDetectionOutput, error) { - req, out := c.StartFaceDetectionRequest(input) +func (c *Rekognition) StartCelebrityRecognition(input *StartCelebrityRecognitionInput) (*StartCelebrityRecognitionOutput, error) { + req, out := c.StartCelebrityRecognitionRequest(input) return out, req.Send() } -// StartFaceDetectionWithContext is the same as StartFaceDetection with the addition of +// StartCelebrityRecognitionWithContext is the same as StartCelebrityRecognition with the addition of // the ability to pass a context and additional request options. // -// See StartFaceDetection for details on how to use this API operation. +// See StartCelebrityRecognition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Rekognition) StartFaceDetectionWithContext(ctx aws.Context, input *StartFaceDetectionInput, opts ...request.Option) (*StartFaceDetectionOutput, error) { - req, out := c.StartFaceDetectionRequest(input) +func (c *Rekognition) StartCelebrityRecognitionWithContext(ctx aws.Context, input *StartCelebrityRecognitionInput, opts ...request.Option) (*StartCelebrityRecognitionOutput, error) { + req, out := c.StartCelebrityRecognitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartFaceSearch = "StartFaceSearch" +const opStartContentModeration = "StartContentModeration" -// StartFaceSearchRequest generates a "aws/request.Request" representing the -// client's request for the StartFaceSearch operation. The "output" return +// 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 // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartFaceSearch for more information on using the StartFaceSearch +// See StartContentModeration for more information on using the StartContentModeration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartFaceSearchRequest method. -// req, resp := client.StartFaceSearchRequest(params) +// // Example sending a request using the StartContentModerationRequest method. +// req, resp := client.StartContentModerationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } -func (c *Rekognition) StartFaceSearchRequest(input *StartFaceSearchInput) (req *request.Request, output *StartFaceSearchOutput) { +func (c *Rekognition) StartContentModerationRequest(input *StartContentModerationInput) (req *request.Request, output *StartContentModerationOutput) { op := &request.Operation{ - Name: opStartFaceSearch, + Name: opStartContentModeration, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartFaceSearchInput{} + input = &StartContentModerationInput{} + } + + output = &StartContentModerationOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartContentModeration API operation for Amazon Rekognition. +// +// Starts asynchronous detection of inappropriate, unwanted, or offensive content +// in a stored video. For a list of moderation labels in Amazon Rekognition, +// see Using the image and video moderation APIs (https://docs.aws.amazon.com/rekognition/latest/dg/moderation.html#moderation-api). +// +// 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 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 analysis, first check that the status value +// published to the Amazon SNS topic is SUCCEEDED. If so, call GetContentModeration +// and pass the job identifier (JobId) from the initial call to StartContentModeration. +// +// For more information, see Content moderation in the Amazon Rekognition 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 Rekognition's +// API operation StartContentModeration for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You are not authorized to perform the action. +// +// * IdempotentParameterMismatchException +// A ClientRequestToken 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. +// +// * InvalidParameterException +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * InvalidS3ObjectException +// Amazon Rekognition is unable to access the S3 object specified in the request. +// +// * InternalServerError +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * VideoTooLargeException +// The file size or duration of the supplied media is too large. The maximum +// file size is 10GB. The maximum duration is 6 hours. +// +// * ProvisionedThroughputExceededException +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * LimitExceededException +// An Amazon Rekognition service limit was exceeded. For example, if you start +// too many Amazon Rekognition Video jobs concurrently, calls to start operations +// (StartLabelDetection, for example) will raise a LimitExceededException exception +// (HTTP status code: 400) until the number of concurrently running jobs is +// below the Amazon Rekognition service limit. +// +// * ThrottlingException +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +func (c *Rekognition) StartContentModeration(input *StartContentModerationInput) (*StartContentModerationOutput, error) { + req, out := c.StartContentModerationRequest(input) + return out, req.Send() +} + +// StartContentModerationWithContext is the same as StartContentModeration with the addition of +// the ability to pass a context and additional request options. +// +// See StartContentModeration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Rekognition) StartContentModerationWithContext(ctx aws.Context, input *StartContentModerationInput, opts ...request.Option) (*StartContentModerationOutput, error) { + req, out := c.StartContentModerationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +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 +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartFaceDetection for more information on using the StartFaceDetection +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartFaceDetectionRequest method. +// req, resp := client.StartFaceDetectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) StartFaceDetectionRequest(input *StartFaceDetectionInput) (req *request.Request, output *StartFaceDetectionOutput) { + op := &request.Operation{ + Name: opStartFaceDetection, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartFaceDetectionInput{} + } + + output = &StartFaceDetectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartFaceDetection API operation for Amazon Rekognition. +// +// 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 GetFaceDetection 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation StartFaceDetection for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You are not authorized to perform the action. +// +// * IdempotentParameterMismatchException +// A ClientRequestToken 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. +// +// * InvalidParameterException +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * InvalidS3ObjectException +// Amazon Rekognition is unable to access the S3 object specified in the request. +// +// * InternalServerError +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * VideoTooLargeException +// The file size or duration of the supplied media is too large. The maximum +// file size is 10GB. The maximum duration is 6 hours. +// +// * ProvisionedThroughputExceededException +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * LimitExceededException +// An Amazon Rekognition service limit was exceeded. For example, if you start +// too many Amazon Rekognition Video jobs concurrently, calls to start operations +// (StartLabelDetection, for example) will raise a LimitExceededException exception +// (HTTP status code: 400) until the number of concurrently running jobs is +// below the Amazon Rekognition service limit. +// +// * ThrottlingException +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +func (c *Rekognition) StartFaceDetection(input *StartFaceDetectionInput) (*StartFaceDetectionOutput, error) { + req, out := c.StartFaceDetectionRequest(input) + return out, req.Send() +} + +// StartFaceDetectionWithContext is the same as StartFaceDetection with the addition of +// the ability to pass a context and additional request options. +// +// See StartFaceDetection for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Rekognition) StartFaceDetectionWithContext(ctx aws.Context, input *StartFaceDetectionInput, opts ...request.Option) (*StartFaceDetectionOutput, error) { + req, out := c.StartFaceDetectionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +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 +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartFaceSearch for more information on using the StartFaceSearch +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartFaceSearchRequest method. +// req, resp := client.StartFaceSearchRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) StartFaceSearchRequest(input *StartFaceSearchInput) (req *request.Request, output *StartFaceSearchOutput) { + op := &request.Operation{ + Name: opStartFaceSearch, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartFaceSearchInput{} } output = &StartFaceSearchOutput{} @@ -6864,13 +7695,144 @@ func (c *Rekognition) UntagResourceWithContext(ctx aws.Context, input *UntagReso return out, req.Send() } -// You are not authorized to perform the action. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +const opUpdateDatasetEntries = "UpdateDatasetEntries" - Message_ *string `locationName:"message" type:"string"` -} +// UpdateDatasetEntriesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDatasetEntries operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateDatasetEntries for more information on using the UpdateDatasetEntries +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateDatasetEntriesRequest method. +// req, resp := client.UpdateDatasetEntriesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Rekognition) UpdateDatasetEntriesRequest(input *UpdateDatasetEntriesInput) (req *request.Request, output *UpdateDatasetEntriesOutput) { + op := &request.Operation{ + Name: opUpdateDatasetEntries, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateDatasetEntriesInput{} + } + + output = &UpdateDatasetEntriesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateDatasetEntries API operation for Amazon Rekognition. +// +// Adds or updates one or more entries (images) in a dataset. An entry is a +// JSON Line which contains the information for a single image, including the +// image location, assigned labels, and object location bounding boxes. For +// more information, see Image-Level labels in manifest files and Object localization +// in manifest files in the Amazon Rekognition Custom Labels Developer Guide. +// +// If the source-ref field in the JSON line references an existing image, the +// existing image in the dataset is updated. If source-ref field doesn't reference +// an existing image, the image is added as a new image to the dataset. +// +// You specify the changes that you want to make in the Changes input parameter. +// There isn't a limit to the number JSON Lines that you can change, but the +// size of Changes must be less than 5MB. +// +// UpdateDatasetEntries returns immediatly, but the dataset update might take +// a while to complete. Use DescribeDataset to check the current status. The +// dataset updated successfully if the value of Status is UPDATE_COMPLETE. +// +// To check if any non-terminal errors occured, call ListDatasetEntries and +// check for the presence of errors lists in the JSON Lines. +// +// Dataset update fails if a terminal error occurs (Status = UPDATE_FAILED). +// Currently, you can't access the terminal error information from the Amazon +// Rekognition Custom Labels SDK. +// +// This operation requires permissions to perform the rekognition:UpdateDatasetEntries +// action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Rekognition's +// API operation UpdateDatasetEntries for usage and error information. +// +// Returned Error Types: +// * InternalServerError +// Amazon Rekognition experienced a service issue. Try your call again. +// +// * ThrottlingException +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +// +// * ProvisionedThroughputExceededException +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +// +// * InvalidParameterException +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +// +// * AccessDeniedException +// You are not authorized to perform the action. +// +// * LimitExceededException +// An Amazon Rekognition service limit was exceeded. For example, if you start +// too many Amazon Rekognition Video jobs concurrently, calls to start operations +// (StartLabelDetection, for example) will raise a LimitExceededException exception +// (HTTP status code: 400) until the number of concurrently running jobs is +// below the Amazon Rekognition service limit. +// +// * ResourceInUseException +// The specified resource is already being used. +// +// * ResourceNotFoundException +// The resource specified in the request cannot be found. +// +func (c *Rekognition) UpdateDatasetEntries(input *UpdateDatasetEntriesInput) (*UpdateDatasetEntriesOutput, error) { + req, out := c.UpdateDatasetEntriesRequest(input) + return out, req.Send() +} + +// UpdateDatasetEntriesWithContext is the same as UpdateDatasetEntries with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateDatasetEntries for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Rekognition) UpdateDatasetEntriesWithContext(ctx aws.Context, input *UpdateDatasetEntriesInput, opts ...request.Option) (*UpdateDatasetEntriesOutput, error) { + req, out := c.UpdateDatasetEntriesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// You are not authorized to perform the action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} // String returns the string representation. // @@ -8058,6 +9020,119 @@ func (s *CreateCollectionOutput) SetStatusCode(v int64) *CreateCollectionOutput return s } +type CreateDatasetInput struct { + _ struct{} `type:"structure"` + + // The source files for the dataset. You can specify the ARN of an existing + // dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format + // manifest file. If you don't specify datasetSource, an empty dataset is created. + // To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries. + DatasetSource *DatasetSource `type:"structure"` + + // The type of the dataset. Specify train to create a training dataset. Specify + // test to create a test dataset. + // + // DatasetType is a required field + DatasetType *string `type:"string" required:"true" enum:"DatasetType"` + + // The ARN of the Amazon Rekognition Custom Labels project to which you want + // to asssign the dataset. + // + // ProjectArn is a required field + ProjectArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDatasetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDatasetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDatasetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDatasetInput"} + if s.DatasetType == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetType")) + } + if s.ProjectArn == nil { + invalidParams.Add(request.NewErrParamRequired("ProjectArn")) + } + if s.ProjectArn != nil && len(*s.ProjectArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("ProjectArn", 20)) + } + if s.DatasetSource != nil { + if err := s.DatasetSource.Validate(); err != nil { + invalidParams.AddNested("DatasetSource", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDatasetSource sets the DatasetSource field's value. +func (s *CreateDatasetInput) SetDatasetSource(v *DatasetSource) *CreateDatasetInput { + s.DatasetSource = v + return s +} + +// SetDatasetType sets the DatasetType field's value. +func (s *CreateDatasetInput) SetDatasetType(v string) *CreateDatasetInput { + s.DatasetType = &v + return s +} + +// SetProjectArn sets the ProjectArn field's value. +func (s *CreateDatasetInput) SetProjectArn(v string) *CreateDatasetInput { + s.ProjectArn = &v + return s +} + +type CreateDatasetOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the created Amazon Rekognition Custom Labels dataset. + DatasetArn *string `min:"20" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDatasetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDatasetOutput) GoString() string { + return s.String() +} + +// SetDatasetArn sets the DatasetArn field's value. +func (s *CreateDatasetOutput) SetDatasetArn(v string) *CreateDatasetOutput { + s.DatasetArn = &v + return s +} + type CreateProjectInput struct { _ struct{} `type:"structure"` @@ -8142,15 +9217,15 @@ func (s *CreateProjectOutput) SetProjectArn(v string) *CreateProjectOutput { type CreateProjectVersionInput struct { _ struct{} `type:"structure"` - // The identifier for your AWS Key Management Service (AWS KMS) customer master - // key (CMK). You can supply the Amazon Resource Name (ARN) of your CMK, the - // ID of your CMK, an alias for your CMK, or an alias ARN. The key is used to - // encrypt training and test images copied into the service for model training. - // Your source images are unaffected. The key is also used to encrypt training - // results and manifest files written to the output Amazon S3 bucket (OutputConfig). + // The identifier for your AWS Key Management Service key (AWS KMS key). You + // can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your + // KMS key, an alias for your KMS key, or an alias ARN. The key is used to encrypt + // training and test images copied into the service for model training. Your + // source images are unaffected. The key is also used to encrypt training results + // and manifest files written to the output Amazon S3 bucket (OutputConfig). // - // If you choose to use your own CMK, you need the following permissions on - // the CMK. + // If you choose to use your own KMS key, you need the following permissions + // on the KMS key. // // * kms:CreateGrant // @@ -8180,15 +9255,15 @@ type CreateProjectVersionInput struct { // A set of tags (key-value pairs) that you want to attach to the model. Tags map[string]*string `type:"map"` - // The dataset to use for testing. - // - // TestingData is a required field - TestingData *TestingData `type:"structure" required:"true"` + // Specifies an external manifest that the service uses to test the model. If + // you specify TestingData you must also specify TrainingData. The project must + // not have any associated datasets. + TestingData *TestingData `type:"structure"` - // The dataset to use for training. - // - // TrainingData is a required field - TrainingData *TrainingData `type:"structure" required:"true"` + // Specifies an external manifest that the services uses to train the model. + // If you specify TrainingData you must also specify TestingData. The project + // must not have any associated datasets. + TrainingData *TrainingData `type:"structure"` // A name for the version of the model. This value must be unique. // @@ -8229,12 +9304,6 @@ func (s *CreateProjectVersionInput) Validate() error { if s.ProjectArn != nil && len(*s.ProjectArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("ProjectArn", 20)) } - if s.TestingData == nil { - invalidParams.Add(request.NewErrParamRequired("TestingData")) - } - if s.TrainingData == nil { - invalidParams.Add(request.NewErrParamRequired("TrainingData")) - } if s.VersionName == nil { invalidParams.Add(request.NewErrParamRequired("VersionName")) } @@ -8539,9 +9608,445 @@ func (s *CustomLabel) SetGeometry(v *Geometry) *CustomLabel { return s } -// SetName sets the Name field's value. -func (s *CustomLabel) SetName(v string) *CustomLabel { - s.Name = &v +// SetName sets the Name field's value. +func (s *CustomLabel) SetName(v string) *CustomLabel { + s.Name = &v + return s +} + +// Describes updates or additions to a dataset. A Single update or addition +// is an entry (JSON Line) that provides information about a single image. To +// update an existing entry, you match the source-ref field of the update entry +// with the source-ref filed of the entry that you want to update. If the source-ref +// field doesn't match an existing entry, the entry is added to dataset as a +// new entry. +type DatasetChanges struct { + _ struct{} `type:"structure"` + + // A Base64-encoded binary data object containing one or JSON lines that either + // update the dataset or are additions to the dataset. You change a dataset + // by calling UpdateDatasetEntries. If you are using an AWS SDK to call UpdateDatasetEntries, + // you don't need to encode Changes as the SDK encodes the data for you. + // + // For example JSON lines, see Image-Level labels in manifest files and and + // Object localization in manifest files in the Amazon Rekognition Custom Labels + // Developer Guide. + // GroundTruth is automatically base64 encoded/decoded by the SDK. + // + // GroundTruth is a required field + GroundTruth []byte `min:"1" type:"blob" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetChanges) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetChanges) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DatasetChanges) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DatasetChanges"} + if s.GroundTruth == nil { + invalidParams.Add(request.NewErrParamRequired("GroundTruth")) + } + if s.GroundTruth != nil && len(s.GroundTruth) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroundTruth", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroundTruth sets the GroundTruth field's value. +func (s *DatasetChanges) SetGroundTruth(v []byte) *DatasetChanges { + s.GroundTruth = v + return s +} + +// A description for a dataset. For more information, see DescribeDataset. +// +// The status fields Status, StatusMessage, and StatusMessageCode reflect the +// last operation on the dataset. +type DatasetDescription struct { + _ struct{} `type:"structure"` + + // The Unix timestamp for the time and date that the dataset was created. + CreationTimestamp *time.Time `type:"timestamp"` + + // The status message code for the dataset. + DatasetStats *DatasetStats `type:"structure"` + + // The Unix timestamp for the date and time that the dataset was last updated. + LastUpdatedTimestamp *time.Time `type:"timestamp"` + + // The status of the dataset. + Status *string `type:"string" enum:"DatasetStatus"` + + // The status message for the dataset. + StatusMessage *string `type:"string"` + + // The status message code for the dataset operation. If a service error occurs, + // try the API call again later. If a client error occurs, check the input parameters + // to the dataset API call that failed. + StatusMessageCode *string `type:"string" enum:"DatasetStatusMessageCode"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetDescription) GoString() string { + return s.String() +} + +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *DatasetDescription) SetCreationTimestamp(v time.Time) *DatasetDescription { + s.CreationTimestamp = &v + return s +} + +// SetDatasetStats sets the DatasetStats field's value. +func (s *DatasetDescription) SetDatasetStats(v *DatasetStats) *DatasetDescription { + s.DatasetStats = v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *DatasetDescription) SetLastUpdatedTimestamp(v time.Time) *DatasetDescription { + s.LastUpdatedTimestamp = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DatasetDescription) SetStatus(v string) *DatasetDescription { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *DatasetDescription) SetStatusMessage(v string) *DatasetDescription { + s.StatusMessage = &v + return s +} + +// SetStatusMessageCode sets the StatusMessageCode field's value. +func (s *DatasetDescription) SetStatusMessageCode(v string) *DatasetDescription { + s.StatusMessageCode = &v + return s +} + +// Describes a dataset label. For more information, see ListDatasetLabels. +type DatasetLabelDescription struct { + _ struct{} `type:"structure"` + + // The name of the label. + LabelName *string `min:"1" type:"string"` + + // Statistics about the label. + LabelStats *DatasetLabelStats `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetLabelDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetLabelDescription) GoString() string { + return s.String() +} + +// SetLabelName sets the LabelName field's value. +func (s *DatasetLabelDescription) SetLabelName(v string) *DatasetLabelDescription { + s.LabelName = &v + return s +} + +// SetLabelStats sets the LabelStats field's value. +func (s *DatasetLabelDescription) SetLabelStats(v *DatasetLabelStats) *DatasetLabelDescription { + s.LabelStats = v + return s +} + +// Statistics about a label used in a dataset. For more information, see DatasetLabelDescription. +type DatasetLabelStats struct { + _ struct{} `type:"structure"` + + // The total number of images that have the label assigned to a bounding box. + BoundingBoxCount *int64 `type:"integer"` + + // The total number of images that use the label. + EntryCount *int64 `type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetLabelStats) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetLabelStats) GoString() string { + return s.String() +} + +// SetBoundingBoxCount sets the BoundingBoxCount field's value. +func (s *DatasetLabelStats) SetBoundingBoxCount(v int64) *DatasetLabelStats { + s.BoundingBoxCount = &v + return s +} + +// SetEntryCount sets the EntryCount field's value. +func (s *DatasetLabelStats) SetEntryCount(v int64) *DatasetLabelStats { + s.EntryCount = &v + return s +} + +// Summary information for an Amazon Rekognition Custom Labels dataset. For +// more information, see ProjectDescription. +type DatasetMetadata struct { + _ struct{} `type:"structure"` + + // The Unix timestamp for the date and time that the dataset was created. + CreationTimestamp *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) for the dataset. + DatasetArn *string `min:"20" type:"string"` + + // The type of the dataset. + DatasetType *string `type:"string" enum:"DatasetType"` + + // The status for the dataset. + Status *string `type:"string" enum:"DatasetStatus"` + + // The status message for the dataset. + StatusMessage *string `type:"string"` + + // The status message code for the dataset operation. If a service error occurs, + // try the API call again later. If a client error occurs, check the input parameters + // to the dataset API call that failed. + StatusMessageCode *string `type:"string" enum:"DatasetStatusMessageCode"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetMetadata) GoString() string { + return s.String() +} + +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *DatasetMetadata) SetCreationTimestamp(v time.Time) *DatasetMetadata { + s.CreationTimestamp = &v + return s +} + +// SetDatasetArn sets the DatasetArn field's value. +func (s *DatasetMetadata) SetDatasetArn(v string) *DatasetMetadata { + s.DatasetArn = &v + return s +} + +// SetDatasetType sets the DatasetType field's value. +func (s *DatasetMetadata) SetDatasetType(v string) *DatasetMetadata { + s.DatasetType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DatasetMetadata) SetStatus(v string) *DatasetMetadata { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *DatasetMetadata) SetStatusMessage(v string) *DatasetMetadata { + s.StatusMessage = &v + return s +} + +// SetStatusMessageCode sets the StatusMessageCode field's value. +func (s *DatasetMetadata) SetStatusMessageCode(v string) *DatasetMetadata { + s.StatusMessageCode = &v + return s +} + +// The source that Amazon Rekognition Custom Labels uses to create a dataset. +// To use an Amazon Sagemaker format manifest file, specify the S3 bucket location +// in the GroundTruthManifest field. The S3 bucket must be in your AWS account. +// To create a copy of an existing dataset, specify the Amazon Resource Name +// (ARN) of an existing dataset in DatasetArn. +// +// You need to specify a value for DatasetArn or GroundTruthManifest, but not +// both. if you supply both values, or if you don't specify any values, an InvalidParameterException +// exception occurs. +// +// For more information, see CreateDataset. +type DatasetSource struct { + _ struct{} `type:"structure"` + + // The ARN of an Amazon Rekognition Custom Labels dataset that you want to copy. + DatasetArn *string `min:"20" type:"string"` + + // The S3 bucket that contains an Amazon Sagemaker Ground Truth format manifest + // file. + GroundTruthManifest *GroundTruthManifest `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetSource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetSource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DatasetSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DatasetSource"} + if s.DatasetArn != nil && len(*s.DatasetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DatasetArn", 20)) + } + if s.GroundTruthManifest != nil { + if err := s.GroundTruthManifest.Validate(); err != nil { + invalidParams.AddNested("GroundTruthManifest", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDatasetArn sets the DatasetArn field's value. +func (s *DatasetSource) SetDatasetArn(v string) *DatasetSource { + s.DatasetArn = &v + return s +} + +// SetGroundTruthManifest sets the GroundTruthManifest field's value. +func (s *DatasetSource) SetGroundTruthManifest(v *GroundTruthManifest) *DatasetSource { + s.GroundTruthManifest = v + return s +} + +// Provides statistics about a dataset. For more information, see DescribeDataset. +type DatasetStats struct { + _ struct{} `type:"structure"` + + // The total number of entries that contain at least one error. + ErrorEntries *int64 `type:"integer"` + + // The total number of images in the dataset that have labels. + LabeledEntries *int64 `type:"integer"` + + // The total number of images in the dataset. + TotalEntries *int64 `type:"integer"` + + // The total number of labels declared in the dataset. + TotalLabels *int64 `type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetStats) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatasetStats) GoString() string { + return s.String() +} + +// SetErrorEntries sets the ErrorEntries field's value. +func (s *DatasetStats) SetErrorEntries(v int64) *DatasetStats { + s.ErrorEntries = &v + return s +} + +// SetLabeledEntries sets the LabeledEntries field's value. +func (s *DatasetStats) SetLabeledEntries(v int64) *DatasetStats { + s.LabeledEntries = &v + return s +} + +// SetTotalEntries sets the TotalEntries field's value. +func (s *DatasetStats) SetTotalEntries(v int64) *DatasetStats { + s.TotalEntries = &v + return s +} + +// SetTotalLabels sets the TotalLabels field's value. +func (s *DatasetStats) SetTotalLabels(v int64) *DatasetStats { + s.TotalLabels = &v return s } @@ -8625,6 +10130,78 @@ func (s *DeleteCollectionOutput) SetStatusCode(v int64) *DeleteCollectionOutput return s } +type DeleteDatasetInput struct { + _ struct{} `type:"structure"` + + // The ARN of the Amazon Rekognition Custom Labels dataset that you want to + // delete. + // + // DatasetArn is a required field + DatasetArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteDatasetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteDatasetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDatasetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDatasetInput"} + if s.DatasetArn == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetArn")) + } + if s.DatasetArn != nil && len(*s.DatasetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DatasetArn", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDatasetArn sets the DatasetArn field's value. +func (s *DeleteDatasetInput) SetDatasetArn(v string) *DeleteDatasetInput { + s.DatasetArn = &v + return s +} + +type DeleteDatasetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteDatasetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteDatasetOutput) GoString() string { + return s.String() +} + type DeleteFacesInput struct { _ struct{} `type:"structure"` @@ -9066,6 +10643,86 @@ func (s *DescribeCollectionOutput) SetFaceModelVersion(v string) *DescribeCollec return s } +type DescribeDatasetInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the dataset that you want to describe. + // + // DatasetArn is a required field + DatasetArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeDatasetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeDatasetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDatasetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDatasetInput"} + if s.DatasetArn == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetArn")) + } + if s.DatasetArn != nil && len(*s.DatasetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DatasetArn", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDatasetArn sets the DatasetArn field's value. +func (s *DescribeDatasetInput) SetDatasetArn(v string) *DescribeDatasetInput { + s.DatasetArn = &v + return s +} + +type DescribeDatasetOutput struct { + _ struct{} `type:"structure"` + + // The description for the dataset. + DatasetDescription *DatasetDescription `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeDatasetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeDatasetOutput) GoString() string { + return s.String() +} + +// SetDatasetDescription sets the DatasetDescription field's value. +func (s *DescribeDatasetOutput) SetDatasetDescription(v *DatasetDescription) *DescribeDatasetOutput { + s.DatasetDescription = v + return s +} + type DescribeProjectVersionsInput struct { _ struct{} `type:"structure"` @@ -9215,6 +10872,11 @@ type DescribeProjectsInput struct { // the response. You can use this pagination token to retrieve the next set // of results. NextToken *string `type:"string"` + + // A list of the projects that you want Amazon Rekognition Custom Labels to + // describe. If you don't specify a value, the response includes descriptions + // for all the projects in your AWS account. + ProjectNames []*string `min:"1" type:"list"` } // String returns the string representation. @@ -9241,6 +10903,9 @@ func (s *DescribeProjectsInput) Validate() error { if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } + if s.ProjectNames != nil && len(s.ProjectNames) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProjectNames", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9260,6 +10925,12 @@ func (s *DescribeProjectsInput) SetNextToken(v string) *DescribeProjectsInput { return s } +// SetProjectNames sets the ProjectNames field's value. +func (s *DescribeProjectsInput) SetProjectNames(v []*string) *DescribeProjectsInput { + s.ProjectNames = v + return s +} + type DescribeProjectsOutput struct { _ struct{} `type:"structure"` @@ -10286,31 +11957,182 @@ func (s *DetectTextOutput) SetTextDetections(v []*TextDetection) *DetectTextOutp return s } -// SetTextModelVersion sets the TextModelVersion field's value. -func (s *DetectTextOutput) SetTextModelVersion(v string) *DetectTextOutput { - s.TextModelVersion = &v +// SetTextModelVersion sets the TextModelVersion field's value. +func (s *DetectTextOutput) SetTextModelVersion(v string) *DetectTextOutput { + s.TextModelVersion = &v + return s +} + +// A set of parameters that allow you to filter out certain results from your +// returned results. +type DetectionFilter struct { + _ struct{} `type:"structure"` + + // Sets the minimum height of the word bounding box. Words with bounding box + // heights lesser than this value will be excluded from the result. Value is + // relative to the video frame height. + MinBoundingBoxHeight *float64 `type:"float"` + + // Sets the minimum width of the word bounding box. Words with bounding boxes + // widths lesser than this value will be excluded from the result. Value is + // relative to the video frame width. + MinBoundingBoxWidth *float64 `type:"float"` + + // Sets the confidence of word detection. Words with detection confidence below + // this will be excluded from the result. Values should be between 50 and 100 + // as Text in Video will not return any result below 50. + MinConfidence *float64 `type:"float"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DetectionFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DetectionFilter) GoString() string { + return s.String() +} + +// SetMinBoundingBoxHeight sets the MinBoundingBoxHeight field's value. +func (s *DetectionFilter) SetMinBoundingBoxHeight(v float64) *DetectionFilter { + s.MinBoundingBoxHeight = &v + return s +} + +// SetMinBoundingBoxWidth sets the MinBoundingBoxWidth field's value. +func (s *DetectionFilter) SetMinBoundingBoxWidth(v float64) *DetectionFilter { + s.MinBoundingBoxWidth = &v + return s +} + +// SetMinConfidence sets the MinConfidence field's value. +func (s *DetectionFilter) SetMinConfidence(v float64) *DetectionFilter { + s.MinConfidence = &v + return s +} + +// A training dataset or a test dataset used in a dataset distribution operation. +// For more information, see DistributeDatasetEntries. +type DistributeDataset struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the dataset that you want to use. + // + // Arn is a required field + Arn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DistributeDataset) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DistributeDataset) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DistributeDataset) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DistributeDataset"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *DistributeDataset) SetArn(v string) *DistributeDataset { + s.Arn = &v + return s +} + +type DistributeDatasetEntriesInput struct { + _ struct{} `type:"structure"` + + // The ARNS for the training dataset and test dataset that you want to use. + // The datasets must belong to the same project. The test dataset must be empty. + // + // Datasets is a required field + Datasets []*DistributeDataset `min:"2" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DistributeDatasetEntriesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DistributeDatasetEntriesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DistributeDatasetEntriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DistributeDatasetEntriesInput"} + if s.Datasets == nil { + invalidParams.Add(request.NewErrParamRequired("Datasets")) + } + if s.Datasets != nil && len(s.Datasets) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Datasets", 2)) + } + if s.Datasets != nil { + for i, v := range s.Datasets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Datasets", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDatasets sets the Datasets field's value. +func (s *DistributeDatasetEntriesInput) SetDatasets(v []*DistributeDataset) *DistributeDatasetEntriesInput { + s.Datasets = v return s } -// A set of parameters that allow you to filter out certain results from your -// returned results. -type DetectionFilter struct { +type DistributeDatasetEntriesOutput struct { _ struct{} `type:"structure"` - - // Sets the minimum height of the word bounding box. Words with bounding box - // heights lesser than this value will be excluded from the result. Value is - // relative to the video frame height. - MinBoundingBoxHeight *float64 `type:"float"` - - // Sets the minimum width of the word bounding box. Words with bounding boxes - // widths lesser than this value will be excluded from the result. Value is - // relative to the video frame width. - MinBoundingBoxWidth *float64 `type:"float"` - - // Sets the confidence of word detection. Words with detection confidence below - // this will be excluded from the result. Values should be between 50 and 100 - // as Text in Video will not return any result below 50. - MinConfidence *float64 `type:"float"` } // String returns the string representation. @@ -10318,7 +12140,7 @@ type DetectionFilter struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DetectionFilter) String() string { +func (s DistributeDatasetEntriesOutput) String() string { return awsutil.Prettify(s) } @@ -10327,28 +12149,10 @@ func (s DetectionFilter) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DetectionFilter) GoString() string { +func (s DistributeDatasetEntriesOutput) GoString() string { return s.String() } -// SetMinBoundingBoxHeight sets the MinBoundingBoxHeight field's value. -func (s *DetectionFilter) SetMinBoundingBoxHeight(v float64) *DetectionFilter { - s.MinBoundingBoxHeight = &v - return s -} - -// SetMinBoundingBoxWidth sets the MinBoundingBoxWidth field's value. -func (s *DetectionFilter) SetMinBoundingBoxWidth(v float64) *DetectionFilter { - s.MinBoundingBoxWidth = &v - return s -} - -// SetMinConfidence sets the MinConfidence field's value. -func (s *DetectionFilter) SetMinConfidence(v float64) *DetectionFilter { - s.MinConfidence = &v - return s -} - // The emotions that appear to be expressed on the face, and the confidence // level in the determination. The API is only making a determination of the // physical appearance of a person's face. It is not a determination of the @@ -10984,8 +12788,9 @@ type FaceSearchSettings struct { CollectionId *string `min:"1" type:"string"` // Minimum face match confidence score that must be met to return a result for - // a recognized face. Default is 80. 0 is the lowest confidence. 100 is the - // highest confidence. + // a recognized face. The default is 80. 0 is the lowest confidence. 100 is + // the highest confidence. Values between 0 and 100 are accepted, and values + // lower than 80 are set to 80. FaceMatchThreshold *float64 `type:"float"` } @@ -13893,7 +15698,245 @@ type Landmark struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Landmark) String() string { +func (s Landmark) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Landmark) GoString() string { + return s.String() +} + +// SetType sets the Type field's value. +func (s *Landmark) SetType(v string) *Landmark { + s.Type = &v + return s +} + +// SetX sets the X field's value. +func (s *Landmark) SetX(v float64) *Landmark { + s.X = &v + return s +} + +// SetY sets the Y field's value. +func (s *Landmark) SetY(v float64) *Landmark { + s.Y = &v + return s +} + +// An Amazon Rekognition service limit was exceeded. For example, if you start +// too many Amazon Rekognition Video jobs concurrently, calls to start operations +// (StartLabelDetection, for example) will raise a LimitExceededException exception +// (HTTP status code: 400) until the number of concurrently running jobs is +// below the Amazon Rekognition service limit. +type LimitExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s *LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *LimitExceededException) OrigErr() error { + return nil +} + +func (s *LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *LimitExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *LimitExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListCollectionsInput struct { + _ struct{} `type:"structure"` + + // Maximum number of collection IDs to return. + MaxResults *int64 `type:"integer"` + + // Pagination token from the previous response. + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCollectionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCollectionsInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListCollectionsInput) SetMaxResults(v int64) *ListCollectionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCollectionsInput) SetNextToken(v string) *ListCollectionsInput { + s.NextToken = &v + return s +} + +type ListCollectionsOutput struct { + _ struct{} `type:"structure"` + + // An array of collection IDs. + CollectionIds []*string `type:"list"` + + // Version numbers of the face detection models associated with the collections + // in the array CollectionIds. For example, the value of FaceModelVersions[2] + // is the version number for the face detection model used by the collection + // in CollectionId[2]. + FaceModelVersions []*string `type:"list"` + + // If the result is truncated, the response provides a NextToken that you can + // use in the subsequent request to fetch the next set of collection IDs. + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCollectionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCollectionsOutput) GoString() string { + return s.String() +} + +// SetCollectionIds sets the CollectionIds field's value. +func (s *ListCollectionsOutput) SetCollectionIds(v []*string) *ListCollectionsOutput { + s.CollectionIds = v + return s +} + +// SetFaceModelVersions sets the FaceModelVersions field's value. +func (s *ListCollectionsOutput) SetFaceModelVersions(v []*string) *ListCollectionsOutput { + s.FaceModelVersions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCollectionsOutput) SetNextToken(v string) *ListCollectionsOutput { + s.NextToken = &v + return s +} + +type ListDatasetEntriesInput struct { + _ struct{} `type:"structure"` + + // Specifies a label filter for the response. The response includes an entry + // only if one or more of the labels in ContainsLabels exist in the entry. + ContainsLabels []*string `min:"1" type:"list"` + + // The Amazon Resource Name (ARN) for the dataset that you want to use. + // + // DatasetArn is a required field + DatasetArn *string `min:"20" type:"string" required:"true"` + + // Specifies an error filter for the response. Specify True to only include + // entries that have errors. + HasErrors *bool `type:"boolean"` + + // Specify true to get only the JSON Lines where the image is labeled. Specify + // false to get only the JSON Lines where the image isn't labeled. If you don't + // specify Labeled, ListDatasetEntries returns JSON Lines for labeled and unlabeled + // images. + Labeled *bool `type:"boolean"` + + // The maximum number of results to return per paginated call. The largest value + // you can specify is 100. If you specify a value greater than 100, a ValidationException + // error occurs. The default value is 100. + MaxResults *int64 `min:"1" type:"integer"` + + // If the previous response was incomplete (because there is more results to + // retrieve), Amazon Rekognition Custom Labels returns a pagination token in + // the response. You can use this pagination token to retrieve the next set + // of results. + NextToken *string `type:"string"` + + // If specified, ListDatasetEntries only returns JSON Lines where the value + // of SourceRefContains is part of the source-ref field. The source-ref field + // contains the Amazon S3 location of the image. You can use SouceRefContains + // for tasks such as getting the JSON Line for a single image, or gettting JSON + // Lines for all images within a specific folder. + SourceRefContains *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDatasetEntriesInput) String() string { return awsutil.Prettify(s) } @@ -13902,38 +15945,88 @@ func (s Landmark) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Landmark) GoString() string { +func (s ListDatasetEntriesInput) GoString() string { return s.String() } -// SetType sets the Type field's value. -func (s *Landmark) SetType(v string) *Landmark { - s.Type = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDatasetEntriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDatasetEntriesInput"} + if s.ContainsLabels != nil && len(s.ContainsLabels) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ContainsLabels", 1)) + } + if s.DatasetArn == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetArn")) + } + if s.DatasetArn != nil && len(*s.DatasetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DatasetArn", 20)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.SourceRefContains != nil && len(*s.SourceRefContains) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceRefContains", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContainsLabels sets the ContainsLabels field's value. +func (s *ListDatasetEntriesInput) SetContainsLabels(v []*string) *ListDatasetEntriesInput { + s.ContainsLabels = v return s } -// SetX sets the X field's value. -func (s *Landmark) SetX(v float64) *Landmark { - s.X = &v +// SetDatasetArn sets the DatasetArn field's value. +func (s *ListDatasetEntriesInput) SetDatasetArn(v string) *ListDatasetEntriesInput { + s.DatasetArn = &v return s } -// SetY sets the Y field's value. -func (s *Landmark) SetY(v float64) *Landmark { - s.Y = &v +// SetHasErrors sets the HasErrors field's value. +func (s *ListDatasetEntriesInput) SetHasErrors(v bool) *ListDatasetEntriesInput { + s.HasErrors = &v return s } -// An Amazon Rekognition service limit was exceeded. For example, if you start -// too many Amazon Rekognition Video jobs concurrently, calls to start operations -// (StartLabelDetection, for example) will raise a LimitExceededException exception -// (HTTP status code: 400) until the number of concurrently running jobs is -// below the Amazon Rekognition service limit. -type LimitExceededException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetLabeled sets the Labeled field's value. +func (s *ListDatasetEntriesInput) SetLabeled(v bool) *ListDatasetEntriesInput { + s.Labeled = &v + return s +} - Message_ *string `locationName:"message" type:"string"` +// SetMaxResults sets the MaxResults field's value. +func (s *ListDatasetEntriesInput) SetMaxResults(v int64) *ListDatasetEntriesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDatasetEntriesInput) SetNextToken(v string) *ListDatasetEntriesInput { + s.NextToken = &v + return s +} + +// SetSourceRefContains sets the SourceRefContains field's value. +func (s *ListDatasetEntriesInput) SetSourceRefContains(v string) *ListDatasetEntriesInput { + s.SourceRefContains = &v + return s +} + +type ListDatasetEntriesOutput struct { + _ struct{} `type:"structure"` + + // A list of entries (images) in the dataset. + DatasetEntries []*string `type:"list"` + + // If the previous response was incomplete (because there is more results to + // retrieve), Amazon Rekognition Custom Labels returns a pagination token in + // the response. You can use this pagination token to retrieve the next set + // of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -13941,7 +16034,7 @@ type LimitExceededException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LimitExceededException) String() string { +func (s ListDatasetEntriesOutput) String() string { return awsutil.Prettify(s) } @@ -13950,55 +16043,39 @@ func (s LimitExceededException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LimitExceededException) GoString() string { +func (s ListDatasetEntriesOutput) GoString() string { return s.String() } -func newErrorLimitExceededException(v protocol.ResponseMetadata) error { - return &LimitExceededException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *LimitExceededException) Code() string { - return "LimitExceededException" -} - -// Message returns the exception's message. -func (s *LimitExceededException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *LimitExceededException) OrigErr() error { - return nil -} - -func (s *LimitExceededException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *LimitExceededException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetDatasetEntries sets the DatasetEntries field's value. +func (s *ListDatasetEntriesOutput) SetDatasetEntries(v []*string) *ListDatasetEntriesOutput { + s.DatasetEntries = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *LimitExceededException) RequestID() string { - return s.RespMetadata.RequestID +// SetNextToken sets the NextToken field's value. +func (s *ListDatasetEntriesOutput) SetNextToken(v string) *ListDatasetEntriesOutput { + s.NextToken = &v + return s } -type ListCollectionsInput struct { +type ListDatasetLabelsInput struct { _ struct{} `type:"structure"` - // Maximum number of collection IDs to return. - MaxResults *int64 `type:"integer"` + // The Amazon Resource Name (ARN) of the dataset that you want to use. + // + // DatasetArn is a required field + DatasetArn *string `min:"20" type:"string" required:"true"` - // Pagination token from the previous response. + // The maximum number of results to return per paginated call. The largest value + // you can specify is 100. If you specify a value greater than 100, a ValidationException + // error occurs. The default value is 100. + MaxResults *int64 `min:"1" type:"integer"` + + // If the previous response was incomplete (because there is more results to + // retrieve), Amazon Rekognition Custom Labels returns a pagination token in + // the response. You can use this pagination token to retrieve the next set + // of results. NextToken *string `type:"string"` } @@ -14007,7 +16084,7 @@ type ListCollectionsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListCollectionsInput) String() string { +func (s ListDatasetLabelsInput) String() string { return awsutil.Prettify(s) } @@ -14016,36 +16093,57 @@ func (s ListCollectionsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListCollectionsInput) GoString() string { +func (s ListDatasetLabelsInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDatasetLabelsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDatasetLabelsInput"} + if s.DatasetArn == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetArn")) + } + if s.DatasetArn != nil && len(*s.DatasetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DatasetArn", 20)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDatasetArn sets the DatasetArn field's value. +func (s *ListDatasetLabelsInput) SetDatasetArn(v string) *ListDatasetLabelsInput { + s.DatasetArn = &v + return s +} + // SetMaxResults sets the MaxResults field's value. -func (s *ListCollectionsInput) SetMaxResults(v int64) *ListCollectionsInput { +func (s *ListDatasetLabelsInput) SetMaxResults(v int64) *ListDatasetLabelsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListCollectionsInput) SetNextToken(v string) *ListCollectionsInput { +func (s *ListDatasetLabelsInput) SetNextToken(v string) *ListDatasetLabelsInput { s.NextToken = &v return s } -type ListCollectionsOutput struct { +type ListDatasetLabelsOutput struct { _ struct{} `type:"structure"` - // An array of collection IDs. - CollectionIds []*string `type:"list"` - - // Version numbers of the face detection models associated with the collections - // in the array CollectionIds. For example, the value of FaceModelVersions[2] - // is the version number for the face detection model used by the collection - // in CollectionId[2]. - FaceModelVersions []*string `type:"list"` + // A list of the labels in the dataset. + DatasetLabelDescriptions []*DatasetLabelDescription `type:"list"` - // If the result is truncated, the response provides a NextToken that you can - // use in the subsequent request to fetch the next set of collection IDs. + // If the previous response was incomplete (because there is more results to + // retrieve), Amazon Rekognition Custom Labels returns a pagination token in + // the response. You can use this pagination token to retrieve the next set + // of results. NextToken *string `type:"string"` } @@ -14054,7 +16152,7 @@ type ListCollectionsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListCollectionsOutput) String() string { +func (s ListDatasetLabelsOutput) String() string { return awsutil.Prettify(s) } @@ -14063,24 +16161,18 @@ func (s ListCollectionsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListCollectionsOutput) GoString() string { +func (s ListDatasetLabelsOutput) GoString() string { return s.String() } -// SetCollectionIds sets the CollectionIds field's value. -func (s *ListCollectionsOutput) SetCollectionIds(v []*string) *ListCollectionsOutput { - s.CollectionIds = v - return s -} - -// SetFaceModelVersions sets the FaceModelVersions field's value. -func (s *ListCollectionsOutput) SetFaceModelVersions(v []*string) *ListCollectionsOutput { - s.FaceModelVersions = v +// SetDatasetLabelDescriptions sets the DatasetLabelDescriptions field's value. +func (s *ListDatasetLabelsOutput) SetDatasetLabelDescriptions(v []*DatasetLabelDescription) *ListDatasetLabelsOutput { + s.DatasetLabelDescriptions = v return s } // SetNextToken sets the NextToken field's value. -func (s *ListCollectionsOutput) SetNextToken(v string) *ListCollectionsOutput { +func (s *ListDatasetLabelsOutput) SetNextToken(v string) *ListDatasetLabelsOutput { s.NextToken = &v return s } @@ -14936,13 +17028,17 @@ func (s *Pose) SetYaw(v float64) *Pose { return s } -// A description of a Amazon Rekognition Custom Labels project. +// A description of an Amazon Rekognition Custom Labels project. For more information, +// see DescribeProjects. type ProjectDescription struct { _ struct{} `type:"structure"` // The Unix timestamp for the date and time that the project was created. CreationTimestamp *time.Time `type:"timestamp"` + // Information about the training and test datasets in the project. + Datasets []*DatasetMetadata `type:"list"` + // The Amazon Resource Name (ARN) of the project. ProjectArn *string `min:"20" type:"string"` @@ -14974,6 +17070,12 @@ func (s *ProjectDescription) SetCreationTimestamp(v time.Time) *ProjectDescripti return s } +// SetDatasets sets the Datasets field's value. +func (s *ProjectDescription) SetDatasets(v []*DatasetMetadata) *ProjectDescription { + s.Datasets = v + return s +} + // SetProjectArn sets the ProjectArn field's value. func (s *ProjectDescription) SetProjectArn(v string) *ProjectDescription { s.ProjectArn = &v @@ -14986,12 +17088,13 @@ func (s *ProjectDescription) SetStatus(v string) *ProjectDescription { return s } -// The description of a version of a model. +// A description of a version of an Amazon Rekognition Custom Labels model. type ProjectVersionDescription struct { _ struct{} `type:"structure"` - // The duration, in seconds, that the model version has been billed for training. - // This value is only returned if the model version has been successfully trained. + // The duration, in seconds, that you were billed for a successful training + // of the model version. This value is only returned if the model version has + // been successfully trained. BillableTrainingTimeInSeconds *int64 `type:"long"` // The Unix datetime for the date and time that training started. @@ -15000,8 +17103,8 @@ type ProjectVersionDescription struct { // The training results. EvaluationResult is only returned if training is successful. EvaluationResult *EvaluationResult `type:"structure"` - // The identifer for the AWS Key Management Service (AWS KMS) customer master - // key that was used to encrypt the model during training. + // The identifer for the AWS Key Management Service key (AWS KMS key) that was + // used to encrypt the model during training. KmsKeyId *string `min:"1" type:"string"` // The location of the summary manifest. The summary manifest provides aggregate @@ -18697,16 +20800,18 @@ func (s *TechnicalCueSegment) SetType(v string) *TechnicalCueSegment { } // The dataset used for testing. Optionally, if AutoCreate is set, Amazon Rekognition -// Custom Labels creates a testing dataset using an 80/20 split of the training -// dataset. +// Custom Labels uses the training dataset to create a test dataset with a temporary +// split of the training dataset. type TestingData struct { _ struct{} `type:"structure"` // The assets used for testing. Assets []*Asset `type:"list"` - // If specified, Amazon Rekognition Custom Labels creates a testing dataset - // with an 80/20 split of the training dataset. + // If specified, Amazon Rekognition Custom Labels temporarily splits the training + // dataset (80%) to create a test dataset (20%) for the training job. After + // training completes, the test dataset is not stored and the training dataset + // reverts to its previous size. AutoCreate *bool `type:"boolean"` } @@ -19263,10 +21368,100 @@ func (s UntagResourceOutput) GoString() string { return s.String() } +type UpdateDatasetEntriesInput struct { + _ struct{} `type:"structure"` + + // The changes that you want to make to the dataset. + // + // Changes is a required field + Changes *DatasetChanges `type:"structure" required:"true"` + + // The Amazon Resource Name (ARN) of the dataset that you want to update. + // + // DatasetArn is a required field + DatasetArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateDatasetEntriesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateDatasetEntriesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateDatasetEntriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDatasetEntriesInput"} + if s.Changes == nil { + invalidParams.Add(request.NewErrParamRequired("Changes")) + } + if s.DatasetArn == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetArn")) + } + if s.DatasetArn != nil && len(*s.DatasetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DatasetArn", 20)) + } + if s.Changes != nil { + if err := s.Changes.Validate(); err != nil { + invalidParams.AddNested("Changes", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChanges sets the Changes field's value. +func (s *UpdateDatasetEntriesInput) SetChanges(v *DatasetChanges) *UpdateDatasetEntriesInput { + s.Changes = v + return s +} + +// SetDatasetArn sets the DatasetArn field's value. +func (s *UpdateDatasetEntriesInput) SetDatasetArn(v string) *UpdateDatasetEntriesInput { + s.DatasetArn = &v + return s +} + +type UpdateDatasetEntriesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateDatasetEntriesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateDatasetEntriesOutput) GoString() string { + return s.String() +} + // Contains the Amazon S3 bucket location of the validation data for a model // training job. // -// The validation data includes error information for individual JSON lines +// The validation data includes error information for individual JSON Lines // in the dataset. For more information, see Debugging a Failed Model Training // in the Amazon Rekognition Custom Labels Developer Guide. // @@ -19598,6 +21793,78 @@ func ContentModerationSortBy_Values() []string { } } +const ( + // DatasetStatusCreateInProgress is a DatasetStatus enum value + DatasetStatusCreateInProgress = "CREATE_IN_PROGRESS" + + // DatasetStatusCreateComplete is a DatasetStatus enum value + DatasetStatusCreateComplete = "CREATE_COMPLETE" + + // DatasetStatusCreateFailed is a DatasetStatus enum value + DatasetStatusCreateFailed = "CREATE_FAILED" + + // DatasetStatusUpdateInProgress is a DatasetStatus enum value + DatasetStatusUpdateInProgress = "UPDATE_IN_PROGRESS" + + // DatasetStatusUpdateComplete is a DatasetStatus enum value + DatasetStatusUpdateComplete = "UPDATE_COMPLETE" + + // DatasetStatusUpdateFailed is a DatasetStatus enum value + DatasetStatusUpdateFailed = "UPDATE_FAILED" + + // DatasetStatusDeleteInProgress is a DatasetStatus enum value + DatasetStatusDeleteInProgress = "DELETE_IN_PROGRESS" +) + +// DatasetStatus_Values returns all elements of the DatasetStatus enum +func DatasetStatus_Values() []string { + return []string{ + DatasetStatusCreateInProgress, + DatasetStatusCreateComplete, + DatasetStatusCreateFailed, + DatasetStatusUpdateInProgress, + DatasetStatusUpdateComplete, + DatasetStatusUpdateFailed, + DatasetStatusDeleteInProgress, + } +} + +const ( + // DatasetStatusMessageCodeSuccess is a DatasetStatusMessageCode enum value + DatasetStatusMessageCodeSuccess = "SUCCESS" + + // DatasetStatusMessageCodeServiceError is a DatasetStatusMessageCode enum value + DatasetStatusMessageCodeServiceError = "SERVICE_ERROR" + + // DatasetStatusMessageCodeClientError is a DatasetStatusMessageCode enum value + DatasetStatusMessageCodeClientError = "CLIENT_ERROR" +) + +// DatasetStatusMessageCode_Values returns all elements of the DatasetStatusMessageCode enum +func DatasetStatusMessageCode_Values() []string { + return []string{ + DatasetStatusMessageCodeSuccess, + DatasetStatusMessageCodeServiceError, + DatasetStatusMessageCodeClientError, + } +} + +const ( + // DatasetTypeTrain is a DatasetType enum value + DatasetTypeTrain = "TRAIN" + + // DatasetTypeTest is a DatasetType enum value + DatasetTypeTest = "TEST" +) + +// DatasetType_Values returns all elements of the DatasetType enum +func DatasetType_Values() []string { + return []string{ + DatasetTypeTrain, + DatasetTypeTest, + } +} + const ( // EmotionNameHappy is a EmotionName enum value EmotionNameHappy = "HAPPY" diff --git a/service/rekognition/rekognitioniface/interface.go b/service/rekognition/rekognitioniface/interface.go index 2414d941146..076b089645f 100644 --- a/service/rekognition/rekognitioniface/interface.go +++ b/service/rekognition/rekognitioniface/interface.go @@ -68,6 +68,10 @@ type RekognitionAPI interface { CreateCollectionWithContext(aws.Context, *rekognition.CreateCollectionInput, ...request.Option) (*rekognition.CreateCollectionOutput, error) CreateCollectionRequest(*rekognition.CreateCollectionInput) (*request.Request, *rekognition.CreateCollectionOutput) + CreateDataset(*rekognition.CreateDatasetInput) (*rekognition.CreateDatasetOutput, error) + CreateDatasetWithContext(aws.Context, *rekognition.CreateDatasetInput, ...request.Option) (*rekognition.CreateDatasetOutput, error) + CreateDatasetRequest(*rekognition.CreateDatasetInput) (*request.Request, *rekognition.CreateDatasetOutput) + CreateProject(*rekognition.CreateProjectInput) (*rekognition.CreateProjectOutput, error) CreateProjectWithContext(aws.Context, *rekognition.CreateProjectInput, ...request.Option) (*rekognition.CreateProjectOutput, error) CreateProjectRequest(*rekognition.CreateProjectInput) (*request.Request, *rekognition.CreateProjectOutput) @@ -84,6 +88,10 @@ type RekognitionAPI interface { DeleteCollectionWithContext(aws.Context, *rekognition.DeleteCollectionInput, ...request.Option) (*rekognition.DeleteCollectionOutput, error) DeleteCollectionRequest(*rekognition.DeleteCollectionInput) (*request.Request, *rekognition.DeleteCollectionOutput) + DeleteDataset(*rekognition.DeleteDatasetInput) (*rekognition.DeleteDatasetOutput, error) + DeleteDatasetWithContext(aws.Context, *rekognition.DeleteDatasetInput, ...request.Option) (*rekognition.DeleteDatasetOutput, error) + DeleteDatasetRequest(*rekognition.DeleteDatasetInput) (*request.Request, *rekognition.DeleteDatasetOutput) + DeleteFaces(*rekognition.DeleteFacesInput) (*rekognition.DeleteFacesOutput, error) DeleteFacesWithContext(aws.Context, *rekognition.DeleteFacesInput, ...request.Option) (*rekognition.DeleteFacesOutput, error) DeleteFacesRequest(*rekognition.DeleteFacesInput) (*request.Request, *rekognition.DeleteFacesOutput) @@ -104,6 +112,10 @@ type RekognitionAPI interface { DescribeCollectionWithContext(aws.Context, *rekognition.DescribeCollectionInput, ...request.Option) (*rekognition.DescribeCollectionOutput, error) DescribeCollectionRequest(*rekognition.DescribeCollectionInput) (*request.Request, *rekognition.DescribeCollectionOutput) + DescribeDataset(*rekognition.DescribeDatasetInput) (*rekognition.DescribeDatasetOutput, error) + DescribeDatasetWithContext(aws.Context, *rekognition.DescribeDatasetInput, ...request.Option) (*rekognition.DescribeDatasetOutput, error) + DescribeDatasetRequest(*rekognition.DescribeDatasetInput) (*request.Request, *rekognition.DescribeDatasetOutput) + DescribeProjectVersions(*rekognition.DescribeProjectVersionsInput) (*rekognition.DescribeProjectVersionsOutput, error) DescribeProjectVersionsWithContext(aws.Context, *rekognition.DescribeProjectVersionsInput, ...request.Option) (*rekognition.DescribeProjectVersionsOutput, error) DescribeProjectVersionsRequest(*rekognition.DescribeProjectVersionsInput) (*request.Request, *rekognition.DescribeProjectVersionsOutput) @@ -146,6 +158,10 @@ type RekognitionAPI interface { DetectTextWithContext(aws.Context, *rekognition.DetectTextInput, ...request.Option) (*rekognition.DetectTextOutput, error) DetectTextRequest(*rekognition.DetectTextInput) (*request.Request, *rekognition.DetectTextOutput) + DistributeDatasetEntries(*rekognition.DistributeDatasetEntriesInput) (*rekognition.DistributeDatasetEntriesOutput, error) + DistributeDatasetEntriesWithContext(aws.Context, *rekognition.DistributeDatasetEntriesInput, ...request.Option) (*rekognition.DistributeDatasetEntriesOutput, error) + DistributeDatasetEntriesRequest(*rekognition.DistributeDatasetEntriesInput) (*request.Request, *rekognition.DistributeDatasetEntriesOutput) + GetCelebrityInfo(*rekognition.GetCelebrityInfoInput) (*rekognition.GetCelebrityInfoOutput, error) GetCelebrityInfoWithContext(aws.Context, *rekognition.GetCelebrityInfoInput, ...request.Option) (*rekognition.GetCelebrityInfoOutput, error) GetCelebrityInfoRequest(*rekognition.GetCelebrityInfoInput) (*request.Request, *rekognition.GetCelebrityInfoOutput) @@ -217,6 +233,20 @@ type RekognitionAPI interface { ListCollectionsPages(*rekognition.ListCollectionsInput, func(*rekognition.ListCollectionsOutput, bool) bool) error ListCollectionsPagesWithContext(aws.Context, *rekognition.ListCollectionsInput, func(*rekognition.ListCollectionsOutput, bool) bool, ...request.Option) error + ListDatasetEntries(*rekognition.ListDatasetEntriesInput) (*rekognition.ListDatasetEntriesOutput, error) + ListDatasetEntriesWithContext(aws.Context, *rekognition.ListDatasetEntriesInput, ...request.Option) (*rekognition.ListDatasetEntriesOutput, error) + ListDatasetEntriesRequest(*rekognition.ListDatasetEntriesInput) (*request.Request, *rekognition.ListDatasetEntriesOutput) + + ListDatasetEntriesPages(*rekognition.ListDatasetEntriesInput, func(*rekognition.ListDatasetEntriesOutput, bool) bool) error + ListDatasetEntriesPagesWithContext(aws.Context, *rekognition.ListDatasetEntriesInput, func(*rekognition.ListDatasetEntriesOutput, bool) bool, ...request.Option) error + + ListDatasetLabels(*rekognition.ListDatasetLabelsInput) (*rekognition.ListDatasetLabelsOutput, error) + ListDatasetLabelsWithContext(aws.Context, *rekognition.ListDatasetLabelsInput, ...request.Option) (*rekognition.ListDatasetLabelsOutput, error) + ListDatasetLabelsRequest(*rekognition.ListDatasetLabelsInput) (*request.Request, *rekognition.ListDatasetLabelsOutput) + + ListDatasetLabelsPages(*rekognition.ListDatasetLabelsInput, func(*rekognition.ListDatasetLabelsOutput, bool) bool) error + ListDatasetLabelsPagesWithContext(aws.Context, *rekognition.ListDatasetLabelsInput, func(*rekognition.ListDatasetLabelsOutput, bool) bool, ...request.Option) error + ListFaces(*rekognition.ListFacesInput) (*rekognition.ListFacesOutput, error) ListFacesWithContext(aws.Context, *rekognition.ListFacesInput, ...request.Option) (*rekognition.ListFacesOutput, error) ListFacesRequest(*rekognition.ListFacesInput) (*request.Request, *rekognition.ListFacesOutput) @@ -303,6 +333,10 @@ type RekognitionAPI interface { UntagResourceWithContext(aws.Context, *rekognition.UntagResourceInput, ...request.Option) (*rekognition.UntagResourceOutput, error) UntagResourceRequest(*rekognition.UntagResourceInput) (*request.Request, *rekognition.UntagResourceOutput) + UpdateDatasetEntries(*rekognition.UpdateDatasetEntriesInput) (*rekognition.UpdateDatasetEntriesOutput, error) + UpdateDatasetEntriesWithContext(aws.Context, *rekognition.UpdateDatasetEntriesInput, ...request.Option) (*rekognition.UpdateDatasetEntriesOutput, error) + UpdateDatasetEntriesRequest(*rekognition.UpdateDatasetEntriesInput) (*request.Request, *rekognition.UpdateDatasetEntriesOutput) + WaitUntilProjectVersionRunning(*rekognition.DescribeProjectVersionsInput) error WaitUntilProjectVersionRunningWithContext(aws.Context, *rekognition.DescribeProjectVersionsInput, ...request.WaiterOption) error