diff --git a/CHANGELOG.md b/CHANGELOG.md index fc14e8d38e..e3766ffff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +Release v1.43.44 (2022-04-21) +=== + +### Service Client Updates +* `service/elasticache`: Updates service documentation + * Doc only update for ElastiCache +* `service/glue`: Updates service API, documentation, and paginators + * This release adds APIs to create, read, delete, list, and batch read of Glue custom entity types +* `service/iotsitewise`: Updates service API, documentation, and paginators +* `service/iottwinmaker`: Updates service API and documentation +* `service/lookoutmetrics`: Updates service API and documentation +* `service/mediatailor`: Updates service API, documentation, and paginators +* `service/secretsmanager`: Updates service documentation + * Documentation updates for Secrets Manager +* `service/storagegateway`: Updates service API and documentation + * This release adds support for minimum of 5 character length virtual tape barcodes. +* `service/wisdom`: Updates service API and documentation + Release v1.43.43 (2022-04-20) === diff --git a/aws/version.go b/aws/version.go index 823cf0b265..b51e918c51 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.43.43" +const SDKVersion = "1.43.44" diff --git a/models/apis/elasticache/2015-02-02/docs-2.json b/models/apis/elasticache/2015-02-02/docs-2.json index 6819f59915..caa793ce7e 100644 --- a/models/apis/elasticache/2015-02-02/docs-2.json +++ b/models/apis/elasticache/2015-02-02/docs-2.json @@ -315,7 +315,7 @@ } }, "CacheNode": { - "base": "

Represents an individual cache node within a cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "base": "

Represents an individual cache node within a cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "refs": { "CacheNodeList$member": null } @@ -2002,7 +2002,7 @@ "BatchStopUpdateActionMessage$ServiceUpdateName": "

The unique ID of the service update

", "CacheCluster$CacheClusterId": "

The user-supplied identifier of the cluster. This identifier is a unique key that identifies a cluster.

", "CacheCluster$ClientDownloadLandingPage": "

The URL of the web page where you can download the latest ElastiCache client library.

", - "CacheCluster$CacheNodeType": "

The name of the compute and memory capacity node type for the cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "CacheCluster$CacheNodeType": "

The name of the compute and memory capacity node type for the cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "CacheCluster$Engine": "

The name of the cache engine (memcached or redis) to be used for this cluster.

", "CacheCluster$EngineVersion": "

The version of the cache engine that is used in this cluster.

", "CacheCluster$CacheClusterStatus": "

The current state of this cluster, one of the following values: available, creating, deleted, deleting, incompatible-network, modifying, rebooting cluster nodes, restore-failed, or snapshotting.

", @@ -2069,7 +2069,7 @@ "CreateCacheClusterMessage$CacheClusterId": "

The node group (shard) identifier. This parameter is stored as a lowercase string.

Constraints:

", "CreateCacheClusterMessage$ReplicationGroupId": "

The ID of the replication group to which this cluster should belong. If this parameter is specified, the cluster is added to the specified replication group as a read replica; otherwise, the cluster is a standalone primary that is not part of any replication group.

If the specified replication group is Multi-AZ enabled and the Availability Zone is not specified, the cluster is created in Availability Zones that provide the best spread of read replicas across Availability Zones.

This parameter is only valid if the Engine parameter is redis.

", "CreateCacheClusterMessage$PreferredAvailabilityZone": "

The EC2 Availability Zone in which the cluster is created.

All nodes belonging to this cluster are placed in the preferred Availability Zone. If you want to create your nodes across multiple Availability Zones, use PreferredAvailabilityZones.

Default: System chosen Availability Zone.

", - "CreateCacheClusterMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "CreateCacheClusterMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "CreateCacheClusterMessage$Engine": "

The name of the cache engine to be used for this cluster.

Valid values for this parameter are: memcached | redis

", "CreateCacheClusterMessage$EngineVersion": "

The version number of the cache engine to be used for this cluster. To view the supported cache engine versions, use the DescribeCacheEngineVersions operation.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version.

", "CreateCacheClusterMessage$CacheParameterGroupName": "

The name of the parameter group to associate with this cluster. If this argument is omitted, the default parameter group for the specified engine is used. You cannot use any parameter group which has cluster-enabled='yes' when creating a cluster.

", @@ -2094,7 +2094,7 @@ "CreateReplicationGroupMessage$ReplicationGroupDescription": "

A user-created description for the replication group.

", "CreateReplicationGroupMessage$GlobalReplicationGroupId": "

The name of the Global datastore

", "CreateReplicationGroupMessage$PrimaryClusterId": "

The identifier of the cluster that serves as the primary for this replication group. This cluster must already exist and have a status of available.

This parameter is not required if NumCacheClusters, NumNodeGroups, or ReplicasPerNodeGroup is specified.

", - "CreateReplicationGroupMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "CreateReplicationGroupMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "CreateReplicationGroupMessage$Engine": "

The name of the cache engine to be used for the clusters in this replication group. Must be Redis.

", "CreateReplicationGroupMessage$EngineVersion": "

The version number of the cache engine to be used for the clusters in this replication group. To view the supported cache engine versions, use the DescribeCacheEngineVersions operation.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version.

", "CreateReplicationGroupMessage$CacheParameterGroupName": "

The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used.

If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a default parameter group, we recommend that you specify the parameter group by name.

", @@ -2149,13 +2149,13 @@ "DescribeReplicationGroupsMessage$Marker": "

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

", "DescribeReservedCacheNodesMessage$ReservedCacheNodeId": "

The reserved cache node identifier filter value. Use this parameter to show only the reservation that matches the specified reservation ID.

", "DescribeReservedCacheNodesMessage$ReservedCacheNodesOfferingId": "

The offering identifier filter value. Use this parameter to show only purchased reservations matching the specified offering identifier.

", - "DescribeReservedCacheNodesMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "DescribeReservedCacheNodesMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "DescribeReservedCacheNodesMessage$Duration": "

The duration filter value, specified in years or seconds. Use this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", "DescribeReservedCacheNodesMessage$ProductDescription": "

The product description filter value. Use this parameter to show only those reservations matching the specified product description.

", "DescribeReservedCacheNodesMessage$OfferingType": "

The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.

Valid values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\"|\"All Upfront\"|\"Partial Upfront\"| \"No Upfront\"

", "DescribeReservedCacheNodesMessage$Marker": "

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

", "DescribeReservedCacheNodesOfferingsMessage$ReservedCacheNodesOfferingId": "

The offering identifier filter value. Use this parameter to show only the available offering that matches the specified reservation identifier.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "DescribeReservedCacheNodesOfferingsMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "DescribeReservedCacheNodesOfferingsMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "DescribeReservedCacheNodesOfferingsMessage$Duration": "

Duration filter value, specified in years or seconds. Use this parameter to show only reservations for a given duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", "DescribeReservedCacheNodesOfferingsMessage$ProductDescription": "

The product description filter value. Use this parameter to show only the available offerings matching the specified product description.

", "DescribeReservedCacheNodesOfferingsMessage$OfferingType": "

The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\" |\"All Upfront\"|\"Partial Upfront\"| \"No Upfront\"

", @@ -2309,14 +2309,14 @@ "ReplicationGroupPendingModifiedValues$PrimaryClusterId": "

The primary cluster ID that is applied immediately (if --apply-immediately was specified), or during the next maintenance window.

", "ReservedCacheNode$ReservedCacheNodeId": "

The unique identifier for the reservation.

", "ReservedCacheNode$ReservedCacheNodesOfferingId": "

The offering identifier.

", - "ReservedCacheNode$CacheNodeType": "

The cache node type for the reserved cache nodes.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "ReservedCacheNode$CacheNodeType": "

The cache node type for the reserved cache nodes.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "ReservedCacheNode$ProductDescription": "

The description of the reserved cache node.

", "ReservedCacheNode$OfferingType": "

The offering type of this reserved cache node.

", "ReservedCacheNode$State": "

The state of the reserved cache node.

", "ReservedCacheNode$ReservationARN": "

The Amazon Resource Name (ARN) of the reserved cache node.

Example: arn:aws:elasticache:us-east-1:123456789012:reserved-instance:ri-2017-03-27-08-33-25-582

", "ReservedCacheNodeMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", "ReservedCacheNodesOffering$ReservedCacheNodesOfferingId": "

A unique identifier for the reserved cache node offering.

", - "ReservedCacheNodesOffering$CacheNodeType": "

The cache node type for the reserved cache node.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "ReservedCacheNodesOffering$CacheNodeType": "

The cache node type for the reserved cache node.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "ReservedCacheNodesOffering$ProductDescription": "

The cache engine used by the offering.

", "ReservedCacheNodesOffering$OfferingType": "

The offering type.

", "ReservedCacheNodesOfferingMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", @@ -2339,7 +2339,7 @@ "Snapshot$CacheClusterId": "

The user-supplied identifier of the source cluster.

", "Snapshot$SnapshotStatus": "

The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.

", "Snapshot$SnapshotSource": "

Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).

", - "Snapshot$CacheNodeType": "

The name of the compute and memory capacity node type for the source cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "Snapshot$CacheNodeType": "

The name of the compute and memory capacity node type for the source cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "Snapshot$Engine": "

The name of the cache engine (memcached or redis) used by the source cluster.

", "Snapshot$EngineVersion": "

The version of the cache engine version that is used by the source cluster.

", "Snapshot$PreferredAvailabilityZone": "

The name of the Availability Zone in which the source cluster is located.

", diff --git a/models/apis/glue/2017-03-31/api-2.json b/models/apis/glue/2017-03-31/api-2.json index 6bd0c21c4f..29127f8a90 100644 --- a/models/apis/glue/2017-03-31/api-2.json +++ b/models/apis/glue/2017-03-31/api-2.json @@ -117,6 +117,20 @@ {"shape":"OperationTimeoutException"} ] }, + "BatchGetCustomEntityTypes":{ + "name":"BatchGetCustomEntityTypes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchGetCustomEntityTypesRequest"}, + "output":{"shape":"BatchGetCustomEntityTypesResponse"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"InternalServiceException"}, + {"shape":"OperationTimeoutException"} + ] + }, "BatchGetDevEndpoints":{ "name":"BatchGetDevEndpoints", "http":{ @@ -328,6 +342,24 @@ {"shape":"ResourceNumberLimitExceededException"} ] }, + "CreateCustomEntityType":{ + "name":"CreateCustomEntityType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateCustomEntityTypeRequest"}, + "output":{"shape":"CreateCustomEntityTypeResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"AlreadyExistsException"}, + {"shape":"IdempotentParameterMismatchException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"OperationTimeoutException"}, + {"shape":"ResourceNumberLimitExceededException"} + ] + }, "CreateDatabase":{ "name":"CreateDatabase", "http":{ @@ -682,6 +714,22 @@ {"shape":"OperationTimeoutException"} ] }, + "DeleteCustomEntityType":{ + "name":"DeleteCustomEntityType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteCustomEntityTypeRequest"}, + "output":{"shape":"DeleteCustomEntityTypeResponse"}, + "errors":[ + {"shape":"EntityNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"OperationTimeoutException"} + ] + }, "DeleteDatabase":{ "name":"DeleteDatabase", "http":{ @@ -1125,6 +1173,22 @@ {"shape":"OperationTimeoutException"} ] }, + "GetCustomEntityType":{ + "name":"GetCustomEntityType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetCustomEntityTypeRequest"}, + "output":{"shape":"GetCustomEntityTypeResponse"}, + "errors":[ + {"shape":"EntityNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"OperationTimeoutException"} + ] + }, "GetDataCatalogEncryptionSettings":{ "name":"GetDataCatalogEncryptionSettings", "http":{ @@ -1889,6 +1953,20 @@ {"shape":"OperationTimeoutException"} ] }, + "ListCustomEntityTypes":{ + "name":"ListCustomEntityTypes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCustomEntityTypesRequest"}, + "output":{"shape":"ListCustomEntityTypesResponse"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"OperationTimeoutException"}, + {"shape":"InternalServiceException"} + ] + }, "ListDevEndpoints":{ "name":"ListDevEndpoints", "http":{ @@ -3008,6 +3086,20 @@ "CrawlersNotFound":{"shape":"CrawlerNameList"} } }, + "BatchGetCustomEntityTypesRequest":{ + "type":"structure", + "required":["Names"], + "members":{ + "Names":{"shape":"CustomEntityTypeNames"} + } + }, + "BatchGetCustomEntityTypesResponse":{ + "type":"structure", + "members":{ + "CustomEntityTypes":{"shape":"CustomEntityTypes"}, + "CustomEntityTypesNotFound":{"shape":"CustomEntityTypeNames"} + } + }, "BatchGetDevEndpointsRequest":{ "type":"structure", "required":["DevEndpointNames"], @@ -3818,6 +3910,12 @@ "Connections":{"shape":"OrchestrationStringList"} } }, + "ContextWords":{ + "type":"list", + "member":{"shape":"NameString"}, + "max":20, + "min":1 + }, "Crawl":{ "type":"structure", "members":{ @@ -4044,6 +4142,24 @@ "AllowSingleColumn":{"shape":"NullableBoolean"} } }, + "CreateCustomEntityTypeRequest":{ + "type":"structure", + "required":[ + "Name", + "RegexString" + ], + "members":{ + "Name":{"shape":"NameString"}, + "RegexString":{"shape":"NameString"}, + "ContextWords":{"shape":"ContextWords"} + } + }, + "CreateCustomEntityTypeResponse":{ + "type":"structure", + "members":{ + "Name":{"shape":"NameString"} + } + }, "CreateDatabaseRequest":{ "type":"structure", "required":["DatabaseInput"], @@ -4487,6 +4603,28 @@ "min":1, "pattern":"[^\\r\\n]" }, + "CustomEntityType":{ + "type":"structure", + "required":[ + "Name", + "RegexString" + ], + "members":{ + "Name":{"shape":"NameString"}, + "RegexString":{"shape":"NameString"}, + "ContextWords":{"shape":"ContextWords"} + } + }, + "CustomEntityTypeNames":{ + "type":"list", + "member":{"shape":"NameString"}, + "max":50, + "min":1 + }, + "CustomEntityTypes":{ + "type":"list", + "member":{"shape":"CustomEntityType"} + }, "CustomPatterns":{ "type":"string", "max":16000, @@ -4706,6 +4844,19 @@ "members":{ } }, + "DeleteCustomEntityTypeRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"NameString"} + } + }, + "DeleteCustomEntityTypeResponse":{ + "type":"structure", + "members":{ + "Name":{"shape":"NameString"} + } + }, "DeleteDatabaseRequest":{ "type":"structure", "required":["Name"], @@ -5438,6 +5589,21 @@ "NextToken":{"shape":"Token"} } }, + "GetCustomEntityTypeRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"NameString"} + } + }, + "GetCustomEntityTypeResponse":{ + "type":"structure", + "members":{ + "Name":{"shape":"NameString"}, + "RegexString":{"shape":"NameString"}, + "ContextWords":{"shape":"ContextWords"} + } + }, "GetDataCatalogEncryptionSettingsRequest":{ "type":"structure", "members":{ @@ -6750,6 +6916,20 @@ "NextToken":{"shape":"Token"} } }, + "ListCustomEntityTypesRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"PageSize"} + } + }, + "ListCustomEntityTypesResponse":{ + "type":"structure", + "members":{ + "CustomEntityTypes":{"shape":"CustomEntityTypes"}, + "NextToken":{"shape":"PaginationToken"} + } + }, "ListDevEndpointsRequest":{ "type":"structure", "members":{ diff --git a/models/apis/glue/2017-03-31/docs-2.json b/models/apis/glue/2017-03-31/docs-2.json index cf3b2c968f..325111c968 100644 --- a/models/apis/glue/2017-03-31/docs-2.json +++ b/models/apis/glue/2017-03-31/docs-2.json @@ -9,6 +9,7 @@ "BatchDeleteTableVersion": "

Deletes a specified batch of versions of a table.

", "BatchGetBlueprints": "

Retrieves information about a list of blueprints.

", "BatchGetCrawlers": "

Returns a list of resource metadata for a given list of crawler names. After calling the ListCrawlers operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.

", + "BatchGetCustomEntityTypes": null, "BatchGetDevEndpoints": "

Returns a list of resource metadata for a given list of development endpoint names. After calling the ListDevEndpoints operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.

", "BatchGetJobs": "

Returns a list of resource metadata for a given list of job names. After calling the ListJobs operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.

", "BatchGetPartition": "

Retrieves partitions in a batch request.

", @@ -23,6 +24,7 @@ "CreateClassifier": "

Creates a classifier in the user's account. This can be a GrokClassifier, an XMLClassifier, a JsonClassifier, or a CsvClassifier, depending on which field of the request is present.

", "CreateConnection": "

Creates a connection definition in the Data Catalog.

", "CreateCrawler": "

Creates a new crawler with specified targets, role, configuration, and optional schedule. At least one crawl target must be specified, in the s3Targets field, the jdbcTargets field, or the DynamoDBTargets field.

", + "CreateCustomEntityType": null, "CreateDatabase": "

Creates a new database in a Data Catalog.

", "CreateDevEndpoint": "

Creates a new development endpoint.

", "CreateJob": "

Creates a new job definition.

", @@ -44,6 +46,7 @@ "DeleteColumnStatisticsForTable": "

Retrieves table statistics of columns.

The Identity and Access Management (IAM) permission required for this operation is DeleteTable.

", "DeleteConnection": "

Deletes a connection from the Data Catalog.

", "DeleteCrawler": "

Removes a specified crawler from the Glue Data Catalog, unless the crawler state is RUNNING.

", + "DeleteCustomEntityType": null, "DeleteDatabase": "

Removes a specified database from a Data Catalog.

After completing this operation, you no longer have access to the tables (and all table versions and partitions that might belong to the tables) and the user-defined functions in the deleted database. Glue deletes these \"orphaned\" resources asynchronously in a timely manner, at the discretion of the service.

To ensure the immediate deletion of all related resources, before calling DeleteDatabase, use DeleteTableVersion or BatchDeleteTableVersion, DeletePartition or BatchDeletePartition, DeleteUserDefinedFunction, and DeleteTable or BatchDeleteTable, to delete any resources that belong to the database.

", "DeleteDevEndpoint": "

Deletes a specified development endpoint.

", "DeleteJob": "

Deletes a specified job definition. If the job definition is not found, no exception is thrown.

", @@ -74,6 +77,7 @@ "GetCrawler": "

Retrieves metadata for a specified crawler.

", "GetCrawlerMetrics": "

Retrieves metrics about specified crawlers.

", "GetCrawlers": "

Retrieves metadata for all crawlers defined in the customer account.

", + "GetCustomEntityType": null, "GetDataCatalogEncryptionSettings": "

Retrieves the security configuration for a specified catalog.

", "GetDatabase": "

Retrieves the definition of a specified database.

", "GetDatabases": "

Retrieves all databases defined in a given Data Catalog.

", @@ -124,6 +128,7 @@ "ImportCatalogToGlue": "

Imports an existing Amazon Athena Data Catalog to Glue.

", "ListBlueprints": "

Lists all the blueprint names in an account.

", "ListCrawlers": "

Retrieves the names of all crawler resources in this Amazon Web Services account, or the resources with the specified tag. This operation allows you to see which resources are available in your account, and their names.

This operation takes the optional Tags field, which you can use as a filter on the response so that tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag are retrieved.

", + "ListCustomEntityTypes": null, "ListDevEndpoints": "

Retrieves the names of all DevEndpoint resources in this Amazon Web Services account, or the resources with the specified tag. This operation allows you to see which resources are available in your account, and their names.

This operation takes the optional Tags field, which you can use as a filter on the response so that tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag are retrieved.

", "ListJobs": "

Retrieves the names of all job resources in this Amazon Web Services account, or the resources with the specified tag. This operation allows you to see which resources are available in your account, and their names.

This operation takes the optional Tags field, which you can use as a filter on the response so that tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag are retrieved.

", "ListMLTransforms": "

Retrieves a sortable, filterable list of existing Glue machine learning transforms in this Amazon Web Services account, or the resources with the specified tag. This operation takes the optional Tags field, which you can use as a filter of the responses so that tagged resources can be retrieved as a group. If you choose to use tag filtering, only resources with the tags are retrieved.

", @@ -362,6 +367,16 @@ "refs": { } }, + "BatchGetCustomEntityTypesRequest": { + "base": null, + "refs": { + } + }, + "BatchGetCustomEntityTypesResponse": { + "base": null, + "refs": { + } + }, "BatchGetDevEndpointsRequest": { "base": null, "refs": { @@ -1120,6 +1135,14 @@ "Session$Connections": "

The number of connections used for the session.

" } }, + "ContextWords": { + "base": null, + "refs": { + "CreateCustomEntityTypeRequest$ContextWords": null, + "CustomEntityType$ContextWords": null, + "GetCustomEntityTypeResponse$ContextWords": null + } + }, "Crawl": { "base": "

The details of a crawl in the workflow.

", "refs": { @@ -1277,6 +1300,16 @@ "CreateClassifierRequest$CsvClassifier": "

A CsvClassifier object specifying the classifier to create.

" } }, + "CreateCustomEntityTypeRequest": { + "base": null, + "refs": { + } + }, + "CreateCustomEntityTypeResponse": { + "base": null, + "refs": { + } + }, "CreateDatabaseRequest": { "base": null, "refs": { @@ -1506,6 +1539,26 @@ "UpdateCsvClassifierRequest$QuoteSymbol": "

A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.

" } }, + "CustomEntityType": { + "base": null, + "refs": { + "CustomEntityTypes$member": null + } + }, + "CustomEntityTypeNames": { + "base": null, + "refs": { + "BatchGetCustomEntityTypesRequest$Names": null, + "BatchGetCustomEntityTypesResponse$CustomEntityTypesNotFound": null + } + }, + "CustomEntityTypes": { + "base": null, + "refs": { + "BatchGetCustomEntityTypesResponse$CustomEntityTypes": null, + "ListCustomEntityTypesResponse$CustomEntityTypes": null + } + }, "CustomPatterns": { "base": null, "refs": { @@ -1684,6 +1737,16 @@ "refs": { } }, + "DeleteCustomEntityTypeRequest": { + "base": null, + "refs": { + } + }, + "DeleteCustomEntityTypeResponse": { + "base": null, + "refs": { + } + }, "DeleteDatabaseRequest": { "base": null, "refs": { @@ -2416,6 +2479,16 @@ "refs": { } }, + "GetCustomEntityTypeRequest": { + "base": null, + "refs": { + } + }, + "GetCustomEntityTypeResponse": { + "base": null, + "refs": { + } + }, "GetDataCatalogEncryptionSettingsRequest": { "base": null, "refs": { @@ -3391,6 +3464,16 @@ "refs": { } }, + "ListCustomEntityTypesRequest": { + "base": null, + "refs": { + } + }, + "ListCustomEntityTypesResponse": { + "base": null, + "refs": { + } + }, "ListDevEndpointsRequest": { "base": null, "refs": { @@ -3783,12 +3866,16 @@ "Connection$LastUpdatedBy": "

The user, group, or role that last updated this connection definition.

", "ConnectionInput$Name": "

The name of the connection.

", "ConnectionPasswordEncryption$AwsKmsKeyId": "

An KMS key that is used to encrypt the connection password.

If connection password protection is enabled, the caller of CreateConnection and UpdateConnection needs at least kms:Encrypt permission on the specified KMS key, to encrypt passwords before storing them in the Data Catalog.

You can set the decrypt permission to enable or restrict access on the password key according to your security requirements.

", + "ContextWords$member": null, "Crawler$Name": "

The name of the crawler.

", "CrawlerMetrics$CrawlerName": "

The name of the crawler.

", "CrawlerNameList$member": null, "CreateBlueprintResponse$Name": "

Returns the name of the blueprint that was registered.

", "CreateCrawlerRequest$Name": "

Name of the new crawler.

", "CreateCsvClassifierRequest$Name": "

The name of the classifier.

", + "CreateCustomEntityTypeRequest$Name": null, + "CreateCustomEntityTypeRequest$RegexString": null, + "CreateCustomEntityTypeResponse$Name": null, "CreateDevEndpointRequest$SecurityConfiguration": "

The name of the SecurityConfiguration structure to be used with this DevEndpoint.

", "CreateDevEndpointResponse$SecurityConfiguration": "

The name of the SecurityConfiguration structure being used with this DevEndpoint.

", "CreateGrokClassifierRequest$Name": "

The name of the new classifier.

", @@ -3815,6 +3902,9 @@ "CreateXMLClassifierRequest$Name": "

The name of the classifier.

", "CsvClassifier$Name": "

The name of the classifier.

", "CsvHeader$member": null, + "CustomEntityType$Name": null, + "CustomEntityType$RegexString": null, + "CustomEntityTypeNames$member": null, "Database$Name": "

The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.

", "DatabaseIdentifier$DatabaseName": "

The name of the catalog database.

", "DatabaseInput$Name": "

The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.

", @@ -3830,6 +3920,8 @@ "DeleteConnectionNameList$member": null, "DeleteConnectionRequest$ConnectionName": "

The name of the connection to delete.

", "DeleteCrawlerRequest$Name": "

The name of the crawler to remove.

", + "DeleteCustomEntityTypeRequest$Name": null, + "DeleteCustomEntityTypeResponse$Name": null, "DeleteDatabaseRequest$Name": "

The name of the database to delete. For Hive compatibility, this must be all lowercase.

", "DeleteJobRequest$JobName": "

The name of the job definition to delete.

", "DeleteJobResponse$JobName": "

The name of the job definition that was deleted.

", @@ -3869,6 +3961,9 @@ "GetColumnStatisticsForTableRequest$TableName": "

The name of the partitions' table.

", "GetConnectionRequest$Name": "

The name of the connection definition to retrieve.

", "GetCrawlerRequest$Name": "

The name of the crawler to retrieve metadata for.

", + "GetCustomEntityTypeRequest$Name": null, + "GetCustomEntityTypeResponse$Name": null, + "GetCustomEntityTypeResponse$RegexString": null, "GetDatabaseRequest$Name": "

The name of the database to retrieve. For Hive compatibility, this should be all lowercase.

", "GetJobRequest$JobName": "

The name of the job definition to retrieve.

", "GetJobRunRequest$JobName": "

Name of the job definition being run.

", @@ -4317,6 +4412,7 @@ "GetWorkflowRunsRequest$MaxResults": "

The maximum number of workflow runs to be included in the response.

", "ListBlueprintsRequest$MaxResults": "

The maximum size of a list to return.

", "ListCrawlersRequest$MaxResults": "

The maximum size of a list to return.

", + "ListCustomEntityTypesRequest$MaxResults": null, "ListDevEndpointsRequest$MaxResults": "

The maximum size of a list to return.

", "ListJobsRequest$MaxResults": "

The maximum size of a list to return.

", "ListMLTransformsRequest$MaxResults": "

The maximum size of a list to return.

", @@ -4333,6 +4429,8 @@ "GetMLTaskRunsResponse$NextToken": "

A pagination token, if more results are available.

", "GetMLTransformsRequest$NextToken": "

A paginated token to offset the results.

", "GetMLTransformsResponse$NextToken": "

A pagination token, if more results are available.

", + "ListCustomEntityTypesRequest$NextToken": null, + "ListCustomEntityTypesResponse$NextToken": null, "ListMLTransformsRequest$NextToken": "

A continuation token, if this is a continuation request.

", "ListMLTransformsResponse$NextToken": "

A continuation token, if the returned list does not contain the last metric available.

" } diff --git a/models/apis/glue/2017-03-31/paginators-1.json b/models/apis/glue/2017-03-31/paginators-1.json index 9049b86f16..6c3f0d6b8b 100644 --- a/models/apis/glue/2017-03-31/paginators-1.json +++ b/models/apis/glue/2017-03-31/paginators-1.json @@ -117,6 +117,11 @@ "limit_key": "MaxResults", "output_token": "NextToken" }, + "ListCustomEntityTypes": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken" + }, "ListDevEndpoints": { "input_token": "NextToken", "limit_key": "MaxResults", diff --git a/models/apis/iotsitewise/2019-12-02/api-2.json b/models/apis/iotsitewise/2019-12-02/api-2.json index 60cb84d012..1b6f1033c8 100644 --- a/models/apis/iotsitewise/2019-12-02/api-2.json +++ b/models/apis/iotsitewise/2019-12-02/api-2.json @@ -80,6 +80,54 @@ ], "endpoint":{"hostPrefix":"monitor."} }, + "BatchGetAssetPropertyAggregates":{ + "name":"BatchGetAssetPropertyAggregates", + "http":{ + "method":"POST", + "requestUri":"/properties/batch/aggregates" + }, + "input":{"shape":"BatchGetAssetPropertyAggregatesRequest"}, + "output":{"shape":"BatchGetAssetPropertyAggregatesResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"}, + {"shape":"ServiceUnavailableException"} + ], + "endpoint":{"hostPrefix":"data."} + }, + "BatchGetAssetPropertyValue":{ + "name":"BatchGetAssetPropertyValue", + "http":{ + "method":"POST", + "requestUri":"/properties/batch/latest" + }, + "input":{"shape":"BatchGetAssetPropertyValueRequest"}, + "output":{"shape":"BatchGetAssetPropertyValueResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"}, + {"shape":"ServiceUnavailableException"} + ], + "endpoint":{"hostPrefix":"data."} + }, + "BatchGetAssetPropertyValueHistory":{ + "name":"BatchGetAssetPropertyValueHistory", + "http":{ + "method":"POST", + "requestUri":"/properties/batch/history" + }, + "input":{"shape":"BatchGetAssetPropertyValueHistoryRequest"}, + "output":{"shape":"BatchGetAssetPropertyValueHistoryResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"}, + {"shape":"ServiceUnavailableException"} + ], + "endpoint":{"hostPrefix":"data."} + }, "BatchPutAssetPropertyValue":{ "name":"BatchPutAssetPropertyValue", "http":{ @@ -1671,6 +1719,345 @@ "errors":{"shape":"BatchDisassociateProjectAssetsErrors"} } }, + "BatchEntryCompletionStatus":{ + "type":"string", + "enum":[ + "SUCCESS", + "ERROR" + ] + }, + "BatchGetAssetPropertyAggregatesEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyAggregatesEntry"} + }, + "BatchGetAssetPropertyAggregatesEntry":{ + "type":"structure", + "required":[ + "entryId", + "aggregateTypes", + "resolution", + "startDate", + "endDate" + ], + "members":{ + "entryId":{"shape":"EntryId"}, + "assetId":{"shape":"ID"}, + "propertyId":{"shape":"ID"}, + "propertyAlias":{"shape":"AssetPropertyAlias"}, + "aggregateTypes":{"shape":"AggregateTypes"}, + "resolution":{"shape":"Resolution"}, + "startDate":{"shape":"Timestamp"}, + "endDate":{"shape":"Timestamp"}, + "qualities":{"shape":"Qualities"}, + "timeOrdering":{"shape":"TimeOrdering"} + } + }, + "BatchGetAssetPropertyAggregatesErrorCode":{ + "type":"string", + "enum":[ + "ResourceNotFoundException", + "InvalidRequestException", + "AccessDeniedException" + ] + }, + "BatchGetAssetPropertyAggregatesErrorEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyAggregatesErrorEntry"} + }, + "BatchGetAssetPropertyAggregatesErrorEntry":{ + "type":"structure", + "required":[ + "errorCode", + "errorMessage", + "entryId" + ], + "members":{ + "errorCode":{"shape":"BatchGetAssetPropertyAggregatesErrorCode"}, + "errorMessage":{"shape":"ErrorMessage"}, + "entryId":{"shape":"EntryId"} + } + }, + "BatchGetAssetPropertyAggregatesErrorInfo":{ + "type":"structure", + "required":[ + "errorCode", + "errorTimestamp" + ], + "members":{ + "errorCode":{"shape":"BatchGetAssetPropertyAggregatesErrorCode"}, + "errorTimestamp":{"shape":"Timestamp"} + } + }, + "BatchGetAssetPropertyAggregatesMaxResults":{ + "type":"integer", + "min":1 + }, + "BatchGetAssetPropertyAggregatesRequest":{ + "type":"structure", + "required":["entries"], + "members":{ + "entries":{"shape":"BatchGetAssetPropertyAggregatesEntries"}, + "nextToken":{"shape":"NextToken"}, + "maxResults":{"shape":"BatchGetAssetPropertyAggregatesMaxResults"} + } + }, + "BatchGetAssetPropertyAggregatesResponse":{ + "type":"structure", + "required":[ + "errorEntries", + "successEntries", + "skippedEntries" + ], + "members":{ + "errorEntries":{"shape":"BatchGetAssetPropertyAggregatesErrorEntries"}, + "successEntries":{"shape":"BatchGetAssetPropertyAggregatesSuccessEntries"}, + "skippedEntries":{"shape":"BatchGetAssetPropertyAggregatesSkippedEntries"}, + "nextToken":{"shape":"NextToken"} + } + }, + "BatchGetAssetPropertyAggregatesSkippedEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyAggregatesSkippedEntry"} + }, + "BatchGetAssetPropertyAggregatesSkippedEntry":{ + "type":"structure", + "required":[ + "entryId", + "completionStatus" + ], + "members":{ + "entryId":{"shape":"EntryId"}, + "completionStatus":{"shape":"BatchEntryCompletionStatus"}, + "errorInfo":{"shape":"BatchGetAssetPropertyAggregatesErrorInfo"} + } + }, + "BatchGetAssetPropertyAggregatesSuccessEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyAggregatesSuccessEntry"} + }, + "BatchGetAssetPropertyAggregatesSuccessEntry":{ + "type":"structure", + "required":[ + "entryId", + "aggregatedValues" + ], + "members":{ + "entryId":{"shape":"EntryId"}, + "aggregatedValues":{"shape":"AggregatedValues"} + } + }, + "BatchGetAssetPropertyValueEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyValueEntry"} + }, + "BatchGetAssetPropertyValueEntry":{ + "type":"structure", + "required":["entryId"], + "members":{ + "entryId":{"shape":"EntryId"}, + "assetId":{"shape":"ID"}, + "propertyId":{"shape":"ID"}, + "propertyAlias":{"shape":"AssetPropertyAlias"} + } + }, + "BatchGetAssetPropertyValueErrorCode":{ + "type":"string", + "enum":[ + "ResourceNotFoundException", + "InvalidRequestException", + "AccessDeniedException" + ] + }, + "BatchGetAssetPropertyValueErrorEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyValueErrorEntry"} + }, + "BatchGetAssetPropertyValueErrorEntry":{ + "type":"structure", + "required":[ + "errorCode", + "errorMessage", + "entryId" + ], + "members":{ + "errorCode":{"shape":"BatchGetAssetPropertyValueErrorCode"}, + "errorMessage":{"shape":"ErrorMessage"}, + "entryId":{"shape":"EntryId"} + } + }, + "BatchGetAssetPropertyValueErrorInfo":{ + "type":"structure", + "required":[ + "errorCode", + "errorTimestamp" + ], + "members":{ + "errorCode":{"shape":"BatchGetAssetPropertyValueErrorCode"}, + "errorTimestamp":{"shape":"Timestamp"} + } + }, + "BatchGetAssetPropertyValueHistoryEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyValueHistoryEntry"} + }, + "BatchGetAssetPropertyValueHistoryEntry":{ + "type":"structure", + "required":["entryId"], + "members":{ + "entryId":{"shape":"EntryId"}, + "assetId":{"shape":"ID"}, + "propertyId":{"shape":"ID"}, + "propertyAlias":{"shape":"AssetPropertyAlias"}, + "startDate":{"shape":"Timestamp"}, + "endDate":{"shape":"Timestamp"}, + "qualities":{"shape":"Qualities"}, + "timeOrdering":{"shape":"TimeOrdering"} + } + }, + "BatchGetAssetPropertyValueHistoryErrorCode":{ + "type":"string", + "enum":[ + "ResourceNotFoundException", + "InvalidRequestException", + "AccessDeniedException" + ] + }, + "BatchGetAssetPropertyValueHistoryErrorEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyValueHistoryErrorEntry"} + }, + "BatchGetAssetPropertyValueHistoryErrorEntry":{ + "type":"structure", + "required":[ + "errorCode", + "errorMessage", + "entryId" + ], + "members":{ + "errorCode":{"shape":"BatchGetAssetPropertyValueHistoryErrorCode"}, + "errorMessage":{"shape":"ErrorMessage"}, + "entryId":{"shape":"EntryId"} + } + }, + "BatchGetAssetPropertyValueHistoryErrorInfo":{ + "type":"structure", + "required":[ + "errorCode", + "errorTimestamp" + ], + "members":{ + "errorCode":{"shape":"BatchGetAssetPropertyValueHistoryErrorCode"}, + "errorTimestamp":{"shape":"Timestamp"} + } + }, + "BatchGetAssetPropertyValueHistoryMaxResults":{ + "type":"integer", + "min":1 + }, + "BatchGetAssetPropertyValueHistoryRequest":{ + "type":"structure", + "required":["entries"], + "members":{ + "entries":{"shape":"BatchGetAssetPropertyValueHistoryEntries"}, + "nextToken":{"shape":"NextToken"}, + "maxResults":{"shape":"BatchGetAssetPropertyValueHistoryMaxResults"} + } + }, + "BatchGetAssetPropertyValueHistoryResponse":{ + "type":"structure", + "required":[ + "errorEntries", + "successEntries", + "skippedEntries" + ], + "members":{ + "errorEntries":{"shape":"BatchGetAssetPropertyValueHistoryErrorEntries"}, + "successEntries":{"shape":"BatchGetAssetPropertyValueHistorySuccessEntries"}, + "skippedEntries":{"shape":"BatchGetAssetPropertyValueHistorySkippedEntries"}, + "nextToken":{"shape":"NextToken"} + } + }, + "BatchGetAssetPropertyValueHistorySkippedEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyValueHistorySkippedEntry"} + }, + "BatchGetAssetPropertyValueHistorySkippedEntry":{ + "type":"structure", + "required":[ + "entryId", + "completionStatus" + ], + "members":{ + "entryId":{"shape":"EntryId"}, + "completionStatus":{"shape":"BatchEntryCompletionStatus"}, + "errorInfo":{"shape":"BatchGetAssetPropertyValueHistoryErrorInfo"} + } + }, + "BatchGetAssetPropertyValueHistorySuccessEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyValueHistorySuccessEntry"} + }, + "BatchGetAssetPropertyValueHistorySuccessEntry":{ + "type":"structure", + "required":[ + "entryId", + "assetPropertyValueHistory" + ], + "members":{ + "entryId":{"shape":"EntryId"}, + "assetPropertyValueHistory":{"shape":"AssetPropertyValueHistory"} + } + }, + "BatchGetAssetPropertyValueRequest":{ + "type":"structure", + "required":["entries"], + "members":{ + "entries":{"shape":"BatchGetAssetPropertyValueEntries"}, + "nextToken":{"shape":"NextToken"} + } + }, + "BatchGetAssetPropertyValueResponse":{ + "type":"structure", + "required":[ + "errorEntries", + "successEntries", + "skippedEntries" + ], + "members":{ + "errorEntries":{"shape":"BatchGetAssetPropertyValueErrorEntries"}, + "successEntries":{"shape":"BatchGetAssetPropertyValueSuccessEntries"}, + "skippedEntries":{"shape":"BatchGetAssetPropertyValueSkippedEntries"}, + "nextToken":{"shape":"NextToken"} + } + }, + "BatchGetAssetPropertyValueSkippedEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyValueSkippedEntry"} + }, + "BatchGetAssetPropertyValueSkippedEntry":{ + "type":"structure", + "required":[ + "entryId", + "completionStatus" + ], + "members":{ + "entryId":{"shape":"EntryId"}, + "completionStatus":{"shape":"BatchEntryCompletionStatus"}, + "errorInfo":{"shape":"BatchGetAssetPropertyValueErrorInfo"} + } + }, + "BatchGetAssetPropertyValueSuccessEntries":{ + "type":"list", + "member":{"shape":"BatchGetAssetPropertyValueSuccessEntry"} + }, + "BatchGetAssetPropertyValueSuccessEntry":{ + "type":"structure", + "required":["entryId"], + "members":{ + "entryId":{"shape":"EntryId"}, + "assetPropertyValue":{"shape":"AssetPropertyValue"} + } + }, "BatchPutAssetPropertyError":{ "type":"structure", "required":[ @@ -3922,10 +4309,7 @@ "PropertyValueBooleanValue":{"type":"boolean"}, "PropertyValueDoubleValue":{"type":"double"}, "PropertyValueIntegerValue":{"type":"integer"}, - "PropertyValueStringValue":{ - "type":"string", - "pattern":"[^\\u0000-\\u001F\\u007F]+" - }, + "PropertyValueStringValue":{"type":"string"}, "PutAssetPropertyValueEntries":{ "type":"list", "member":{"shape":"PutAssetPropertyValueEntry"} @@ -4152,7 +4536,7 @@ }, "TimeInSeconds":{ "type":"long", - "max":31556889864403199, + "max":9223372036854774, "min":1 }, "TimeOrdering":{ diff --git a/models/apis/iotsitewise/2019-12-02/docs-2.json b/models/apis/iotsitewise/2019-12-02/docs-2.json index 5bf9136242..56d81905cb 100644 --- a/models/apis/iotsitewise/2019-12-02/docs-2.json +++ b/models/apis/iotsitewise/2019-12-02/docs-2.json @@ -6,6 +6,9 @@ "AssociateTimeSeriesToAssetProperty": "

Associates a time series (data stream) with an asset property.

", "BatchAssociateProjectAssets": "

Associates a group (batch) of assets with an IoT SiteWise Monitor project.

", "BatchDisassociateProjectAssets": "

Disassociates a group (batch) of assets from an IoT SiteWise Monitor project.

", + "BatchGetAssetPropertyAggregates": "

Gets aggregated values (for example, average, minimum, and maximum) for one or more asset properties. For more information, see Querying aggregates in the IoT SiteWise User Guide.

", + "BatchGetAssetPropertyValue": "

Gets the current value for one or more asset properties. For more information, see Querying current values in the IoT SiteWise User Guide.

", + "BatchGetAssetPropertyValueHistory": "

Gets the historical values for one or more asset properties. For more information, see Querying historical values in the IoT SiteWise User Guide.

", "BatchPutAssetPropertyValue": "

Sends a list of asset property values to IoT SiteWise. Each value is a timestamp-quality-value (TQV) data point. For more information, see Ingesting data using the API in the IoT SiteWise User Guide.

To identify an asset property, you must specify one of the following:

With respect to Unix epoch time, IoT SiteWise accepts only TQVs that have a timestamp of no more than 7 days in the past and no more than 10 minutes in the future. IoT SiteWise rejects timestamps outside of the inclusive range of [-7 days, +10 minutes] and returns a TimestampOutOfRangeException error.

For each asset property, IoT SiteWise overwrites TQVs with duplicate timestamps unless the newer TQV has a different quality. For example, if you store a TQV {T1, GOOD, V1}, then storing {T1, GOOD, V2} replaces the existing TQV.

IoT SiteWise authorizes access to each BatchPutAssetPropertyValue entry individually. For more information, see BatchPutAssetPropertyValue authorization in the IoT SiteWise User Guide.

", "CreateAccessPolicy": "

Creates an access policy that grants the specified identity (Amazon Web Services SSO user, Amazon Web Services SSO group, or IAM user) access to the specified IoT SiteWise Monitor portal or project resource.

", "CreateAsset": "

Creates an asset from an existing asset model. For more information, see Creating assets in the IoT SiteWise User Guide.

", @@ -126,6 +129,7 @@ "AggregateTypes": { "base": null, "refs": { + "BatchGetAssetPropertyAggregatesEntry$aggregateTypes": "

The data aggregating function.

", "GetAssetPropertyAggregatesRequest$aggregateTypes": "

The data aggregating function.

" } }, @@ -149,6 +153,7 @@ "AggregatedValues": { "base": null, "refs": { + "BatchGetAssetPropertyAggregatesSuccessEntry$aggregatedValues": "

The requested aggregated asset property values (for example, average, minimum, and maximum).

", "GetAssetPropertyAggregatesResponse$aggregatedValues": "

The requested aggregated values.

" } }, @@ -353,6 +358,9 @@ "AssetPropertyAlias": { "base": null, "refs": { + "BatchGetAssetPropertyAggregatesEntry$propertyAlias": "

The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.

", + "BatchGetAssetPropertyValueEntry$propertyAlias": "

The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.

", + "BatchGetAssetPropertyValueHistoryEntry$propertyAlias": "

The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.

", "GetAssetPropertyAggregatesRequest$propertyAlias": "

The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.

", "GetAssetPropertyValueHistoryRequest$propertyAlias": "

The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.

", "GetAssetPropertyValueRequest$propertyAlias": "

The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.

", @@ -365,12 +373,14 @@ "refs": { "AssetPropertyValueHistory$member": null, "AssetPropertyValues$member": null, + "BatchGetAssetPropertyValueSuccessEntry$assetPropertyValue": null, "GetAssetPropertyValueResponse$propertyValue": "

The current asset property value.

" } }, "AssetPropertyValueHistory": { "base": null, "refs": { + "BatchGetAssetPropertyValueHistorySuccessEntry$assetPropertyValueHistory": "

The requested historical values for the specified asset property.

", "GetAssetPropertyValueHistoryResponse$assetPropertyValueHistory": "

The asset property's value history.

" } }, @@ -494,6 +504,239 @@ "refs": { } }, + "BatchEntryCompletionStatus": { + "base": null, + "refs": { + "BatchGetAssetPropertyAggregatesSkippedEntry$completionStatus": "

The completion status of each entry that is associated with the BatchGetAssetPropertyAggregates API.

", + "BatchGetAssetPropertyValueHistorySkippedEntry$completionStatus": "

The completion status of each entry that is associated with the BatchGetAssetPropertyValueHistory API.

", + "BatchGetAssetPropertyValueSkippedEntry$completionStatus": "

The completion status of each entry that is associated with the BatchGetAssetPropertyValue request.

" + } + }, + "BatchGetAssetPropertyAggregatesEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyAggregatesRequest$entries": "

The list of asset property aggregate entries for the batch get request. You can specify up to 16 entries per request.

" + } + }, + "BatchGetAssetPropertyAggregatesEntry": { + "base": "

Contains information for an asset property aggregate entry that is associated with the BatchGetAssetPropertyAggregates API.

To identify an asset property, you must specify one of the following:

", + "refs": { + "BatchGetAssetPropertyAggregatesEntries$member": null + } + }, + "BatchGetAssetPropertyAggregatesErrorCode": { + "base": null, + "refs": { + "BatchGetAssetPropertyAggregatesErrorEntry$errorCode": "

The error code.

", + "BatchGetAssetPropertyAggregatesErrorInfo$errorCode": "

The error code.

" + } + }, + "BatchGetAssetPropertyAggregatesErrorEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyAggregatesResponse$errorEntries": "

A list of the errors (if any) associated with the batch request. Each error entry contains the entryId of the entry that failed.

" + } + }, + "BatchGetAssetPropertyAggregatesErrorEntry": { + "base": "

Contains error information for an asset property aggregate entry that is associated with the BatchGetAssetPropertyAggregates API.

", + "refs": { + "BatchGetAssetPropertyAggregatesErrorEntries$member": null + } + }, + "BatchGetAssetPropertyAggregatesErrorInfo": { + "base": "

Contains the error code and the timestamp for an asset property aggregate entry that is associated with the BatchGetAssetPropertyAggregates API.

", + "refs": { + "BatchGetAssetPropertyAggregatesSkippedEntry$errorInfo": "

The error information, such as the error code and the timestamp.

" + } + }, + "BatchGetAssetPropertyAggregatesMaxResults": { + "base": null, + "refs": { + "BatchGetAssetPropertyAggregatesRequest$maxResults": "

The maximum number of results to return for each paginated request. A result set is returned in the two cases, whichever occurs first.

" + } + }, + "BatchGetAssetPropertyAggregatesRequest": { + "base": null, + "refs": { + } + }, + "BatchGetAssetPropertyAggregatesResponse": { + "base": null, + "refs": { + } + }, + "BatchGetAssetPropertyAggregatesSkippedEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyAggregatesResponse$skippedEntries": "

A list of entries that were not processed by this batch request. because these entries had been completely processed by previous paginated requests. Each skipped entry contains the entryId of the entry that skipped.

" + } + }, + "BatchGetAssetPropertyAggregatesSkippedEntry": { + "base": "

Contains information for an entry that has been processed by the previous BatchGetAssetPropertyAggregates request.

", + "refs": { + "BatchGetAssetPropertyAggregatesSkippedEntries$member": null + } + }, + "BatchGetAssetPropertyAggregatesSuccessEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyAggregatesResponse$successEntries": "

A list of entries that were processed successfully by this batch request. Each success entry contains the entryId of the entry that succeeded and the latest query result.

" + } + }, + "BatchGetAssetPropertyAggregatesSuccessEntry": { + "base": "

Contains success information for an entry that is associated with the BatchGetAssetPropertyAggregates API.

", + "refs": { + "BatchGetAssetPropertyAggregatesSuccessEntries$member": null + } + }, + "BatchGetAssetPropertyValueEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyValueRequest$entries": "

The list of asset property value entries for the batch get request. You can specify up to 16 entries per request.

" + } + }, + "BatchGetAssetPropertyValueEntry": { + "base": "

Contains information for an asset property value entry that is associated with the BatchGetAssetPropertyValue API.

To identify an asset property, you must specify one of the following:

", + "refs": { + "BatchGetAssetPropertyValueEntries$member": null + } + }, + "BatchGetAssetPropertyValueErrorCode": { + "base": null, + "refs": { + "BatchGetAssetPropertyValueErrorEntry$errorCode": "

The error code.

", + "BatchGetAssetPropertyValueErrorInfo$errorCode": "

The error code.

" + } + }, + "BatchGetAssetPropertyValueErrorEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyValueResponse$errorEntries": "

A list of the errors (if any) associated with the batch request. Each error entry contains the entryId of the entry that failed.

" + } + }, + "BatchGetAssetPropertyValueErrorEntry": { + "base": "

Contains error information for an asset property value entry that is associated with the BatchGetAssetPropertyValue API.

", + "refs": { + "BatchGetAssetPropertyValueErrorEntries$member": null + } + }, + "BatchGetAssetPropertyValueErrorInfo": { + "base": "

The error information, such as the error code and the timestamp.

", + "refs": { + "BatchGetAssetPropertyValueSkippedEntry$errorInfo": "

The error information, such as the error code and the timestamp.

" + } + }, + "BatchGetAssetPropertyValueHistoryEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyValueHistoryRequest$entries": "

The list of asset property historical value entries for the batch get request. You can specify up to 16 entries per request.

" + } + }, + "BatchGetAssetPropertyValueHistoryEntry": { + "base": "

Contains information for an asset property historical value entry that is associated with the BatchGetAssetPropertyValueHistory API.

To identify an asset property, you must specify one of the following:

", + "refs": { + "BatchGetAssetPropertyValueHistoryEntries$member": null + } + }, + "BatchGetAssetPropertyValueHistoryErrorCode": { + "base": null, + "refs": { + "BatchGetAssetPropertyValueHistoryErrorEntry$errorCode": "

The error code.

", + "BatchGetAssetPropertyValueHistoryErrorInfo$errorCode": "

The error code.

" + } + }, + "BatchGetAssetPropertyValueHistoryErrorEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyValueHistoryResponse$errorEntries": "

A list of the errors (if any) associated with the batch request. Each error entry contains the entryId of the entry that failed.

" + } + }, + "BatchGetAssetPropertyValueHistoryErrorEntry": { + "base": "

A list of the errors (if any) associated with the batch request. Each error entry contains the entryId of the entry that failed.

", + "refs": { + "BatchGetAssetPropertyValueHistoryErrorEntries$member": null + } + }, + "BatchGetAssetPropertyValueHistoryErrorInfo": { + "base": "

The error information, such as the error code and the timestamp.

", + "refs": { + "BatchGetAssetPropertyValueHistorySkippedEntry$errorInfo": "

The error information, such as the error code and the timestamp.

" + } + }, + "BatchGetAssetPropertyValueHistoryMaxResults": { + "base": null, + "refs": { + "BatchGetAssetPropertyValueHistoryRequest$maxResults": "

The maximum number of results to return for each paginated request. A result set is returned in the two cases, whichever occurs first.

" + } + }, + "BatchGetAssetPropertyValueHistoryRequest": { + "base": null, + "refs": { + } + }, + "BatchGetAssetPropertyValueHistoryResponse": { + "base": null, + "refs": { + } + }, + "BatchGetAssetPropertyValueHistorySkippedEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyValueHistoryResponse$skippedEntries": "

A list of entries that were not processed by this batch request. because these entries had been completely processed by previous paginated requests. Each skipped entry contains the entryId of the entry that skipped.

" + } + }, + "BatchGetAssetPropertyValueHistorySkippedEntry": { + "base": "

Contains information for an entry that has been processed by the previous BatchGetAssetPropertyValueHistory request.

", + "refs": { + "BatchGetAssetPropertyValueHistorySkippedEntries$member": null + } + }, + "BatchGetAssetPropertyValueHistorySuccessEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyValueHistoryResponse$successEntries": "

A list of entries that were processed successfully by this batch request. Each success entry contains the entryId of the entry that succeeded and the latest query result.

" + } + }, + "BatchGetAssetPropertyValueHistorySuccessEntry": { + "base": "

Contains success information for an entry that is associated with the BatchGetAssetPropertyValueHistory API.

", + "refs": { + "BatchGetAssetPropertyValueHistorySuccessEntries$member": null + } + }, + "BatchGetAssetPropertyValueRequest": { + "base": null, + "refs": { + } + }, + "BatchGetAssetPropertyValueResponse": { + "base": null, + "refs": { + } + }, + "BatchGetAssetPropertyValueSkippedEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyValueResponse$skippedEntries": "

A list of entries that were not processed by this batch request. because these entries had been completely processed by previous paginated requests. Each skipped entry contains the entryId of the entry that skipped.

" + } + }, + "BatchGetAssetPropertyValueSkippedEntry": { + "base": "

Contains information for an entry that has been processed by the previous BatchGetAssetPropertyValue request.

", + "refs": { + "BatchGetAssetPropertyValueSkippedEntries$member": null + } + }, + "BatchGetAssetPropertyValueSuccessEntries": { + "base": null, + "refs": { + "BatchGetAssetPropertyValueResponse$successEntries": "

A list of entries that were processed successfully by this batch request. Each success entry contains the entryId of the entry that succeeded and the latest query result.

" + } + }, + "BatchGetAssetPropertyValueSuccessEntry": { + "base": "

Contains success information for an entry that is associated with the BatchGetAssetPropertyValue API.

", + "refs": { + "BatchGetAssetPropertyValueSuccessEntries$member": null + } + }, "BatchPutAssetPropertyError": { "base": "

Contains error information from updating a batch of asset property values.

", "refs": { @@ -1025,6 +1268,18 @@ "EntryId": { "base": null, "refs": { + "BatchGetAssetPropertyAggregatesEntry$entryId": "

The ID of the entry.

", + "BatchGetAssetPropertyAggregatesErrorEntry$entryId": "

The ID of the entry.

", + "BatchGetAssetPropertyAggregatesSkippedEntry$entryId": "

The ID of the entry.

", + "BatchGetAssetPropertyAggregatesSuccessEntry$entryId": "

The ID of the entry.

", + "BatchGetAssetPropertyValueEntry$entryId": "

The ID of the entry.

", + "BatchGetAssetPropertyValueErrorEntry$entryId": "

The ID of the entry.

", + "BatchGetAssetPropertyValueHistoryEntry$entryId": "

The ID of the entry.

", + "BatchGetAssetPropertyValueHistoryErrorEntry$entryId": "

The ID of the entry.

", + "BatchGetAssetPropertyValueHistorySkippedEntry$entryId": "

The ID of the entry.

", + "BatchGetAssetPropertyValueHistorySuccessEntry$entryId": "

The ID of the entry.

", + "BatchGetAssetPropertyValueSkippedEntry$entryId": "

The ID of the entry.

", + "BatchGetAssetPropertyValueSuccessEntry$entryId": "

The ID of the entry.

", "BatchPutAssetPropertyErrorEntry$entryId": "

The ID of the failed entry.

", "PutAssetPropertyValueEntry$entryId": "

The user specified ID for the entry. You can use this ID to identify which entries failed.

" } @@ -1046,6 +1301,9 @@ "ErrorMessage": { "base": null, "refs": { + "BatchGetAssetPropertyAggregatesErrorEntry$errorMessage": "

The associated error message.

", + "BatchGetAssetPropertyValueErrorEntry$errorMessage": "

The associated error message.

", + "BatchGetAssetPropertyValueHistoryErrorEntry$errorMessage": "

The associated error message.

", "BatchPutAssetPropertyError$errorMessage": "

The associated error message.

", "ConfigurationErrorDetails$message": "

The error message.

", "ConflictingOperationException$message": null, @@ -1228,6 +1486,12 @@ "AssociatedAssetsSummary$assetModelId": "

The ID of the asset model used to create the asset.

", "BatchAssociateProjectAssetsRequest$projectId": "

The ID of the project to which to associate the assets.

", "BatchDisassociateProjectAssetsRequest$projectId": "

The ID of the project from which to disassociate the assets.

", + "BatchGetAssetPropertyAggregatesEntry$assetId": "

The ID of the asset in which the asset property was created.

", + "BatchGetAssetPropertyAggregatesEntry$propertyId": "

The ID of the asset property.

", + "BatchGetAssetPropertyValueEntry$assetId": "

The ID of the asset in which the asset property was created.

", + "BatchGetAssetPropertyValueEntry$propertyId": "

The ID of the asset property.

", + "BatchGetAssetPropertyValueHistoryEntry$assetId": "

The ID of the asset in which the asset property was created.

", + "BatchGetAssetPropertyValueHistoryEntry$propertyId": "

The ID of the asset property.

", "CreateAccessPolicyResponse$accessPolicyId": "

The ID of the access policy.

", "CreateAssetModelResponse$assetModelId": "

The ID of the asset model. You can use this ID when you call other IoT SiteWise APIs.

", "CreateAssetRequest$assetModelId": "

The ID of the asset model from which to create the asset.

", @@ -1726,6 +1990,12 @@ "NextToken": { "base": null, "refs": { + "BatchGetAssetPropertyAggregatesRequest$nextToken": "

The token to be used for the next set of paginated results.

", + "BatchGetAssetPropertyAggregatesResponse$nextToken": "

The token for the next set of results, or null if there are no additional results.

", + "BatchGetAssetPropertyValueHistoryRequest$nextToken": "

The token to be used for the next set of paginated results.

", + "BatchGetAssetPropertyValueHistoryResponse$nextToken": "

The token for the next set of results, or null if there are no additional results.

", + "BatchGetAssetPropertyValueRequest$nextToken": "

The token to be used for the next set of paginated results.

", + "BatchGetAssetPropertyValueResponse$nextToken": "

The token for the next set of results, or null if there are no additional results.

", "GetAssetPropertyAggregatesRequest$nextToken": "

The token to be used for the next set of paginated results.

", "GetAssetPropertyAggregatesResponse$nextToken": "

The token for the next set of results, or null if there are no additional results.

", "GetAssetPropertyValueHistoryRequest$nextToken": "

The token to be used for the next set of paginated results.

", @@ -1982,6 +2252,8 @@ "Qualities": { "base": null, "refs": { + "BatchGetAssetPropertyAggregatesEntry$qualities": "

The quality by which to filter asset data.

", + "BatchGetAssetPropertyValueHistoryEntry$qualities": "

The quality by which to filter asset data.

", "GetAssetPropertyAggregatesRequest$qualities": "

The quality by which to filter asset data.

", "GetAssetPropertyValueHistoryRequest$qualities": "

The quality by which to filter asset data.

" } @@ -1998,6 +2270,7 @@ "Resolution": { "base": null, "refs": { + "BatchGetAssetPropertyAggregatesEntry$resolution": "

The time interval over which to aggregate data.

", "GetAssetPropertyAggregatesRequest$resolution": "

The time interval over which to aggregate data.

" } }, @@ -2134,6 +2407,8 @@ "TimeOrdering": { "base": null, "refs": { + "BatchGetAssetPropertyAggregatesEntry$timeOrdering": "

The chronological sorting order of the requested information.

Default: ASCENDING

", + "BatchGetAssetPropertyValueHistoryEntry$timeOrdering": "

The chronological sorting order of the requested information.

Default: ASCENDING

", "GetAssetPropertyAggregatesRequest$timeOrdering": "

The chronological sorting order of the requested information.

Default: ASCENDING

", "GetAssetPropertyValueHistoryRequest$timeOrdering": "

The chronological sorting order of the requested information.

Default: ASCENDING

" } @@ -2169,6 +2444,13 @@ "AssetSummary$lastUpdateDate": "

The date the asset was last updated, in Unix epoch time.

", "AssociatedAssetsSummary$creationDate": "

The date the asset was created, in Unix epoch time.

", "AssociatedAssetsSummary$lastUpdateDate": "

The date the asset was last updated, in Unix epoch time.

", + "BatchGetAssetPropertyAggregatesEntry$startDate": "

The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time.

", + "BatchGetAssetPropertyAggregatesEntry$endDate": "

The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time.

", + "BatchGetAssetPropertyAggregatesErrorInfo$errorTimestamp": "

The date the error occurred, in Unix epoch time.

", + "BatchGetAssetPropertyValueErrorInfo$errorTimestamp": "

The date the error occurred, in Unix epoch time.

", + "BatchGetAssetPropertyValueHistoryEntry$startDate": "

The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time.

", + "BatchGetAssetPropertyValueHistoryEntry$endDate": "

The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time.

", + "BatchGetAssetPropertyValueHistoryErrorInfo$errorTimestamp": "

The date the error occurred, in Unix epoch time.

", "DashboardSummary$creationDate": "

The date the dashboard was created, in Unix epoch time.

", "DashboardSummary$lastUpdateDate": "

The date the dashboard was last updated, in Unix epoch time.

", "DescribeAccessPolicyResponse$accessPolicyCreationDate": "

The date the access policy was created, in Unix epoch time.

", diff --git a/models/apis/iotsitewise/2019-12-02/paginators-1.json b/models/apis/iotsitewise/2019-12-02/paginators-1.json index e077d5b9a6..f136f3af52 100644 --- a/models/apis/iotsitewise/2019-12-02/paginators-1.json +++ b/models/apis/iotsitewise/2019-12-02/paginators-1.json @@ -1,5 +1,19 @@ { "pagination": { + "BatchGetAssetPropertyAggregates": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + }, + "BatchGetAssetPropertyValue": { + "input_token": "nextToken", + "output_token": "nextToken" + }, + "BatchGetAssetPropertyValueHistory": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + }, "GetAssetPropertyAggregates": { "input_token": "nextToken", "output_token": "nextToken", diff --git a/models/apis/iottwinmaker/2021-11-29/api-2.json b/models/apis/iottwinmaker/2021-11-29/api-2.json index 1c15f63e4b..92497a0f09 100644 --- a/models/apis/iottwinmaker/2021-11-29/api-2.json +++ b/models/apis/iottwinmaker/2021-11-29/api-2.json @@ -1306,7 +1306,7 @@ "type":"string", "max":2048, "min":1, - "pattern":"[a-zA-Z][a-zA-Z_\\-0-9]*[a-zA-Z0-9]+$|^arn:((aws)|(aws-cn)|(aws-us-gov)):iottwinmaker:[a-z0-9-]+:[0-9]{12}:[\\/a-zA-Z0-9_-]+" + "pattern":"[a-zA-Z_0-9][a-zA-Z_\\-0-9]*[a-zA-Z0-9]+$|^arn:((aws)|(aws-cn)|(aws-us-gov)):iottwinmaker:[a-z0-9-]+:[0-9]{12}:[\\/a-zA-Z0-9_-]+" }, "Integer":{ "type":"integer", diff --git a/models/apis/iottwinmaker/2021-11-29/docs-2.json b/models/apis/iottwinmaker/2021-11-29/docs-2.json index 6890734ae4..442fb688fb 100644 --- a/models/apis/iottwinmaker/2021-11-29/docs-2.json +++ b/models/apis/iottwinmaker/2021-11-29/docs-2.json @@ -622,7 +622,7 @@ } }, "ListComponentTypesFilter": { - "base": "

An object that filters items in a list of component types.

", + "base": "

An object that filters items in a list of component types.

Only one object is accepted as a valid input.

", "refs": { "ListComponentTypesFilters$member": null } @@ -652,7 +652,7 @@ "ListEntitiesFilters": { "base": null, "refs": { - "ListEntitiesRequest$filters": "

A list of objects that filter the request.

" + "ListEntitiesRequest$filters": "

A list of objects that filter the request.

Only one object is accepted as a valid input.

" } }, "ListEntitiesRequest": { @@ -871,7 +871,7 @@ } }, "PropertyValueEntry": { - "base": "

An object that specifies information about time series property values.

", + "base": "

An object that specifies information about time series property values. This object is used and consumed by the BatchPutPropertyValues action.

", "refs": { "BatchPutPropertyError$entry": "

An object that contains information about errors returned by the BatchPutProperty action.

", "Entries$member": null @@ -1077,9 +1077,9 @@ "Time": { "base": "

Timestamp represented in ISO 8601 format

", "refs": { - "GetPropertyValueHistoryRequest$endTime": null, - "GetPropertyValueHistoryRequest$startTime": null, - "PropertyValue$time": null + "GetPropertyValueHistoryRequest$endTime": "

The ISO8601 DateTime of the latest property value to return.

For more information about the ISO8601 DateTime format, see the data type PropertyValue.

", + "GetPropertyValueHistoryRequest$startTime": "

The ISO8601 DateTime of the earliest property value to return.

For more information about the ISO8601 DateTime format, see the data type PropertyValue.

", + "PropertyValue$time": "

ISO8601 DateTime of a value for a time series property.

The time for when the property value was recorded in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.SSSSSSSSS][Z/±HH:mm].

Required sub-fields: YYYY-MM-DDThh:mm:ss and [Z/±HH:mm]

" } }, "Timestamp": { diff --git a/models/apis/lookoutmetrics/2017-07-25/api-2.json b/models/apis/lookoutmetrics/2017-07-25/api-2.json index 0dfdf56717..c3e6dbf973 100644 --- a/models/apis/lookoutmetrics/2017-07-25/api-2.json +++ b/models/apis/lookoutmetrics/2017-07-25/api-2.json @@ -214,6 +214,22 @@ {"shape":"InternalServerException"} ] }, + "DetectMetricSetConfig":{ + "name":"DetectMetricSetConfig", + "http":{ + "method":"POST", + "requestUri":"/DetectMetricSetConfig" + }, + "input":{"shape":"DetectMetricSetConfigRequest"}, + "output":{"shape":"DetectMetricSetConfigResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"TooManyRequestsException"} + ] + }, "GetAnomalyGroup":{ "name":"GetAnomalyGroup", "http":{ @@ -694,6 +710,30 @@ "max":256, "pattern":"arn:([a-z\\d-]+):.*:.*:.*:.+" }, + "AttributeValue":{ + "type":"structure", + "members":{ + "S":{"shape":"StringAttributeValue"}, + "N":{"shape":"NumberAttributeValue"}, + "B":{"shape":"BinaryAttributeValue"}, + "SS":{"shape":"StringListAttributeValue"}, + "NS":{"shape":"NumberListAttributeValue"}, + "BS":{"shape":"BinaryListAttributeValue"} + } + }, + "AutoDetectionMetricSource":{ + "type":"structure", + "members":{ + "S3SourceConfig":{"shape":"AutoDetectionS3SourceConfig"} + } + }, + "AutoDetectionS3SourceConfig":{ + "type":"structure", + "members":{ + "TemplatedPathList":{"shape":"TemplatedPathList"}, + "HistoricalDataPathList":{"shape":"HistoricalDataPathList"} + } + }, "BackTestAnomalyDetectorRequest":{ "type":"structure", "required":["AnomalyDetectorArn"], @@ -706,6 +746,11 @@ "members":{ } }, + "BinaryAttributeValue":{"type":"string"}, + "BinaryListAttributeValue":{ + "type":"list", + "member":{"shape":"BinaryAttributeValue"} + }, "Boolean":{"type":"boolean"}, "CSVFileCompression":{ "type":"string", @@ -731,6 +776,14 @@ "min":1, "pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\-_]*" }, + "Confidence":{ + "type":"string", + "enum":[ + "HIGH", + "LOW", + "NONE" + ] + }, "ConflictException":{ "type":"structure", "required":["Message"], @@ -974,6 +1027,76 @@ "MetricSource":{"shape":"MetricSource"} } }, + "DetectMetricSetConfigRequest":{ + "type":"structure", + "required":[ + "AnomalyDetectorArn", + "AutoDetectionMetricSource" + ], + "members":{ + "AnomalyDetectorArn":{"shape":"Arn"}, + "AutoDetectionMetricSource":{"shape":"AutoDetectionMetricSource"} + } + }, + "DetectMetricSetConfigResponse":{ + "type":"structure", + "members":{ + "DetectedMetricSetConfig":{"shape":"DetectedMetricSetConfig"} + } + }, + "DetectedCsvFormatDescriptor":{ + "type":"structure", + "members":{ + "FileCompression":{"shape":"DetectedField"}, + "Charset":{"shape":"DetectedField"}, + "ContainsHeader":{"shape":"DetectedField"}, + "Delimiter":{"shape":"DetectedField"}, + "HeaderList":{"shape":"DetectedField"}, + "QuoteSymbol":{"shape":"DetectedField"} + } + }, + "DetectedField":{ + "type":"structure", + "members":{ + "Value":{"shape":"AttributeValue"}, + "Confidence":{"shape":"Confidence"}, + "Message":{"shape":"Message"} + } + }, + "DetectedFileFormatDescriptor":{ + "type":"structure", + "members":{ + "CsvFormatDescriptor":{"shape":"DetectedCsvFormatDescriptor"}, + "JsonFormatDescriptor":{"shape":"DetectedJsonFormatDescriptor"} + } + }, + "DetectedJsonFormatDescriptor":{ + "type":"structure", + "members":{ + "FileCompression":{"shape":"DetectedField"}, + "Charset":{"shape":"DetectedField"} + } + }, + "DetectedMetricSetConfig":{ + "type":"structure", + "members":{ + "Offset":{"shape":"DetectedField"}, + "MetricSetFrequency":{"shape":"DetectedField"}, + "MetricSource":{"shape":"DetectedMetricSource"} + } + }, + "DetectedMetricSource":{ + "type":"structure", + "members":{ + "S3SourceConfig":{"shape":"DetectedS3SourceConfig"} + } + }, + "DetectedS3SourceConfig":{ + "type":"structure", + "members":{ + "FileFormatDescriptor":{"shape":"DetectedFileFormatDescriptor"} + } + }, "DimensionContribution":{ "type":"structure", "members":{ @@ -1443,6 +1566,11 @@ "min":1, "pattern":".*\\S.*" }, + "NumberAttributeValue":{"type":"string"}, + "NumberListAttributeValue":{ + "type":"list", + "member":{"shape":"NumberAttributeValue"} + }, "Offset":{ "type":"integer", "max":432000, @@ -1626,6 +1754,11 @@ "error":{"httpStatusCode":402}, "exception":true }, + "StringAttributeValue":{"type":"string"}, + "StringListAttributeValue":{ + "type":"list", + "member":{"shape":"StringAttributeValue"} + }, "SubnetId":{ "type":"string", "max":255, diff --git a/models/apis/lookoutmetrics/2017-07-25/docs-2.json b/models/apis/lookoutmetrics/2017-07-25/docs-2.json index bf4225d910..94af199d31 100644 --- a/models/apis/lookoutmetrics/2017-07-25/docs-2.json +++ b/models/apis/lookoutmetrics/2017-07-25/docs-2.json @@ -14,6 +14,7 @@ "DescribeAnomalyDetectionExecutions": "

Returns information about the status of the specified anomaly detection jobs.

", "DescribeAnomalyDetector": "

Describes a detector.

Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.

", "DescribeMetricSet": "

Describes a dataset.

Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.

", + "DetectMetricSetConfig": "

Detects an Amazon S3 dataset's file format, interval, and offset.

", "GetAnomalyGroup": "

Returns details about a group of anomalous metrics.

", "GetFeedback": "

Get feedback for an anomaly group.

", "GetSampleData": "

Returns a selection of sample records from an Amazon S3 datasource.

", @@ -242,6 +243,7 @@ "DescribeMetricSetRequest$MetricSetArn": "

The ARN of the dataset.

", "DescribeMetricSetResponse$MetricSetArn": "

The ARN of the dataset.

", "DescribeMetricSetResponse$AnomalyDetectorArn": "

The ARN of the detector that contains the dataset.

", + "DetectMetricSetConfigRequest$AnomalyDetectorArn": "

An anomaly detector ARN.

", "GetAnomalyGroupRequest$AnomalyDetectorArn": "

The Amazon Resource Name (ARN) of the anomaly detector.

", "GetFeedbackRequest$AnomalyDetectorArn": "

The Amazon Resource Name (ARN) of the anomaly detector.

", "LambdaConfiguration$RoleArn": "

The ARN of an IAM role that has permission to invoke the Lambda function.

", @@ -269,6 +271,24 @@ "UpdateMetricSetResponse$MetricSetArn": "

The ARN of the dataset.

" } }, + "AttributeValue": { + "base": "

An attribute value.

", + "refs": { + "DetectedField$Value": "

The field's value.

" + } + }, + "AutoDetectionMetricSource": { + "base": "

An auto detection metric source.

", + "refs": { + "DetectMetricSetConfigRequest$AutoDetectionMetricSource": "

A data source.

" + } + }, + "AutoDetectionS3SourceConfig": { + "base": "

An auto detection source config.

", + "refs": { + "AutoDetectionMetricSource$S3SourceConfig": "

The source's source config.

" + } + }, "BackTestAnomalyDetectorRequest": { "base": null, "refs": { @@ -279,6 +299,19 @@ "refs": { } }, + "BinaryAttributeValue": { + "base": null, + "refs": { + "AttributeValue$B": "

A binary value.

", + "BinaryListAttributeValue$member": null + } + }, + "BinaryListAttributeValue": { + "base": null, + "refs": { + "AttributeValue$BS": "

A list of binary values.

" + } + }, "Boolean": { "base": null, "refs": { @@ -318,6 +351,12 @@ "TimestampColumn$ColumnName": "

The name of the timestamp column.

" } }, + "Confidence": { + "base": null, + "refs": { + "DetectedField$Confidence": "

The field's confidence.

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

There was a conflict processing the request. Try your request again.

", "refs": { @@ -467,6 +506,67 @@ "refs": { } }, + "DetectMetricSetConfigRequest": { + "base": null, + "refs": { + } + }, + "DetectMetricSetConfigResponse": { + "base": null, + "refs": { + } + }, + "DetectedCsvFormatDescriptor": { + "base": "

Properties of an inferred CSV format.

", + "refs": { + "DetectedFileFormatDescriptor$CsvFormatDescriptor": "

Details about a CSV format.

" + } + }, + "DetectedField": { + "base": "

An inferred field.

", + "refs": { + "DetectedCsvFormatDescriptor$FileCompression": "

The format's file compression.

", + "DetectedCsvFormatDescriptor$Charset": "

The format's charset.

", + "DetectedCsvFormatDescriptor$ContainsHeader": "

Whether the format includes a header.

", + "DetectedCsvFormatDescriptor$Delimiter": "

The format's delimiter.

", + "DetectedCsvFormatDescriptor$HeaderList": "

The format's header list.

", + "DetectedCsvFormatDescriptor$QuoteSymbol": "

The format's quote symbol.

", + "DetectedJsonFormatDescriptor$FileCompression": "

The format's file compression.

", + "DetectedJsonFormatDescriptor$Charset": "

The format's character set.

", + "DetectedMetricSetConfig$Offset": "

The dataset's offset.

", + "DetectedMetricSetConfig$MetricSetFrequency": "

The dataset's interval.

" + } + }, + "DetectedFileFormatDescriptor": { + "base": "

Properties of an inferred data format.

", + "refs": { + "DetectedS3SourceConfig$FileFormatDescriptor": "

The source's file format descriptor.

" + } + }, + "DetectedJsonFormatDescriptor": { + "base": "

A detected JSON format descriptor.

", + "refs": { + "DetectedFileFormatDescriptor$JsonFormatDescriptor": "

Details about a JSON format.

" + } + }, + "DetectedMetricSetConfig": { + "base": "

An inferred dataset configuration.

", + "refs": { + "DetectMetricSetConfigResponse$DetectedMetricSetConfig": "

The inferred dataset configuration for the datasource.

" + } + }, + "DetectedMetricSource": { + "base": "

An inferred data source.

", + "refs": { + "DetectedMetricSetConfig$MetricSource": "

The dataset's data source.

" + } + }, + "DetectedS3SourceConfig": { + "base": "

An inferred source configuration.

", + "refs": { + "DetectedMetricSource$S3SourceConfig": "

The data source's source configuration.

" + } + }, "DimensionContribution": { "base": "

Details about a dimension that contributed to an anomaly.

", "refs": { @@ -622,6 +722,7 @@ "HistoricalDataPathList": { "base": null, "refs": { + "AutoDetectionS3SourceConfig$HistoricalDataPathList": "

The config's historical data path list.

", "S3SourceConfig$HistoricalDataPathList": "

A list of paths to the historical data files.

", "SampleDataS3SourceConfig$HistoricalDataPathList": "

An array of strings containing the historical set of data paths.

" } @@ -777,6 +878,7 @@ "refs": { "AccessDeniedException$Message": null, "ConflictException$Message": null, + "DetectedField$Message": "

The field's message.

", "InternalServerException$Message": null, "ResourceNotFoundException$Message": null, "ServiceQuotaExceededException$Message": null, @@ -904,6 +1006,19 @@ "ListMetricSetsResponse$NextToken": "

If the response is truncated, the list call returns this token. To retrieve the next set of results, use the token in the next list request.

" } }, + "NumberAttributeValue": { + "base": null, + "refs": { + "AttributeValue$N": "

A number.

", + "NumberListAttributeValue$member": null + } + }, + "NumberListAttributeValue": { + "base": null, + "refs": { + "AttributeValue$NS": "

A list of numbers.

" + } + }, "Offset": { "base": null, "refs": { @@ -1075,6 +1190,19 @@ "refs": { } }, + "StringAttributeValue": { + "base": null, + "refs": { + "AttributeValue$S": "

A string.

", + "StringListAttributeValue$member": null + } + }, + "StringListAttributeValue": { + "base": null, + "refs": { + "AttributeValue$SS": "

A list of strings.

" + } + }, "SubnetId": { "base": null, "refs": { @@ -1145,6 +1273,7 @@ "TemplatedPathList": { "base": null, "refs": { + "AutoDetectionS3SourceConfig$TemplatedPathList": "

The config's templated path list.

", "S3SourceConfig$TemplatedPathList": "

A list of templated paths to the source files.

", "SampleDataS3SourceConfig$TemplatedPathList": "

An array of strings containing the list of templated paths.

" } diff --git a/models/apis/mediatailor/2018-04-23/api-2.json b/models/apis/mediatailor/2018-04-23/api-2.json index 5924df2a06..6a6473ceb5 100644 --- a/models/apis/mediatailor/2018-04-23/api-2.json +++ b/models/apis/mediatailor/2018-04-23/api-2.json @@ -42,6 +42,21 @@ "shape": "CreateChannelResponse" } }, + "CreateLiveSource": { + "errors": [], + "http": { + "method": "POST", + "requestUri": "/sourceLocation/{sourceLocationName}/liveSource/{liveSourceName}", + "responseCode": 200 + }, + "input": { + "shape": "CreateLiveSourceRequest" + }, + "name": "CreateLiveSource", + "output": { + "shape": "CreateLiveSourceResponse" + } + }, "CreatePrefetchSchedule": { "errors": [], "http": { @@ -132,6 +147,21 @@ "shape": "DeleteChannelPolicyResponse" } }, + "DeleteLiveSource": { + "errors": [], + "http": { + "method": "DELETE", + "requestUri": "/sourceLocation/{sourceLocationName}/liveSource/{liveSourceName}", + "responseCode": 200 + }, + "input": { + "shape": "DeleteLiveSourceRequest" + }, + "name": "DeleteLiveSource", + "output": { + "shape": "DeleteLiveSourceResponse" + } + }, "DeletePlaybackConfiguration": { "errors": [], "http": { @@ -222,6 +252,21 @@ "shape": "DescribeChannelResponse" } }, + "DescribeLiveSource": { + "errors": [], + "http": { + "method": "GET", + "requestUri": "/sourceLocation/{sourceLocationName}/liveSource/{liveSourceName}", + "responseCode": 200 + }, + "input": { + "shape": "DescribeLiveSourceRequest" + }, + "name": "DescribeLiveSource", + "output": { + "shape": "DescribeLiveSourceResponse" + } + }, "DescribeProgram": { "errors": [], "http": { @@ -357,6 +402,21 @@ "shape": "ListChannelsResponse" } }, + "ListLiveSources": { + "errors": [], + "http": { + "method": "GET", + "requestUri": "/sourceLocation/{sourceLocationName}/liveSources", + "responseCode": 200 + }, + "input": { + "shape": "ListLiveSourcesRequest" + }, + "name": "ListLiveSources", + "output": { + "shape": "ListLiveSourcesResponse" + } + }, "ListPlaybackConfigurations": { "errors": [], "http": { @@ -543,6 +603,21 @@ "shape": "UpdateChannelResponse" } }, + "UpdateLiveSource": { + "errors": [], + "http": { + "method": "PUT", + "requestUri": "/sourceLocation/{sourceLocationName}/liveSource/{liveSourceName}", + "responseCode": 200 + }, + "input": { + "shape": "UpdateLiveSourceRequest" + }, + "name": "UpdateLiveSource", + "output": { + "shape": "UpdateLiveSourceResponse" + } + }, "UpdateSourceLocation": { "errors": [], "http": { @@ -734,11 +809,15 @@ "Tags": { "locationName": "tags", "shape": "__mapOf__string" + }, + "Tier": { + "shape": "__string" } }, "required": [ "ChannelState", "ChannelName", + "Tier", "Outputs", "Arn", "PlaybackMode" @@ -815,6 +894,9 @@ "Tags": { "locationName": "tags", "shape": "__mapOf__string" + }, + "Tier": { + "shape": "Tier" } }, "required": [ @@ -850,6 +932,63 @@ "PlaybackMode": { "shape": "__string" }, + "Tags": { + "locationName": "tags", + "shape": "__mapOf__string" + }, + "Tier": { + "shape": "__string" + } + }, + "type": "structure" + }, + "CreateLiveSourceRequest": { + "members": { + "HttpPackageConfigurations": { + "shape": "HttpPackageConfigurations" + }, + "LiveSourceName": { + "location": "uri", + "locationName": "liveSourceName", + "shape": "__string" + }, + "SourceLocationName": { + "location": "uri", + "locationName": "sourceLocationName", + "shape": "__string" + }, + "Tags": { + "locationName": "tags", + "shape": "__mapOf__string" + } + }, + "required": [ + "SourceLocationName", + "LiveSourceName", + "HttpPackageConfigurations" + ], + "type": "structure" + }, + "CreateLiveSourceResponse": { + "members": { + "Arn": { + "shape": "__string" + }, + "CreationTime": { + "shape": "__timestampUnix" + }, + "HttpPackageConfigurations": { + "shape": "HttpPackageConfigurations" + }, + "LastModifiedTime": { + "shape": "__timestampUnix" + }, + "LiveSourceName": { + "shape": "__string" + }, + "SourceLocationName": { + "shape": "__string" + }, "Tags": { "locationName": "tags", "shape": "__mapOf__string" @@ -920,6 +1059,9 @@ "locationName": "channelName", "shape": "__string" }, + "LiveSourceName": { + "shape": "__string" + }, "ProgramName": { "location": "uri", "locationName": "programName", @@ -938,7 +1080,6 @@ "required": [ "ChannelName", "ProgramName", - "VodSourceName", "SourceLocationName", "ScheduleConfiguration" ], @@ -958,6 +1099,9 @@ "CreationTime": { "shape": "__timestampUnix" }, + "LiveSourceName": { + "shape": "__string" + }, "ProgramName": { "shape": "__string" }, @@ -1174,6 +1318,29 @@ "members": {}, "type": "structure" }, + "DeleteLiveSourceRequest": { + "members": { + "LiveSourceName": { + "location": "uri", + "locationName": "liveSourceName", + "shape": "__string" + }, + "SourceLocationName": { + "location": "uri", + "locationName": "sourceLocationName", + "shape": "__string" + } + }, + "required": [ + "SourceLocationName", + "LiveSourceName" + ], + "type": "structure" + }, + "DeleteLiveSourceResponse": { + "members": {}, + "type": "structure" + }, "DeletePlaybackConfigurationRequest": { "members": { "Name": { @@ -1316,6 +1483,55 @@ "PlaybackMode": { "shape": "__string" }, + "Tags": { + "locationName": "tags", + "shape": "__mapOf__string" + }, + "Tier": { + "shape": "__string" + } + }, + "type": "structure" + }, + "DescribeLiveSourceRequest": { + "members": { + "LiveSourceName": { + "location": "uri", + "locationName": "liveSourceName", + "shape": "__string" + }, + "SourceLocationName": { + "location": "uri", + "locationName": "sourceLocationName", + "shape": "__string" + } + }, + "required": [ + "SourceLocationName", + "LiveSourceName" + ], + "type": "structure" + }, + "DescribeLiveSourceResponse": { + "members": { + "Arn": { + "shape": "__string" + }, + "CreationTime": { + "shape": "__timestampUnix" + }, + "HttpPackageConfigurations": { + "shape": "HttpPackageConfigurations" + }, + "LastModifiedTime": { + "shape": "__timestampUnix" + }, + "LiveSourceName": { + "shape": "__string" + }, + "SourceLocationName": { + "shape": "__string" + }, "Tags": { "locationName": "tags", "shape": "__mapOf__string" @@ -1356,6 +1572,9 @@ "CreationTime": { "shape": "__timestampUnix" }, + "LiveSourceName": { + "shape": "__string" + }, "ProgramName": { "shape": "__string" }, @@ -1753,6 +1972,40 @@ }, "type": "structure" }, + "ListLiveSourcesRequest": { + "members": { + "MaxResults": { + "location": "querystring", + "locationName": "maxResults", + "shape": "MaxResults" + }, + "NextToken": { + "location": "querystring", + "locationName": "nextToken", + "shape": "__string" + }, + "SourceLocationName": { + "location": "uri", + "locationName": "sourceLocationName", + "shape": "__string" + } + }, + "required": [ + "SourceLocationName" + ], + "type": "structure" + }, + "ListLiveSourcesResponse": { + "members": { + "Items": { + "shape": "__listOfLiveSource" + }, + "NextToken": { + "shape": "__string" + } + }, + "type": "structure" + }, "ListPlaybackConfigurationsRequest": { "members": { "MaxResults": { @@ -1905,6 +2158,39 @@ }, "type": "structure" }, + "LiveSource": { + "members": { + "Arn": { + "shape": "__string" + }, + "CreationTime": { + "shape": "__timestampUnix" + }, + "HttpPackageConfigurations": { + "shape": "HttpPackageConfigurations" + }, + "LastModifiedTime": { + "shape": "__timestampUnix" + }, + "LiveSourceName": { + "shape": "__string" + }, + "SourceLocationName": { + "shape": "__string" + }, + "Tags": { + "locationName": "tags", + "shape": "__mapOf__string" + } + }, + "required": [ + "SourceLocationName", + "LiveSourceName", + "HttpPackageConfigurations", + "Arn" + ], + "type": "structure" + }, "LogConfiguration": { "members": { "PercentEnabled": { @@ -2328,6 +2614,9 @@ "ChannelName": { "shape": "__string" }, + "LiveSourceName": { + "shape": "__string" + }, "ProgramName": { "shape": "__string" }, @@ -2345,7 +2634,6 @@ } }, "required": [ - "VodSourceName", "SourceLocationName", "ChannelName", "Arn", @@ -2503,8 +2791,18 @@ ], "type": "structure" }, + "Tier": { + "enum": [ + "BASIC", + "STANDARD" + ], + "type": "string" + }, "Transition": { "members": { + "DurationMillis": { + "shape": "__long" + }, "RelativePosition": { "shape": "RelativePosition" }, @@ -2596,6 +2894,59 @@ "PlaybackMode": { "shape": "__string" }, + "Tags": { + "locationName": "tags", + "shape": "__mapOf__string" + }, + "Tier": { + "shape": "__string" + } + }, + "type": "structure" + }, + "UpdateLiveSourceRequest": { + "members": { + "HttpPackageConfigurations": { + "shape": "HttpPackageConfigurations" + }, + "LiveSourceName": { + "location": "uri", + "locationName": "liveSourceName", + "shape": "__string" + }, + "SourceLocationName": { + "location": "uri", + "locationName": "sourceLocationName", + "shape": "__string" + } + }, + "required": [ + "SourceLocationName", + "LiveSourceName", + "HttpPackageConfigurations" + ], + "type": "structure" + }, + "UpdateLiveSourceResponse": { + "members": { + "Arn": { + "shape": "__string" + }, + "CreationTime": { + "shape": "__timestampUnix" + }, + "HttpPackageConfigurations": { + "shape": "HttpPackageConfigurations" + }, + "LastModifiedTime": { + "shape": "__timestampUnix" + }, + "LiveSourceName": { + "shape": "__string" + }, + "SourceLocationName": { + "shape": "__string" + }, "Tags": { "locationName": "tags", "shape": "__mapOf__string" @@ -2784,6 +3135,12 @@ }, "type": "list" }, + "__listOfLiveSource": { + "member": { + "shape": "LiveSource" + }, + "type": "list" + }, "__listOfPlaybackConfiguration": { "member": { "shape": "PlaybackConfiguration" diff --git a/models/apis/mediatailor/2018-04-23/docs-2.json b/models/apis/mediatailor/2018-04-23/docs-2.json index b03fed9132..7f008c15a2 100644 --- a/models/apis/mediatailor/2018-04-23/docs-2.json +++ b/models/apis/mediatailor/2018-04-23/docs-2.json @@ -2,18 +2,21 @@ "operations": { "ConfigureLogsForPlaybackConfiguration": "

Configures Amazon CloudWatch log settings for a playback configuration.

", "CreateChannel": "

Creates a channel.

", + "CreateLiveSource": "

Creates name for a specific live source in a source location.

", "CreatePrefetchSchedule": "

Creates a new prefetch schedule for the specified playback configuration.

", "CreateProgram": "

Creates a program.

", "CreateSourceLocation": "

Creates a source location on a specific channel.

", "CreateVodSource": "

Creates name for a specific VOD source in a source location.

", "DeleteChannel": "

Deletes a channel. You must stop the channel before it can be deleted.

", "DeleteChannelPolicy": "

Deletes a channel's IAM policy.

", + "DeleteLiveSource": "

Deletes a specific live source in a specific source location.

", "DeletePlaybackConfiguration": "

Deletes the playback configuration for the specified name.

", "DeletePrefetchSchedule": "

Deletes a prefetch schedule for a specific playback configuration. If you call DeletePrefetchSchedule on an expired prefetch schedule, MediaTailor returns an HTTP 404 status code.

", "DeleteProgram": "

Deletes a specific program on a specific channel.

", "DeleteSourceLocation": "

Deletes a source location on a specific channel.

", "DeleteVodSource": "

Deletes a specific VOD source in a specific source location.

", "DescribeChannel": "

Describes the properties of a specific channel.

", + "DescribeLiveSource": "

Provides details about a specific live source in a specific source location.

", "DescribeProgram": "

Retrieves the properties of the requested program.

", "DescribeSourceLocation": "

Retrieves the properties of the requested source location.

", "DescribeVodSource": "

Provides details about a specific VOD source in a specific source location.

", @@ -23,6 +26,7 @@ "GetPrefetchSchedule": "

Returns information about the prefetch schedule for a specific playback configuration. If you call GetPrefetchSchedule on an expired prefetch schedule, MediaTailor returns an HTTP 404 status code.

", "ListAlerts": "

Returns a list of alerts for the given resource.

", "ListChannels": "

Retrieves a list of channels that are associated with this account.

", + "ListLiveSources": "

lists all the live sources in a source location.

", "ListPlaybackConfigurations": "

Returns a list of the playback configurations defined in AWS Elemental MediaTailor. You can specify a maximum number of configurations to return at a time. The default maximum is 50. Results are returned in pagefuls. If MediaTailor has more configurations than the specified maximum, it provides parameters in the response that you can use to retrieve the next pageful.

", "ListPrefetchSchedules": "

Creates a new prefetch schedule.

", "ListSourceLocations": "

Retrieves a list of source locations.

", @@ -35,6 +39,7 @@ "TagResource": "

Adds tags to the specified playback configuration resource. You can specify one or more tags to add.

", "UntagResource": "

Removes tags from the specified playback configuration resource. You can specify one or more tags to remove.

", "UpdateChannel": "

Updates an existing channel.

", + "UpdateLiveSource": "

Updates a specific live source in a specific source location.

", "UpdateSourceLocation": "

Updates a source location on a specific channel.

", "UpdateVodSource": "

Updates a specific VOD source in a specific source location.

" }, @@ -144,6 +149,10 @@ "base": "

The configuration for this channel.

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

The live source configuration parameters.

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

A complex type that contains configuration settings for retrieval, consumption, and an optional stream ID.

", "refs": {} @@ -201,6 +210,10 @@ "base": "

This response includes only the \"type\" : \"object\" property.

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

This response includes only the \"type\" : \"object\" property.

", + "refs": {} + }, "DeletePlaybackConfigurationResponse": { "base": null, "refs": {} @@ -225,6 +238,10 @@ "base": "

Returns a channel's properties.

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

This response includes only the \"type\" : \"object\" property.

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

This program's configuration parameters.

", "refs": {} @@ -281,9 +298,13 @@ "HttpPackageConfigurations": { "base": "

The VOD source's HTTP package configuration settings.

", "refs": { - "CreateVodSourceRequest$HttpPackageConfigurations": "

An array of HTTP package configuration parameters for this VOD source.

", + "CreateLiveSourceRequest$HttpPackageConfigurations": "

A list of HTTP package configuration parameters for this live source.

", + "CreateVodSourceRequest$HttpPackageConfigurations": "

A list of HTTP package configuration parameters for this VOD source.

", + "DescribeLiveSourceResponse$HttpPackageConfigurations": "

The HTTP package configurations.

", "DescribeVodSourceResponse$HttpPackageConfigurations": "

The HTTP package configurations.

", - "UpdateVodSourceRequest$HttpPackageConfigurations": "

An array of HTTP package configurations for the VOD source on this account.

", + "LiveSource$HttpPackageConfigurations": "

The HTTP package configurations for the live source.

", + "UpdateLiveSourceRequest$HttpPackageConfigurations": "

A list of HTTP package configurations for the live source on this account.

", + "UpdateVodSourceRequest$HttpPackageConfigurations": "

A list of HTTP package configurations for the VOD source on this account.

", "VodSource$HttpPackageConfigurations": "

The HTTP package configurations for the VOD source.

" } }, @@ -295,6 +316,10 @@ "base": "

Returns a list of channels.

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

A list of your live sources.

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

Returns a list of playback configurations.

", "refs": {} @@ -312,7 +337,7 @@ "refs": {} }, "ListVodSourcesResponse": { - "base": "

An array of VOD sources.

", + "base": "

A list of VOD sources.

", "refs": {} }, "LivePreRollConfiguration": { @@ -323,6 +348,12 @@ "PutPlaybackConfigurationRequest$LivePreRollConfiguration": "

The configuration for pre-roll ad insertion.

" } }, + "LiveSource": { + "base": "

Live source configuration parameters.

", + "refs": { + "__listOfLiveSource$member": null + } + }, "LogConfiguration": { "base": "

Returns Amazon CloudWatch log settings for a playback configuration.

", "refs": { @@ -470,7 +501,7 @@ } }, "SegmentDeliveryConfiguration": { - "base": null, + "base": "

The base URL of the host or path of the segment delivery server that you're using to serve segments. This is typically a content delivery network (CDN). The URL can be absolute or relative. To use an absolute URL include the protocol, such as https://example.com/some/path. To use a relative URL specify the relative path, such as /some/path*.

", "refs": { "__listOfSegmentDeliveryConfiguration$member": null } @@ -501,6 +532,12 @@ "base": "

A set of tags assigned to a resource.

", "refs": {} }, + "Tier": { + "base": null, + "refs": { + "CreateChannelRequest$Tier": "

The tier of the channel.

" + } + }, "Transition": { "base": "

Program transition configuration.

", "refs": { @@ -517,6 +554,10 @@ "base": "

Updates a channel's Outputs.

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

Updates a live source's configuration.

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

Source location configuration parameters.

", "refs": {} @@ -579,7 +620,7 @@ "__listOfAlert": { "base": null, "refs": { - "ListAlertsResponse$Items": "

An array of alerts that are associated with this resource.

" + "ListAlertsResponse$Items": "

A list of alerts that are associated with this resource.

" } }, "__listOfAvailMatchingCriteria": { @@ -591,7 +632,13 @@ "__listOfChannel": { "base": null, "refs": { - "ListChannelsResponse$Items": "

An array of channels that are associated with this account.

" + "ListChannelsResponse$Items": "

A list of channels that are associated with this account.

" + } + }, + "__listOfLiveSource": { + "base": null, + "refs": { + "ListLiveSourcesResponse$Items": "

Lists the live sources.

" } }, "__listOfPlaybackConfiguration": { @@ -615,22 +662,22 @@ "__listOfScheduleEntry": { "base": null, "refs": { - "GetChannelScheduleResponse$Items": "

An array of schedule entries for the channel.

" + "GetChannelScheduleResponse$Items": "

A list of schedule entries for the channel.

" } }, "__listOfSegmentDeliveryConfiguration": { "base": null, "refs": { - "CreateSourceLocationRequest$SegmentDeliveryConfigurations": "

An array of segment delivery configurations for this source location.

", - "DescribeSourceLocationResponse$SegmentDeliveryConfigurations": "

An array of segment delivery configurations for this source location.

", - "SourceLocation$SegmentDeliveryConfigurations": "

An array of segment delivery configurations for this source location.

", - "UpdateSourceLocationRequest$SegmentDeliveryConfigurations": "

An array of segment delivery configurations for this source location.

" + "CreateSourceLocationRequest$SegmentDeliveryConfigurations": "

A list of the segment delivery configurations associated with this resource.

", + "DescribeSourceLocationResponse$SegmentDeliveryConfigurations": "

A list of the segment delivery configurations associated with this resource.

", + "SourceLocation$SegmentDeliveryConfigurations": "

The segment delivery configurations for the source location.

", + "UpdateSourceLocationRequest$SegmentDeliveryConfigurations": "

A list of the segment delivery configurations associated with this resource.

" } }, "__listOfSourceLocation": { "base": null, "refs": { - "ListSourceLocationsResponse$Items": "

An array of source locations.

" + "ListSourceLocationsResponse$Items": "

A list of source locations.

" } }, "__listOfVodSource": { @@ -651,6 +698,7 @@ "AdBreak$OffsetMillis": "

How long (in milliseconds) after the beginning of the program that an ad starts. This value must fall within 100ms of a segment boundary, otherwise the ad break will be skipped.

", "ScheduleAdBreak$ApproximateDurationSeconds": "

The approximate duration of the ad break, in seconds.

", "ScheduleEntry$ApproximateDurationSeconds": "

The approximate duration of this program, in seconds.

", + "Transition$DurationMillis": "

The duration of the live program in seconds.

", "Transition$ScheduledStartTimeMillis": "

The date and time that the program is scheduled to start, in epoch milliseconds.

" } }, @@ -661,12 +709,15 @@ "ConfigurationAliasesRequest$member": "

Map of aliases to the value to be used at request time.

", "ConfigurationAliasesResponse$member": "

Map of aliases to the value to be used at request time.

", "CreateChannelRequest$Tags": "

The tags to assign to the channel.

", + "CreateLiveSourceRequest$Tags": "

The tags to assign to the live source.

", "CreateSourceLocationRequest$Tags": "

The tags to assign to the source location.

", "CreateVodSourceRequest$Tags": "

The tags to assign to the VOD source.

", "DescribeChannelResponse$Tags": "

The tags assigned to the channel.

", + "DescribeLiveSourceResponse$Tags": "

The tags assigned to the live source.

", "DescribeSourceLocationResponse$Tags": "

The tags assigned to the source location.

", "DescribeVodSourceResponse$Tags": "

The tags assigned to the VOD source.

", "GetPlaybackConfigurationResponse$Tags": "

The tags assigned to the playback configuration.

", + "LiveSource$Tags": "

The tags assigned to the live source.

", "PlaybackConfiguration$Tags": "

The tags to assign to the playback configuration.

", "PrefetchRetrieval$DynamicVariables": "

The dynamic variables to use for substitution during prefetch requests to the ad decision server (ADS).

You intially configure dynamic variables for the ADS URL when you set up your playback configuration. When you specify DynamicVariables for prefetch retrieval, MediaTailor includes the dynamic variables in the request to the ADS.

", "PutPlaybackConfigurationRequest$Tags": "

The tags to assign to the playback configuration.

", @@ -686,15 +737,17 @@ "BadRequestException$Message": "

Constructs a new BadRequestException with the specified error message.

", "Bumper$EndUrl": "

The URL for the end bumper asset.

", "Bumper$StartUrl": "

The URL for the start bumper asset.

", - "CdnConfiguration$AdSegmentUrlPrefix": "

A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor.<region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.

", + "CdnConfiguration$AdSegmentUrlPrefix": "

A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor.<region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.

", "CdnConfiguration$ContentSegmentUrlPrefix": "

A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.

", "Channel$Arn": "

The ARN of the channel.

", "Channel$ChannelName": "

The name of the channel.

", "Channel$ChannelState": "

Returns the state whether the channel is running or not.

", "Channel$PlaybackMode": "

The type of playback mode for this channel.

LINEAR - Programs play back-to-back only once.

LOOP - Programs play back-to-back in an endless loop. When the last program in the schedule plays, playback loops back to the first program in the schedule.

", + "Channel$Tier": "

The tier for this channel. STANDARD tier channels can contain live programs.

", "ConfigureLogsForPlaybackConfigurationRequest$PlaybackConfigurationName": "

The name of the playback configuration.

", "ConfigureLogsForPlaybackConfigurationResponse$PlaybackConfigurationName": "

The name of the playback configuration.

", "CreatePrefetchScheduleRequest$StreamId": "

An optional stream identifier that MediaTailor uses to prefetch ads for multiple streams that use the same playback configuration. If StreamId is specified, MediaTailor returns all of the prefetch schedules with an exact match on StreamId. If not specified, MediaTailor returns all of the prefetch schedules for the playback configuration, regardless of StreamId.

", + "CreateProgramRequest$LiveSourceName": "

The name of the LiveSource for this Program.

", "CreateProgramRequest$SourceLocationName": "

The name of the source location.

", "CreateProgramRequest$VodSourceName": "

The name that's used to refer to a VOD source.

", "DashConfiguration$ManifestEndpointPrefix": "

The URL generated by MediaTailor to initiate a playback session. The session uses server-side reporting. This setting is ignored in PUT operations.

", @@ -704,8 +757,13 @@ "DescribeChannelResponse$Arn": "

The ARN of the channel.

", "DescribeChannelResponse$ChannelName": "

The name of the channel.

", "DescribeChannelResponse$PlaybackMode": "

The channel's playback mode.

", + "DescribeChannelResponse$Tier": "

The channel's tier.

", + "DescribeLiveSourceResponse$Arn": "

The ARN of the live source.

", + "DescribeLiveSourceResponse$LiveSourceName": "

The name of the live source.

", + "DescribeLiveSourceResponse$SourceLocationName": "

The name of the source location associated with the VOD source.

", "DescribeProgramResponse$Arn": "

The ARN of the program.

", "DescribeProgramResponse$ChannelName": "

The name of the channel that the program belongs to.

", + "DescribeProgramResponse$LiveSourceName": "

The name of the LiveSource for this Program.

", "DescribeProgramResponse$ProgramName": "

The name of the program.

", "DescribeProgramResponse$SourceLocationName": "

The source location name.

", "DescribeProgramResponse$VodSourceName": "

The name that's used to refer to a VOD source.

", @@ -730,6 +788,7 @@ "HttpPackageConfiguration$SourceGroup": "

The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

", "ListAlertsResponse$NextToken": "

Pagination token from the list request. Use the token to fetch the next page of results.

", "ListChannelsResponse$NextToken": "

Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

", + "ListLiveSourcesResponse$NextToken": "

Pagination token from the list request. Use the token to fetch the next page of results.

", "ListPlaybackConfigurationsResponse$NextToken": "

Pagination token returned by the GET list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

", "ListPrefetchSchedulesRequest$NextToken": "

(Optional) If the playback configuration has more than MaxResults prefetch schedules, use NextToken to get the second and subsequent pages of results.

For the first ListPrefetchSchedulesRequest request, omit this value.

For the second and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request.

If the previous response didn't include a NextToken element, there are no more prefetch schedules to get.

", "ListPrefetchSchedulesRequest$StreamId": "

An optional filtering parameter whereby MediaTailor filters the prefetch schedules to include only specific streams.

", @@ -737,6 +796,9 @@ "ListSourceLocationsResponse$NextToken": "

Pagination token from the list request. Use the token to fetch the next page of results.

", "ListVodSourcesResponse$NextToken": "

Pagination token from the list request. Use the token to fetch the next page of results.

", "LivePreRollConfiguration$AdDecisionServerUrl": "

The URL for the ad decision server (ADS) for pre-roll ads. This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.

", + "LiveSource$Arn": "

The ARN for the live source.

", + "LiveSource$LiveSourceName": "

The name that's used to refer to a live source.

", + "LiveSource$SourceLocationName": "

The name of the source location.

", "PlaybackConfiguration$AdDecisionServerUrl": "

The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25,000 characters.

", "PlaybackConfiguration$Name": "

The identifier for the playback configuration.

", "PlaybackConfiguration$PlaybackConfigurationArn": "

The Amazon Resource Name (ARN) for the playback configuration.

", @@ -764,13 +826,14 @@ "ScheduleAdBreak$VodSourceName": "

The name of the VOD source used for the ad break.

", "ScheduleEntry$Arn": "

The ARN of the program.

", "ScheduleEntry$ChannelName": "

The name of the channel that uses this schedule.

", + "ScheduleEntry$LiveSourceName": "

The name of the live source used for the program.

", "ScheduleEntry$ProgramName": "

The name of the program.

", "ScheduleEntry$SourceLocationName": "

The name of the source location.

", "ScheduleEntry$VodSourceName": "

The name of the VOD source.

", "SecretsManagerAccessTokenConfiguration$HeaderName": "

The name of the HTTP header used to supply the access token in requests to the source location.

", "SecretsManagerAccessTokenConfiguration$SecretArn": "

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the access token.

", "SecretsManagerAccessTokenConfiguration$SecretStringKey": "

The AWS Secrets Manager SecretString key associated with the access token. MediaTailor uses the key to look up SecretString key and value pair containing the access token.

", - "SegmentDeliveryConfiguration$BaseUrl": "

The base URL of the host or path of the segment delivery server that you're using to serve segments. This is typically a content delivery network (CDN). The URL can be absolute or relative. To use an absolute URL include the protocol, such as https://example.com/some/path. To use a relative URL specify the relative path, such as /some/path.

", + "SegmentDeliveryConfiguration$BaseUrl": "

The base URL of the host or path of the segment delivery server that you're using to serve segments. This is typically a content delivery network (CDN). The URL can be absolute or relative. To use an absolute URL include the protocol, such as https://example.com/some/path. To use a relative URL specify the relative path, such as /some/path*.

", "SegmentDeliveryConfiguration$Name": "

A unique identifier used to distinguish between multiple segment delivery configurations in a source location.

", "SlateSource$SourceLocationName": "

The name of the source location where the slate VOD source is stored.

", "SlateSource$VodSourceName": "

The slate VOD source name. The VOD source must already exist in a source location before it can be used for slate.

", @@ -793,12 +856,16 @@ "Channel$LastModifiedTime": "

The timestamp of when the channel was last modified.

", "DescribeChannelResponse$CreationTime": "

The timestamp of when the channel was created.

", "DescribeChannelResponse$LastModifiedTime": "

The timestamp of when the channel was last modified.

", + "DescribeLiveSourceResponse$CreationTime": "

The timestamp that indicates when the live source was created.

", + "DescribeLiveSourceResponse$LastModifiedTime": "

The timestamp that indicates when the live source was modified.

", "DescribeProgramResponse$CreationTime": "

The timestamp of when the program was created.

", "DescribeProgramResponse$ScheduledStartTime": "

The date and time that the program is scheduled to start in ISO 8601 format and Coordinated Universal Time (UTC). For example, the value 2021-03-27T17:48:16.751Z represents March 27, 2021 at 17:48:16.751 UTC.

", "DescribeSourceLocationResponse$CreationTime": "

The timestamp that indicates when the source location was created.

", "DescribeSourceLocationResponse$LastModifiedTime": "

The timestamp that indicates when the source location was last modified.

", "DescribeVodSourceResponse$CreationTime": "

The timestamp that indicates when the VOD source was created.

", - "DescribeVodSourceResponse$LastModifiedTime": "

The ARN for the VOD source.

", + "DescribeVodSourceResponse$LastModifiedTime": "

The last modified time of the VOD source.

", + "LiveSource$CreationTime": "

The timestamp that indicates when the live source was created.

", + "LiveSource$LastModifiedTime": "

The timestamp that indicates when the live source was last modified.

", "PrefetchConsumption$EndTime": "

The time when MediaTailor no longer considers the prefetched ads for use in an ad break. MediaTailor automatically deletes prefetch schedules no less than seven days after the end time. If you'd like to manually delete the prefetch schedule, you can call DeletePrefetchSchedule.

", "PrefetchConsumption$StartTime": "

The time when prefetched ads are considered for use in an ad break. If you don't specify StartTime, the prefetched ads are available after MediaTailor retrives them from the ad decision server.

", "PrefetchRetrieval$EndTime": "

The time when prefetch retrieval ends for the ad break. Prefetching will be attempted for manifest requests that occur at or before this time.

", diff --git a/models/apis/mediatailor/2018-04-23/paginators-1.json b/models/apis/mediatailor/2018-04-23/paginators-1.json index 82cec31e3c..54990713dd 100644 --- a/models/apis/mediatailor/2018-04-23/paginators-1.json +++ b/models/apis/mediatailor/2018-04-23/paginators-1.json @@ -18,6 +18,12 @@ "output_token": "NextToken", "result_key": "Items" }, + "ListLiveSources": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Items" + }, "ListPlaybackConfigurations": { "input_token": "NextToken", "limit_key": "MaxResults", diff --git a/models/apis/secretsmanager/2017-10-17/docs-2.json b/models/apis/secretsmanager/2017-10-17/docs-2.json index 5a91dcbd6f..73e3067b1b 100644 --- a/models/apis/secretsmanager/2017-10-17/docs-2.json +++ b/models/apis/secretsmanager/2017-10-17/docs-2.json @@ -2,28 +2,28 @@ "version": "2.0", "service": "Amazon Web Services Secrets Manager

Amazon Web Services Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.

This guide provides descriptions of the Secrets Manager API. For more information about using this service, see the Amazon Web Services Secrets Manager User Guide.

API Version

This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.

Support and Feedback for Amazon Web Services Secrets Manager

We welcome your feedback. Send your comments to awssecretsmanager-feedback@amazon.com, or post your feedback and questions in the Amazon Web Services Secrets Manager Discussion Forum. For more information about the Amazon Web Services Discussion Forums, see Forums Help.

Logging API Requests

Amazon Web Services Secrets Manager supports Amazon Web Services CloudTrail, a service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket. By using information that's collected by Amazon Web Services CloudTrail, you can determine the requests successfully made to Secrets Manager, who made the request, when it was made, and so on. For more about Amazon Web Services Secrets Manager and support for Amazon Web Services CloudTrail, see Logging Amazon Web Services Secrets Manager Events with Amazon Web Services CloudTrail in the Amazon Web Services Secrets Manager User Guide. To learn more about CloudTrail, including enabling it and find your log files, see the Amazon Web Services CloudTrail User Guide.

", "operations": { - "CancelRotateSecret": "

Turns off automatic rotation, and if a rotation is currently in progress, cancels the rotation.

To turn on automatic rotation again, call RotateSecret.

If you cancel a rotation in progress, it can leave the VersionStage labels in an unexpected state. Depending on the step of the rotation in progress, you might need to remove the staging label AWSPENDING from the partially created version, specified by the VersionId response value. We recommend you also evaluate the partially rotated new version to see if it should be deleted. You can delete a version by removing all staging labels from it.

Required permissions: secretsmanager:CancelRotateSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "CreateSecret": "

Creates a new secret. A secret is a set of credentials, such as a user name and password, that you store in an encrypted form in Secrets Manager. The secret also includes the connection information to access a database or other service, which Secrets Manager doesn't encrypt. A secret in Secrets Manager consists of both the protected secret data and the important information needed to manage the secret.

For information about creating a secret in the console, see Create a secret.

To create a secret, you can provide the secret value to be encrypted in either the SecretString parameter or the SecretBinary parameter, but not both. If you include SecretString or SecretBinary then Secrets Manager creates an initial secret version and automatically attaches the staging label AWSCURRENT to it.

If you don't specify an KMS encryption key, Secrets Manager uses the Amazon Web Services managed key aws/secretsmanager. If this key doesn't already exist in your account, then Secrets Manager creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access to use aws/secretsmanager. Creating aws/secretsmanager can result in a one-time significant delay in returning the result.

If the secret is in a different Amazon Web Services account from the credentials calling the API, then you can't use aws/secretsmanager to encrypt the secret, and you must create and use a customer managed KMS key.

Required permissions: secretsmanager:CreateSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "DeleteResourcePolicy": "

Deletes the resource-based permission policy attached to the secret. To attach a policy to a secret, use PutResourcePolicy.

Required permissions: secretsmanager:DeleteResourcePolicy. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "DeleteSecret": "

Deletes a secret and all of its versions. You can specify a recovery window during which you can restore the secret. The minimum recovery window is 7 days. The default recovery window is 30 days. Secrets Manager attaches a DeletionDate stamp to the secret that specifies the end of the recovery window. At the end of the recovery window, Secrets Manager deletes the secret permanently.

For information about deleting a secret in the console, see https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_delete-secret.html.

Secrets Manager performs the permanent secret deletion at the end of the waiting period as a background task with low priority. There is no guarantee of a specific time after the recovery window for the permanent delete to occur.

At any time before recovery window ends, you can use RestoreSecret to remove the DeletionDate and cancel the deletion of the secret.

In a secret scheduled for deletion, you cannot access the encrypted secret value. To access that information, first cancel the deletion with RestoreSecret and then retrieve the information.

Required permissions: secretsmanager:DeleteSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "DescribeSecret": "

Retrieves the details of a secret. It does not include the encrypted secret value. Secrets Manager only returns fields that have a value in the response.

Required permissions: secretsmanager:DescribeSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "GetRandomPassword": "

Generates a random password. We recommend that you specify the maximum length and include every character type that the system you are generating a password for can support.

Required permissions: secretsmanager:GetRandomPassword. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "GetResourcePolicy": "

Retrieves the JSON text of the resource-based policy document attached to the secret. For more information about permissions policies attached to a secret, see Permissions policies attached to a secret.

Required permissions: secretsmanager:GetResourcePolicy. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "GetSecretValue": "

Retrieves the contents of the encrypted fields SecretString or SecretBinary from the specified version of a secret, whichever contains content.

We recommend that you cache your secret values by using client-side caching. Caching secrets improves speed and reduces your costs. For more information, see Cache secrets for your applications.

Required permissions: secretsmanager:GetSecretValue. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key aws/secretsmanager, then you also need kms:Decrypt permissions for that key. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "ListSecretVersionIds": "

Lists the versions for a secret.

To list the secrets in the account, use ListSecrets.

To get the secret value from SecretString or SecretBinary, call GetSecretValue.

Required permissions: secretsmanager:ListSecretVersionIds. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "ListSecrets": "

Lists the secrets that are stored by Secrets Manager in the Amazon Web Services account, not including secrets that are marked for deletion. To see secrets marked for deletion, use the Secrets Manager console.

To list the versions of a secret, use ListSecretVersionIds.

To get the secret value from SecretString or SecretBinary, call GetSecretValue.

For information about finding secrets in the console, see Enhanced search capabilities for secrets in Secrets Manager.

Required permissions: secretsmanager:ListSecrets. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "PutResourcePolicy": "

Attaches a resource-based permission policy to a secret. A resource-based policy is optional. For more information, see Authentication and access control for Secrets Manager

For information about attaching a policy in the console, see Attach a permissions policy to a secret.

Required permissions: secretsmanager:PutResourcePolicy. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "PutSecretValue": "

Creates a new version with a new encrypted secret value and attaches it to the secret. The version can contain a new SecretString value or a new SecretBinary value.

We recommend you avoid calling PutSecretValue at a sustained rate of more than once every 10 minutes. When you update the secret value, Secrets Manager creates a new version of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not remove versions created less than 24 hours ago. If you call PutSecretValue more than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach the quota for secret versions.

You can specify the staging labels to attach to the new version in VersionStages. If you don't include VersionStages, then Secrets Manager automatically moves the staging label AWSCURRENT to this version. If this operation creates the first version for the secret, then Secrets Manager automatically attaches the staging label AWSCURRENT to it .

If this operation moves the staging label AWSCURRENT from another version to this version, then Secrets Manager also automatically moves the staging label AWSPREVIOUS to the version that AWSCURRENT was removed from.

This operation is idempotent. If a version with a VersionId with the same value as the ClientRequestToken parameter already exists, and you specify the same secret data, the operation succeeds but does nothing. However, if the secret data is different, then the operation fails because you can't modify an existing version; you can only create new ones.

Required permissions: secretsmanager:PutSecretValue. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "RemoveRegionsFromReplication": "

For a secret that is replicated to other Regions, deletes the secret replicas from the Regions you specify.

Required permissions: secretsmanager:RemoveRegionsFromReplication. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "ReplicateSecretToRegions": "

Replicates the secret to a new Regions. See Multi-Region secrets.

Required permissions: secretsmanager:ReplicateSecretToRegions. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "RestoreSecret": "

Cancels the scheduled deletion of a secret by removing the DeletedDate time stamp. You can access a secret again after it has been restored.

Required permissions: secretsmanager:RestoreSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "RotateSecret": "

Configures and starts the asynchronous process of rotating the secret.

If you include the configuration parameters, the operation sets the values for the secret and then immediately starts a rotation. If you don't include the configuration parameters, the operation starts a rotation with the values already stored in the secret. For more information about rotation, see Rotate secrets.

To configure rotation, you include the ARN of an Amazon Web Services Lambda function and the schedule for the rotation. The Lambda rotation function creates a new version of the secret and creates or updates the credentials on the database or service to match. After testing the new credentials, the function marks the new secret version with the staging label AWSCURRENT. Then anyone who retrieves the secret gets the new version. For more information, see How rotation works.

When rotation is successful, the AWSPENDING staging label might be attached to the same version as the AWSCURRENT version, or it might not be attached to any version.

If the AWSPENDING staging label is present but not attached to the same version as AWSCURRENT, then any later invocation of RotateSecret assumes that a previous rotation request is still in progress and returns an error.

Required permissions: secretsmanager:RotateSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager. You also need lambda:InvokeFunction permissions on the rotation function. For more information, see Permissions for rotation.

", - "StopReplicationToReplica": "

Removes the link between the replica secret and the primary secret and promotes the replica to a primary secret in the replica Region.

You must call this operation from the Region in which you want to promote the replica to a primary secret.

Required permissions: secretsmanager:StopReplicationToReplica. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "TagResource": "

Attaches tags to a secret. Tags consist of a key name and a value. Tags are part of the secret's metadata. They are not associated with specific versions of the secret. This operation appends tags to the existing list of tags.

The following restrictions apply to tags:

If you use tags as part of your security strategy, then adding or removing a tag can change permissions. If successfully completing this operation would result in you losing your permissions for this secret, then the operation is blocked and returns an Access Denied error.

Required permissions: secretsmanager:TagResource. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "UntagResource": "

Removes specific tags from a secret.

This operation is idempotent. If a requested tag is not attached to the secret, no error is returned and the secret metadata is unchanged.

If you use tags as part of your security strategy, then removing a tag can change permissions. If successfully completing this operation would result in you losing your permissions for this secret, then the operation is blocked and returns an Access Denied error.

Required permissions: secretsmanager:UntagResource. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "UpdateSecret": "

Modifies the details of a secret, including metadata and the secret value. To change the secret value, you can also use PutSecretValue.

To change the rotation configuration of a secret, use RotateSecret instead.

We recommend you avoid calling UpdateSecret at a sustained rate of more than once every 10 minutes. When you call UpdateSecret to update the secret value, Secrets Manager creates a new version of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not remove versions created less than 24 hours ago. If you update the secret value more than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach the quota for secret versions.

If you include SecretString or SecretBinary to create a new secret version, Secrets Manager automatically attaches the staging label AWSCURRENT to the new version.

If you call this operation with a VersionId that matches an existing version's ClientRequestToken, the operation results in an error. You can't modify an existing version, you can only create a new version. To remove a version, remove all staging labels from it. See UpdateSecretVersionStage.

If you don't specify an KMS encryption key, Secrets Manager uses the Amazon Web Services managed key aws/secretsmanager. If this key doesn't already exist in your account, then Secrets Manager creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access to use aws/secretsmanager. Creating aws/secretsmanager can result in a one-time significant delay in returning the result.

If the secret is in a different Amazon Web Services account from the credentials calling the API, then you can't use aws/secretsmanager to encrypt the secret, and you must create and use a customer managed key.

Required permissions: secretsmanager:UpdateSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager. If you use a customer managed key, you must also have kms:GenerateDataKey and kms:Decrypt permissions on the key. For more information, see Secret encryption and decryption.

", - "UpdateSecretVersionStage": "

Modifies the staging labels attached to a version of a secret. Secrets Manager uses staging labels to track a version as it progresses through the secret rotation process. Each staging label can be attached to only one version at a time. To add a staging label to a version when it is already attached to another version, Secrets Manager first removes it from the other version first and then attaches it to this one. For more information about versions and staging labels, see Concepts: Version.

The staging labels that you specify in the VersionStage parameter are added to the existing list of staging labels for the version.

You can move the AWSCURRENT staging label to this version by including it in this call.

Whenever you move AWSCURRENT, Secrets Manager automatically moves the label AWSPREVIOUS to the version that AWSCURRENT was removed from.

If this action results in the last label being removed from a version, then the version is considered to be 'deprecated' and can be deleted by Secrets Manager.

Required permissions: secretsmanager:UpdateSecretVersionStage. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", - "ValidateResourcePolicy": "

Validates that a resource policy does not grant a wide range of principals access to your secret. A resource-based policy is optional for secrets.

The API performs three checks when validating the policy:

Required permissions: secretsmanager:ValidateResourcePolicy. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

" + "CancelRotateSecret": "

Turns off automatic rotation, and if a rotation is currently in progress, cancels the rotation.

To turn on automatic rotation again, call RotateSecret.

If you cancel a rotation in progress, it can leave the VersionStage labels in an unexpected state. Depending on the step of the rotation in progress, you might need to remove the staging label AWSPENDING from the partially created version, specified by the VersionId response value. We recommend you also evaluate the partially rotated new version to see if it should be deleted. You can delete a version by removing all staging labels from it.

Required permissions: secretsmanager:CancelRotateSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "CreateSecret": "

Creates a new secret. A secret can be a password, a set of credentials such as a user name and password, an OAuth token, or other secret information that you store in an encrypted form in Secrets Manager. The secret also includes the connection information to access a database or other service, which Secrets Manager doesn't encrypt. A secret in Secrets Manager consists of both the protected secret data and the important information needed to manage the secret.

For information about creating a secret in the console, see Create a secret.

To create a secret, you can provide the secret value to be encrypted in either the SecretString parameter or the SecretBinary parameter, but not both. If you include SecretString or SecretBinary then Secrets Manager creates an initial secret version and automatically attaches the staging label AWSCURRENT to it.

For database credentials you want to rotate, for Secrets Manager to be able to rotate the secret, you must make sure the JSON you store in the SecretString matches the JSON structure of a database secret.

If you don't specify an KMS encryption key, Secrets Manager uses the Amazon Web Services managed key aws/secretsmanager. If this key doesn't already exist in your account, then Secrets Manager creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access to use aws/secretsmanager. Creating aws/secretsmanager can result in a one-time significant delay in returning the result.

If the secret is in a different Amazon Web Services account from the credentials calling the API, then you can't use aws/secretsmanager to encrypt the secret, and you must create and use a customer managed KMS key.

Required permissions: secretsmanager:CreateSecret. If you include tags in the secret, you also need secretsmanager:TagResource. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

To encrypt the secret with a KMS key other than aws/secretsmanager, you need kms:GenerateDataKey and kms:Decrypt permission to the key.

", + "DeleteResourcePolicy": "

Deletes the resource-based permission policy attached to the secret. To attach a policy to a secret, use PutResourcePolicy.

Required permissions: secretsmanager:DeleteResourcePolicy. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "DeleteSecret": "

Deletes a secret and all of its versions. You can specify a recovery window during which you can restore the secret. The minimum recovery window is 7 days. The default recovery window is 30 days. Secrets Manager attaches a DeletionDate stamp to the secret that specifies the end of the recovery window. At the end of the recovery window, Secrets Manager deletes the secret permanently.

For information about deleting a secret in the console, see https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_delete-secret.html.

Secrets Manager performs the permanent secret deletion at the end of the waiting period as a background task with low priority. There is no guarantee of a specific time after the recovery window for the permanent delete to occur.

At any time before recovery window ends, you can use RestoreSecret to remove the DeletionDate and cancel the deletion of the secret.

In a secret scheduled for deletion, you cannot access the encrypted secret value. To access that information, first cancel the deletion with RestoreSecret and then retrieve the information.

Required permissions: secretsmanager:DeleteSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "DescribeSecret": "

Retrieves the details of a secret. It does not include the encrypted secret value. Secrets Manager only returns fields that have a value in the response.

Required permissions: secretsmanager:DescribeSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "GetRandomPassword": "

Generates a random password. We recommend that you specify the maximum length and include every character type that the system you are generating a password for can support.

Required permissions: secretsmanager:GetRandomPassword. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "GetResourcePolicy": "

Retrieves the JSON text of the resource-based policy document attached to the secret. For more information about permissions policies attached to a secret, see Permissions policies attached to a secret.

Required permissions: secretsmanager:GetResourcePolicy. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "GetSecretValue": "

Retrieves the contents of the encrypted fields SecretString or SecretBinary from the specified version of a secret, whichever contains content.

We recommend that you cache your secret values by using client-side caching. Caching secrets improves speed and reduces your costs. For more information, see Cache secrets for your applications.

Required permissions: secretsmanager:GetSecretValue. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key aws/secretsmanager, then you also need kms:Decrypt permissions for that key. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "ListSecretVersionIds": "

Lists the versions for a secret.

To list the secrets in the account, use ListSecrets.

To get the secret value from SecretString or SecretBinary, call GetSecretValue.

Required permissions: secretsmanager:ListSecretVersionIds. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "ListSecrets": "

Lists the secrets that are stored by Secrets Manager in the Amazon Web Services account, not including secrets that are marked for deletion. To see secrets marked for deletion, use the Secrets Manager console.

To list the versions of a secret, use ListSecretVersionIds.

To get the secret value from SecretString or SecretBinary, call GetSecretValue.

For information about finding secrets in the console, see Enhanced search capabilities for secrets in Secrets Manager.

Required permissions: secretsmanager:ListSecrets. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "PutResourcePolicy": "

Attaches a resource-based permission policy to a secret. A resource-based policy is optional. For more information, see Authentication and access control for Secrets Manager

For information about attaching a policy in the console, see Attach a permissions policy to a secret.

Required permissions: secretsmanager:PutResourcePolicy. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "PutSecretValue": "

Creates a new version with a new encrypted secret value and attaches it to the secret. The version can contain a new SecretString value or a new SecretBinary value.

We recommend you avoid calling PutSecretValue at a sustained rate of more than once every 10 minutes. When you update the secret value, Secrets Manager creates a new version of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not remove versions created less than 24 hours ago. If you call PutSecretValue more than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach the quota for secret versions.

You can specify the staging labels to attach to the new version in VersionStages. If you don't include VersionStages, then Secrets Manager automatically moves the staging label AWSCURRENT to this version. If this operation creates the first version for the secret, then Secrets Manager automatically attaches the staging label AWSCURRENT to it .

If this operation moves the staging label AWSCURRENT from another version to this version, then Secrets Manager also automatically moves the staging label AWSPREVIOUS to the version that AWSCURRENT was removed from.

This operation is idempotent. If a version with a VersionId with the same value as the ClientRequestToken parameter already exists, and you specify the same secret data, the operation succeeds but does nothing. However, if the secret data is different, then the operation fails because you can't modify an existing version; you can only create new ones.

Required permissions: secretsmanager:PutSecretValue. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "RemoveRegionsFromReplication": "

For a secret that is replicated to other Regions, deletes the secret replicas from the Regions you specify.

Required permissions: secretsmanager:RemoveRegionsFromReplication. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "ReplicateSecretToRegions": "

Replicates the secret to a new Regions. See Multi-Region secrets.

Required permissions: secretsmanager:ReplicateSecretToRegions. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "RestoreSecret": "

Cancels the scheduled deletion of a secret by removing the DeletedDate time stamp. You can access a secret again after it has been restored.

Required permissions: secretsmanager:RestoreSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "RotateSecret": "

Configures and starts the asynchronous process of rotating the secret. For more information about rotation, see Rotate secrets.

If you include the configuration parameters, the operation sets the values for the secret and then immediately starts a rotation. If you don't include the configuration parameters, the operation starts a rotation with the values already stored in the secret.

For database credentials you want to rotate, for Secrets Manager to be able to rotate the secret, you must make sure the secret value is in the JSON structure of a database secret. In particular, if you want to use the alternating users strategy, your secret must contain the ARN of a superuser secret.

To configure rotation, you also need the ARN of an Amazon Web Services Lambda function and the schedule for the rotation. The Lambda rotation function creates a new version of the secret and creates or updates the credentials on the database or service to match. After testing the new credentials, the function marks the new secret version with the staging label AWSCURRENT. Then anyone who retrieves the secret gets the new version. For more information, see How rotation works.

You can create the Lambda rotation function based on the rotation function templates that Secrets Manager provides. Choose a template that matches your Rotation strategy.

When rotation is successful, the AWSPENDING staging label might be attached to the same version as the AWSCURRENT version, or it might not be attached to any version. If the AWSPENDING staging label is present but not attached to the same version as AWSCURRENT, then any later invocation of RotateSecret assumes that a previous rotation request is still in progress and returns an error.

Required permissions: secretsmanager:RotateSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager. You also need lambda:InvokeFunction permissions on the rotation function. For more information, see Permissions for rotation.

", + "StopReplicationToReplica": "

Removes the link between the replica secret and the primary secret and promotes the replica to a primary secret in the replica Region.

You must call this operation from the Region in which you want to promote the replica to a primary secret.

Required permissions: secretsmanager:StopReplicationToReplica. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "TagResource": "

Attaches tags to a secret. Tags consist of a key name and a value. Tags are part of the secret's metadata. They are not associated with specific versions of the secret. This operation appends tags to the existing list of tags.

The following restrictions apply to tags:

If you use tags as part of your security strategy, then adding or removing a tag can change permissions. If successfully completing this operation would result in you losing your permissions for this secret, then the operation is blocked and returns an Access Denied error.

Required permissions: secretsmanager:TagResource. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "UntagResource": "

Removes specific tags from a secret.

This operation is idempotent. If a requested tag is not attached to the secret, no error is returned and the secret metadata is unchanged.

If you use tags as part of your security strategy, then removing a tag can change permissions. If successfully completing this operation would result in you losing your permissions for this secret, then the operation is blocked and returns an Access Denied error.

Required permissions: secretsmanager:UntagResource. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "UpdateSecret": "

Modifies the details of a secret, including metadata and the secret value. To change the secret value, you can also use PutSecretValue.

To change the rotation configuration of a secret, use RotateSecret instead.

We recommend you avoid calling UpdateSecret at a sustained rate of more than once every 10 minutes. When you call UpdateSecret to update the secret value, Secrets Manager creates a new version of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not remove versions created less than 24 hours ago. If you update the secret value more than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach the quota for secret versions.

If you include SecretString or SecretBinary to create a new secret version, Secrets Manager automatically attaches the staging label AWSCURRENT to the new version.

If you call this operation with a VersionId that matches an existing version's ClientRequestToken, the operation results in an error. You can't modify an existing version, you can only create a new version. To remove a version, remove all staging labels from it. See UpdateSecretVersionStage.

If you don't specify an KMS encryption key, Secrets Manager uses the Amazon Web Services managed key aws/secretsmanager. If this key doesn't already exist in your account, then Secrets Manager creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access to use aws/secretsmanager. Creating aws/secretsmanager can result in a one-time significant delay in returning the result.

If the secret is in a different Amazon Web Services account from the credentials calling the API, then you can't use aws/secretsmanager to encrypt the secret, and you must create and use a customer managed key.

Required permissions: secretsmanager:UpdateSecret. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager. If you use a customer managed key, you must also have kms:GenerateDataKey and kms:Decrypt permissions on the key. For more information, see Secret encryption and decryption.

", + "UpdateSecretVersionStage": "

Modifies the staging labels attached to a version of a secret. Secrets Manager uses staging labels to track a version as it progresses through the secret rotation process. Each staging label can be attached to only one version at a time. To add a staging label to a version when it is already attached to another version, Secrets Manager first removes it from the other version first and then attaches it to this one. For more information about versions and staging labels, see Concepts: Version.

The staging labels that you specify in the VersionStage parameter are added to the existing list of staging labels for the version.

You can move the AWSCURRENT staging label to this version by including it in this call.

Whenever you move AWSCURRENT, Secrets Manager automatically moves the label AWSPREVIOUS to the version that AWSCURRENT was removed from.

If this action results in the last label being removed from a version, then the version is considered to be 'deprecated' and can be deleted by Secrets Manager.

Required permissions: secretsmanager:UpdateSecretVersionStage. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

", + "ValidateResourcePolicy": "

Validates that a resource policy does not grant a wide range of principals access to your secret. A resource-based policy is optional for secrets.

The API performs three checks when validating the policy:

Required permissions: secretsmanager:ValidateResourcePolicy. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

" }, "shapes": { "AddReplicaRegionListType": { @@ -606,24 +606,24 @@ "SecretIdType": { "base": null, "refs": { - "CancelRotateSecretRequest$SecretId": "

The ARN or name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "DeleteResourcePolicyRequest$SecretId": "

The ARN or name of the secret to delete the attached resource-based policy for.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "DeleteSecretRequest$SecretId": "

The ARN or name of the secret to delete.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "DescribeSecretRequest$SecretId": "

The ARN or name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "GetResourcePolicyRequest$SecretId": "

The ARN or name of the secret to retrieve the attached resource-based policy for.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "GetSecretValueRequest$SecretId": "

The ARN or name of the secret to retrieve.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "ListSecretVersionIdsRequest$SecretId": "

The ARN or name of the secret whose versions you want to list.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "PutResourcePolicyRequest$SecretId": "

The ARN or name of the secret to attach the resource-based policy.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "PutSecretValueRequest$SecretId": "

The ARN or name of the secret to add a new version to.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

If the secret doesn't already exist, use CreateSecret instead.

", + "CancelRotateSecretRequest$SecretId": "

The ARN or name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "DeleteResourcePolicyRequest$SecretId": "

The ARN or name of the secret to delete the attached resource-based policy for.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "DeleteSecretRequest$SecretId": "

The ARN or name of the secret to delete.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "DescribeSecretRequest$SecretId": "

The ARN or name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "GetResourcePolicyRequest$SecretId": "

The ARN or name of the secret to retrieve the attached resource-based policy for.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "GetSecretValueRequest$SecretId": "

The ARN or name of the secret to retrieve.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "ListSecretVersionIdsRequest$SecretId": "

The ARN or name of the secret whose versions you want to list.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "PutResourcePolicyRequest$SecretId": "

The ARN or name of the secret to attach the resource-based policy.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "PutSecretValueRequest$SecretId": "

The ARN or name of the secret to add a new version to.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

If the secret doesn't already exist, use CreateSecret instead.

", "RemoveRegionsFromReplicationRequest$SecretId": "

The ARN or name of the secret.

", "ReplicateSecretToRegionsRequest$SecretId": "

The ARN or name of the secret to replicate.

", - "RestoreSecretRequest$SecretId": "

The ARN or name of the secret to restore.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "RotateSecretRequest$SecretId": "

The ARN or name of the secret to rotate.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", + "RestoreSecretRequest$SecretId": "

The ARN or name of the secret to restore.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "RotateSecretRequest$SecretId": "

The ARN or name of the secret to rotate.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", "StopReplicationToReplicaRequest$SecretId": "

The ARN of the primary secret.

", - "TagResourceRequest$SecretId": "

The identifier for the secret to attach tags to. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "UntagResourceRequest$SecretId": "

The ARN or name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "UpdateSecretRequest$SecretId": "

The ARN or name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", - "UpdateSecretVersionStageRequest$SecretId": "

The ARN or the name of the secret with the version and staging labelsto modify.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

", + "TagResourceRequest$SecretId": "

The identifier for the secret to attach tags to. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "UntagResourceRequest$SecretId": "

The ARN or name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "UpdateSecretRequest$SecretId": "

The ARN or name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", + "UpdateSecretVersionStageRequest$SecretId": "

The ARN or the name of the secret with the version and staging labelsto modify.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

", "ValidateResourcePolicyRequest$SecretId": "

This field is reserved for internal use.

" } }, diff --git a/models/apis/storagegateway/2013-06-30/api-2.json b/models/apis/storagegateway/2013-06-30/api-2.json index 70225fbaf6..059647b033 100644 --- a/models/apis/storagegateway/2013-06-30/api-2.json +++ b/models/apis/storagegateway/2013-06-30/api-2.json @@ -3538,7 +3538,7 @@ "type":"string", "max":500, "min":50, - "pattern":"^arn:(aws|aws-cn|aws-us-gov):storagegateway:[a-z\\-0-9]+:[0-9]+:tape\\/[0-9A-Z]{7,16}$" + "pattern":"^arn:(aws|aws-cn|aws-us-gov):storagegateway:[a-z\\-0-9]+:[0-9]+:tape\\/[0-9A-Z]{5,16}$" }, "TapeARNs":{ "type":"list", @@ -3570,7 +3570,7 @@ "TapeBarcode":{ "type":"string", "max":16, - "min":7, + "min":5, "pattern":"^[A-Z0-9]*$" }, "TapeBarcodePrefix":{ diff --git a/models/apis/storagegateway/2013-06-30/docs-2.json b/models/apis/storagegateway/2013-06-30/docs-2.json index 2c8bba9170..023bea967c 100644 --- a/models/apis/storagegateway/2013-06-30/docs-2.json +++ b/models/apis/storagegateway/2013-06-30/docs-2.json @@ -7,7 +7,7 @@ "AddTagsToResource": "

Adds one or more tags to the specified resource. You use tags to add metadata to resources, which you can use to categorize these resources. For example, you can categorize resources by purpose, owner, environment, or team. Each tag consists of a key and a value, which you define. You can add tags to the following Storage Gateway resources:

You can create a maximum of 50 tags for each resource. Virtual tapes and storage volumes that are recovered to a new gateway maintain their tags.

", "AddUploadBuffer": "

Configures one or more gateway local disks as upload buffer for a specified gateway. This operation is supported for the stored volume, cached volume, and tape gateway types.

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add upload buffer, and one or more disk IDs that you want to configure as upload buffer.

", "AddWorkingStorage": "

Configures one or more gateway local disks as working storage for a gateway. This operation is only supported in the stored volume gateway type. This operation is deprecated in cached volume API version 20120630. Use AddUploadBuffer instead.

Working storage is also referred to as upload buffer. You can also use the AddUploadBuffer operation to add upload buffer to a stored volume gateway.

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add working storage, and one or more disk IDs that you want to configure as working storage.

", - "AssignTapePool": "

Assigns a tape to a tape pool for archiving. The tape assigned to a pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the S3 storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

Valid Values: GLACIER | DEEP_ARCHIVE

", + "AssignTapePool": "

Assigns a tape to a tape pool for archiving. The tape assigned to a pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the S3 storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

", "AssociateFileSystem": "

Associate an Amazon FSx file system with the FSx File Gateway. After the association process is complete, the file shares on the Amazon FSx file system are available for access through the gateway. This operation only supports the FSx File Gateway type.

", "AttachVolume": "

Connects a volume to an iSCSI connection and then attaches the volume to the specified gateway. Detaching and attaching a volume enables you to recover your data from one gateway to a different gateway without creating a snapshot. It also makes it easier to move your volumes from an on-premises gateway to a gateway hosted on an Amazon EC2 instance.

", "CancelArchival": "

Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated. This operation is only supported in the tape gateway type.

", @@ -26,7 +26,7 @@ "DeleteChapCredentials": "

Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair. This operation is supported in volume and tape gateway types.

", "DeleteFileShare": "

Deletes a file share from an S3 File Gateway. This operation is only supported for S3 File Gateways.

", "DeleteGateway": "

Deletes a gateway. To specify which gateway to delete, use the Amazon Resource Name (ARN) of the gateway in your request. The operation deletes the gateway; however, it does not delete the gateway virtual machine (VM) from your host computer.

After you delete a gateway, you cannot reactivate it. Completed snapshots of the gateway volumes are not deleted upon deleting the gateway, however, pending snapshots will not complete. After you delete a gateway, your next step is to remove it from your environment.

You no longer pay software charges after the gateway is deleted; however, your existing Amazon EBS snapshots persist and you will continue to be billed for these snapshots. You can choose to remove all remaining Amazon EBS snapshots by canceling your Amazon EC2 subscription.  If you prefer not to cancel your Amazon EC2 subscription, you can delete your snapshots using the Amazon EC2 console. For more information, see the Storage Gateway detail page.

", - "DeleteSnapshotSchedule": "

Deletes a snapshot of a volume.

You can take snapshots of your gateway volumes on a scheduled or ad hoc basis. This API action enables you to delete a snapshot schedule for a volume. For more information, see Backing up your volumes. In the DeleteSnapshotSchedule request, you identify the volume by providing its Amazon Resource Name (ARN). This operation is only supported in stored and cached volume gateway types.

To list or delete a snapshot, you must use the Amazon EC2 API. For more information, go to DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.

", + "DeleteSnapshotSchedule": "

Deletes a snapshot of a volume.

You can take snapshots of your gateway volumes on a scheduled or ad hoc basis. This API action enables you to delete a snapshot schedule for a volume. For more information, see Backing up your volumes. In the DeleteSnapshotSchedule request, you identify the volume by providing its Amazon Resource Name (ARN). This operation is only supported for cached volume gateway types.

To list or delete a snapshot, you must use the Amazon EC2 API. For more information, go to DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.

", "DeleteTape": "

Deletes the specified virtual tape. This operation is only supported in the tape gateway type.

", "DeleteTapeArchive": "

Deletes the specified virtual tape from the virtual tape shelf (VTS). This operation is only supported in the tape gateway type.

", "DeleteTapePool": "

Delete a custom tape pool. A custom tape pool can only be deleted if there are no tapes in the pool and if there are no automatic tape creation policies that reference the custom tape pool.

", @@ -66,8 +66,8 @@ "ListVolumeInitiators": "

Lists iSCSI initiators that are connected to a volume. You can use this operation to determine whether a volume is being used or not. This operation is only supported in the cached volume and stored volume gateway types.

", "ListVolumeRecoveryPoints": "

Lists the recovery points for a specified gateway. This operation is only supported in the cached volume gateway type.

Each cache volume has one recovery point. A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot or clone a new cached volume from a source volume. To create a snapshot from a volume recovery point use the CreateSnapshotFromVolumeRecoveryPoint operation.

", "ListVolumes": "

Lists the iSCSI stored volumes of a gateway. Results are sorted by volume ARN. The response includes only the volume ARNs. If you want additional volume information, use the DescribeStorediSCSIVolumes or the DescribeCachediSCSIVolumes API.

The operation supports pagination. By default, the operation returns a maximum of up to 100 volumes. You can optionally specify the Limit field in the body to limit the number of volumes in the response. If the number of volumes returned in the response is truncated, the response includes a Marker field. You can use this Marker value in your subsequent request to retrieve the next set of volumes. This operation is only supported in the cached volume and stored volume gateway types.

", - "NotifyWhenUploaded": "

Sends you notification through CloudWatch Events when all files written to your file share have been uploaded to Amazon S3.

Storage Gateway can send a notification through Amazon CloudWatch Events when all files written to your file share up to that point in time have been uploaded to Amazon S3. These files include files written to the file share up to the time that you make a request for notification. When the upload is done, Storage Gateway sends you notification through an Amazon CloudWatch Event. You can configure CloudWatch Events to send the notification through event targets such as Amazon SNS or Lambda function. This operation is only supported for S3 File Gateways.

For more information, see Getting file upload notification in the Storage Gateway User Guide.

", - "RefreshCache": "

Refreshes the cached inventory of objects for the specified file share. This operation finds objects in the Amazon S3 bucket that were added, removed, or replaced since the gateway last listed the bucket's contents and cached the results. This operation does not import files into the S3 File Gateway cache storage. It only updates the cached inventory to reflect changes in the inventory of the objects in the S3 bucket. This operation is only supported in the S3 File Gateway types.

You can subscribe to be notified through an Amazon CloudWatch event when your RefreshCache operation completes. For more information, see Getting notified about file operations in the Storage Gateway User Guide. This operation is Only supported for S3 File Gateways.

When this API is called, it only initiates the refresh operation. When the API call completes and returns a success code, it doesn't necessarily mean that the file refresh has completed. You should use the refresh-complete notification to determine that the operation has completed before you check for new files on the gateway file share. You can subscribe to be notified through a CloudWatch event when your RefreshCache operation completes.

Throttle limit: This API is asynchronous, so the gateway will accept no more than two refreshes at any time. We recommend using the refresh-complete CloudWatch event notification before issuing additional requests. For more information, see Getting notified about file operations in the Storage Gateway User Guide.

If you invoke the RefreshCache API when two requests are already being processed, any new request will cause an InvalidGatewayRequestException error because too many requests were sent to the server.

For more information, see Getting notified about file operations in the Storage Gateway User Guide.

", + "NotifyWhenUploaded": "

Sends you notification through CloudWatch Events when all files written to your file share have been uploaded to S3. Amazon S3.

Storage Gateway can send a notification through Amazon CloudWatch Events when all files written to your file share up to that point in time have been uploaded to Amazon S3. These files include files written to the file share up to the time that you make a request for notification. When the upload is done, Storage Gateway sends you notification through an Amazon CloudWatch Event. You can configure CloudWatch Events to send the notification through event targets such as Amazon SNS or Lambda function. This operation is only supported for S3 File Gateways.

For more information, see Getting file upload notification in the Storage Gateway User Guide.

", + "RefreshCache": "

Refreshes the cached inventory of objects for the specified file share. This operation finds objects in the Amazon S3 bucket that were added, removed, or replaced since the gateway last listed the bucket's contents and cached the results. This operation does not import files into the S3 File Gateway cache storage. It only updates the cached inventory to reflect changes in the inventory of the objects in the S3 bucket. This operation is only supported in the S3 File Gateway types.

You can subscribe to be notified through an Amazon CloudWatch event when your RefreshCache operation completes. For more information, see Getting notified about file operations in the Storage Gateway User Guide. This operation is Only supported for S3 File Gateways.

When this API is called, it only initiates the refresh operation. When the API call completes and returns a success code, it doesn't necessarily mean that the file refresh has completed. You should use the refresh-complete notification to determine that the operation has completed before you check for new files on the gateway file share. You can subscribe to be notified through a CloudWatch event when your RefreshCache operation completes.

Throttle limit: This API is asynchronous, so the gateway will accept no more than two refreshes at any time. We recommend using the refresh-complete CloudWatch event notification before issuing additional requests. For more information, see Getting notified about file operations in the Storage Gateway User Guide.

The S3 bucket name does not need to be included when entering the list of folders in the FolderList parameter.

For more information, see Getting notified about file operations in the Storage Gateway User Guide.

", "RemoveTagsFromResource": "

Removes one or more tags from the specified resource. This operation is supported in storage gateways of all types.

", "ResetCache": "

Resets all cache disks that have encountered an error and makes the disks available for reconfiguration as cache storage. If your cache disk encounters an error, the gateway prevents read and write operations on virtual tapes in the gateway. For example, an error can occur when a disk is corrupted or removed from the gateway. When a cache is reset, the gateway loses its cache storage. At this point, you can reconfigure the disks as cache disks. This operation is only supported in the cached volume and tape types.

If the cache disk you are resetting contains data that has not been uploaded to Amazon S3 yet, that data can be lost. After you reset cache disks, there will be no configured cache disks left in the gateway, so you must configure at least one new cache disk for your gateway to function properly.

", "RetrieveTapeArchive": "

Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a tape gateway. Virtual tapes archived in the VTS are not associated with any gateway. However after a tape is retrieved, it is associated with a gateway, even though it is also listed in the VTS, that is, archive. This operation is only supported in the tape gateway type.

Once a tape is successfully retrieved to a gateway, it cannot be retrieved again to another gateway. You must archive the tape again before you can retrieve it to another gateway. This operation is only supported in the tape gateway type.

", @@ -413,7 +413,7 @@ "CloudWatchLogGroupARN": { "base": null, "refs": { - "DescribeGatewayInformationOutput$CloudWatchLogGroupARN": "

The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor events in the gateway.

", + "DescribeGatewayInformationOutput$CloudWatchLogGroupARN": "

The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor events in the gateway. This field only only exist and returns once it have been chosen and set by the SGW service, based on the OS version of the gateway VM

", "UpdateGatewayInformationInput$CloudWatchLogGroupARN": "

The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that you want to use to monitor and log events in the gateway.

For more information, see What is Amazon CloudWatch Logs?

" } }, @@ -1485,7 +1485,7 @@ "LastSoftwareUpdate": { "base": null, "refs": { - "DescribeGatewayInformationOutput$LastSoftwareUpdate": "

The date on which the last software update was applied to the gateway. If the gateway has never been updated, this field does not return a value in the response.

" + "DescribeGatewayInformationOutput$LastSoftwareUpdate": "

The date on which the last software update was applied to the gateway. If the gateway has never been updated, this field does not return a value in the response. This only only exist and returns once it have been chosen and set by the SGW service, based on the OS version of the gateway VM

" } }, "ListAutomaticTapeCreationPoliciesInput": { @@ -1796,13 +1796,13 @@ "PoolId": { "base": null, "refs": { - "AssignTapePoolInput$PoolId": "

The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

Valid Values: GLACIER | DEEP_ARCHIVE

", - "AutomaticTapeCreationRule$PoolId": "

The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the Amazon S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

Valid Values: GLACIER | DEEP_ARCHIVE

", - "CreateTapeWithBarcodeInput$PoolId": "

The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Deep Archive) that corresponds to the pool.

Valid Values: GLACIER | DEEP_ARCHIVE

", - "CreateTapesInput$PoolId": "

The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

Valid Values: GLACIER | DEEP_ARCHIVE

", - "Tape$PoolId": "

The ID of the pool that contains tapes that will be archived. The tapes in this pool are archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

Valid Values: GLACIER | DEEP_ARCHIVE

", - "TapeArchive$PoolId": "

The ID of the pool that was used to archive the tape. The tapes in this pool are archived in the S3 storage class that is associated with the pool.

Valid Values: GLACIER | DEEP_ARCHIVE

", - "TapeInfo$PoolId": "

The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

Valid Values: GLACIER | DEEP_ARCHIVE

" + "AssignTapePoolInput$PoolId": "

The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

", + "AutomaticTapeCreationRule$PoolId": "

The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the Amazon S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

", + "CreateTapeWithBarcodeInput$PoolId": "

The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Deep Archive) that corresponds to the pool.

", + "CreateTapesInput$PoolId": "

The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

", + "Tape$PoolId": "

The ID of the pool that contains tapes that will be archived. The tapes in this pool are archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

", + "TapeArchive$PoolId": "

The ID of the pool that was used to archive the tape. The tapes in this pool are archived in the S3 storage class that is associated with the pool.

", + "TapeInfo$PoolId": "

The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

" } }, "PoolInfo": { @@ -2070,12 +2070,12 @@ "StorageClass": { "base": "

", "refs": { - "CreateNFSFileShareInput$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

", - "CreateSMBFileShareInput$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

", - "NFSFileShareInfo$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

", - "SMBFileShareInfo$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

", - "UpdateNFSFileShareInput$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

", - "UpdateSMBFileShareInput$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

" + "CreateNFSFileShareInput$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_STANDARD. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

", + "CreateSMBFileShareInput$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_STANDARD. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

", + "NFSFileShareInfo$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_STANDARD. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

", + "SMBFileShareInfo$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_STANDARD. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

", + "UpdateNFSFileShareInput$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_STANDARD. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

", + "UpdateSMBFileShareInput$DefaultStorageClass": "

The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_STANDARD. Optional.

Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA

" } }, "StorageGatewayError": { @@ -2662,7 +2662,7 @@ "VolumeUsedInBytes": { "base": null, "refs": { - "CachediSCSIVolume$VolumeUsedInBytes": "

The size of the data stored on the volume in bytes. This value is calculated based on the number of blocks that are touched, instead of the actual amount of data written. This value can be useful for sequential write patterns but less accurate for random write patterns. VolumeUsedInBytes is different from the compressed size of the volume, which is the value that is used to calculate your bill.

This value is not available for volumes created prior to May 13, 2015, until you store data on the volume.

", + "CachediSCSIVolume$VolumeUsedInBytes": "

The size of the data stored on the volume in bytes. This value is calculated based on the number of blocks that are touched, instead of the actual amount of data written. This value can be useful for sequential write patterns but less accurate for random write patterns. VolumeUsedInBytes is different from the compressed size of the volume, which is the value that is used to calculate your bill.

This value is not available for volumes created prior to May 13, 2015, until you store data on the volume.

If you use a delete tool that overwrites the data on your volume with random data, your usage will not be reduced. This is because the random data is not compressible. If you want to reduce the amount of billed storage on your volume, we recommend overwriting your files with zeros to compress the data to a negligible amount of actual storage.

", "StorediSCSIVolume$VolumeUsedInBytes": "

The size of the data stored on the volume in bytes. This value is calculated based on the number of blocks that are touched, instead of the actual amount of data written. This value can be useful for sequential write patterns but less accurate for random write patterns. VolumeUsedInBytes is different from the compressed size of the volume, which is the value that is used to calculate your bill.

This value is not available for volumes created prior to May 13, 2015, until you store data on the volume.

" } }, diff --git a/models/apis/wisdom/2020-10-19/api-2.json b/models/apis/wisdom/2020-10-19/api-2.json index 664d7837bd..7630d34f4d 100644 --- a/models/apis/wisdom/2020-10-19/api-2.json +++ b/models/apis/wisdom/2020-10-19/api-2.json @@ -157,6 +157,7 @@ "output":{"shape":"DeleteKnowledgeBaseResponse"}, "errors":[ {"shape":"ConflictException"}, + {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"} ], @@ -687,14 +688,16 @@ "status":{"shape":"ContentStatus"}, "tags":{"shape":"Tags"}, "title":{"shape":"ContentTitle"}, - "url":{"shape":"SyntheticContentDataUrl"}, + "url":{"shape":"Url"}, "urlExpiry":{"shape":"SyntheticTimestamp_epoch_seconds"} } }, "ContentMetadata":{ "type":"map", "key":{"shape":"NonEmptyString"}, - "value":{"shape":"NonEmptyString"} + "value":{"shape":"NonEmptyString"}, + "max":10, + "min":0 }, "ContentReference":{ "type":"structure", @@ -756,7 +759,7 @@ }, "ContentType":{ "type":"string", - "pattern":"^(text/(plain|html))|(application/x\\.wisdom-json;source=(salesforce|servicenow))$" + "pattern":"^(text/(plain|html))|(application/x\\.wisdom-json;source=(salesforce|servicenow|zendesk))$" }, "CreateAssistantAssociationRequest":{ "type":"structure", @@ -993,7 +996,7 @@ "type":"structure", "members":{ "highlights":{"shape":"Highlights"}, - "text":{"shape":"SyntheticDocumentTextString"} + "text":{"shape":"SensitiveString"} } }, "Filter":{ @@ -1169,7 +1172,8 @@ "type":"structure", "required":["recommendations"], "members":{ - "recommendations":{"shape":"RecommendationList"} + "recommendations":{"shape":"RecommendationList"}, + "triggers":{"shape":"RecommendationTriggerList"} } }, "GetSessionRequest":{ @@ -1513,6 +1517,12 @@ "results":{"shape":"QueryResultsList"} } }, + "QueryRecommendationTriggerData":{ + "type":"structure", + "members":{ + "text":{"shape":"QueryText"} + } + }, "QueryResultsList":{ "type":"list", "member":{"shape":"ResultData"} @@ -1531,7 +1541,8 @@ "document":{"shape":"Document"}, "recommendationId":{"shape":"String"}, "relevanceLevel":{"shape":"RelevanceLevel"}, - "relevanceScore":{"shape":"RelevanceScore"} + "relevanceScore":{"shape":"RelevanceScore"}, + "type":{"shape":"RecommendationType"} } }, "RecommendationIdList":{ @@ -1542,6 +1553,50 @@ "type":"list", "member":{"shape":"RecommendationData"} }, + "RecommendationSourceType":{ + "type":"string", + "enum":[ + "ISSUE_DETECTION", + "RULE_EVALUATION", + "OTHER" + ] + }, + "RecommendationTrigger":{ + "type":"structure", + "required":[ + "data", + "id", + "recommendationIds", + "source", + "type" + ], + "members":{ + "data":{"shape":"RecommendationTriggerData"}, + "id":{"shape":"Uuid"}, + "recommendationIds":{"shape":"RecommendationIdList"}, + "source":{"shape":"RecommendationSourceType"}, + "type":{"shape":"RecommendationTriggerType"} + } + }, + "RecommendationTriggerData":{ + "type":"structure", + "members":{ + "query":{"shape":"QueryRecommendationTriggerData"} + }, + "union":true + }, + "RecommendationTriggerList":{ + "type":"list", + "member":{"shape":"RecommendationTrigger"} + }, + "RecommendationTriggerType":{ + "type":"string", + "enum":["QUERY"] + }, + "RecommendationType":{ + "type":"string", + "enum":["KNOWLEDGE_CONTENT"] + }, "RelevanceLevel":{ "type":"string", "enum":[ @@ -1673,6 +1728,10 @@ "sessionSummaries":{"shape":"SessionSummaries"} } }, + "SensitiveString":{ + "type":"string", + "sensitive":true + }, "ServerSideEncryptionConfiguration":{ "type":"structure", "members":{ @@ -1757,27 +1816,11 @@ "members":{ "headersToInclude":{"shape":"Headers"}, "uploadId":{"shape":"NonEmptyString"}, - "url":{"shape":"SyntheticStartContentUploadResponseUrl"}, + "url":{"shape":"Url"}, "urlExpiry":{"shape":"SyntheticTimestamp_epoch_seconds"} } }, "String":{"type":"string"}, - "SyntheticContentDataUrl":{ - "type":"string", - "max":4096, - "min":1, - "sensitive":true - }, - "SyntheticDocumentTextString":{ - "type":"string", - "sensitive":true - }, - "SyntheticStartContentUploadResponseUrl":{ - "type":"string", - "max":4096, - "min":1, - "sensitive":true - }, "SyntheticTimestamp_epoch_seconds":{ "type":"timestamp", "timestampFormat":"unixTimestamp" @@ -1917,6 +1960,12 @@ "max":4096, "min":1 }, + "Url":{ + "type":"string", + "max":4096, + "min":1, + "sensitive":true + }, "Uuid":{ "type":"string", "pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" diff --git a/models/apis/wisdom/2020-10-19/docs-2.json b/models/apis/wisdom/2020-10-19/docs-2.json index e28adc1f81..a9ee1df192 100644 --- a/models/apis/wisdom/2020-10-19/docs-2.json +++ b/models/apis/wisdom/2020-10-19/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

All Amazon Connect Wisdom functionality is accessible using the API. For example, you can create an assistant and a knowledge base.

 <p>Some more advanced features are only accessible using the Wisdom API. For example, you can manually manage content by uploading custom files and control their lifecycle. </p> 
", + "service": "

Amazon Connect Wisdom delivers agents the information they need to solve customer issues as they're actively speaking with customers. Agents can search across connected repositories from within their agent desktop to find answers quickly. Use the Amazon Connect Wisdom APIs to create an assistant and a knowledge base, for example, or manage content by uploading custom files.

", "operations": { "CreateAssistant": "

Creates an Amazon Connect Wisdom assistant.

", "CreateAssistantAssociation": "

Creates an association between an Amazon Connect Wisdom assistant and another resource. Currently, the only supported association is with a knowledge base. An assistant can have only a single association.

", @@ -49,12 +49,12 @@ "Arn": { "base": null, "refs": { - "AssistantAssociationData$assistantArn": "

The Amazon Resource Name (ARN) of the Wisdom assistant

", + "AssistantAssociationData$assistantArn": "

The Amazon Resource Name (ARN) of the Wisdom assistant.

", "AssistantAssociationData$assistantAssociationArn": "

The Amazon Resource Name (ARN) of the assistant association.

", - "AssistantAssociationSummary$assistantArn": "

The Amazon Resource Name (ARN) of the Wisdom assistant

", + "AssistantAssociationSummary$assistantArn": "

The Amazon Resource Name (ARN) of the Wisdom assistant.

", "AssistantAssociationSummary$assistantAssociationArn": "

The Amazon Resource Name (ARN) of the assistant association.

", - "AssistantData$assistantArn": "

The Amazon Resource Name (ARN) of the Wisdom assistant

", - "AssistantSummary$assistantArn": "

The Amazon Resource Name (ARN) of the Wisdom assistant

", + "AssistantData$assistantArn": "

The Amazon Resource Name (ARN) of the Wisdom assistant.

", + "AssistantSummary$assistantArn": "

The Amazon Resource Name (ARN) of the Wisdom assistant.

", "ContentData$contentArn": "

The Amazon Resource Name (ARN) of the content.

", "ContentData$knowledgeBaseArn": "

The Amazon Resource Name (ARN) of the knowledge base.

", "ContentReference$contentArn": "

The Amazon Resource Name (ARN) of the content.

", @@ -66,7 +66,7 @@ "KnowledgeBaseSummary$knowledgeBaseArn": "

The Amazon Resource Name (ARN) of the knowledge base.

", "ListTagsForResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", "SessionData$sessionArn": "

The Amazon Resource Name (ARN) of the session.

", - "SessionSummary$assistantArn": "

The Amazon Resource Name (ARN) of the Wisdom assistant

", + "SessionSummary$assistantArn": "

The Amazon Resource Name (ARN) of the Wisdom assistant.

", "SessionSummary$sessionArn": "

The Amazon Resource Name (ARN) of the session.

", "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", "UntagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

" @@ -621,7 +621,7 @@ "ListKnowledgeBasesRequest$nextToken": "

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

", "ListKnowledgeBasesResponse$nextToken": "

If there are additional results, this is the token for the next set of results.

", "ObjectFieldsList$member": null, - "ServerSideEncryptionConfiguration$kmsKeyId": "

The KMS key. For information about valid ID values, see Key identifiers (KeyId) in the AWS Key Management Service Developer Guide.

", + "ServerSideEncryptionConfiguration$kmsKeyId": "

The KMS key. For information about valid ID values, see Key identifiers (KeyId).

", "StartContentUploadResponse$uploadId": "

The identifier of the upload.

", "UpdateContentRequest$revisionId": "

The revisionId of the content resource to update, taken from an earlier call to GetContent, GetContentSummary, SearchContent, or ListContents. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last read. If it has been modified, this API throws a PreconditionFailedException.

", "UpdateContentRequest$uploadId": "

A pointer to the uploaded asset. This value is returned by StartContentUpload.

" @@ -658,7 +658,7 @@ "ObjectFieldsList": { "base": null, "refs": { - "AppIntegrationsConfiguration$objectFields": "

The fields from the source that are made available to your agents in Wisdom.

Make sure to include additional field(s); these are indexed and used to source recommendations.

" + "AppIntegrationsConfiguration$objectFields": "

The fields from the source that are made available to your agents in Wisdom.

Make sure to include additional fields. These fields are indexed and used to source recommendations.

" } }, "PreconditionFailedException": { @@ -676,6 +676,12 @@ "refs": { } }, + "QueryRecommendationTriggerData": { + "base": "

Data associated with the QUERY RecommendationTriggerType.

", + "refs": { + "RecommendationTriggerData$query": "

Data associated with the QUERY RecommendationTriggerType.

" + } + }, "QueryResultsList": { "base": null, "refs": { @@ -685,7 +691,8 @@ "QueryText": { "base": null, "refs": { - "QueryAssistantRequest$queryText": "

The text to search for.

" + "QueryAssistantRequest$queryText": "

The text to search for.

", + "QueryRecommendationTriggerData$text": "

The text associated with the recommendation trigger.

" } }, "RecommendationData": { @@ -698,7 +705,8 @@ "base": null, "refs": { "NotifyRecommendationsReceivedRequest$recommendationIds": "

The identifiers of the recommendations.

", - "NotifyRecommendationsReceivedResponse$recommendationIds": "

The identifiers of the recommendations.

" + "NotifyRecommendationsReceivedResponse$recommendationIds": "

The identifiers of the recommendations.

", + "RecommendationTrigger$recommendationIds": "

The identifiers of the recommendations.

" } }, "RecommendationList": { @@ -707,6 +715,42 @@ "GetRecommendationsResponse$recommendations": "

The recommendations.

" } }, + "RecommendationSourceType": { + "base": null, + "refs": { + "RecommendationTrigger$source": "

The source of the recommendation trigger.

" + } + }, + "RecommendationTrigger": { + "base": "

A recommendation trigger provides context on the event that produced the referenced recommendations. Recommendations are only referenced in recommendationIds by a single RecommendationTrigger.

", + "refs": { + "RecommendationTriggerList$member": null + } + }, + "RecommendationTriggerData": { + "base": "

A union type containing information related to the trigger.

", + "refs": { + "RecommendationTrigger$data": "

A union type containing information related to the trigger.

" + } + }, + "RecommendationTriggerList": { + "base": null, + "refs": { + "GetRecommendationsResponse$triggers": "

The triggers corresponding to recommendations.

" + } + }, + "RecommendationTriggerType": { + "base": null, + "refs": { + "RecommendationTrigger$type": "

The type of recommendation trigger.

" + } + }, + "RecommendationType": { + "base": null, + "refs": { + "RecommendationData$type": "

The type of recommendation.

" + } + }, "RelevanceLevel": { "base": null, "refs": { @@ -776,6 +820,12 @@ "refs": { } }, + "SensitiveString": { + "base": null, + "refs": { + "DocumentText$text": "

Text in the document.

" + } + }, "ServerSideEncryptionConfiguration": { "base": "

The KMS key used for encryption.

", "refs": { @@ -816,7 +866,7 @@ "refs": { "CreateKnowledgeBaseRequest$sourceConfiguration": "

The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.

", "KnowledgeBaseData$sourceConfiguration": "

Source configuration information about the knowledge base.

", - "KnowledgeBaseSummary$sourceConfiguration": "

[KEVIN]

" + "KnowledgeBaseSummary$sourceConfiguration": "

Configuration information about the external data source.

" } }, "StartContentUploadRequest": { @@ -846,24 +896,6 @@ "ValidationException$message": null } }, - "SyntheticContentDataUrl": { - "base": null, - "refs": { - "ContentData$url": "

The URL of the content.

" - } - }, - "SyntheticDocumentTextString": { - "base": null, - "refs": { - "DocumentText$text": "

Text in the document.

" - } - }, - "SyntheticStartContentUploadResponseUrl": { - "base": null, - "refs": { - "StartContentUploadResponse$url": "

The URL of the upload.

" - } - }, "SyntheticTimestamp_epoch_seconds": { "base": null, "refs": { @@ -967,25 +999,33 @@ "UpdateKnowledgeBaseTemplateUriRequest$templateUri": "

The template URI to update.

" } }, + "Url": { + "base": null, + "refs": { + "ContentData$url": "

The URL of the content.

", + "StartContentUploadResponse$url": "

The URL of the upload.

" + } + }, "Uuid": { "base": null, "refs": { "AssistantAssociationData$assistantAssociationId": "

The identifier of the assistant association.

", "AssistantAssociationData$assistantId": "

The identifier of the Wisdom assistant.

", - "AssistantAssociationInputData$knowledgeBaseId": "

The the identifier of the knowledge base.

", + "AssistantAssociationInputData$knowledgeBaseId": "

The identifier of the knowledge base.

", "AssistantAssociationSummary$assistantAssociationId": "

The identifier of the assistant association.

", "AssistantAssociationSummary$assistantId": "

The identifier of the Wisdom assistant.

", "AssistantData$assistantId": "

The identifier of the Wisdom assistant.

", "AssistantSummary$assistantId": "

The identifier of the Wisdom assistant.

", "ContentData$contentId": "

The identifier of the content.

", - "ContentData$knowledgeBaseId": "

The the identifier of the knowledge base.

", + "ContentData$knowledgeBaseId": "

The identifier of the knowledge base.

", "ContentReference$contentId": "

The identifier of the content.

", - "ContentReference$knowledgeBaseId": "

The the identifier of the knowledge base.

", + "ContentReference$knowledgeBaseId": "

The identifier of the knowledge base.

", "ContentSummary$contentId": "

The identifier of the content.

", - "ContentSummary$knowledgeBaseId": "

The the identifier of the knowledge base.

", - "KnowledgeBaseAssociationData$knowledgeBaseId": "

The the identifier of the knowledge base.

", - "KnowledgeBaseData$knowledgeBaseId": "

The the identifier of the knowledge base.

", - "KnowledgeBaseSummary$knowledgeBaseId": "

The the identifier of the knowledge base.

", + "ContentSummary$knowledgeBaseId": "

The identifier of the knowledge base.

", + "KnowledgeBaseAssociationData$knowledgeBaseId": "

The identifier of the knowledge base.

", + "KnowledgeBaseData$knowledgeBaseId": "

The identifier of the knowledge base.

", + "KnowledgeBaseSummary$knowledgeBaseId": "

The identifier of the knowledge base.

", + "RecommendationTrigger$id": "

The identifier of the recommendation trigger.

", "ResultData$resultId": "

The identifier of the result data.

", "SessionData$sessionId": "

The identifier of the session.

", "SessionSummary$assistantId": "

The identifier of the Wisdom assistant.

", @@ -996,42 +1036,42 @@ "base": null, "refs": { "CreateAssistantAssociationRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "CreateContentRequest$knowledgeBaseId": "

The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "CreateContentRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "CreateSessionRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "DeleteAssistantAssociationRequest$assistantAssociationId": "

The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "DeleteAssistantAssociationRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "DeleteAssistantRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "DeleteContentRequest$contentId": "

The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "DeleteContentRequest$knowledgeBaseId": "

The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "DeleteContentRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "DeleteKnowledgeBaseRequest$knowledgeBaseId": "

The knowledge base to delete content from. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "GetAssistantAssociationRequest$assistantAssociationId": "

The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "GetAssistantAssociationRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "GetAssistantRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "GetContentRequest$contentId": "

The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "GetContentRequest$knowledgeBaseId": "

The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "GetContentRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "GetContentSummaryRequest$contentId": "

The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "GetContentSummaryRequest$knowledgeBaseId": "

The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "GetKnowledgeBaseRequest$knowledgeBaseId": "

The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "GetContentSummaryRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "GetKnowledgeBaseRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "GetRecommendationsRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "GetRecommendationsRequest$sessionId": "

The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "GetSessionRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "GetSessionRequest$sessionId": "

The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "ListAssistantAssociationsRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "ListContentsRequest$knowledgeBaseId": "

The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "ListContentsRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "NotifyRecommendationsReceivedRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "NotifyRecommendationsReceivedRequest$sessionId": "

The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "QueryAssistantRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "RemoveKnowledgeBaseTemplateUriRequest$knowledgeBaseId": "

The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "SearchContentRequest$knowledgeBaseId": "

The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "RemoveKnowledgeBaseTemplateUriRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "SearchContentRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "SearchSessionsRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "StartContentUploadRequest$knowledgeBaseId": "

The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "StartContentUploadRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "UpdateContentRequest$contentId": "

The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "UpdateContentRequest$knowledgeBaseId": "

The the identifier of the knowledge base. Can be either the ID or the ARN

", - "UpdateKnowledgeBaseTemplateUriRequest$knowledgeBaseId": "

The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

" + "UpdateContentRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN

", + "UpdateKnowledgeBaseTemplateUriRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

" } }, "ValidationException": { - "base": "

The input fails to satisfy the constraints specified by an AWS service.

", + "base": "

The input fails to satisfy the constraints specified by a service.

", "refs": { } }, diff --git a/service/connectwisdomservice/api.go b/service/connectwisdomservice/api.go index d5feefe31e..45631c544b 100644 --- a/service/connectwisdomservice/api.go +++ b/service/connectwisdomservice/api.go @@ -74,7 +74,7 @@ func (c *ConnectWisdomService) CreateAssistantRequest(input *CreateAssistantInpu // being created or mutated. // // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * ServiceQuotaExceededException // You've exceeded your service quota. To perform the requested action, remove @@ -169,7 +169,7 @@ func (c *ConnectWisdomService) CreateAssistantAssociationRequest(input *CreateAs // being created or mutated. // // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * ServiceQuotaExceededException // You've exceeded your service quota. To perform the requested action, remove @@ -267,7 +267,7 @@ func (c *ConnectWisdomService) CreateContentRequest(input *CreateContentInput) ( // being created or mutated. // // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * ServiceQuotaExceededException // You've exceeded your service quota. To perform the requested action, remove @@ -375,7 +375,7 @@ func (c *ConnectWisdomService) CreateKnowledgeBaseRequest(input *CreateKnowledge // being created or mutated. // // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * ServiceQuotaExceededException // You've exceeded your service quota. To perform the requested action, remove @@ -470,7 +470,7 @@ func (c *ConnectWisdomService) CreateSessionRequest(input *CreateSessionInput) ( // being created or mutated. // // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * ResourceNotFoundException // The specified resource does not exist. @@ -553,7 +553,7 @@ func (c *ConnectWisdomService) DeleteAssistantRequest(input *DeleteAssistantInpu // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -639,7 +639,7 @@ func (c *ConnectWisdomService) DeleteAssistantAssociationRequest(input *DeleteAs // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -725,7 +725,7 @@ func (c *ConnectWisdomService) DeleteContentRequest(input *DeleteContentInput) ( // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -824,6 +824,9 @@ func (c *ConnectWisdomService) DeleteKnowledgeBaseRequest(input *DeleteKnowledge // that accepts name, a conflicting resource (usually with the same name) is // being created or mutated. // +// * ValidationException +// The input fails to satisfy the constraints specified by a service. +// // * AccessDeniedException // You do not have sufficient access to perform this action. // @@ -907,7 +910,7 @@ func (c *ConnectWisdomService) GetAssistantRequest(input *GetAssistantInput) (re // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -992,7 +995,7 @@ func (c *ConnectWisdomService) GetAssistantAssociationRequest(input *GetAssistan // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -1077,7 +1080,7 @@ func (c *ConnectWisdomService) GetContentRequest(input *GetContentInput) (req *r // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -1162,7 +1165,7 @@ func (c *ConnectWisdomService) GetContentSummaryRequest(input *GetContentSummary // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -1247,7 +1250,7 @@ func (c *ConnectWisdomService) GetKnowledgeBaseRequest(input *GetKnowledgeBaseIn // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -1338,7 +1341,7 @@ func (c *ConnectWisdomService) GetRecommendationsRequest(input *GetRecommendatio // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -1423,7 +1426,7 @@ func (c *ConnectWisdomService) GetSessionRequest(input *GetSessionInput) (req *r // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -1514,7 +1517,7 @@ func (c *ConnectWisdomService) ListAssistantAssociationsRequest(input *ListAssis // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -1657,7 +1660,7 @@ func (c *ConnectWisdomService) ListAssistantsRequest(input *ListAssistantsInput) // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -1797,7 +1800,7 @@ func (c *ConnectWisdomService) ListContentsRequest(input *ListContentsInput) (re // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -1940,7 +1943,7 @@ func (c *ConnectWisdomService) ListKnowledgeBasesRequest(input *ListKnowledgeBas // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -2157,7 +2160,7 @@ func (c *ConnectWisdomService) NotifyRecommendationsReceivedRequest(input *Notif // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -2249,7 +2252,7 @@ func (c *ConnectWisdomService) QueryAssistantRequest(input *QueryAssistantInput) // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -2387,7 +2390,7 @@ func (c *ConnectWisdomService) RemoveKnowledgeBaseTemplateUriRequest(input *Remo // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -2479,7 +2482,7 @@ func (c *ConnectWisdomService) SearchContentRequest(input *SearchContentInput) ( // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -2622,7 +2625,7 @@ func (c *ConnectWisdomService) SearchSessionsRequest(input *SearchSessionsInput) // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -2764,7 +2767,7 @@ func (c *ConnectWisdomService) StartContentUploadRequest(input *StartContentUplo // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -3013,7 +3016,7 @@ func (c *ConnectWisdomService) UpdateContentRequest(input *UpdateContentInput) ( // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -3106,7 +3109,7 @@ func (c *ConnectWisdomService) UpdateKnowledgeBaseTemplateUriRequest(input *Upda // // Returned Error Types: // * ValidationException -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. // // * AccessDeniedException // You do not have sufficient access to perform this action. @@ -3221,8 +3224,8 @@ type AppIntegrationsConfiguration struct { // you must include at least number, short_description, sys_mod_count, workflow_state, // and active. // - // Make sure to include additional field(s); these are indexed and used to source - // recommendations. + // Make sure to include additional fields. These fields are indexed and used + // to source recommendations. // // ObjectFields is a required field ObjectFields []*string `locationName:"objectFields" min:"1" type:"list" required:"true"` @@ -3284,7 +3287,7 @@ func (s *AppIntegrationsConfiguration) SetObjectFields(v []*string) *AppIntegrat type AssistantAssociationData struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Wisdom assistant + // The Amazon Resource Name (ARN) of the Wisdom assistant. // // AssistantArn is a required field AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` @@ -3382,7 +3385,7 @@ func (s *AssistantAssociationData) SetTags(v map[string]*string) *AssistantAssoc type AssistantAssociationInputData struct { _ struct{} `type:"structure"` - // The the identifier of the knowledge base. + // The identifier of the knowledge base. KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string"` } @@ -3446,7 +3449,7 @@ func (s *AssistantAssociationOutputData) SetKnowledgeBaseAssociation(v *Knowledg type AssistantAssociationSummary struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Wisdom assistant + // The Amazon Resource Name (ARN) of the Wisdom assistant. // // AssistantArn is a required field AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` @@ -3544,7 +3547,7 @@ func (s *AssistantAssociationSummary) SetTags(v map[string]*string) *AssistantAs type AssistantData struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Wisdom assistant + // The Amazon Resource Name (ARN) of the Wisdom assistant. // // AssistantArn is a required field AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` @@ -3649,7 +3652,7 @@ func (s *AssistantData) SetType(v string) *AssistantData { type AssistantSummary struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Wisdom assistant + // The Amazon Resource Name (ARN) of the Wisdom assistant. // // AssistantArn is a required field AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` @@ -3841,7 +3844,7 @@ type ContentData struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The the identifier of the knowledge base. + // The identifier of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -4010,7 +4013,7 @@ type ContentReference struct { // The Amazon Resource Name (ARN) of the knowledge base. KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string"` - // The the identifier of the knowledge base. + // The identifier of the knowledge base. KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string"` } @@ -4080,7 +4083,7 @@ type ContentSummary struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The the identifier of the knowledge base. + // The identifier of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -4481,8 +4484,8 @@ type CreateContentInput struct { // of the request. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` - // The the identifier of the knowledge base. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -5128,8 +5131,8 @@ type DeleteContentInput struct { // ContentId is a required field ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"` - // The the identifier of the knowledge base. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -5645,8 +5648,8 @@ type GetContentInput struct { // ContentId is a required field ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"` - // The the identifier of the knowledge base. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -5744,8 +5747,8 @@ type GetContentSummaryInput struct { // ContentId is a required field ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"` - // The the identifier of the knowledge base. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -5837,8 +5840,8 @@ func (s *GetContentSummaryOutput) SetContentSummary(v *ContentSummary) *GetConte type GetKnowledgeBaseInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The the identifier of the knowledge base. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -6014,6 +6017,9 @@ type GetRecommendationsOutput struct { // // Recommendations is a required field Recommendations []*RecommendationData `locationName:"recommendations" type:"list" required:"true"` + + // The triggers corresponding to recommendations. + Triggers []*RecommendationTrigger `locationName:"triggers" type:"list"` } // String returns the string representation. @@ -6040,6 +6046,12 @@ func (s *GetRecommendationsOutput) SetRecommendations(v []*RecommendationData) * return s } +// SetTriggers sets the Triggers field's value. +func (s *GetRecommendationsOutput) SetTriggers(v []*RecommendationTrigger) *GetRecommendationsOutput { + s.Triggers = v + return s +} + type GetSessionInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -6188,7 +6200,7 @@ type KnowledgeBaseAssociationData struct { // The Amazon Resource Name (ARN) of the knowledge base. KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string"` - // The the identifier of the knowledge base. + // The identifier of the knowledge base. KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string"` } @@ -6234,7 +6246,7 @@ type KnowledgeBaseData struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The the identifier of the knowledge base. + // The identifier of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -6368,7 +6380,7 @@ type KnowledgeBaseSummary struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The the identifier of the knowledge base. + // The identifier of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -6389,7 +6401,7 @@ type KnowledgeBaseSummary struct { // The KMS key used for encryption. ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"` - // [KEVIN] + // Configuration information about the external data source. SourceConfiguration *SourceConfiguration `locationName:"sourceConfiguration" type:"structure"` // The status of the knowledge base summary. @@ -6698,8 +6710,8 @@ func (s *ListAssistantsOutput) SetNextToken(v string) *ListAssistantsOutput { type ListContentsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The the identifier of the knowledge base. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -7354,6 +7366,42 @@ func (s *QueryAssistantOutput) SetResults(v []*ResultData) *QueryAssistantOutput return s } +// Data associated with the QUERY RecommendationTriggerType. +type QueryRecommendationTriggerData struct { + _ struct{} `type:"structure"` + + // The text associated with the recommendation trigger. + // + // Text is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by QueryRecommendationTriggerData's + // String and GoString methods. + Text *string `locationName:"text" type:"string" sensitive:"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 QueryRecommendationTriggerData) 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 QueryRecommendationTriggerData) GoString() string { + return s.String() +} + +// SetText sets the Text field's value. +func (s *QueryRecommendationTriggerData) SetText(v string) *QueryRecommendationTriggerData { + s.Text = &v + return s +} + // Information about the recommendation. type RecommendationData struct { _ struct{} `type:"structure"` @@ -7373,6 +7421,9 @@ type RecommendationData struct { // The relevance score of the recommendation. RelevanceScore *float64 `locationName:"relevanceScore" type:"double"` + + // The type of recommendation. + Type *string `locationName:"type" type:"string" enum:"RecommendationType"` } // String returns the string representation. @@ -7417,11 +7468,135 @@ func (s *RecommendationData) SetRelevanceScore(v float64) *RecommendationData { return s } +// SetType sets the Type field's value. +func (s *RecommendationData) SetType(v string) *RecommendationData { + s.Type = &v + return s +} + +// A recommendation trigger provides context on the event that produced the +// referenced recommendations. Recommendations are only referenced in recommendationIds +// by a single RecommendationTrigger. +type RecommendationTrigger struct { + _ struct{} `type:"structure"` + + // A union type containing information related to the trigger. + // + // Data is a required field + Data *RecommendationTriggerData `locationName:"data" type:"structure" required:"true"` + + // The identifier of the recommendation trigger. + // + // Id is a required field + Id *string `locationName:"id" type:"string" required:"true"` + + // The identifiers of the recommendations. + // + // RecommendationIds is a required field + RecommendationIds []*string `locationName:"recommendationIds" type:"list" required:"true"` + + // The source of the recommendation trigger. + // + // * ISSUE_DETECTION: The corresponding recommendations were triggered by + // a Contact Lens issue. + // + // * RULE_EVALUATION: The corresponding recommendations were triggered by + // a Contact Lens rule. + // + // Source is a required field + Source *string `locationName:"source" type:"string" required:"true" enum:"RecommendationSourceType"` + + // The type of recommendation trigger. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"RecommendationTriggerType"` +} + +// 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 RecommendationTrigger) 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 RecommendationTrigger) GoString() string { + return s.String() +} + +// SetData sets the Data field's value. +func (s *RecommendationTrigger) SetData(v *RecommendationTriggerData) *RecommendationTrigger { + s.Data = v + return s +} + +// SetId sets the Id field's value. +func (s *RecommendationTrigger) SetId(v string) *RecommendationTrigger { + s.Id = &v + return s +} + +// SetRecommendationIds sets the RecommendationIds field's value. +func (s *RecommendationTrigger) SetRecommendationIds(v []*string) *RecommendationTrigger { + s.RecommendationIds = v + return s +} + +// SetSource sets the Source field's value. +func (s *RecommendationTrigger) SetSource(v string) *RecommendationTrigger { + s.Source = &v + return s +} + +// SetType sets the Type field's value. +func (s *RecommendationTrigger) SetType(v string) *RecommendationTrigger { + s.Type = &v + return s +} + +// A union type containing information related to the trigger. +type RecommendationTriggerData struct { + _ struct{} `type:"structure"` + + // Data associated with the QUERY RecommendationTriggerType. + Query *QueryRecommendationTriggerData `locationName:"query" 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 RecommendationTriggerData) 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 RecommendationTriggerData) GoString() string { + return s.String() +} + +// SetQuery sets the Query field's value. +func (s *RecommendationTriggerData) SetQuery(v *QueryRecommendationTriggerData) *RecommendationTriggerData { + s.Query = v + return s +} + type RemoveKnowledgeBaseTemplateUriInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The the identifier of the knowledge base. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -7670,8 +7845,8 @@ func (s *ResultData) SetResultId(v string) *ResultData { type SearchContentInput struct { _ struct{} `type:"structure"` - // The the identifier of the knowledge base. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -8001,8 +8176,7 @@ type ServerSideEncryptionConfiguration struct { _ struct{} `type:"structure"` // The KMS key. For information about valid ID values, see Key identifiers (KeyId) - // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id) - // in the AWS Key Management Service Developer Guide. + // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id). KmsKeyId *string `locationName:"kmsKeyId" min:"1" type:"string"` } @@ -8187,7 +8361,7 @@ func (s *SessionData) SetTags(v map[string]*string) *SessionData { type SessionSummary struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Wisdom assistant + // The Amazon Resource Name (ARN) of the Wisdom assistant. // // AssistantArn is a required field AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` @@ -8306,8 +8480,8 @@ type StartContentUploadInput struct { // ContentType is a required field ContentType *string `locationName:"contentType" type:"string" required:"true"` - // The the identifier of the knowledge base. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -8682,7 +8856,7 @@ type UpdateContentInput struct { // ContentId is a required field ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"` - // The the identifier of the knowledge base. Can be either the ID or the ARN + // The identifier of the knowledge base. Can be either the ID or the ARN // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -8850,8 +9024,8 @@ func (s *UpdateContentOutput) SetContent(v *ContentData) *UpdateContentOutput { type UpdateKnowledgeBaseTemplateUriInput struct { _ struct{} `type:"structure"` - // The the identifier of the knowledge base. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -8945,7 +9119,7 @@ func (s *UpdateKnowledgeBaseTemplateUriOutput) SetKnowledgeBase(v *KnowledgeBase return s } -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by a service. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -9173,6 +9347,50 @@ func KnowledgeBaseType_Values() []string { } } +const ( + // RecommendationSourceTypeIssueDetection is a RecommendationSourceType enum value + RecommendationSourceTypeIssueDetection = "ISSUE_DETECTION" + + // RecommendationSourceTypeRuleEvaluation is a RecommendationSourceType enum value + RecommendationSourceTypeRuleEvaluation = "RULE_EVALUATION" + + // RecommendationSourceTypeOther is a RecommendationSourceType enum value + RecommendationSourceTypeOther = "OTHER" +) + +// RecommendationSourceType_Values returns all elements of the RecommendationSourceType enum +func RecommendationSourceType_Values() []string { + return []string{ + RecommendationSourceTypeIssueDetection, + RecommendationSourceTypeRuleEvaluation, + RecommendationSourceTypeOther, + } +} + +const ( + // RecommendationTriggerTypeQuery is a RecommendationTriggerType enum value + RecommendationTriggerTypeQuery = "QUERY" +) + +// RecommendationTriggerType_Values returns all elements of the RecommendationTriggerType enum +func RecommendationTriggerType_Values() []string { + return []string{ + RecommendationTriggerTypeQuery, + } +} + +const ( + // RecommendationTypeKnowledgeContent is a RecommendationType enum value + RecommendationTypeKnowledgeContent = "KNOWLEDGE_CONTENT" +) + +// RecommendationType_Values returns all elements of the RecommendationType enum +func RecommendationType_Values() []string { + return []string{ + RecommendationTypeKnowledgeContent, + } +} + const ( // RelevanceLevelHigh is a RelevanceLevel enum value RelevanceLevelHigh = "HIGH" diff --git a/service/connectwisdomservice/doc.go b/service/connectwisdomservice/doc.go index 0bf9094d79..281ca51bc8 100644 --- a/service/connectwisdomservice/doc.go +++ b/service/connectwisdomservice/doc.go @@ -3,12 +3,11 @@ // Package connectwisdomservice provides the client and types for making API // requests to Amazon Connect Wisdom Service. // -// All Amazon Connect Wisdom functionality is accessible using the API. For -// example, you can create an assistant and a knowledge base. -// -//

Some more advanced features are only accessible using the Wisdom API. -// For example, you can manually manage content by uploading custom files -// and control their lifecycle.

+// Amazon Connect Wisdom delivers agents the information they need to solve +// customer issues as they're actively speaking with customers. Agents can search +// across connected repositories from within their agent desktop to find answers +// quickly. Use the Amazon Connect Wisdom APIs to create an assistant and a +// knowledge base, for example, or manage content by uploading custom files. // // See https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19 for more information on this service. // diff --git a/service/connectwisdomservice/errors.go b/service/connectwisdomservice/errors.go index 0af26face9..768d259609 100644 --- a/service/connectwisdomservice/errors.go +++ b/service/connectwisdomservice/errors.go @@ -54,7 +54,7 @@ const ( // ErrCodeValidationException for service response error code // "ValidationException". // - // The input fails to satisfy the constraints specified by an AWS service. + // The input fails to satisfy the constraints specified by a service. ErrCodeValidationException = "ValidationException" ) diff --git a/service/elasticache/api.go b/service/elasticache/api.go index 035c71f48a..c0a022f5c4 100644 --- a/service/elasticache/api.go +++ b/service/elasticache/api.go @@ -8040,12 +8040,14 @@ type CacheCluster struct { // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not - // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, - // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge + // recommended. Existing clusters are still supported but creation of new + // clusters is not supported for these types.) T1 node types: cache.t1.micro + // M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge + // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // - // * Compute optimized: Previous generation: (not recommended) C1 node types: - // cache.c1.xlarge + // * Compute optimized: Previous generation: (not recommended. Existing clusters + // are still supported but creation of new clusters is not supported for + // these types.) C1 node types: cache.c1.xlarge // // * Memory optimized with data tiering: Current generation: R6gd node types // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, @@ -8060,9 +8062,10 @@ type CacheCluster struct { // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge - // Previous generation: (not recommended) M2 node types: cache.m2.xlarge, - // cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, - // cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge + // Previous generation: (not recommended. Existing clusters are still supported + // but creation of new clusters is not supported for these types.) M2 node + // types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: + // cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge // // Additional node type info // @@ -8480,12 +8483,14 @@ func (s *CacheEngineVersion) SetEngineVersion(v string) *CacheEngineVersion { // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not -// recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, -// cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, -// cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge +// recommended. Existing clusters are still supported but creation of new +// clusters is not supported for these types.) T1 node types: cache.t1.micro +// M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge +// M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // -// * Compute optimized: Previous generation: (not recommended) C1 node types: -// cache.c1.xlarge +// * Compute optimized: Previous generation: (not recommended. Existing clusters +// are still supported but creation of new clusters is not supported for +// these types.) C1 node types: cache.c1.xlarge // // * Memory optimized with data tiering: Current generation: R6gd node types // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, @@ -8500,9 +8505,10 @@ func (s *CacheEngineVersion) SetEngineVersion(v string) *CacheEngineVersion { // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge -// Previous generation: (not recommended) M2 node types: cache.m2.xlarge, -// cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, -// cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge +// Previous generation: (not recommended. Existing clusters are still supported +// but creation of new clusters is not supported for these types.) M2 node +// types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: +// cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge // // Additional node type info // @@ -9629,12 +9635,14 @@ type CreateCacheClusterInput struct { // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not - // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, - // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge + // recommended. Existing clusters are still supported but creation of new + // clusters is not supported for these types.) T1 node types: cache.t1.micro + // M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge + // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // - // * Compute optimized: Previous generation: (not recommended) C1 node types: - // cache.c1.xlarge + // * Compute optimized: Previous generation: (not recommended. Existing clusters + // are still supported but creation of new clusters is not supported for + // these types.) C1 node types: cache.c1.xlarge // // * Memory optimized: Current generation: R6g node types (available only // for Redis engine version 5.0.6 onward and for Memcached engine version @@ -9644,9 +9652,10 @@ type CreateCacheClusterInput struct { // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge - // Previous generation: (not recommended) M2 node types: cache.m2.xlarge, - // cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, - // cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge + // Previous generation: (not recommended. Existing clusters are still supported + // but creation of new clusters is not supported for these types.) M2 node + // types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: + // cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge // // Additional node type info // @@ -10588,12 +10597,14 @@ type CreateReplicationGroupInput struct { // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not - // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, - // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge + // recommended. Existing clusters are still supported but creation of new + // clusters is not supported for these types.) T1 node types: cache.t1.micro + // M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge + // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // - // * Compute optimized: Previous generation: (not recommended) C1 node types: - // cache.c1.xlarge + // * Compute optimized: Previous generation: (not recommended. Existing clusters + // are still supported but creation of new clusters is not supported for + // these types.) C1 node types: cache.c1.xlarge // // * Memory optimized with data tiering: Current generation: R6gd node types // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, @@ -10608,9 +10619,10 @@ type CreateReplicationGroupInput struct { // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge - // Previous generation: (not recommended) M2 node types: cache.m2.xlarge, - // cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, - // cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge + // Previous generation: (not recommended. Existing clusters are still supported + // but creation of new clusters is not supported for these types.) M2 node + // types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: + // cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge // // Additional node type info // @@ -14049,12 +14061,14 @@ type DescribeReservedCacheNodesInput struct { // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not - // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, - // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge + // recommended. Existing clusters are still supported but creation of new + // clusters is not supported for these types.) T1 node types: cache.t1.micro + // M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge + // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // - // * Compute optimized: Previous generation: (not recommended) C1 node types: - // cache.c1.xlarge + // * Compute optimized: Previous generation: (not recommended. Existing clusters + // are still supported but creation of new clusters is not supported for + // these types.) C1 node types: cache.c1.xlarge // // * Memory optimized with data tiering: Current generation: R6gd node types // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, @@ -14069,9 +14083,10 @@ type DescribeReservedCacheNodesInput struct { // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge - // Previous generation: (not recommended) M2 node types: cache.m2.xlarge, - // cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, - // cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge + // Previous generation: (not recommended. Existing clusters are still supported + // but creation of new clusters is not supported for these types.) M2 node + // types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: + // cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge // // Additional node type info // @@ -14214,12 +14229,14 @@ type DescribeReservedCacheNodesOfferingsInput struct { // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not - // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, - // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge + // recommended. Existing clusters are still supported but creation of new + // clusters is not supported for these types.) T1 node types: cache.t1.micro + // M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge + // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // - // * Compute optimized: Previous generation: (not recommended) C1 node types: - // cache.c1.xlarge + // * Compute optimized: Previous generation: (not recommended. Existing clusters + // are still supported but creation of new clusters is not supported for + // these types.) C1 node types: cache.c1.xlarge // // * Memory optimized with data tiering: Current generation: R6gd node types // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, @@ -14234,9 +14251,10 @@ type DescribeReservedCacheNodesOfferingsInput struct { // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge - // Previous generation: (not recommended) M2 node types: cache.m2.xlarge, - // cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, - // cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge + // Previous generation: (not recommended. Existing clusters are still supported + // but creation of new clusters is not supported for these types.) M2 node + // types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: + // cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge // // Additional node type info // @@ -19992,12 +20010,14 @@ type ReservedCacheNode struct { // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not - // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, - // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge + // recommended. Existing clusters are still supported but creation of new + // clusters is not supported for these types.) T1 node types: cache.t1.micro + // M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge + // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // - // * Compute optimized: Previous generation: (not recommended) C1 node types: - // cache.c1.xlarge + // * Compute optimized: Previous generation: (not recommended. Existing clusters + // are still supported but creation of new clusters is not supported for + // these types.) C1 node types: cache.c1.xlarge // // * Memory optimized with data tiering: Current generation: R6gd node types // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, @@ -20012,9 +20032,10 @@ type ReservedCacheNode struct { // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge - // Previous generation: (not recommended) M2 node types: cache.m2.xlarge, - // cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, - // cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge + // Previous generation: (not recommended. Existing clusters are still supported + // but creation of new clusters is not supported for these types.) M2 node + // types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: + // cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge // // Additional node type info // @@ -20182,12 +20203,14 @@ type ReservedCacheNodesOffering struct { // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not - // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, - // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge + // recommended. Existing clusters are still supported but creation of new + // clusters is not supported for these types.) T1 node types: cache.t1.micro + // M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge + // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // - // * Compute optimized: Previous generation: (not recommended) C1 node types: - // cache.c1.xlarge + // * Compute optimized: Previous generation: (not recommended. Existing clusters + // are still supported but creation of new clusters is not supported for + // these types.) C1 node types: cache.c1.xlarge // // * Memory optimized with data tiering: Current generation: R6gd node types // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, @@ -20202,9 +20225,10 @@ type ReservedCacheNodesOffering struct { // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge - // Previous generation: (not recommended) M2 node types: cache.m2.xlarge, - // cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, - // cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge + // Previous generation: (not recommended. Existing clusters are still supported + // but creation of new clusters is not supported for these types.) M2 node + // types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: + // cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge // // Additional node type info // @@ -20830,12 +20854,14 @@ type Snapshot struct { // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not - // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, - // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge + // recommended. Existing clusters are still supported but creation of new + // clusters is not supported for these types.) T1 node types: cache.t1.micro + // M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge + // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // - // * Compute optimized: Previous generation: (not recommended) C1 node types: - // cache.c1.xlarge + // * Compute optimized: Previous generation: (not recommended. Existing clusters + // are still supported but creation of new clusters is not supported for + // these types.) C1 node types: cache.c1.xlarge // // * Memory optimized with data tiering: Current generation: R6gd node types // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, @@ -20851,9 +20877,10 @@ type Snapshot struct { // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge - // Previous generation: (not recommended) M2 node types: cache.m2.xlarge, - // cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, - // cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge + // Previous generation: (not recommended. Existing clusters are still supported + // but creation of new clusters is not supported for these types.) M2 node + // types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: + // cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge // // Additional node type info // diff --git a/service/glue/api.go b/service/glue/api.go index 7efcf39a6f..2923eab048 100644 --- a/service/glue/api.go +++ b/service/glue/api.go @@ -641,6 +641,89 @@ func (c *Glue) BatchGetCrawlersWithContext(ctx aws.Context, input *BatchGetCrawl return out, req.Send() } +const opBatchGetCustomEntityTypes = "BatchGetCustomEntityTypes" + +// BatchGetCustomEntityTypesRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetCustomEntityTypes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchGetCustomEntityTypes for more information on using the BatchGetCustomEntityTypes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchGetCustomEntityTypesRequest method. +// req, resp := client.BatchGetCustomEntityTypesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchGetCustomEntityTypes +func (c *Glue) BatchGetCustomEntityTypesRequest(input *BatchGetCustomEntityTypesInput) (req *request.Request, output *BatchGetCustomEntityTypesOutput) { + op := &request.Operation{ + Name: opBatchGetCustomEntityTypes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchGetCustomEntityTypesInput{} + } + + output = &BatchGetCustomEntityTypesOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetCustomEntityTypes API operation for AWS Glue. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Glue's +// API operation BatchGetCustomEntityTypes for usage and error information. +// +// Returned Error Types: +// * InvalidInputException +// The input provided was not valid. +// +// * InternalServiceException +// An internal service error occurred. +// +// * OperationTimeoutException +// The operation timed out. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchGetCustomEntityTypes +func (c *Glue) BatchGetCustomEntityTypes(input *BatchGetCustomEntityTypesInput) (*BatchGetCustomEntityTypesOutput, error) { + req, out := c.BatchGetCustomEntityTypesRequest(input) + return out, req.Send() +} + +// BatchGetCustomEntityTypesWithContext is the same as BatchGetCustomEntityTypes with the addition of +// the ability to pass a context and additional request options. +// +// See BatchGetCustomEntityTypes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Glue) BatchGetCustomEntityTypesWithContext(ctx aws.Context, input *BatchGetCustomEntityTypesInput, opts ...request.Option) (*BatchGetCustomEntityTypesOutput, error) { + req, out := c.BatchGetCustomEntityTypesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opBatchGetDevEndpoints = "BatchGetDevEndpoints" // BatchGetDevEndpointsRequest generates a "aws/request.Request" representing the @@ -1901,6 +1984,101 @@ func (c *Glue) CreateCrawlerWithContext(ctx aws.Context, input *CreateCrawlerInp return out, req.Send() } +const opCreateCustomEntityType = "CreateCustomEntityType" + +// CreateCustomEntityTypeRequest generates a "aws/request.Request" representing the +// client's request for the CreateCustomEntityType operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateCustomEntityType for more information on using the CreateCustomEntityType +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateCustomEntityTypeRequest method. +// req, resp := client.CreateCustomEntityTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateCustomEntityType +func (c *Glue) CreateCustomEntityTypeRequest(input *CreateCustomEntityTypeInput) (req *request.Request, output *CreateCustomEntityTypeOutput) { + op := &request.Operation{ + Name: opCreateCustomEntityType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateCustomEntityTypeInput{} + } + + output = &CreateCustomEntityTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCustomEntityType API operation for AWS Glue. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Glue's +// API operation CreateCustomEntityType for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// Access to a resource was denied. +// +// * AlreadyExistsException +// A resource to be created or added already exists. +// +// * IdempotentParameterMismatchException +// The same unique identifier was associated with two different records. +// +// * InternalServiceException +// An internal service error occurred. +// +// * InvalidInputException +// The input provided was not valid. +// +// * OperationTimeoutException +// The operation timed out. +// +// * ResourceNumberLimitExceededException +// A resource numerical limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateCustomEntityType +func (c *Glue) CreateCustomEntityType(input *CreateCustomEntityTypeInput) (*CreateCustomEntityTypeOutput, error) { + req, out := c.CreateCustomEntityTypeRequest(input) + return out, req.Send() +} + +// CreateCustomEntityTypeWithContext is the same as CreateCustomEntityType with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCustomEntityType for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Glue) CreateCustomEntityTypeWithContext(ctx aws.Context, input *CreateCustomEntityTypeInput, opts ...request.Option) (*CreateCustomEntityTypeOutput, error) { + req, out := c.CreateCustomEntityTypeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateDatabase = "CreateDatabase" // CreateDatabaseRequest generates a "aws/request.Request" representing the @@ -3910,6 +4088,95 @@ func (c *Glue) DeleteCrawlerWithContext(ctx aws.Context, input *DeleteCrawlerInp return out, req.Send() } +const opDeleteCustomEntityType = "DeleteCustomEntityType" + +// DeleteCustomEntityTypeRequest generates a "aws/request.Request" representing the +// client's request for the DeleteCustomEntityType operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteCustomEntityType for more information on using the DeleteCustomEntityType +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteCustomEntityTypeRequest method. +// req, resp := client.DeleteCustomEntityTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteCustomEntityType +func (c *Glue) DeleteCustomEntityTypeRequest(input *DeleteCustomEntityTypeInput) (req *request.Request, output *DeleteCustomEntityTypeOutput) { + op := &request.Operation{ + Name: opDeleteCustomEntityType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteCustomEntityTypeInput{} + } + + output = &DeleteCustomEntityTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteCustomEntityType API operation for AWS Glue. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Glue's +// API operation DeleteCustomEntityType for usage and error information. +// +// Returned Error Types: +// * EntityNotFoundException +// A specified entity does not exist +// +// * AccessDeniedException +// Access to a resource was denied. +// +// * InternalServiceException +// An internal service error occurred. +// +// * InvalidInputException +// The input provided was not valid. +// +// * OperationTimeoutException +// The operation timed out. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteCustomEntityType +func (c *Glue) DeleteCustomEntityType(input *DeleteCustomEntityTypeInput) (*DeleteCustomEntityTypeOutput, error) { + req, out := c.DeleteCustomEntityTypeRequest(input) + return out, req.Send() +} + +// DeleteCustomEntityTypeWithContext is the same as DeleteCustomEntityType with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteCustomEntityType for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Glue) DeleteCustomEntityTypeWithContext(ctx aws.Context, input *DeleteCustomEntityTypeInput, opts ...request.Option) (*DeleteCustomEntityTypeOutput, error) { + req, out := c.DeleteCustomEntityTypeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteDatabase = "DeleteDatabase" // DeleteDatabaseRequest generates a "aws/request.Request" representing the @@ -6883,6 +7150,95 @@ func (c *Glue) GetCrawlersPagesWithContext(ctx aws.Context, input *GetCrawlersIn return p.Err() } +const opGetCustomEntityType = "GetCustomEntityType" + +// GetCustomEntityTypeRequest generates a "aws/request.Request" representing the +// client's request for the GetCustomEntityType operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetCustomEntityType for more information on using the GetCustomEntityType +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetCustomEntityTypeRequest method. +// req, resp := client.GetCustomEntityTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetCustomEntityType +func (c *Glue) GetCustomEntityTypeRequest(input *GetCustomEntityTypeInput) (req *request.Request, output *GetCustomEntityTypeOutput) { + op := &request.Operation{ + Name: opGetCustomEntityType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetCustomEntityTypeInput{} + } + + output = &GetCustomEntityTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCustomEntityType API operation for AWS Glue. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Glue's +// API operation GetCustomEntityType for usage and error information. +// +// Returned Error Types: +// * EntityNotFoundException +// A specified entity does not exist +// +// * AccessDeniedException +// Access to a resource was denied. +// +// * InternalServiceException +// An internal service error occurred. +// +// * InvalidInputException +// The input provided was not valid. +// +// * OperationTimeoutException +// The operation timed out. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetCustomEntityType +func (c *Glue) GetCustomEntityType(input *GetCustomEntityTypeInput) (*GetCustomEntityTypeOutput, error) { + req, out := c.GetCustomEntityTypeRequest(input) + return out, req.Send() +} + +// GetCustomEntityTypeWithContext is the same as GetCustomEntityType with the addition of +// the ability to pass a context and additional request options. +// +// See GetCustomEntityType for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Glue) GetCustomEntityTypeWithContext(ctx aws.Context, input *GetCustomEntityTypeInput, opts ...request.Option) (*GetCustomEntityTypeOutput, error) { + req, out := c.GetCustomEntityTypeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetDataCatalogEncryptionSettings = "GetDataCatalogEncryptionSettings" // GetDataCatalogEncryptionSettingsRequest generates a "aws/request.Request" representing the @@ -12413,6 +12769,147 @@ func (c *Glue) ListCrawlersPagesWithContext(ctx aws.Context, input *ListCrawlers return p.Err() } +const opListCustomEntityTypes = "ListCustomEntityTypes" + +// ListCustomEntityTypesRequest generates a "aws/request.Request" representing the +// client's request for the ListCustomEntityTypes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListCustomEntityTypes for more information on using the ListCustomEntityTypes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListCustomEntityTypesRequest method. +// req, resp := client.ListCustomEntityTypesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListCustomEntityTypes +func (c *Glue) ListCustomEntityTypesRequest(input *ListCustomEntityTypesInput) (req *request.Request, output *ListCustomEntityTypesOutput) { + op := &request.Operation{ + Name: opListCustomEntityTypes, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListCustomEntityTypesInput{} + } + + output = &ListCustomEntityTypesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListCustomEntityTypes API operation for AWS Glue. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Glue's +// API operation ListCustomEntityTypes for usage and error information. +// +// Returned Error Types: +// * InvalidInputException +// The input provided was not valid. +// +// * OperationTimeoutException +// The operation timed out. +// +// * InternalServiceException +// An internal service error occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListCustomEntityTypes +func (c *Glue) ListCustomEntityTypes(input *ListCustomEntityTypesInput) (*ListCustomEntityTypesOutput, error) { + req, out := c.ListCustomEntityTypesRequest(input) + return out, req.Send() +} + +// ListCustomEntityTypesWithContext is the same as ListCustomEntityTypes with the addition of +// the ability to pass a context and additional request options. +// +// See ListCustomEntityTypes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Glue) ListCustomEntityTypesWithContext(ctx aws.Context, input *ListCustomEntityTypesInput, opts ...request.Option) (*ListCustomEntityTypesOutput, error) { + req, out := c.ListCustomEntityTypesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListCustomEntityTypesPages iterates over the pages of a ListCustomEntityTypes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListCustomEntityTypes 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 ListCustomEntityTypes operation. +// pageNum := 0 +// err := client.ListCustomEntityTypesPages(params, +// func(page *glue.ListCustomEntityTypesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Glue) ListCustomEntityTypesPages(input *ListCustomEntityTypesInput, fn func(*ListCustomEntityTypesOutput, bool) bool) error { + return c.ListCustomEntityTypesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListCustomEntityTypesPagesWithContext same as ListCustomEntityTypesPages 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 *Glue) ListCustomEntityTypesPagesWithContext(ctx aws.Context, input *ListCustomEntityTypesInput, fn func(*ListCustomEntityTypesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListCustomEntityTypesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListCustomEntityTypesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListCustomEntityTypesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListDevEndpoints = "ListDevEndpoints" // ListDevEndpointsRequest generates a "aws/request.Request" representing the @@ -19393,6 +19890,91 @@ func (s *BatchGetCrawlersOutput) SetCrawlersNotFound(v []*string) *BatchGetCrawl return s } +type BatchGetCustomEntityTypesInput struct { + _ struct{} `type:"structure"` + + // Names is a required field + Names []*string `min:"1" 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 BatchGetCustomEntityTypesInput) 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 BatchGetCustomEntityTypesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetCustomEntityTypesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetCustomEntityTypesInput"} + if s.Names == nil { + invalidParams.Add(request.NewErrParamRequired("Names")) + } + if s.Names != nil && len(s.Names) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Names", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNames sets the Names field's value. +func (s *BatchGetCustomEntityTypesInput) SetNames(v []*string) *BatchGetCustomEntityTypesInput { + s.Names = v + return s +} + +type BatchGetCustomEntityTypesOutput struct { + _ struct{} `type:"structure"` + + CustomEntityTypes []*CustomEntityType `type:"list"` + + CustomEntityTypesNotFound []*string `min:"1" 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 BatchGetCustomEntityTypesOutput) 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 BatchGetCustomEntityTypesOutput) GoString() string { + return s.String() +} + +// SetCustomEntityTypes sets the CustomEntityTypes field's value. +func (s *BatchGetCustomEntityTypesOutput) SetCustomEntityTypes(v []*CustomEntityType) *BatchGetCustomEntityTypesOutput { + s.CustomEntityTypes = v + return s +} + +// SetCustomEntityTypesNotFound sets the CustomEntityTypesNotFound field's value. +func (s *BatchGetCustomEntityTypesOutput) SetCustomEntityTypesNotFound(v []*string) *BatchGetCustomEntityTypesOutput { + s.CustomEntityTypesNotFound = v + return s +} + type BatchGetDevEndpointsInput struct { _ struct{} `type:"structure"` @@ -24359,6 +24941,109 @@ func (s *CreateCsvClassifierRequest) SetQuoteSymbol(v string) *CreateCsvClassifi return s } +type CreateCustomEntityTypeInput struct { + _ struct{} `type:"structure"` + + ContextWords []*string `min:"1" type:"list"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // RegexString is a required field + RegexString *string `min:"1" 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 CreateCustomEntityTypeInput) 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 CreateCustomEntityTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCustomEntityTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCustomEntityTypeInput"} + if s.ContextWords != nil && len(s.ContextWords) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ContextWords", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.RegexString == nil { + invalidParams.Add(request.NewErrParamRequired("RegexString")) + } + if s.RegexString != nil && len(*s.RegexString) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RegexString", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContextWords sets the ContextWords field's value. +func (s *CreateCustomEntityTypeInput) SetContextWords(v []*string) *CreateCustomEntityTypeInput { + s.ContextWords = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateCustomEntityTypeInput) SetName(v string) *CreateCustomEntityTypeInput { + s.Name = &v + return s +} + +// SetRegexString sets the RegexString field's value. +func (s *CreateCustomEntityTypeInput) SetRegexString(v string) *CreateCustomEntityTypeInput { + s.RegexString = &v + return s +} + +type CreateCustomEntityTypeOutput struct { + _ struct{} `type:"structure"` + + Name *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 CreateCustomEntityTypeOutput) 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 CreateCustomEntityTypeOutput) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *CreateCustomEntityTypeOutput) SetName(v string) *CreateCustomEntityTypeOutput { + s.Name = &v + return s +} + type CreateDatabaseInput struct { _ struct{} `type:"structure"` @@ -27588,6 +28273,54 @@ func (s *CsvClassifier) SetVersion(v int64) *CsvClassifier { return s } +type CustomEntityType struct { + _ struct{} `type:"structure"` + + ContextWords []*string `min:"1" type:"list"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // RegexString is a required field + RegexString *string `min:"1" 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 CustomEntityType) 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 CustomEntityType) GoString() string { + return s.String() +} + +// SetContextWords sets the ContextWords field's value. +func (s *CustomEntityType) SetContextWords(v []*string) *CustomEntityType { + s.ContextWords = v + return s +} + +// SetName sets the Name field's value. +func (s *CustomEntityType) SetName(v string) *CustomEntityType { + s.Name = &v + return s +} + +// SetRegexString sets the RegexString field's value. +func (s *CustomEntityType) SetRegexString(v string) *CustomEntityType { + s.RegexString = &v + return s +} + // Contains configuration information for maintaining Data Catalog security. type DataCatalogEncryptionSettings struct { _ struct{} `type:"structure"` @@ -28757,6 +29490,83 @@ func (s DeleteCrawlerOutput) GoString() string { return s.String() } +type DeleteCustomEntityTypeInput struct { + _ struct{} `type:"structure"` + + // Name is a required field + Name *string `min:"1" 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 DeleteCustomEntityTypeInput) 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 DeleteCustomEntityTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteCustomEntityTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCustomEntityTypeInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteCustomEntityTypeInput) SetName(v string) *DeleteCustomEntityTypeInput { + s.Name = &v + return s +} + +type DeleteCustomEntityTypeOutput struct { + _ struct{} `type:"structure"` + + Name *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 DeleteCustomEntityTypeOutput) 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 DeleteCustomEntityTypeOutput) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *DeleteCustomEntityTypeOutput) SetName(v string) *DeleteCustomEntityTypeOutput { + s.Name = &v + return s +} + type DeleteDatabaseInput struct { _ struct{} `type:"structure"` @@ -33088,6 +33898,99 @@ func (s *GetCrawlersOutput) SetNextToken(v string) *GetCrawlersOutput { return s } +type GetCustomEntityTypeInput struct { + _ struct{} `type:"structure"` + + // Name is a required field + Name *string `min:"1" 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 GetCustomEntityTypeInput) 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 GetCustomEntityTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCustomEntityTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCustomEntityTypeInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *GetCustomEntityTypeInput) SetName(v string) *GetCustomEntityTypeInput { + s.Name = &v + return s +} + +type GetCustomEntityTypeOutput struct { + _ struct{} `type:"structure"` + + ContextWords []*string `min:"1" type:"list"` + + Name *string `min:"1" type:"string"` + + RegexString *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 GetCustomEntityTypeOutput) 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 GetCustomEntityTypeOutput) GoString() string { + return s.String() +} + +// SetContextWords sets the ContextWords field's value. +func (s *GetCustomEntityTypeOutput) SetContextWords(v []*string) *GetCustomEntityTypeOutput { + s.ContextWords = v + return s +} + +// SetName sets the Name field's value. +func (s *GetCustomEntityTypeOutput) SetName(v string) *GetCustomEntityTypeOutput { + s.Name = &v + return s +} + +// SetRegexString sets the RegexString field's value. +func (s *GetCustomEntityTypeOutput) SetRegexString(v string) *GetCustomEntityTypeOutput { + s.RegexString = &v + return s +} + type GetDataCatalogEncryptionSettingsInput struct { _ struct{} `type:"structure"` @@ -41350,6 +42253,95 @@ func (s *ListCrawlersOutput) SetNextToken(v string) *ListCrawlersOutput { return s } +type ListCustomEntityTypesInput struct { + _ struct{} `type:"structure"` + + MaxResults *int64 `min:"1" type:"integer"` + + 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 ListCustomEntityTypesInput) 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 ListCustomEntityTypesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListCustomEntityTypesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCustomEntityTypesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListCustomEntityTypesInput) SetMaxResults(v int64) *ListCustomEntityTypesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCustomEntityTypesInput) SetNextToken(v string) *ListCustomEntityTypesInput { + s.NextToken = &v + return s +} + +type ListCustomEntityTypesOutput struct { + _ struct{} `type:"structure"` + + CustomEntityTypes []*CustomEntityType `type:"list"` + + 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 ListCustomEntityTypesOutput) 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 ListCustomEntityTypesOutput) GoString() string { + return s.String() +} + +// SetCustomEntityTypes sets the CustomEntityTypes field's value. +func (s *ListCustomEntityTypesOutput) SetCustomEntityTypes(v []*CustomEntityType) *ListCustomEntityTypesOutput { + s.CustomEntityTypes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCustomEntityTypesOutput) SetNextToken(v string) *ListCustomEntityTypesOutput { + s.NextToken = &v + return s +} + type ListDevEndpointsInput struct { _ struct{} `type:"structure"` diff --git a/service/glue/glueiface/interface.go b/service/glue/glueiface/interface.go index 1a612f2cd6..41298e6120 100644 --- a/service/glue/glueiface/interface.go +++ b/service/glue/glueiface/interface.go @@ -88,6 +88,10 @@ type GlueAPI interface { BatchGetCrawlersWithContext(aws.Context, *glue.BatchGetCrawlersInput, ...request.Option) (*glue.BatchGetCrawlersOutput, error) BatchGetCrawlersRequest(*glue.BatchGetCrawlersInput) (*request.Request, *glue.BatchGetCrawlersOutput) + BatchGetCustomEntityTypes(*glue.BatchGetCustomEntityTypesInput) (*glue.BatchGetCustomEntityTypesOutput, error) + BatchGetCustomEntityTypesWithContext(aws.Context, *glue.BatchGetCustomEntityTypesInput, ...request.Option) (*glue.BatchGetCustomEntityTypesOutput, error) + BatchGetCustomEntityTypesRequest(*glue.BatchGetCustomEntityTypesInput) (*request.Request, *glue.BatchGetCustomEntityTypesOutput) + BatchGetDevEndpoints(*glue.BatchGetDevEndpointsInput) (*glue.BatchGetDevEndpointsOutput, error) BatchGetDevEndpointsWithContext(aws.Context, *glue.BatchGetDevEndpointsInput, ...request.Option) (*glue.BatchGetDevEndpointsOutput, error) BatchGetDevEndpointsRequest(*glue.BatchGetDevEndpointsInput) (*request.Request, *glue.BatchGetDevEndpointsOutput) @@ -144,6 +148,10 @@ type GlueAPI interface { CreateCrawlerWithContext(aws.Context, *glue.CreateCrawlerInput, ...request.Option) (*glue.CreateCrawlerOutput, error) CreateCrawlerRequest(*glue.CreateCrawlerInput) (*request.Request, *glue.CreateCrawlerOutput) + CreateCustomEntityType(*glue.CreateCustomEntityTypeInput) (*glue.CreateCustomEntityTypeOutput, error) + CreateCustomEntityTypeWithContext(aws.Context, *glue.CreateCustomEntityTypeInput, ...request.Option) (*glue.CreateCustomEntityTypeOutput, error) + CreateCustomEntityTypeRequest(*glue.CreateCustomEntityTypeInput) (*request.Request, *glue.CreateCustomEntityTypeOutput) + CreateDatabase(*glue.CreateDatabaseInput) (*glue.CreateDatabaseOutput, error) CreateDatabaseWithContext(aws.Context, *glue.CreateDatabaseInput, ...request.Option) (*glue.CreateDatabaseOutput, error) CreateDatabaseRequest(*glue.CreateDatabaseInput) (*request.Request, *glue.CreateDatabaseOutput) @@ -228,6 +236,10 @@ type GlueAPI interface { DeleteCrawlerWithContext(aws.Context, *glue.DeleteCrawlerInput, ...request.Option) (*glue.DeleteCrawlerOutput, error) DeleteCrawlerRequest(*glue.DeleteCrawlerInput) (*request.Request, *glue.DeleteCrawlerOutput) + DeleteCustomEntityType(*glue.DeleteCustomEntityTypeInput) (*glue.DeleteCustomEntityTypeOutput, error) + DeleteCustomEntityTypeWithContext(aws.Context, *glue.DeleteCustomEntityTypeInput, ...request.Option) (*glue.DeleteCustomEntityTypeOutput, error) + DeleteCustomEntityTypeRequest(*glue.DeleteCustomEntityTypeInput) (*request.Request, *glue.DeleteCustomEntityTypeOutput) + DeleteDatabase(*glue.DeleteDatabaseInput) (*glue.DeleteDatabaseOutput, error) DeleteDatabaseWithContext(aws.Context, *glue.DeleteDatabaseInput, ...request.Option) (*glue.DeleteDatabaseOutput, error) DeleteDatabaseRequest(*glue.DeleteDatabaseInput) (*request.Request, *glue.DeleteDatabaseOutput) @@ -363,6 +375,10 @@ type GlueAPI interface { GetCrawlersPages(*glue.GetCrawlersInput, func(*glue.GetCrawlersOutput, bool) bool) error GetCrawlersPagesWithContext(aws.Context, *glue.GetCrawlersInput, func(*glue.GetCrawlersOutput, bool) bool, ...request.Option) error + GetCustomEntityType(*glue.GetCustomEntityTypeInput) (*glue.GetCustomEntityTypeOutput, error) + GetCustomEntityTypeWithContext(aws.Context, *glue.GetCustomEntityTypeInput, ...request.Option) (*glue.GetCustomEntityTypeOutput, error) + GetCustomEntityTypeRequest(*glue.GetCustomEntityTypeInput) (*request.Request, *glue.GetCustomEntityTypeOutput) + GetDataCatalogEncryptionSettings(*glue.GetDataCatalogEncryptionSettingsInput) (*glue.GetDataCatalogEncryptionSettingsOutput, error) GetDataCatalogEncryptionSettingsWithContext(aws.Context, *glue.GetDataCatalogEncryptionSettingsInput, ...request.Option) (*glue.GetDataCatalogEncryptionSettingsOutput, error) GetDataCatalogEncryptionSettingsRequest(*glue.GetDataCatalogEncryptionSettingsInput) (*request.Request, *glue.GetDataCatalogEncryptionSettingsOutput) @@ -617,6 +633,13 @@ type GlueAPI interface { ListCrawlersPages(*glue.ListCrawlersInput, func(*glue.ListCrawlersOutput, bool) bool) error ListCrawlersPagesWithContext(aws.Context, *glue.ListCrawlersInput, func(*glue.ListCrawlersOutput, bool) bool, ...request.Option) error + ListCustomEntityTypes(*glue.ListCustomEntityTypesInput) (*glue.ListCustomEntityTypesOutput, error) + ListCustomEntityTypesWithContext(aws.Context, *glue.ListCustomEntityTypesInput, ...request.Option) (*glue.ListCustomEntityTypesOutput, error) + ListCustomEntityTypesRequest(*glue.ListCustomEntityTypesInput) (*request.Request, *glue.ListCustomEntityTypesOutput) + + ListCustomEntityTypesPages(*glue.ListCustomEntityTypesInput, func(*glue.ListCustomEntityTypesOutput, bool) bool) error + ListCustomEntityTypesPagesWithContext(aws.Context, *glue.ListCustomEntityTypesInput, func(*glue.ListCustomEntityTypesOutput, bool) bool, ...request.Option) error + ListDevEndpoints(*glue.ListDevEndpointsInput) (*glue.ListDevEndpointsOutput, error) ListDevEndpointsWithContext(aws.Context, *glue.ListDevEndpointsInput, ...request.Option) (*glue.ListDevEndpointsOutput, error) ListDevEndpointsRequest(*glue.ListDevEndpointsInput) (*request.Request, *glue.ListDevEndpointsOutput) diff --git a/service/iotsitewise/api.go b/service/iotsitewise/api.go index e7d1e5b168..ce0913b1bd 100644 --- a/service/iotsitewise/api.go +++ b/service/iotsitewise/api.go @@ -426,75 +426,60 @@ func (c *IoTSiteWise) BatchDisassociateProjectAssetsWithContext(ctx aws.Context, return out, req.Send() } -const opBatchPutAssetPropertyValue = "BatchPutAssetPropertyValue" +const opBatchGetAssetPropertyAggregates = "BatchGetAssetPropertyAggregates" -// BatchPutAssetPropertyValueRequest generates a "aws/request.Request" representing the -// client's request for the BatchPutAssetPropertyValue operation. The "output" return +// BatchGetAssetPropertyAggregatesRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetAssetPropertyAggregates operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See BatchPutAssetPropertyValue for more information on using the BatchPutAssetPropertyValue +// See BatchGetAssetPropertyAggregates for more information on using the BatchGetAssetPropertyAggregates // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the BatchPutAssetPropertyValueRequest method. -// req, resp := client.BatchPutAssetPropertyValueRequest(params) +// // Example sending a request using the BatchGetAssetPropertyAggregatesRequest method. +// req, resp := client.BatchGetAssetPropertyAggregatesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/BatchPutAssetPropertyValue -func (c *IoTSiteWise) BatchPutAssetPropertyValueRequest(input *BatchPutAssetPropertyValueInput) (req *request.Request, output *BatchPutAssetPropertyValueOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/BatchGetAssetPropertyAggregates +func (c *IoTSiteWise) BatchGetAssetPropertyAggregatesRequest(input *BatchGetAssetPropertyAggregatesInput) (req *request.Request, output *BatchGetAssetPropertyAggregatesOutput) { op := &request.Operation{ - Name: opBatchPutAssetPropertyValue, + Name: opBatchGetAssetPropertyAggregates, HTTPMethod: "POST", - HTTPPath: "/properties", + HTTPPath: "/properties/batch/aggregates", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &BatchPutAssetPropertyValueInput{} + input = &BatchGetAssetPropertyAggregatesInput{} } - output = &BatchPutAssetPropertyValueOutput{} + output = &BatchGetAssetPropertyAggregatesOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// BatchPutAssetPropertyValue API operation for AWS IoT SiteWise. -// -// Sends a list of asset property values to IoT SiteWise. Each value is a timestamp-quality-value -// (TQV) data point. For more information, see Ingesting data using the API -// (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/ingest-api.html) -// in the IoT SiteWise User Guide. -// -// To identify an asset property, you must specify one of the following: -// -// * The assetId and propertyId of an asset property. -// -// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). -// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). -// -// With respect to Unix epoch time, IoT SiteWise accepts only TQVs that have -// a timestamp of no more than 7 days in the past and no more than 10 minutes -// in the future. IoT SiteWise rejects timestamps outside of the inclusive range -// of [-7 days, +10 minutes] and returns a TimestampOutOfRangeException error. -// -// For each asset property, IoT SiteWise overwrites TQVs with duplicate timestamps -// unless the newer TQV has a different quality. For example, if you store a -// TQV {T1, GOOD, V1}, then storing {T1, GOOD, V2} replaces the existing TQV. +// BatchGetAssetPropertyAggregates API operation for AWS IoT SiteWise. // -// IoT SiteWise authorizes access to each BatchPutAssetPropertyValue entry individually. -// For more information, see BatchPutAssetPropertyValue authorization (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-batchputassetpropertyvalue-action) +// Gets aggregated values (for example, average, minimum, and maximum) for one +// or more asset properties. For more information, see Querying aggregates (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#aggregates) // in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -502,16 +487,13 @@ func (c *IoTSiteWise) BatchPutAssetPropertyValueRequest(input *BatchPutAssetProp // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation BatchPutAssetPropertyValue for usage and error information. +// API operation BatchGetAssetPropertyAggregates for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * ResourceNotFoundException -// The requested resource can't be found. -// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -523,108 +505,151 @@ func (c *IoTSiteWise) BatchPutAssetPropertyValueRequest(input *BatchPutAssetProp // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * LimitExceededException -// You've reached the limit for a resource. For example, this can occur if you're -// trying to associate more than the allowed number of child assets or attempting -// to create more than the allowed number of properties for an asset model. -// -// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) -// in the IoT SiteWise User Guide. -// // * ServiceUnavailableException // The requested service is unavailable. // -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/BatchPutAssetPropertyValue -func (c *IoTSiteWise) BatchPutAssetPropertyValue(input *BatchPutAssetPropertyValueInput) (*BatchPutAssetPropertyValueOutput, error) { - req, out := c.BatchPutAssetPropertyValueRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/BatchGetAssetPropertyAggregates +func (c *IoTSiteWise) BatchGetAssetPropertyAggregates(input *BatchGetAssetPropertyAggregatesInput) (*BatchGetAssetPropertyAggregatesOutput, error) { + req, out := c.BatchGetAssetPropertyAggregatesRequest(input) return out, req.Send() } -// BatchPutAssetPropertyValueWithContext is the same as BatchPutAssetPropertyValue with the addition of +// BatchGetAssetPropertyAggregatesWithContext is the same as BatchGetAssetPropertyAggregates with the addition of // the ability to pass a context and additional request options. // -// See BatchPutAssetPropertyValue for details on how to use this API operation. +// See BatchGetAssetPropertyAggregates for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) BatchPutAssetPropertyValueWithContext(ctx aws.Context, input *BatchPutAssetPropertyValueInput, opts ...request.Option) (*BatchPutAssetPropertyValueOutput, error) { - req, out := c.BatchPutAssetPropertyValueRequest(input) +func (c *IoTSiteWise) BatchGetAssetPropertyAggregatesWithContext(ctx aws.Context, input *BatchGetAssetPropertyAggregatesInput, opts ...request.Option) (*BatchGetAssetPropertyAggregatesOutput, error) { + req, out := c.BatchGetAssetPropertyAggregatesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateAccessPolicy = "CreateAccessPolicy" +// BatchGetAssetPropertyAggregatesPages iterates over the pages of a BatchGetAssetPropertyAggregates operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See BatchGetAssetPropertyAggregates 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 BatchGetAssetPropertyAggregates operation. +// pageNum := 0 +// err := client.BatchGetAssetPropertyAggregatesPages(params, +// func(page *iotsitewise.BatchGetAssetPropertyAggregatesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTSiteWise) BatchGetAssetPropertyAggregatesPages(input *BatchGetAssetPropertyAggregatesInput, fn func(*BatchGetAssetPropertyAggregatesOutput, bool) bool) error { + return c.BatchGetAssetPropertyAggregatesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// CreateAccessPolicyRequest generates a "aws/request.Request" representing the -// client's request for the CreateAccessPolicy operation. The "output" return +// BatchGetAssetPropertyAggregatesPagesWithContext same as BatchGetAssetPropertyAggregatesPages 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 *IoTSiteWise) BatchGetAssetPropertyAggregatesPagesWithContext(ctx aws.Context, input *BatchGetAssetPropertyAggregatesInput, fn func(*BatchGetAssetPropertyAggregatesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *BatchGetAssetPropertyAggregatesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.BatchGetAssetPropertyAggregatesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*BatchGetAssetPropertyAggregatesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opBatchGetAssetPropertyValue = "BatchGetAssetPropertyValue" + +// BatchGetAssetPropertyValueRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetAssetPropertyValue operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateAccessPolicy for more information on using the CreateAccessPolicy +// See BatchGetAssetPropertyValue for more information on using the BatchGetAssetPropertyValue // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateAccessPolicyRequest method. -// req, resp := client.CreateAccessPolicyRequest(params) +// // Example sending a request using the BatchGetAssetPropertyValueRequest method. +// req, resp := client.BatchGetAssetPropertyValueRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAccessPolicy -func (c *IoTSiteWise) CreateAccessPolicyRequest(input *CreateAccessPolicyInput) (req *request.Request, output *CreateAccessPolicyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/BatchGetAssetPropertyValue +func (c *IoTSiteWise) BatchGetAssetPropertyValueRequest(input *BatchGetAssetPropertyValueInput) (req *request.Request, output *BatchGetAssetPropertyValueOutput) { op := &request.Operation{ - Name: opCreateAccessPolicy, + Name: opBatchGetAssetPropertyValue, HTTPMethod: "POST", - HTTPPath: "/access-policies", + HTTPPath: "/properties/batch/latest", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "", + TruncationToken: "", + }, } if input == nil { - input = &CreateAccessPolicyInput{} + input = &BatchGetAssetPropertyValueInput{} } - output = &CreateAccessPolicyOutput{} + output = &BatchGetAssetPropertyValueOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateAccessPolicy API operation for AWS IoT SiteWise. +// BatchGetAssetPropertyValue API operation for AWS IoT SiteWise. // -// Creates an access policy that grants the specified identity (Amazon Web Services -// SSO user, Amazon Web Services SSO group, or IAM user) access to the specified -// IoT SiteWise Monitor portal or project resource. +// Gets the current value for one or more asset properties. For more information, +// see Querying current values (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#current-values) +// in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation CreateAccessPolicy for usage and error information. +// API operation BatchGetAssetPropertyValue for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * ResourceNotFoundException -// The requested resource can't be found. -// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -636,84 +661,137 @@ func (c *IoTSiteWise) CreateAccessPolicyRequest(input *CreateAccessPolicyInput) // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * LimitExceededException -// You've reached the limit for a resource. For example, this can occur if you're -// trying to associate more than the allowed number of child assets or attempting -// to create more than the allowed number of properties for an asset model. -// -// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) -// in the IoT SiteWise User Guide. +// * ServiceUnavailableException +// The requested service is unavailable. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAccessPolicy -func (c *IoTSiteWise) CreateAccessPolicy(input *CreateAccessPolicyInput) (*CreateAccessPolicyOutput, error) { - req, out := c.CreateAccessPolicyRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/BatchGetAssetPropertyValue +func (c *IoTSiteWise) BatchGetAssetPropertyValue(input *BatchGetAssetPropertyValueInput) (*BatchGetAssetPropertyValueOutput, error) { + req, out := c.BatchGetAssetPropertyValueRequest(input) return out, req.Send() } -// CreateAccessPolicyWithContext is the same as CreateAccessPolicy with the addition of +// BatchGetAssetPropertyValueWithContext is the same as BatchGetAssetPropertyValue with the addition of // the ability to pass a context and additional request options. // -// See CreateAccessPolicy for details on how to use this API operation. +// See BatchGetAssetPropertyValue for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) CreateAccessPolicyWithContext(ctx aws.Context, input *CreateAccessPolicyInput, opts ...request.Option) (*CreateAccessPolicyOutput, error) { - req, out := c.CreateAccessPolicyRequest(input) +func (c *IoTSiteWise) BatchGetAssetPropertyValueWithContext(ctx aws.Context, input *BatchGetAssetPropertyValueInput, opts ...request.Option) (*BatchGetAssetPropertyValueOutput, error) { + req, out := c.BatchGetAssetPropertyValueRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateAsset = "CreateAsset" +// BatchGetAssetPropertyValuePages iterates over the pages of a BatchGetAssetPropertyValue operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See BatchGetAssetPropertyValue 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 BatchGetAssetPropertyValue operation. +// pageNum := 0 +// err := client.BatchGetAssetPropertyValuePages(params, +// func(page *iotsitewise.BatchGetAssetPropertyValueOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTSiteWise) BatchGetAssetPropertyValuePages(input *BatchGetAssetPropertyValueInput, fn func(*BatchGetAssetPropertyValueOutput, bool) bool) error { + return c.BatchGetAssetPropertyValuePagesWithContext(aws.BackgroundContext(), input, fn) +} -// CreateAssetRequest generates a "aws/request.Request" representing the -// client's request for the CreateAsset operation. The "output" return +// BatchGetAssetPropertyValuePagesWithContext same as BatchGetAssetPropertyValuePages 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 *IoTSiteWise) BatchGetAssetPropertyValuePagesWithContext(ctx aws.Context, input *BatchGetAssetPropertyValueInput, fn func(*BatchGetAssetPropertyValueOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *BatchGetAssetPropertyValueInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.BatchGetAssetPropertyValueRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*BatchGetAssetPropertyValueOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opBatchGetAssetPropertyValueHistory = "BatchGetAssetPropertyValueHistory" + +// BatchGetAssetPropertyValueHistoryRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetAssetPropertyValueHistory operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateAsset for more information on using the CreateAsset +// See BatchGetAssetPropertyValueHistory for more information on using the BatchGetAssetPropertyValueHistory // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateAssetRequest method. -// req, resp := client.CreateAssetRequest(params) +// // Example sending a request using the BatchGetAssetPropertyValueHistoryRequest method. +// req, resp := client.BatchGetAssetPropertyValueHistoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAsset -func (c *IoTSiteWise) CreateAssetRequest(input *CreateAssetInput) (req *request.Request, output *CreateAssetOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/BatchGetAssetPropertyValueHistory +func (c *IoTSiteWise) BatchGetAssetPropertyValueHistoryRequest(input *BatchGetAssetPropertyValueHistoryInput) (req *request.Request, output *BatchGetAssetPropertyValueHistoryOutput) { op := &request.Operation{ - Name: opCreateAsset, + Name: opBatchGetAssetPropertyValueHistory, HTTPMethod: "POST", - HTTPPath: "/assets", + HTTPPath: "/properties/batch/history", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &CreateAssetInput{} + input = &BatchGetAssetPropertyValueHistoryInput{} } - output = &CreateAssetOutput{} + output = &BatchGetAssetPropertyValueHistoryOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateAsset API operation for AWS IoT SiteWise. +// BatchGetAssetPropertyValueHistory API operation for AWS IoT SiteWise. // -// Creates an asset from an existing asset model. For more information, see -// Creating assets (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-assets.html) +// Gets the historical values for one or more asset properties. For more information, +// see Querying historical values (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#historical-values) // in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -721,19 +799,13 @@ func (c *IoTSiteWise) CreateAssetRequest(input *CreateAssetInput) (req *request. // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation CreateAsset for usage and error information. +// API operation BatchGetAssetPropertyValueHistory for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * ResourceAlreadyExistsException -// The resource already exists. -// -// * ResourceNotFoundException -// The requested resource can't be found. -// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -745,91 +817,152 @@ func (c *IoTSiteWise) CreateAssetRequest(input *CreateAssetInput) (req *request. // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * LimitExceededException -// You've reached the limit for a resource. For example, this can occur if you're -// trying to associate more than the allowed number of child assets or attempting -// to create more than the allowed number of properties for an asset model. -// -// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) -// in the IoT SiteWise User Guide. -// -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. +// * ServiceUnavailableException +// The requested service is unavailable. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAsset -func (c *IoTSiteWise) CreateAsset(input *CreateAssetInput) (*CreateAssetOutput, error) { - req, out := c.CreateAssetRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/BatchGetAssetPropertyValueHistory +func (c *IoTSiteWise) BatchGetAssetPropertyValueHistory(input *BatchGetAssetPropertyValueHistoryInput) (*BatchGetAssetPropertyValueHistoryOutput, error) { + req, out := c.BatchGetAssetPropertyValueHistoryRequest(input) return out, req.Send() } -// CreateAssetWithContext is the same as CreateAsset with the addition of +// BatchGetAssetPropertyValueHistoryWithContext is the same as BatchGetAssetPropertyValueHistory with the addition of // the ability to pass a context and additional request options. // -// See CreateAsset for details on how to use this API operation. +// See BatchGetAssetPropertyValueHistory for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) CreateAssetWithContext(ctx aws.Context, input *CreateAssetInput, opts ...request.Option) (*CreateAssetOutput, error) { - req, out := c.CreateAssetRequest(input) +func (c *IoTSiteWise) BatchGetAssetPropertyValueHistoryWithContext(ctx aws.Context, input *BatchGetAssetPropertyValueHistoryInput, opts ...request.Option) (*BatchGetAssetPropertyValueHistoryOutput, error) { + req, out := c.BatchGetAssetPropertyValueHistoryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateAssetModel = "CreateAssetModel" - -// CreateAssetModelRequest generates a "aws/request.Request" representing the -// client's request for the CreateAssetModel operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See CreateAssetModel for more information on using the CreateAssetModel -// API call, and error handling. +// BatchGetAssetPropertyValueHistoryPages iterates over the pages of a BatchGetAssetPropertyValueHistory operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// See BatchGetAssetPropertyValueHistory method for more information on how to use this operation. // +// Note: This operation can generate multiple requests to a service. // -// // Example sending a request using the CreateAssetModelRequest method. -// req, resp := client.CreateAssetModelRequest(params) +// // Example iterating over at most 3 pages of a BatchGetAssetPropertyValueHistory operation. +// pageNum := 0 +// err := client.BatchGetAssetPropertyValueHistoryPages(params, +// func(page *iotsitewise.BatchGetAssetPropertyValueHistoryOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTSiteWise) BatchGetAssetPropertyValueHistoryPages(input *BatchGetAssetPropertyValueHistoryInput, fn func(*BatchGetAssetPropertyValueHistoryOutput, bool) bool) error { + return c.BatchGetAssetPropertyValueHistoryPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// BatchGetAssetPropertyValueHistoryPagesWithContext same as BatchGetAssetPropertyValueHistoryPages 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 *IoTSiteWise) BatchGetAssetPropertyValueHistoryPagesWithContext(ctx aws.Context, input *BatchGetAssetPropertyValueHistoryInput, fn func(*BatchGetAssetPropertyValueHistoryOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *BatchGetAssetPropertyValueHistoryInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.BatchGetAssetPropertyValueHistoryRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*BatchGetAssetPropertyValueHistoryOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opBatchPutAssetPropertyValue = "BatchPutAssetPropertyValue" + +// BatchPutAssetPropertyValueRequest generates a "aws/request.Request" representing the +// client's request for the BatchPutAssetPropertyValue operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchPutAssetPropertyValue for more information on using the BatchPutAssetPropertyValue +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchPutAssetPropertyValueRequest method. +// req, resp := client.BatchPutAssetPropertyValueRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAssetModel -func (c *IoTSiteWise) CreateAssetModelRequest(input *CreateAssetModelInput) (req *request.Request, output *CreateAssetModelOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/BatchPutAssetPropertyValue +func (c *IoTSiteWise) BatchPutAssetPropertyValueRequest(input *BatchPutAssetPropertyValueInput) (req *request.Request, output *BatchPutAssetPropertyValueOutput) { op := &request.Operation{ - Name: opCreateAssetModel, + Name: opBatchPutAssetPropertyValue, HTTPMethod: "POST", - HTTPPath: "/asset-models", + HTTPPath: "/properties", } if input == nil { - input = &CreateAssetModelInput{} + input = &BatchPutAssetPropertyValueInput{} } - output = &CreateAssetModelOutput{} + output = &BatchPutAssetPropertyValueOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateAssetModel API operation for AWS IoT SiteWise. +// BatchPutAssetPropertyValue API operation for AWS IoT SiteWise. // -// Creates an asset model from specified property and hierarchy definitions. -// You create assets from asset models. With asset models, you can easily create -// assets of the same type that have standardized definitions. Each asset created -// from a model inherits the asset model's property and hierarchy definitions. -// For more information, see Defining asset models (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/define-models.html) +// Sends a list of asset property values to IoT SiteWise. Each value is a timestamp-quality-value +// (TQV) data point. For more information, see Ingesting data using the API +// (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/ingest-api.html) +// in the IoT SiteWise User Guide. +// +// To identify an asset property, you must specify one of the following: +// +// * The assetId and propertyId of an asset property. +// +// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). +// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). +// +// With respect to Unix epoch time, IoT SiteWise accepts only TQVs that have +// a timestamp of no more than 7 days in the past and no more than 10 minutes +// in the future. IoT SiteWise rejects timestamps outside of the inclusive range +// of [-7 days, +10 minutes] and returns a TimestampOutOfRangeException error. +// +// For each asset property, IoT SiteWise overwrites TQVs with duplicate timestamps +// unless the newer TQV has a different quality. For example, if you store a +// TQV {T1, GOOD, V1}, then storing {T1, GOOD, V2} replaces the existing TQV. +// +// IoT SiteWise authorizes access to each BatchPutAssetPropertyValue entry individually. +// For more information, see BatchPutAssetPropertyValue authorization (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-batchputassetpropertyvalue-action) // in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -837,16 +970,13 @@ func (c *IoTSiteWise) CreateAssetModelRequest(input *CreateAssetModelInput) (req // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation CreateAssetModel for usage and error information. +// API operation BatchPutAssetPropertyValue for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * ResourceAlreadyExistsException -// The resource already exists. -// // * ResourceNotFoundException // The requested resource can't be found. // @@ -869,86 +999,91 @@ func (c *IoTSiteWise) CreateAssetModelRequest(input *CreateAssetModelInput) (req // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // +// * ServiceUnavailableException +// The requested service is unavailable. +// // * ConflictingOperationException // Your request has conflicting operations. This can occur if you're trying // to perform more than one operation on the same resource at the same time. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAssetModel -func (c *IoTSiteWise) CreateAssetModel(input *CreateAssetModelInput) (*CreateAssetModelOutput, error) { - req, out := c.CreateAssetModelRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/BatchPutAssetPropertyValue +func (c *IoTSiteWise) BatchPutAssetPropertyValue(input *BatchPutAssetPropertyValueInput) (*BatchPutAssetPropertyValueOutput, error) { + req, out := c.BatchPutAssetPropertyValueRequest(input) return out, req.Send() } -// CreateAssetModelWithContext is the same as CreateAssetModel with the addition of +// BatchPutAssetPropertyValueWithContext is the same as BatchPutAssetPropertyValue with the addition of // the ability to pass a context and additional request options. // -// See CreateAssetModel for details on how to use this API operation. +// See BatchPutAssetPropertyValue for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) CreateAssetModelWithContext(ctx aws.Context, input *CreateAssetModelInput, opts ...request.Option) (*CreateAssetModelOutput, error) { - req, out := c.CreateAssetModelRequest(input) +func (c *IoTSiteWise) BatchPutAssetPropertyValueWithContext(ctx aws.Context, input *BatchPutAssetPropertyValueInput, opts ...request.Option) (*BatchPutAssetPropertyValueOutput, error) { + req, out := c.BatchPutAssetPropertyValueRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateDashboard = "CreateDashboard" +const opCreateAccessPolicy = "CreateAccessPolicy" -// CreateDashboardRequest generates a "aws/request.Request" representing the -// client's request for the CreateDashboard operation. The "output" return +// CreateAccessPolicyRequest generates a "aws/request.Request" representing the +// client's request for the CreateAccessPolicy operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateDashboard for more information on using the CreateDashboard +// See CreateAccessPolicy for more information on using the CreateAccessPolicy // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateDashboardRequest method. -// req, resp := client.CreateDashboardRequest(params) +// // Example sending a request using the CreateAccessPolicyRequest method. +// req, resp := client.CreateAccessPolicyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateDashboard -func (c *IoTSiteWise) CreateDashboardRequest(input *CreateDashboardInput) (req *request.Request, output *CreateDashboardOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAccessPolicy +func (c *IoTSiteWise) CreateAccessPolicyRequest(input *CreateAccessPolicyInput) (req *request.Request, output *CreateAccessPolicyOutput) { op := &request.Operation{ - Name: opCreateDashboard, + Name: opCreateAccessPolicy, HTTPMethod: "POST", - HTTPPath: "/dashboards", + HTTPPath: "/access-policies", } if input == nil { - input = &CreateDashboardInput{} + input = &CreateAccessPolicyInput{} } - output = &CreateDashboardOutput{} + output = &CreateAccessPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateDashboard API operation for AWS IoT SiteWise. +// CreateAccessPolicy API operation for AWS IoT SiteWise. // -// Creates a dashboard in an IoT SiteWise Monitor project. +// Creates an access policy that grants the specified identity (Amazon Web Services +// SSO user, Amazon Web Services SSO group, or IAM user) access to the specified +// IoT SiteWise Monitor portal or project resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation CreateDashboard for usage and error information. +// API operation CreateAccessPolicy for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -977,77 +1112,76 @@ func (c *IoTSiteWise) CreateDashboardRequest(input *CreateDashboardInput) (req * // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateDashboard -func (c *IoTSiteWise) CreateDashboard(input *CreateDashboardInput) (*CreateDashboardOutput, error) { - req, out := c.CreateDashboardRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAccessPolicy +func (c *IoTSiteWise) CreateAccessPolicy(input *CreateAccessPolicyInput) (*CreateAccessPolicyOutput, error) { + req, out := c.CreateAccessPolicyRequest(input) return out, req.Send() } -// CreateDashboardWithContext is the same as CreateDashboard with the addition of +// CreateAccessPolicyWithContext is the same as CreateAccessPolicy with the addition of // the ability to pass a context and additional request options. // -// See CreateDashboard for details on how to use this API operation. +// See CreateAccessPolicy for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) CreateDashboardWithContext(ctx aws.Context, input *CreateDashboardInput, opts ...request.Option) (*CreateDashboardOutput, error) { - req, out := c.CreateDashboardRequest(input) +func (c *IoTSiteWise) CreateAccessPolicyWithContext(ctx aws.Context, input *CreateAccessPolicyInput, opts ...request.Option) (*CreateAccessPolicyOutput, error) { + req, out := c.CreateAccessPolicyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateGateway = "CreateGateway" +const opCreateAsset = "CreateAsset" -// CreateGatewayRequest generates a "aws/request.Request" representing the -// client's request for the CreateGateway operation. The "output" return +// CreateAssetRequest generates a "aws/request.Request" representing the +// client's request for the CreateAsset operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateGateway for more information on using the CreateGateway +// See CreateAsset for more information on using the CreateAsset // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateGatewayRequest method. -// req, resp := client.CreateGatewayRequest(params) +// // Example sending a request using the CreateAssetRequest method. +// req, resp := client.CreateAssetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateGateway -func (c *IoTSiteWise) CreateGatewayRequest(input *CreateGatewayInput) (req *request.Request, output *CreateGatewayOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAsset +func (c *IoTSiteWise) CreateAssetRequest(input *CreateAssetInput) (req *request.Request, output *CreateAssetOutput) { op := &request.Operation{ - Name: opCreateGateway, + Name: opCreateAsset, HTTPMethod: "POST", - HTTPPath: "/20200301/gateways", + HTTPPath: "/assets", } if input == nil { - input = &CreateGatewayInput{} + input = &CreateAssetInput{} } - output = &CreateGatewayOutput{} + output = &CreateAssetOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateGateway API operation for AWS IoT SiteWise. +// CreateAsset API operation for AWS IoT SiteWise. // -// Creates a gateway, which is a virtual or edge device that delivers industrial -// data streams from local servers to IoT SiteWise. For more information, see -// Ingesting data using a gateway (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/gateway-connector.html) +// Creates an asset from an existing asset model. For more information, see +// Creating assets (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-assets.html) // in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1055,7 +1189,7 @@ func (c *IoTSiteWise) CreateGatewayRequest(input *CreateGatewayInput) (req *requ // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation CreateGateway for usage and error information. +// API operation CreateAsset for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1065,6 +1199,9 @@ func (c *IoTSiteWise) CreateGatewayRequest(input *CreateGatewayInput) (req *requ // * ResourceAlreadyExistsException // The resource already exists. // +// * ResourceNotFoundException +// The requested resource can't be found. +// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -1084,81 +1221,83 @@ func (c *IoTSiteWise) CreateGatewayRequest(input *CreateGatewayInput) (req *requ // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateGateway -func (c *IoTSiteWise) CreateGateway(input *CreateGatewayInput) (*CreateGatewayOutput, error) { - req, out := c.CreateGatewayRequest(input) +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAsset +func (c *IoTSiteWise) CreateAsset(input *CreateAssetInput) (*CreateAssetOutput, error) { + req, out := c.CreateAssetRequest(input) return out, req.Send() } -// CreateGatewayWithContext is the same as CreateGateway with the addition of +// CreateAssetWithContext is the same as CreateAsset with the addition of // the ability to pass a context and additional request options. // -// See CreateGateway for details on how to use this API operation. +// See CreateAsset for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) CreateGatewayWithContext(ctx aws.Context, input *CreateGatewayInput, opts ...request.Option) (*CreateGatewayOutput, error) { - req, out := c.CreateGatewayRequest(input) +func (c *IoTSiteWise) CreateAssetWithContext(ctx aws.Context, input *CreateAssetInput, opts ...request.Option) (*CreateAssetOutput, error) { + req, out := c.CreateAssetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreatePortal = "CreatePortal" +const opCreateAssetModel = "CreateAssetModel" -// CreatePortalRequest generates a "aws/request.Request" representing the -// client's request for the CreatePortal operation. The "output" return +// CreateAssetModelRequest generates a "aws/request.Request" representing the +// client's request for the CreateAssetModel operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreatePortal for more information on using the CreatePortal +// See CreateAssetModel for more information on using the CreateAssetModel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreatePortalRequest method. -// req, resp := client.CreatePortalRequest(params) +// // Example sending a request using the CreateAssetModelRequest method. +// req, resp := client.CreateAssetModelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreatePortal -func (c *IoTSiteWise) CreatePortalRequest(input *CreatePortalInput) (req *request.Request, output *CreatePortalOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAssetModel +func (c *IoTSiteWise) CreateAssetModelRequest(input *CreateAssetModelInput) (req *request.Request, output *CreateAssetModelOutput) { op := &request.Operation{ - Name: opCreatePortal, + Name: opCreateAssetModel, HTTPMethod: "POST", - HTTPPath: "/portals", + HTTPPath: "/asset-models", } if input == nil { - input = &CreatePortalInput{} + input = &CreateAssetModelInput{} } - output = &CreatePortalOutput{} + output = &CreateAssetModelOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreatePortal API operation for AWS IoT SiteWise. -// -// Creates a portal, which can contain projects and dashboards. IoT SiteWise -// Monitor uses Amazon Web Services SSO or IAM to authenticate portal users -// and manage user permissions. +// CreateAssetModel API operation for AWS IoT SiteWise. // -// Before you can sign in to a new portal, you must add at least one identity -// to that portal. For more information, see Adding or removing portal administrators -// (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/administer-portals.html#portal-change-admins) +// Creates an asset model from specified property and hierarchy definitions. +// You create assets from asset models. With asset models, you can easily create +// assets of the same type that have standardized definitions. Each asset created +// from a model inherits the asset model's property and hierarchy definitions. +// For more information, see Defining asset models (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/define-models.html) // in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1166,13 +1305,16 @@ func (c *IoTSiteWise) CreatePortalRequest(input *CreatePortalInput) (req *reques // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation CreatePortal for usage and error information. +// API operation CreateAssetModel for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // +// * ResourceAlreadyExistsException +// The resource already exists. +// // * ResourceNotFoundException // The requested resource can't be found. // @@ -1195,85 +1337,86 @@ func (c *IoTSiteWise) CreatePortalRequest(input *CreatePortalInput) (req *reques // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreatePortal -func (c *IoTSiteWise) CreatePortal(input *CreatePortalInput) (*CreatePortalOutput, error) { - req, out := c.CreatePortalRequest(input) +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAssetModel +func (c *IoTSiteWise) CreateAssetModel(input *CreateAssetModelInput) (*CreateAssetModelOutput, error) { + req, out := c.CreateAssetModelRequest(input) return out, req.Send() } -// CreatePortalWithContext is the same as CreatePortal with the addition of +// CreateAssetModelWithContext is the same as CreateAssetModel with the addition of // the ability to pass a context and additional request options. // -// See CreatePortal for details on how to use this API operation. +// See CreateAssetModel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) CreatePortalWithContext(ctx aws.Context, input *CreatePortalInput, opts ...request.Option) (*CreatePortalOutput, error) { - req, out := c.CreatePortalRequest(input) +func (c *IoTSiteWise) CreateAssetModelWithContext(ctx aws.Context, input *CreateAssetModelInput, opts ...request.Option) (*CreateAssetModelOutput, error) { + req, out := c.CreateAssetModelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateProject = "CreateProject" +const opCreateDashboard = "CreateDashboard" -// CreateProjectRequest generates a "aws/request.Request" representing the -// client's request for the CreateProject operation. The "output" return +// CreateDashboardRequest generates a "aws/request.Request" representing the +// client's request for the CreateDashboard operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateProject for more information on using the CreateProject +// See CreateDashboard for more information on using the CreateDashboard // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateProjectRequest method. -// req, resp := client.CreateProjectRequest(params) +// // Example sending a request using the CreateDashboardRequest method. +// req, resp := client.CreateDashboardRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateProject -func (c *IoTSiteWise) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateDashboard +func (c *IoTSiteWise) CreateDashboardRequest(input *CreateDashboardInput) (req *request.Request, output *CreateDashboardOutput) { op := &request.Operation{ - Name: opCreateProject, + Name: opCreateDashboard, HTTPMethod: "POST", - HTTPPath: "/projects", + HTTPPath: "/dashboards", } if input == nil { - input = &CreateProjectInput{} + input = &CreateDashboardInput{} } - output = &CreateProjectOutput{} + output = &CreateDashboardOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateProject API operation for AWS IoT SiteWise. -// -// Creates a project in the specified portal. +// CreateDashboard API operation for AWS IoT SiteWise. // -// Make sure that the project name and description don't contain confidential -// information. +// Creates a dashboard in an IoT SiteWise Monitor project. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation CreateProject for usage and error information. +// API operation CreateDashboard for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1302,93 +1445,93 @@ func (c *IoTSiteWise) CreateProjectRequest(input *CreateProjectInput) (req *requ // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateProject -func (c *IoTSiteWise) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) { - req, out := c.CreateProjectRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateDashboard +func (c *IoTSiteWise) CreateDashboard(input *CreateDashboardInput) (*CreateDashboardOutput, error) { + req, out := c.CreateDashboardRequest(input) return out, req.Send() } -// CreateProjectWithContext is the same as CreateProject with the addition of +// CreateDashboardWithContext is the same as CreateDashboard with the addition of // the ability to pass a context and additional request options. // -// See CreateProject for details on how to use this API operation. +// See CreateDashboard for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) CreateProjectWithContext(ctx aws.Context, input *CreateProjectInput, opts ...request.Option) (*CreateProjectOutput, error) { - req, out := c.CreateProjectRequest(input) +func (c *IoTSiteWise) CreateDashboardWithContext(ctx aws.Context, input *CreateDashboardInput, opts ...request.Option) (*CreateDashboardOutput, error) { + req, out := c.CreateDashboardRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteAccessPolicy = "DeleteAccessPolicy" +const opCreateGateway = "CreateGateway" -// DeleteAccessPolicyRequest generates a "aws/request.Request" representing the -// client's request for the DeleteAccessPolicy operation. The "output" return +// CreateGatewayRequest generates a "aws/request.Request" representing the +// client's request for the CreateGateway operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteAccessPolicy for more information on using the DeleteAccessPolicy +// See CreateGateway for more information on using the CreateGateway // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteAccessPolicyRequest method. -// req, resp := client.DeleteAccessPolicyRequest(params) +// // Example sending a request using the CreateGatewayRequest method. +// req, resp := client.CreateGatewayRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAccessPolicy -func (c *IoTSiteWise) DeleteAccessPolicyRequest(input *DeleteAccessPolicyInput) (req *request.Request, output *DeleteAccessPolicyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateGateway +func (c *IoTSiteWise) CreateGatewayRequest(input *CreateGatewayInput) (req *request.Request, output *CreateGatewayOutput) { op := &request.Operation{ - Name: opDeleteAccessPolicy, - HTTPMethod: "DELETE", - HTTPPath: "/access-policies/{accessPolicyId}", + Name: opCreateGateway, + HTTPMethod: "POST", + HTTPPath: "/20200301/gateways", } if input == nil { - input = &DeleteAccessPolicyInput{} + input = &CreateGatewayInput{} } - output = &DeleteAccessPolicyOutput{} + output = &CreateGatewayOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteAccessPolicy API operation for AWS IoT SiteWise. +// CreateGateway API operation for AWS IoT SiteWise. // -// Deletes an access policy that grants the specified identity access to the -// specified IoT SiteWise Monitor resource. You can use this operation to revoke -// access to an IoT SiteWise Monitor resource. +// Creates a gateway, which is a virtual or edge device that delivers industrial +// data streams from local servers to IoT SiteWise. For more information, see +// Ingesting data using a gateway (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/gateway-connector.html) +// in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DeleteAccessPolicy for usage and error information. +// API operation CreateGateway for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * ResourceNotFoundException -// The requested resource can't be found. +// * ResourceAlreadyExistsException +// The resource already exists. // // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. @@ -1401,87 +1544,97 @@ func (c *IoTSiteWise) DeleteAccessPolicyRequest(input *DeleteAccessPolicyInput) // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAccessPolicy -func (c *IoTSiteWise) DeleteAccessPolicy(input *DeleteAccessPolicyInput) (*DeleteAccessPolicyOutput, error) { - req, out := c.DeleteAccessPolicyRequest(input) +// * LimitExceededException +// You've reached the limit for a resource. For example, this can occur if you're +// trying to associate more than the allowed number of child assets or attempting +// to create more than the allowed number of properties for an asset model. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateGateway +func (c *IoTSiteWise) CreateGateway(input *CreateGatewayInput) (*CreateGatewayOutput, error) { + req, out := c.CreateGatewayRequest(input) return out, req.Send() } -// DeleteAccessPolicyWithContext is the same as DeleteAccessPolicy with the addition of +// CreateGatewayWithContext is the same as CreateGateway with the addition of // the ability to pass a context and additional request options. // -// See DeleteAccessPolicy for details on how to use this API operation. +// See CreateGateway for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DeleteAccessPolicyWithContext(ctx aws.Context, input *DeleteAccessPolicyInput, opts ...request.Option) (*DeleteAccessPolicyOutput, error) { - req, out := c.DeleteAccessPolicyRequest(input) +func (c *IoTSiteWise) CreateGatewayWithContext(ctx aws.Context, input *CreateGatewayInput, opts ...request.Option) (*CreateGatewayOutput, error) { + req, out := c.CreateGatewayRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteAsset = "DeleteAsset" +const opCreatePortal = "CreatePortal" -// DeleteAssetRequest generates a "aws/request.Request" representing the -// client's request for the DeleteAsset operation. The "output" return +// CreatePortalRequest generates a "aws/request.Request" representing the +// client's request for the CreatePortal operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteAsset for more information on using the DeleteAsset +// See CreatePortal for more information on using the CreatePortal // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteAssetRequest method. -// req, resp := client.DeleteAssetRequest(params) +// // Example sending a request using the CreatePortalRequest method. +// req, resp := client.CreatePortalRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAsset -func (c *IoTSiteWise) DeleteAssetRequest(input *DeleteAssetInput) (req *request.Request, output *DeleteAssetOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreatePortal +func (c *IoTSiteWise) CreatePortalRequest(input *CreatePortalInput) (req *request.Request, output *CreatePortalOutput) { op := &request.Operation{ - Name: opDeleteAsset, - HTTPMethod: "DELETE", - HTTPPath: "/assets/{assetId}", + Name: opCreatePortal, + HTTPMethod: "POST", + HTTPPath: "/portals", } if input == nil { - input = &DeleteAssetInput{} + input = &CreatePortalInput{} } - output = &DeleteAssetOutput{} + output = &CreatePortalOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteAsset API operation for AWS IoT SiteWise. +// CreatePortal API operation for AWS IoT SiteWise. // -// Deletes an asset. This action can't be undone. For more information, see -// Deleting assets and models (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/delete-assets-and-models.html) -// in the IoT SiteWise User Guide. +// Creates a portal, which can contain projects and dashboards. IoT SiteWise +// Monitor uses Amazon Web Services SSO or IAM to authenticate portal users +// and manage user permissions. // -// You can't delete an asset that's associated to another asset. For more information, -// see DisassociateAssets (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DisassociateAssets.html). +// Before you can sign in to a new portal, you must add at least one identity +// to that portal. For more information, see Adding or removing portal administrators +// (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/administer-portals.html#portal-change-admins) +// in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DeleteAsset for usage and error information. +// API operation CreatePortal for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1502,91 +1655,93 @@ func (c *IoTSiteWise) DeleteAssetRequest(input *DeleteAssetInput) (req *request. // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. +// * LimitExceededException +// You've reached the limit for a resource. For example, this can occur if you're +// trying to associate more than the allowed number of child assets or attempting +// to create more than the allowed number of properties for an asset model. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAsset -func (c *IoTSiteWise) DeleteAsset(input *DeleteAssetInput) (*DeleteAssetOutput, error) { - req, out := c.DeleteAssetRequest(input) +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreatePortal +func (c *IoTSiteWise) CreatePortal(input *CreatePortalInput) (*CreatePortalOutput, error) { + req, out := c.CreatePortalRequest(input) return out, req.Send() } -// DeleteAssetWithContext is the same as DeleteAsset with the addition of +// CreatePortalWithContext is the same as CreatePortal with the addition of // the ability to pass a context and additional request options. // -// See DeleteAsset for details on how to use this API operation. +// See CreatePortal for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DeleteAssetWithContext(ctx aws.Context, input *DeleteAssetInput, opts ...request.Option) (*DeleteAssetOutput, error) { - req, out := c.DeleteAssetRequest(input) +func (c *IoTSiteWise) CreatePortalWithContext(ctx aws.Context, input *CreatePortalInput, opts ...request.Option) (*CreatePortalOutput, error) { + req, out := c.CreatePortalRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteAssetModel = "DeleteAssetModel" +const opCreateProject = "CreateProject" -// DeleteAssetModelRequest generates a "aws/request.Request" representing the -// client's request for the DeleteAssetModel operation. The "output" return +// CreateProjectRequest generates a "aws/request.Request" representing the +// client's request for the CreateProject operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteAssetModel for more information on using the DeleteAssetModel +// See CreateProject for more information on using the CreateProject // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteAssetModelRequest method. -// req, resp := client.DeleteAssetModelRequest(params) +// // Example sending a request using the CreateProjectRequest method. +// req, resp := client.CreateProjectRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAssetModel -func (c *IoTSiteWise) DeleteAssetModelRequest(input *DeleteAssetModelInput) (req *request.Request, output *DeleteAssetModelOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateProject +func (c *IoTSiteWise) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput) { op := &request.Operation{ - Name: opDeleteAssetModel, - HTTPMethod: "DELETE", - HTTPPath: "/asset-models/{assetModelId}", + Name: opCreateProject, + HTTPMethod: "POST", + HTTPPath: "/projects", } if input == nil { - input = &DeleteAssetModelInput{} + input = &CreateProjectInput{} } - output = &DeleteAssetModelOutput{} + output = &CreateProjectOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteAssetModel API operation for AWS IoT SiteWise. +// CreateProject API operation for AWS IoT SiteWise. // -// Deletes an asset model. This action can't be undone. You must delete all -// assets created from an asset model before you can delete the model. Also, -// you can't delete an asset model if a parent asset model exists that contains -// a property formula expression that depends on the asset model that you want -// to delete. For more information, see Deleting assets and models (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/delete-assets-and-models.html) -// in the IoT SiteWise User Guide. +// Creates a project in the specified portal. +// +// Make sure that the project name and description don't contain confidential +// information. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DeleteAssetModel for usage and error information. +// API operation CreateProject for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1607,70 +1762,74 @@ func (c *IoTSiteWise) DeleteAssetModelRequest(input *DeleteAssetModelInput) (req // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAssetModel -func (c *IoTSiteWise) DeleteAssetModel(input *DeleteAssetModelInput) (*DeleteAssetModelOutput, error) { - req, out := c.DeleteAssetModelRequest(input) +// * LimitExceededException +// You've reached the limit for a resource. For example, this can occur if you're +// trying to associate more than the allowed number of child assets or attempting +// to create more than the allowed number of properties for an asset model. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateProject +func (c *IoTSiteWise) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) { + req, out := c.CreateProjectRequest(input) return out, req.Send() } -// DeleteAssetModelWithContext is the same as DeleteAssetModel with the addition of +// CreateProjectWithContext is the same as CreateProject with the addition of // the ability to pass a context and additional request options. // -// See DeleteAssetModel for details on how to use this API operation. +// See CreateProject for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DeleteAssetModelWithContext(ctx aws.Context, input *DeleteAssetModelInput, opts ...request.Option) (*DeleteAssetModelOutput, error) { - req, out := c.DeleteAssetModelRequest(input) +func (c *IoTSiteWise) CreateProjectWithContext(ctx aws.Context, input *CreateProjectInput, opts ...request.Option) (*CreateProjectOutput, error) { + req, out := c.CreateProjectRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteDashboard = "DeleteDashboard" +const opDeleteAccessPolicy = "DeleteAccessPolicy" -// DeleteDashboardRequest generates a "aws/request.Request" representing the -// client's request for the DeleteDashboard operation. The "output" return +// DeleteAccessPolicyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAccessPolicy operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteDashboard for more information on using the DeleteDashboard +// See DeleteAccessPolicy for more information on using the DeleteAccessPolicy // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteDashboardRequest method. -// req, resp := client.DeleteDashboardRequest(params) +// // Example sending a request using the DeleteAccessPolicyRequest method. +// req, resp := client.DeleteAccessPolicyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteDashboard -func (c *IoTSiteWise) DeleteDashboardRequest(input *DeleteDashboardInput) (req *request.Request, output *DeleteDashboardOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAccessPolicy +func (c *IoTSiteWise) DeleteAccessPolicyRequest(input *DeleteAccessPolicyInput) (req *request.Request, output *DeleteAccessPolicyOutput) { op := &request.Operation{ - Name: opDeleteDashboard, + Name: opDeleteAccessPolicy, HTTPMethod: "DELETE", - HTTPPath: "/dashboards/{dashboardId}", + HTTPPath: "/access-policies/{accessPolicyId}", } if input == nil { - input = &DeleteDashboardInput{} + input = &DeleteAccessPolicyInput{} } - output = &DeleteDashboardOutput{} + output = &DeleteAccessPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) @@ -1678,16 +1837,18 @@ func (c *IoTSiteWise) DeleteDashboardRequest(input *DeleteDashboardInput) (req * return } -// DeleteDashboard API operation for AWS IoT SiteWise. +// DeleteAccessPolicy API operation for AWS IoT SiteWise. // -// Deletes a dashboard from IoT SiteWise Monitor. +// Deletes an access policy that grants the specified identity access to the +// specified IoT SiteWise Monitor resource. You can use this operation to revoke +// access to an IoT SiteWise Monitor resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DeleteDashboard for usage and error information. +// API operation DeleteAccessPolicy for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1708,84 +1869,87 @@ func (c *IoTSiteWise) DeleteDashboardRequest(input *DeleteDashboardInput) (req * // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteDashboard -func (c *IoTSiteWise) DeleteDashboard(input *DeleteDashboardInput) (*DeleteDashboardOutput, error) { - req, out := c.DeleteDashboardRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAccessPolicy +func (c *IoTSiteWise) DeleteAccessPolicy(input *DeleteAccessPolicyInput) (*DeleteAccessPolicyOutput, error) { + req, out := c.DeleteAccessPolicyRequest(input) return out, req.Send() } -// DeleteDashboardWithContext is the same as DeleteDashboard with the addition of +// DeleteAccessPolicyWithContext is the same as DeleteAccessPolicy with the addition of // the ability to pass a context and additional request options. // -// See DeleteDashboard for details on how to use this API operation. +// See DeleteAccessPolicy for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DeleteDashboardWithContext(ctx aws.Context, input *DeleteDashboardInput, opts ...request.Option) (*DeleteDashboardOutput, error) { - req, out := c.DeleteDashboardRequest(input) +func (c *IoTSiteWise) DeleteAccessPolicyWithContext(ctx aws.Context, input *DeleteAccessPolicyInput, opts ...request.Option) (*DeleteAccessPolicyOutput, error) { + req, out := c.DeleteAccessPolicyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteGateway = "DeleteGateway" +const opDeleteAsset = "DeleteAsset" -// DeleteGatewayRequest generates a "aws/request.Request" representing the -// client's request for the DeleteGateway operation. The "output" return +// DeleteAssetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAsset operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteGateway for more information on using the DeleteGateway +// See DeleteAsset for more information on using the DeleteAsset // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteGatewayRequest method. -// req, resp := client.DeleteGatewayRequest(params) +// // Example sending a request using the DeleteAssetRequest method. +// req, resp := client.DeleteAssetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteGateway -func (c *IoTSiteWise) DeleteGatewayRequest(input *DeleteGatewayInput) (req *request.Request, output *DeleteGatewayOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAsset +func (c *IoTSiteWise) DeleteAssetRequest(input *DeleteAssetInput) (req *request.Request, output *DeleteAssetOutput) { op := &request.Operation{ - Name: opDeleteGateway, + Name: opDeleteAsset, HTTPMethod: "DELETE", - HTTPPath: "/20200301/gateways/{gatewayId}", + HTTPPath: "/assets/{assetId}", } if input == nil { - input = &DeleteGatewayInput{} + input = &DeleteAssetInput{} } - output = &DeleteGatewayOutput{} + output = &DeleteAssetOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteGateway API operation for AWS IoT SiteWise. +// DeleteAsset API operation for AWS IoT SiteWise. // -// Deletes a gateway from IoT SiteWise. When you delete a gateway, some of the -// gateway's files remain in your gateway's file system. +// Deletes an asset. This action can't be undone. For more information, see +// Deleting assets and models (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/delete-assets-and-models.html) +// in the IoT SiteWise User Guide. +// +// You can't delete an asset that's associated to another asset. For more information, +// see DisassociateAssets (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DisassociateAssets.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 IoT SiteWise's -// API operation DeleteGateway for usage and error information. +// API operation DeleteAsset for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1806,82 +1970,91 @@ func (c *IoTSiteWise) DeleteGatewayRequest(input *DeleteGatewayInput) (req *requ // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteGateway -func (c *IoTSiteWise) DeleteGateway(input *DeleteGatewayInput) (*DeleteGatewayOutput, error) { - req, out := c.DeleteGatewayRequest(input) +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAsset +func (c *IoTSiteWise) DeleteAsset(input *DeleteAssetInput) (*DeleteAssetOutput, error) { + req, out := c.DeleteAssetRequest(input) return out, req.Send() } -// DeleteGatewayWithContext is the same as DeleteGateway with the addition of +// DeleteAssetWithContext is the same as DeleteAsset with the addition of // the ability to pass a context and additional request options. // -// See DeleteGateway for details on how to use this API operation. +// See DeleteAsset for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DeleteGatewayWithContext(ctx aws.Context, input *DeleteGatewayInput, opts ...request.Option) (*DeleteGatewayOutput, error) { - req, out := c.DeleteGatewayRequest(input) +func (c *IoTSiteWise) DeleteAssetWithContext(ctx aws.Context, input *DeleteAssetInput, opts ...request.Option) (*DeleteAssetOutput, error) { + req, out := c.DeleteAssetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeletePortal = "DeletePortal" +const opDeleteAssetModel = "DeleteAssetModel" -// DeletePortalRequest generates a "aws/request.Request" representing the -// client's request for the DeletePortal operation. The "output" return +// DeleteAssetModelRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAssetModel operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeletePortal for more information on using the DeletePortal +// See DeleteAssetModel for more information on using the DeleteAssetModel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeletePortalRequest method. -// req, resp := client.DeletePortalRequest(params) +// // Example sending a request using the DeleteAssetModelRequest method. +// req, resp := client.DeleteAssetModelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeletePortal -func (c *IoTSiteWise) DeletePortalRequest(input *DeletePortalInput) (req *request.Request, output *DeletePortalOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAssetModel +func (c *IoTSiteWise) DeleteAssetModelRequest(input *DeleteAssetModelInput) (req *request.Request, output *DeleteAssetModelOutput) { op := &request.Operation{ - Name: opDeletePortal, + Name: opDeleteAssetModel, HTTPMethod: "DELETE", - HTTPPath: "/portals/{portalId}", + HTTPPath: "/asset-models/{assetModelId}", } if input == nil { - input = &DeletePortalInput{} + input = &DeleteAssetModelInput{} } - output = &DeletePortalOutput{} + output = &DeleteAssetModelOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeletePortal API operation for AWS IoT SiteWise. +// DeleteAssetModel API operation for AWS IoT SiteWise. // -// Deletes a portal from IoT SiteWise Monitor. +// Deletes an asset model. This action can't be undone. You must delete all +// assets created from an asset model before you can delete the model. Also, +// you can't delete an asset model if a parent asset model exists that contains +// a property formula expression that depends on the asset model that you want +// to delete. For more information, see Deleting assets and models (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/delete-assets-and-models.html) +// in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DeletePortal for usage and error information. +// API operation DeleteAssetModel for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1906,66 +2079,66 @@ func (c *IoTSiteWise) DeletePortalRequest(input *DeletePortalInput) (req *reques // Your request has conflicting operations. This can occur if you're trying // to perform more than one operation on the same resource at the same time. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeletePortal -func (c *IoTSiteWise) DeletePortal(input *DeletePortalInput) (*DeletePortalOutput, error) { - req, out := c.DeletePortalRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAssetModel +func (c *IoTSiteWise) DeleteAssetModel(input *DeleteAssetModelInput) (*DeleteAssetModelOutput, error) { + req, out := c.DeleteAssetModelRequest(input) return out, req.Send() } -// DeletePortalWithContext is the same as DeletePortal with the addition of +// DeleteAssetModelWithContext is the same as DeleteAssetModel with the addition of // the ability to pass a context and additional request options. // -// See DeletePortal for details on how to use this API operation. +// See DeleteAssetModel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DeletePortalWithContext(ctx aws.Context, input *DeletePortalInput, opts ...request.Option) (*DeletePortalOutput, error) { - req, out := c.DeletePortalRequest(input) +func (c *IoTSiteWise) DeleteAssetModelWithContext(ctx aws.Context, input *DeleteAssetModelInput, opts ...request.Option) (*DeleteAssetModelOutput, error) { + req, out := c.DeleteAssetModelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteProject = "DeleteProject" +const opDeleteDashboard = "DeleteDashboard" -// DeleteProjectRequest generates a "aws/request.Request" representing the -// client's request for the DeleteProject operation. The "output" return +// DeleteDashboardRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDashboard operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteProject for more information on using the DeleteProject +// See DeleteDashboard for more information on using the DeleteDashboard // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteProjectRequest method. -// req, resp := client.DeleteProjectRequest(params) +// // Example sending a request using the DeleteDashboardRequest method. +// req, resp := client.DeleteDashboardRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteProject -func (c *IoTSiteWise) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteDashboard +func (c *IoTSiteWise) DeleteDashboardRequest(input *DeleteDashboardInput) (req *request.Request, output *DeleteDashboardOutput) { op := &request.Operation{ - Name: opDeleteProject, + Name: opDeleteDashboard, HTTPMethod: "DELETE", - HTTPPath: "/projects/{projectId}", + HTTPPath: "/dashboards/{dashboardId}", } if input == nil { - input = &DeleteProjectInput{} + input = &DeleteDashboardInput{} } - output = &DeleteProjectOutput{} + output = &DeleteDashboardOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) @@ -1973,16 +2146,16 @@ func (c *IoTSiteWise) DeleteProjectRequest(input *DeleteProjectInput) (req *requ return } -// DeleteProject API operation for AWS IoT SiteWise. +// DeleteDashboard API operation for AWS IoT SiteWise. // -// Deletes a project from IoT SiteWise Monitor. +// Deletes a dashboard from IoT SiteWise Monitor. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DeleteProject for usage and error information. +// API operation DeleteDashboard for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -2003,66 +2176,66 @@ func (c *IoTSiteWise) DeleteProjectRequest(input *DeleteProjectInput) (req *requ // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteProject -func (c *IoTSiteWise) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) { - req, out := c.DeleteProjectRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteDashboard +func (c *IoTSiteWise) DeleteDashboard(input *DeleteDashboardInput) (*DeleteDashboardOutput, error) { + req, out := c.DeleteDashboardRequest(input) return out, req.Send() } -// DeleteProjectWithContext is the same as DeleteProject with the addition of +// DeleteDashboardWithContext is the same as DeleteDashboard with the addition of // the ability to pass a context and additional request options. // -// See DeleteProject for details on how to use this API operation. +// See DeleteDashboard for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DeleteProjectWithContext(ctx aws.Context, input *DeleteProjectInput, opts ...request.Option) (*DeleteProjectOutput, error) { - req, out := c.DeleteProjectRequest(input) +func (c *IoTSiteWise) DeleteDashboardWithContext(ctx aws.Context, input *DeleteDashboardInput, opts ...request.Option) (*DeleteDashboardOutput, error) { + req, out := c.DeleteDashboardRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteTimeSeries = "DeleteTimeSeries" +const opDeleteGateway = "DeleteGateway" -// DeleteTimeSeriesRequest generates a "aws/request.Request" representing the -// client's request for the DeleteTimeSeries operation. The "output" return +// DeleteGatewayRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGateway operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteTimeSeries for more information on using the DeleteTimeSeries +// See DeleteGateway for more information on using the DeleteGateway // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteTimeSeriesRequest method. -// req, resp := client.DeleteTimeSeriesRequest(params) +// // Example sending a request using the DeleteGatewayRequest method. +// req, resp := client.DeleteGatewayRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteTimeSeries -func (c *IoTSiteWise) DeleteTimeSeriesRequest(input *DeleteTimeSeriesInput) (req *request.Request, output *DeleteTimeSeriesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteGateway +func (c *IoTSiteWise) DeleteGatewayRequest(input *DeleteGatewayInput) (req *request.Request, output *DeleteGatewayOutput) { op := &request.Operation{ - Name: opDeleteTimeSeries, - HTTPMethod: "POST", - HTTPPath: "/timeseries/delete/", + Name: opDeleteGateway, + HTTPMethod: "DELETE", + HTTPPath: "/20200301/gateways/{gatewayId}", } if input == nil { - input = &DeleteTimeSeriesInput{} + input = &DeleteGatewayInput{} } - output = &DeleteTimeSeriesOutput{} + output = &DeleteGatewayOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) @@ -2070,27 +2243,17 @@ func (c *IoTSiteWise) DeleteTimeSeriesRequest(input *DeleteTimeSeriesInput) (req return } -// DeleteTimeSeries API operation for AWS IoT SiteWise. +// DeleteGateway API operation for AWS IoT SiteWise. // -// Deletes a time series (data stream). If you delete a time series that's associated -// with an asset property, the asset property still exists, but the time series -// will no longer be associated with this asset property. +// Deletes a gateway from IoT SiteWise. When you delete a gateway, some of the +// gateway's files remain in your gateway's file system. // -// To identify a time series, do one of the following: -// -// * If the time series isn't associated with an asset property, specify -// the alias of the time series. -// -// * If the time series is associated with an asset property, specify one -// of the following: The alias of the time series. The assetId and propertyId -// that identifies the asset property. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DeleteTimeSeries for usage and error information. +// API operation DeleteGateway for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -2111,87 +2274,82 @@ func (c *IoTSiteWise) DeleteTimeSeriesRequest(input *DeleteTimeSeriesInput) (req // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteTimeSeries -func (c *IoTSiteWise) DeleteTimeSeries(input *DeleteTimeSeriesInput) (*DeleteTimeSeriesOutput, error) { - req, out := c.DeleteTimeSeriesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteGateway +func (c *IoTSiteWise) DeleteGateway(input *DeleteGatewayInput) (*DeleteGatewayOutput, error) { + req, out := c.DeleteGatewayRequest(input) return out, req.Send() } -// DeleteTimeSeriesWithContext is the same as DeleteTimeSeries with the addition of +// DeleteGatewayWithContext is the same as DeleteGateway with the addition of // the ability to pass a context and additional request options. // -// See DeleteTimeSeries for details on how to use this API operation. +// See DeleteGateway for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DeleteTimeSeriesWithContext(ctx aws.Context, input *DeleteTimeSeriesInput, opts ...request.Option) (*DeleteTimeSeriesOutput, error) { - req, out := c.DeleteTimeSeriesRequest(input) +func (c *IoTSiteWise) DeleteGatewayWithContext(ctx aws.Context, input *DeleteGatewayInput, opts ...request.Option) (*DeleteGatewayOutput, error) { + req, out := c.DeleteGatewayRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeAccessPolicy = "DescribeAccessPolicy" +const opDeletePortal = "DeletePortal" -// DescribeAccessPolicyRequest generates a "aws/request.Request" representing the -// client's request for the DescribeAccessPolicy operation. The "output" return +// DeletePortalRequest generates a "aws/request.Request" representing the +// client's request for the DeletePortal operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeAccessPolicy for more information on using the DescribeAccessPolicy +// See DeletePortal for more information on using the DeletePortal // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeAccessPolicyRequest method. -// req, resp := client.DescribeAccessPolicyRequest(params) +// // Example sending a request using the DeletePortalRequest method. +// req, resp := client.DeletePortalRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAccessPolicy -func (c *IoTSiteWise) DescribeAccessPolicyRequest(input *DescribeAccessPolicyInput) (req *request.Request, output *DescribeAccessPolicyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeletePortal +func (c *IoTSiteWise) DeletePortalRequest(input *DeletePortalInput) (req *request.Request, output *DeletePortalOutput) { op := &request.Operation{ - Name: opDescribeAccessPolicy, - HTTPMethod: "GET", - HTTPPath: "/access-policies/{accessPolicyId}", + Name: opDeletePortal, + HTTPMethod: "DELETE", + HTTPPath: "/portals/{portalId}", } if input == nil { - input = &DescribeAccessPolicyInput{} + input = &DeletePortalInput{} } - output = &DescribeAccessPolicyOutput{} + output = &DeletePortalOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeAccessPolicy API operation for AWS IoT SiteWise. +// DeletePortal API operation for AWS IoT SiteWise. // -// Describes an access policy, which specifies an identity's access to an IoT -// SiteWise Monitor portal or project. +// Deletes a portal from IoT SiteWise Monitor. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DescribeAccessPolicy for usage and error information. +// API operation DeletePortal for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -2212,82 +2370,87 @@ func (c *IoTSiteWise) DescribeAccessPolicyRequest(input *DescribeAccessPolicyInp // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAccessPolicy -func (c *IoTSiteWise) DescribeAccessPolicy(input *DescribeAccessPolicyInput) (*DescribeAccessPolicyOutput, error) { - req, out := c.DescribeAccessPolicyRequest(input) +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeletePortal +func (c *IoTSiteWise) DeletePortal(input *DeletePortalInput) (*DeletePortalOutput, error) { + req, out := c.DeletePortalRequest(input) return out, req.Send() } -// DescribeAccessPolicyWithContext is the same as DescribeAccessPolicy with the addition of +// DeletePortalWithContext is the same as DeletePortal with the addition of // the ability to pass a context and additional request options. // -// See DescribeAccessPolicy for details on how to use this API operation. +// See DeletePortal for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeAccessPolicyWithContext(ctx aws.Context, input *DescribeAccessPolicyInput, opts ...request.Option) (*DescribeAccessPolicyOutput, error) { - req, out := c.DescribeAccessPolicyRequest(input) +func (c *IoTSiteWise) DeletePortalWithContext(ctx aws.Context, input *DeletePortalInput, opts ...request.Option) (*DeletePortalOutput, error) { + req, out := c.DeletePortalRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeAsset = "DescribeAsset" +const opDeleteProject = "DeleteProject" -// DescribeAssetRequest generates a "aws/request.Request" representing the -// client's request for the DescribeAsset operation. The "output" return +// DeleteProjectRequest generates a "aws/request.Request" representing the +// client's request for the DeleteProject operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeAsset for more information on using the DescribeAsset +// See DeleteProject for more information on using the DeleteProject // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeAssetRequest method. -// req, resp := client.DescribeAssetRequest(params) +// // Example sending a request using the DeleteProjectRequest method. +// req, resp := client.DeleteProjectRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAsset -func (c *IoTSiteWise) DescribeAssetRequest(input *DescribeAssetInput) (req *request.Request, output *DescribeAssetOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteProject +func (c *IoTSiteWise) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput) { op := &request.Operation{ - Name: opDescribeAsset, - HTTPMethod: "GET", - HTTPPath: "/assets/{assetId}", + Name: opDeleteProject, + HTTPMethod: "DELETE", + HTTPPath: "/projects/{projectId}", } if input == nil { - input = &DescribeAssetInput{} + input = &DeleteProjectInput{} } - output = &DescribeAssetOutput{} + output = &DeleteProjectOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeAsset API operation for AWS IoT SiteWise. +// DeleteProject API operation for AWS IoT SiteWise. // -// Retrieves information about an asset. +// Deletes a project from IoT SiteWise Monitor. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DescribeAsset for usage and error information. +// API operation DeleteProject for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -2308,82 +2471,94 @@ func (c *IoTSiteWise) DescribeAssetRequest(input *DescribeAssetInput) (req *requ // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAsset -func (c *IoTSiteWise) DescribeAsset(input *DescribeAssetInput) (*DescribeAssetOutput, error) { - req, out := c.DescribeAssetRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteProject +func (c *IoTSiteWise) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) { + req, out := c.DeleteProjectRequest(input) return out, req.Send() } -// DescribeAssetWithContext is the same as DescribeAsset with the addition of +// DeleteProjectWithContext is the same as DeleteProject with the addition of // the ability to pass a context and additional request options. // -// See DescribeAsset for details on how to use this API operation. +// See DeleteProject for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeAssetWithContext(ctx aws.Context, input *DescribeAssetInput, opts ...request.Option) (*DescribeAssetOutput, error) { - req, out := c.DescribeAssetRequest(input) +func (c *IoTSiteWise) DeleteProjectWithContext(ctx aws.Context, input *DeleteProjectInput, opts ...request.Option) (*DeleteProjectOutput, error) { + req, out := c.DeleteProjectRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeAssetModel = "DescribeAssetModel" +const opDeleteTimeSeries = "DeleteTimeSeries" -// DescribeAssetModelRequest generates a "aws/request.Request" representing the -// client's request for the DescribeAssetModel operation. The "output" return +// DeleteTimeSeriesRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTimeSeries operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeAssetModel for more information on using the DescribeAssetModel +// See DeleteTimeSeries for more information on using the DeleteTimeSeries // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeAssetModelRequest method. -// req, resp := client.DescribeAssetModelRequest(params) +// // Example sending a request using the DeleteTimeSeriesRequest method. +// req, resp := client.DeleteTimeSeriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAssetModel -func (c *IoTSiteWise) DescribeAssetModelRequest(input *DescribeAssetModelInput) (req *request.Request, output *DescribeAssetModelOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteTimeSeries +func (c *IoTSiteWise) DeleteTimeSeriesRequest(input *DeleteTimeSeriesInput) (req *request.Request, output *DeleteTimeSeriesOutput) { op := &request.Operation{ - Name: opDescribeAssetModel, - HTTPMethod: "GET", - HTTPPath: "/asset-models/{assetModelId}", + Name: opDeleteTimeSeries, + HTTPMethod: "POST", + HTTPPath: "/timeseries/delete/", } if input == nil { - input = &DescribeAssetModelInput{} + input = &DeleteTimeSeriesInput{} } - output = &DescribeAssetModelOutput{} + output = &DeleteTimeSeriesOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeAssetModel API operation for AWS IoT SiteWise. +// DeleteTimeSeries API operation for AWS IoT SiteWise. // -// Retrieves information about an asset model. +// Deletes a time series (data stream). If you delete a time series that's associated +// with an asset property, the asset property still exists, but the time series +// will no longer be associated with this asset property. +// +// To identify a time series, do one of the following: +// +// * If the time series isn't associated with an asset property, specify +// the alias of the time series. +// +// * If the time series is associated with an asset property, specify one +// of the following: The alias of the time series. The assetId and propertyId +// that identifies the asset property. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DescribeAssetModel for usage and error information. +// API operation DeleteTimeSeries for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -2404,90 +2579,87 @@ func (c *IoTSiteWise) DescribeAssetModelRequest(input *DescribeAssetModelInput) // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAssetModel -func (c *IoTSiteWise) DescribeAssetModel(input *DescribeAssetModelInput) (*DescribeAssetModelOutput, error) { - req, out := c.DescribeAssetModelRequest(input) +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteTimeSeries +func (c *IoTSiteWise) DeleteTimeSeries(input *DeleteTimeSeriesInput) (*DeleteTimeSeriesOutput, error) { + req, out := c.DeleteTimeSeriesRequest(input) return out, req.Send() } -// DescribeAssetModelWithContext is the same as DescribeAssetModel with the addition of +// DeleteTimeSeriesWithContext is the same as DeleteTimeSeries with the addition of // the ability to pass a context and additional request options. // -// See DescribeAssetModel for details on how to use this API operation. +// See DeleteTimeSeries for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeAssetModelWithContext(ctx aws.Context, input *DescribeAssetModelInput, opts ...request.Option) (*DescribeAssetModelOutput, error) { - req, out := c.DescribeAssetModelRequest(input) +func (c *IoTSiteWise) DeleteTimeSeriesWithContext(ctx aws.Context, input *DeleteTimeSeriesInput, opts ...request.Option) (*DeleteTimeSeriesOutput, error) { + req, out := c.DeleteTimeSeriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeAssetProperty = "DescribeAssetProperty" +const opDescribeAccessPolicy = "DescribeAccessPolicy" -// DescribeAssetPropertyRequest generates a "aws/request.Request" representing the -// client's request for the DescribeAssetProperty operation. The "output" return +// DescribeAccessPolicyRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAccessPolicy operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeAssetProperty for more information on using the DescribeAssetProperty +// See DescribeAccessPolicy for more information on using the DescribeAccessPolicy // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeAssetPropertyRequest method. -// req, resp := client.DescribeAssetPropertyRequest(params) +// // Example sending a request using the DescribeAccessPolicyRequest method. +// req, resp := client.DescribeAccessPolicyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAssetProperty -func (c *IoTSiteWise) DescribeAssetPropertyRequest(input *DescribeAssetPropertyInput) (req *request.Request, output *DescribeAssetPropertyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAccessPolicy +func (c *IoTSiteWise) DescribeAccessPolicyRequest(input *DescribeAccessPolicyInput) (req *request.Request, output *DescribeAccessPolicyOutput) { op := &request.Operation{ - Name: opDescribeAssetProperty, + Name: opDescribeAccessPolicy, HTTPMethod: "GET", - HTTPPath: "/assets/{assetId}/properties/{propertyId}", + HTTPPath: "/access-policies/{accessPolicyId}", } if input == nil { - input = &DescribeAssetPropertyInput{} + input = &DescribeAccessPolicyInput{} } - output = &DescribeAssetPropertyOutput{} + output = &DescribeAccessPolicyOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeAssetProperty API operation for AWS IoT SiteWise. -// -// Retrieves information about an asset property. -// -// When you call this operation for an attribute property, this response includes -// the default attribute value that you define in the asset model. If you update -// the default value in the model, this operation's response includes the new -// default value. +// DescribeAccessPolicy API operation for AWS IoT SiteWise. // -// This operation doesn't return the value of the asset property. To get the -// value of an asset property, use GetAssetPropertyValue (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_GetAssetPropertyValue.html). +// Describes an access policy, which specifies an identity's access to an IoT +// SiteWise Monitor portal or project. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DescribeAssetProperty for usage and error information. +// API operation DescribeAccessPolicy for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -2508,82 +2680,82 @@ func (c *IoTSiteWise) DescribeAssetPropertyRequest(input *DescribeAssetPropertyI // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAssetProperty -func (c *IoTSiteWise) DescribeAssetProperty(input *DescribeAssetPropertyInput) (*DescribeAssetPropertyOutput, error) { - req, out := c.DescribeAssetPropertyRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAccessPolicy +func (c *IoTSiteWise) DescribeAccessPolicy(input *DescribeAccessPolicyInput) (*DescribeAccessPolicyOutput, error) { + req, out := c.DescribeAccessPolicyRequest(input) return out, req.Send() } -// DescribeAssetPropertyWithContext is the same as DescribeAssetProperty with the addition of +// DescribeAccessPolicyWithContext is the same as DescribeAccessPolicy with the addition of // the ability to pass a context and additional request options. // -// See DescribeAssetProperty for details on how to use this API operation. +// See DescribeAccessPolicy for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeAssetPropertyWithContext(ctx aws.Context, input *DescribeAssetPropertyInput, opts ...request.Option) (*DescribeAssetPropertyOutput, error) { - req, out := c.DescribeAssetPropertyRequest(input) +func (c *IoTSiteWise) DescribeAccessPolicyWithContext(ctx aws.Context, input *DescribeAccessPolicyInput, opts ...request.Option) (*DescribeAccessPolicyOutput, error) { + req, out := c.DescribeAccessPolicyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeDashboard = "DescribeDashboard" +const opDescribeAsset = "DescribeAsset" -// DescribeDashboardRequest generates a "aws/request.Request" representing the -// client's request for the DescribeDashboard operation. The "output" return +// DescribeAssetRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAsset operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeDashboard for more information on using the DescribeDashboard +// See DescribeAsset for more information on using the DescribeAsset // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeDashboardRequest method. -// req, resp := client.DescribeDashboardRequest(params) +// // Example sending a request using the DescribeAssetRequest method. +// req, resp := client.DescribeAssetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeDashboard -func (c *IoTSiteWise) DescribeDashboardRequest(input *DescribeDashboardInput) (req *request.Request, output *DescribeDashboardOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAsset +func (c *IoTSiteWise) DescribeAssetRequest(input *DescribeAssetInput) (req *request.Request, output *DescribeAssetOutput) { op := &request.Operation{ - Name: opDescribeDashboard, + Name: opDescribeAsset, HTTPMethod: "GET", - HTTPPath: "/dashboards/{dashboardId}", + HTTPPath: "/assets/{assetId}", } if input == nil { - input = &DescribeDashboardInput{} + input = &DescribeAssetInput{} } - output = &DescribeDashboardOutput{} + output = &DescribeAssetOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeDashboard API operation for AWS IoT SiteWise. +// DescribeAsset API operation for AWS IoT SiteWise. // -// Retrieves information about a dashboard. +// Retrieves information about an asset. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DescribeDashboard for usage and error information. +// API operation DescribeAsset for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -2604,91 +2776,91 @@ func (c *IoTSiteWise) DescribeDashboardRequest(input *DescribeDashboardInput) (r // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeDashboard -func (c *IoTSiteWise) DescribeDashboard(input *DescribeDashboardInput) (*DescribeDashboardOutput, error) { - req, out := c.DescribeDashboardRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAsset +func (c *IoTSiteWise) DescribeAsset(input *DescribeAssetInput) (*DescribeAssetOutput, error) { + req, out := c.DescribeAssetRequest(input) return out, req.Send() } -// DescribeDashboardWithContext is the same as DescribeDashboard with the addition of +// DescribeAssetWithContext is the same as DescribeAsset with the addition of // the ability to pass a context and additional request options. // -// See DescribeDashboard for details on how to use this API operation. +// See DescribeAsset for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeDashboardWithContext(ctx aws.Context, input *DescribeDashboardInput, opts ...request.Option) (*DescribeDashboardOutput, error) { - req, out := c.DescribeDashboardRequest(input) +func (c *IoTSiteWise) DescribeAssetWithContext(ctx aws.Context, input *DescribeAssetInput, opts ...request.Option) (*DescribeAssetOutput, error) { + req, out := c.DescribeAssetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeDefaultEncryptionConfiguration = "DescribeDefaultEncryptionConfiguration" +const opDescribeAssetModel = "DescribeAssetModel" -// DescribeDefaultEncryptionConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the DescribeDefaultEncryptionConfiguration operation. The "output" return +// DescribeAssetModelRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAssetModel operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeDefaultEncryptionConfiguration for more information on using the DescribeDefaultEncryptionConfiguration +// See DescribeAssetModel for more information on using the DescribeAssetModel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeDefaultEncryptionConfigurationRequest method. -// req, resp := client.DescribeDefaultEncryptionConfigurationRequest(params) +// // Example sending a request using the DescribeAssetModelRequest method. +// req, resp := client.DescribeAssetModelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeDefaultEncryptionConfiguration -func (c *IoTSiteWise) DescribeDefaultEncryptionConfigurationRequest(input *DescribeDefaultEncryptionConfigurationInput) (req *request.Request, output *DescribeDefaultEncryptionConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAssetModel +func (c *IoTSiteWise) DescribeAssetModelRequest(input *DescribeAssetModelInput) (req *request.Request, output *DescribeAssetModelOutput) { op := &request.Operation{ - Name: opDescribeDefaultEncryptionConfiguration, + Name: opDescribeAssetModel, HTTPMethod: "GET", - HTTPPath: "/configuration/account/encryption", + HTTPPath: "/asset-models/{assetModelId}", } if input == nil { - input = &DescribeDefaultEncryptionConfigurationInput{} + input = &DescribeAssetModelInput{} } - output = &DescribeDefaultEncryptionConfigurationOutput{} + output = &DescribeAssetModelOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeDefaultEncryptionConfiguration API operation for AWS IoT SiteWise. +// DescribeAssetModel API operation for AWS IoT SiteWise. // -// Retrieves information about the default encryption configuration for the -// Amazon Web Services account in the default or specified Region. For more -// information, see Key management (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/key-management.html) -// in the IoT SiteWise User Guide. +// Retrieves information about an asset model. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DescribeDefaultEncryptionConfiguration for usage and error information. +// API operation DescribeAssetModel for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // +// * ResourceNotFoundException +// The requested resource can't be found. +// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -2700,82 +2872,90 @@ func (c *IoTSiteWise) DescribeDefaultEncryptionConfigurationRequest(input *Descr // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeDefaultEncryptionConfiguration -func (c *IoTSiteWise) DescribeDefaultEncryptionConfiguration(input *DescribeDefaultEncryptionConfigurationInput) (*DescribeDefaultEncryptionConfigurationOutput, error) { - req, out := c.DescribeDefaultEncryptionConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAssetModel +func (c *IoTSiteWise) DescribeAssetModel(input *DescribeAssetModelInput) (*DescribeAssetModelOutput, error) { + req, out := c.DescribeAssetModelRequest(input) return out, req.Send() } -// DescribeDefaultEncryptionConfigurationWithContext is the same as DescribeDefaultEncryptionConfiguration with the addition of +// DescribeAssetModelWithContext is the same as DescribeAssetModel with the addition of // the ability to pass a context and additional request options. // -// See DescribeDefaultEncryptionConfiguration for details on how to use this API operation. +// See DescribeAssetModel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeDefaultEncryptionConfigurationWithContext(ctx aws.Context, input *DescribeDefaultEncryptionConfigurationInput, opts ...request.Option) (*DescribeDefaultEncryptionConfigurationOutput, error) { - req, out := c.DescribeDefaultEncryptionConfigurationRequest(input) +func (c *IoTSiteWise) DescribeAssetModelWithContext(ctx aws.Context, input *DescribeAssetModelInput, opts ...request.Option) (*DescribeAssetModelOutput, error) { + req, out := c.DescribeAssetModelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeGateway = "DescribeGateway" +const opDescribeAssetProperty = "DescribeAssetProperty" -// DescribeGatewayRequest generates a "aws/request.Request" representing the -// client's request for the DescribeGateway operation. The "output" return +// DescribeAssetPropertyRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAssetProperty operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeGateway for more information on using the DescribeGateway +// See DescribeAssetProperty for more information on using the DescribeAssetProperty // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeGatewayRequest method. -// req, resp := client.DescribeGatewayRequest(params) +// // Example sending a request using the DescribeAssetPropertyRequest method. +// req, resp := client.DescribeAssetPropertyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeGateway -func (c *IoTSiteWise) DescribeGatewayRequest(input *DescribeGatewayInput) (req *request.Request, output *DescribeGatewayOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAssetProperty +func (c *IoTSiteWise) DescribeAssetPropertyRequest(input *DescribeAssetPropertyInput) (req *request.Request, output *DescribeAssetPropertyOutput) { op := &request.Operation{ - Name: opDescribeGateway, + Name: opDescribeAssetProperty, HTTPMethod: "GET", - HTTPPath: "/20200301/gateways/{gatewayId}", + HTTPPath: "/assets/{assetId}/properties/{propertyId}", } if input == nil { - input = &DescribeGatewayInput{} + input = &DescribeAssetPropertyInput{} } - output = &DescribeGatewayOutput{} + output = &DescribeAssetPropertyOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeGateway API operation for AWS IoT SiteWise. +// DescribeAssetProperty API operation for AWS IoT SiteWise. // -// Retrieves information about a gateway. +// Retrieves information about an asset property. +// +// When you call this operation for an attribute property, this response includes +// the default attribute value that you define in the asset model. If you update +// the default value in the model, this operation's response includes the new +// default value. +// +// This operation doesn't return the value of the asset property. To get the +// value of an asset property, use GetAssetPropertyValue (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_GetAssetPropertyValue.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 IoT SiteWise's -// API operation DescribeGateway for usage and error information. +// API operation DescribeAssetProperty for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -2796,87 +2976,82 @@ func (c *IoTSiteWise) DescribeGatewayRequest(input *DescribeGatewayInput) (req * // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeGateway -func (c *IoTSiteWise) DescribeGateway(input *DescribeGatewayInput) (*DescribeGatewayOutput, error) { - req, out := c.DescribeGatewayRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeAssetProperty +func (c *IoTSiteWise) DescribeAssetProperty(input *DescribeAssetPropertyInput) (*DescribeAssetPropertyOutput, error) { + req, out := c.DescribeAssetPropertyRequest(input) return out, req.Send() } -// DescribeGatewayWithContext is the same as DescribeGateway with the addition of +// DescribeAssetPropertyWithContext is the same as DescribeAssetProperty with the addition of // the ability to pass a context and additional request options. // -// See DescribeGateway for details on how to use this API operation. +// See DescribeAssetProperty for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeGatewayWithContext(ctx aws.Context, input *DescribeGatewayInput, opts ...request.Option) (*DescribeGatewayOutput, error) { - req, out := c.DescribeGatewayRequest(input) +func (c *IoTSiteWise) DescribeAssetPropertyWithContext(ctx aws.Context, input *DescribeAssetPropertyInput, opts ...request.Option) (*DescribeAssetPropertyOutput, error) { + req, out := c.DescribeAssetPropertyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeGatewayCapabilityConfiguration = "DescribeGatewayCapabilityConfiguration" +const opDescribeDashboard = "DescribeDashboard" -// DescribeGatewayCapabilityConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the DescribeGatewayCapabilityConfiguration operation. The "output" return +// DescribeDashboardRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDashboard operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeGatewayCapabilityConfiguration for more information on using the DescribeGatewayCapabilityConfiguration +// See DescribeDashboard for more information on using the DescribeDashboard // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeGatewayCapabilityConfigurationRequest method. -// req, resp := client.DescribeGatewayCapabilityConfigurationRequest(params) +// // Example sending a request using the DescribeDashboardRequest method. +// req, resp := client.DescribeDashboardRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeGatewayCapabilityConfiguration -func (c *IoTSiteWise) DescribeGatewayCapabilityConfigurationRequest(input *DescribeGatewayCapabilityConfigurationInput) (req *request.Request, output *DescribeGatewayCapabilityConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeDashboard +func (c *IoTSiteWise) DescribeDashboardRequest(input *DescribeDashboardInput) (req *request.Request, output *DescribeDashboardOutput) { op := &request.Operation{ - Name: opDescribeGatewayCapabilityConfiguration, + Name: opDescribeDashboard, HTTPMethod: "GET", - HTTPPath: "/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}", + HTTPPath: "/dashboards/{dashboardId}", } if input == nil { - input = &DescribeGatewayCapabilityConfigurationInput{} + input = &DescribeDashboardInput{} } - output = &DescribeGatewayCapabilityConfigurationOutput{} + output = &DescribeDashboardOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeGatewayCapabilityConfiguration API operation for AWS IoT SiteWise. +// DescribeDashboard API operation for AWS IoT SiteWise. // -// Retrieves information about a gateway capability configuration. Each gateway -// capability defines data sources for a gateway. A capability configuration -// can contain multiple data source configurations. If you define OPC-UA sources -// for a gateway in the IoT SiteWise console, all of your OPC-UA sources are -// stored in one capability configuration. To list all capability configurations -// for a gateway, use DescribeGateway (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGateway.html). +// Retrieves information about a dashboard. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DescribeGatewayCapabilityConfiguration for usage and error information. +// API operation DescribeDashboard for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -2897,88 +3072,94 @@ func (c *IoTSiteWise) DescribeGatewayCapabilityConfigurationRequest(input *Descr // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeGatewayCapabilityConfiguration -func (c *IoTSiteWise) DescribeGatewayCapabilityConfiguration(input *DescribeGatewayCapabilityConfigurationInput) (*DescribeGatewayCapabilityConfigurationOutput, error) { - req, out := c.DescribeGatewayCapabilityConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeDashboard +func (c *IoTSiteWise) DescribeDashboard(input *DescribeDashboardInput) (*DescribeDashboardOutput, error) { + req, out := c.DescribeDashboardRequest(input) return out, req.Send() } -// DescribeGatewayCapabilityConfigurationWithContext is the same as DescribeGatewayCapabilityConfiguration with the addition of +// DescribeDashboardWithContext is the same as DescribeDashboard with the addition of // the ability to pass a context and additional request options. // -// See DescribeGatewayCapabilityConfiguration for details on how to use this API operation. +// See DescribeDashboard for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeGatewayCapabilityConfigurationWithContext(ctx aws.Context, input *DescribeGatewayCapabilityConfigurationInput, opts ...request.Option) (*DescribeGatewayCapabilityConfigurationOutput, error) { - req, out := c.DescribeGatewayCapabilityConfigurationRequest(input) +func (c *IoTSiteWise) DescribeDashboardWithContext(ctx aws.Context, input *DescribeDashboardInput, opts ...request.Option) (*DescribeDashboardOutput, error) { + req, out := c.DescribeDashboardRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeLoggingOptions = "DescribeLoggingOptions" +const opDescribeDefaultEncryptionConfiguration = "DescribeDefaultEncryptionConfiguration" -// DescribeLoggingOptionsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeLoggingOptions operation. The "output" return +// DescribeDefaultEncryptionConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDefaultEncryptionConfiguration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeLoggingOptions for more information on using the DescribeLoggingOptions +// See DescribeDefaultEncryptionConfiguration for more information on using the DescribeDefaultEncryptionConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeLoggingOptionsRequest method. -// req, resp := client.DescribeLoggingOptionsRequest(params) +// // Example sending a request using the DescribeDefaultEncryptionConfigurationRequest method. +// req, resp := client.DescribeDefaultEncryptionConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeLoggingOptions -func (c *IoTSiteWise) DescribeLoggingOptionsRequest(input *DescribeLoggingOptionsInput) (req *request.Request, output *DescribeLoggingOptionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeDefaultEncryptionConfiguration +func (c *IoTSiteWise) DescribeDefaultEncryptionConfigurationRequest(input *DescribeDefaultEncryptionConfigurationInput) (req *request.Request, output *DescribeDefaultEncryptionConfigurationOutput) { op := &request.Operation{ - Name: opDescribeLoggingOptions, + Name: opDescribeDefaultEncryptionConfiguration, HTTPMethod: "GET", - HTTPPath: "/logging", + HTTPPath: "/configuration/account/encryption", } if input == nil { - input = &DescribeLoggingOptionsInput{} + input = &DescribeDefaultEncryptionConfigurationInput{} } - output = &DescribeLoggingOptionsOutput{} + output = &DescribeDefaultEncryptionConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeLoggingOptions API operation for AWS IoT SiteWise. +// DescribeDefaultEncryptionConfiguration API operation for AWS IoT SiteWise. // -// Retrieves the current IoT SiteWise logging options. +// Retrieves information about the default encryption configuration for the +// Amazon Web Services account in the default or specified Region. For more +// information, see Key management (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/key-management.html) +// in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DescribeLoggingOptions for usage and error information. +// API operation DescribeDefaultEncryptionConfiguration for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. +// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -2987,88 +3168,82 @@ func (c *IoTSiteWise) DescribeLoggingOptionsRequest(input *DescribeLoggingOption // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * InternalFailureException -// IoT SiteWise can't process your request right now. Try again later. -// -// * ResourceNotFoundException -// The requested resource can't be found. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeLoggingOptions -func (c *IoTSiteWise) DescribeLoggingOptions(input *DescribeLoggingOptionsInput) (*DescribeLoggingOptionsOutput, error) { - req, out := c.DescribeLoggingOptionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeDefaultEncryptionConfiguration +func (c *IoTSiteWise) DescribeDefaultEncryptionConfiguration(input *DescribeDefaultEncryptionConfigurationInput) (*DescribeDefaultEncryptionConfigurationOutput, error) { + req, out := c.DescribeDefaultEncryptionConfigurationRequest(input) return out, req.Send() } -// DescribeLoggingOptionsWithContext is the same as DescribeLoggingOptions with the addition of +// DescribeDefaultEncryptionConfigurationWithContext is the same as DescribeDefaultEncryptionConfiguration with the addition of // the ability to pass a context and additional request options. // -// See DescribeLoggingOptions for details on how to use this API operation. +// See DescribeDefaultEncryptionConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeLoggingOptionsWithContext(ctx aws.Context, input *DescribeLoggingOptionsInput, opts ...request.Option) (*DescribeLoggingOptionsOutput, error) { - req, out := c.DescribeLoggingOptionsRequest(input) +func (c *IoTSiteWise) DescribeDefaultEncryptionConfigurationWithContext(ctx aws.Context, input *DescribeDefaultEncryptionConfigurationInput, opts ...request.Option) (*DescribeDefaultEncryptionConfigurationOutput, error) { + req, out := c.DescribeDefaultEncryptionConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribePortal = "DescribePortal" +const opDescribeGateway = "DescribeGateway" -// DescribePortalRequest generates a "aws/request.Request" representing the -// client's request for the DescribePortal operation. The "output" return +// DescribeGatewayRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGateway operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribePortal for more information on using the DescribePortal +// See DescribeGateway for more information on using the DescribeGateway // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribePortalRequest method. -// req, resp := client.DescribePortalRequest(params) -// +// // Example sending a request using the DescribeGatewayRequest method. +// req, resp := client.DescribeGatewayRequest(params) +// // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribePortal -func (c *IoTSiteWise) DescribePortalRequest(input *DescribePortalInput) (req *request.Request, output *DescribePortalOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeGateway +func (c *IoTSiteWise) DescribeGatewayRequest(input *DescribeGatewayInput) (req *request.Request, output *DescribeGatewayOutput) { op := &request.Operation{ - Name: opDescribePortal, + Name: opDescribeGateway, HTTPMethod: "GET", - HTTPPath: "/portals/{portalId}", + HTTPPath: "/20200301/gateways/{gatewayId}", } if input == nil { - input = &DescribePortalInput{} + input = &DescribeGatewayInput{} } - output = &DescribePortalOutput{} + output = &DescribeGatewayOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribePortal API operation for AWS IoT SiteWise. +// DescribeGateway API operation for AWS IoT SiteWise. // -// Retrieves information about a portal. +// Retrieves information about a gateway. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DescribePortal for usage and error information. +// API operation DescribeGateway for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3089,82 +3264,87 @@ func (c *IoTSiteWise) DescribePortalRequest(input *DescribePortalInput) (req *re // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribePortal -func (c *IoTSiteWise) DescribePortal(input *DescribePortalInput) (*DescribePortalOutput, error) { - req, out := c.DescribePortalRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeGateway +func (c *IoTSiteWise) DescribeGateway(input *DescribeGatewayInput) (*DescribeGatewayOutput, error) { + req, out := c.DescribeGatewayRequest(input) return out, req.Send() } -// DescribePortalWithContext is the same as DescribePortal with the addition of +// DescribeGatewayWithContext is the same as DescribeGateway with the addition of // the ability to pass a context and additional request options. // -// See DescribePortal for details on how to use this API operation. +// See DescribeGateway for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribePortalWithContext(ctx aws.Context, input *DescribePortalInput, opts ...request.Option) (*DescribePortalOutput, error) { - req, out := c.DescribePortalRequest(input) +func (c *IoTSiteWise) DescribeGatewayWithContext(ctx aws.Context, input *DescribeGatewayInput, opts ...request.Option) (*DescribeGatewayOutput, error) { + req, out := c.DescribeGatewayRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeProject = "DescribeProject" +const opDescribeGatewayCapabilityConfiguration = "DescribeGatewayCapabilityConfiguration" -// DescribeProjectRequest generates a "aws/request.Request" representing the -// client's request for the DescribeProject operation. The "output" return +// DescribeGatewayCapabilityConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGatewayCapabilityConfiguration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeProject for more information on using the DescribeProject +// See DescribeGatewayCapabilityConfiguration for more information on using the DescribeGatewayCapabilityConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeProjectRequest method. -// req, resp := client.DescribeProjectRequest(params) +// // Example sending a request using the DescribeGatewayCapabilityConfigurationRequest method. +// req, resp := client.DescribeGatewayCapabilityConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeProject -func (c *IoTSiteWise) DescribeProjectRequest(input *DescribeProjectInput) (req *request.Request, output *DescribeProjectOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeGatewayCapabilityConfiguration +func (c *IoTSiteWise) DescribeGatewayCapabilityConfigurationRequest(input *DescribeGatewayCapabilityConfigurationInput) (req *request.Request, output *DescribeGatewayCapabilityConfigurationOutput) { op := &request.Operation{ - Name: opDescribeProject, + Name: opDescribeGatewayCapabilityConfiguration, HTTPMethod: "GET", - HTTPPath: "/projects/{projectId}", + HTTPPath: "/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}", } if input == nil { - input = &DescribeProjectInput{} + input = &DescribeGatewayCapabilityConfigurationInput{} } - output = &DescribeProjectOutput{} + output = &DescribeGatewayCapabilityConfigurationOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeProject API operation for AWS IoT SiteWise. +// DescribeGatewayCapabilityConfiguration API operation for AWS IoT SiteWise. // -// Retrieves information about a project. +// Retrieves information about a gateway capability configuration. Each gateway +// capability defines data sources for a gateway. A capability configuration +// can contain multiple data source configurations. If you define OPC-UA sources +// for a gateway in the IoT SiteWise console, all of your OPC-UA sources are +// stored in one capability configuration. To list all capability configurations +// for a gateway, use DescribeGateway (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGateway.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 IoT SiteWise's -// API operation DescribeProject for usage and error information. +// API operation DescribeGatewayCapabilityConfiguration for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3185,94 +3365,88 @@ func (c *IoTSiteWise) DescribeProjectRequest(input *DescribeProjectInput) (req * // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeProject -func (c *IoTSiteWise) DescribeProject(input *DescribeProjectInput) (*DescribeProjectOutput, error) { - req, out := c.DescribeProjectRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeGatewayCapabilityConfiguration +func (c *IoTSiteWise) DescribeGatewayCapabilityConfiguration(input *DescribeGatewayCapabilityConfigurationInput) (*DescribeGatewayCapabilityConfigurationOutput, error) { + req, out := c.DescribeGatewayCapabilityConfigurationRequest(input) return out, req.Send() } -// DescribeProjectWithContext is the same as DescribeProject with the addition of +// DescribeGatewayCapabilityConfigurationWithContext is the same as DescribeGatewayCapabilityConfiguration with the addition of // the ability to pass a context and additional request options. // -// See DescribeProject for details on how to use this API operation. +// See DescribeGatewayCapabilityConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeProjectWithContext(ctx aws.Context, input *DescribeProjectInput, opts ...request.Option) (*DescribeProjectOutput, error) { - req, out := c.DescribeProjectRequest(input) +func (c *IoTSiteWise) DescribeGatewayCapabilityConfigurationWithContext(ctx aws.Context, input *DescribeGatewayCapabilityConfigurationInput, opts ...request.Option) (*DescribeGatewayCapabilityConfigurationOutput, error) { + req, out := c.DescribeGatewayCapabilityConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeStorageConfiguration = "DescribeStorageConfiguration" +const opDescribeLoggingOptions = "DescribeLoggingOptions" -// DescribeStorageConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the DescribeStorageConfiguration operation. The "output" return +// DescribeLoggingOptionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLoggingOptions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeStorageConfiguration for more information on using the DescribeStorageConfiguration +// See DescribeLoggingOptions for more information on using the DescribeLoggingOptions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeStorageConfigurationRequest method. -// req, resp := client.DescribeStorageConfigurationRequest(params) +// // Example sending a request using the DescribeLoggingOptionsRequest method. +// req, resp := client.DescribeLoggingOptionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeStorageConfiguration -func (c *IoTSiteWise) DescribeStorageConfigurationRequest(input *DescribeStorageConfigurationInput) (req *request.Request, output *DescribeStorageConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeLoggingOptions +func (c *IoTSiteWise) DescribeLoggingOptionsRequest(input *DescribeLoggingOptionsInput) (req *request.Request, output *DescribeLoggingOptionsOutput) { op := &request.Operation{ - Name: opDescribeStorageConfiguration, + Name: opDescribeLoggingOptions, HTTPMethod: "GET", - HTTPPath: "/configuration/account/storage", + HTTPPath: "/logging", } if input == nil { - input = &DescribeStorageConfigurationInput{} + input = &DescribeLoggingOptionsInput{} } - output = &DescribeStorageConfigurationOutput{} + output = &DescribeLoggingOptionsOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeStorageConfiguration API operation for AWS IoT SiteWise. +// DescribeLoggingOptions API operation for AWS IoT SiteWise. // -// Retrieves information about the storage configuration for IoT SiteWise. +// Retrieves the current IoT SiteWise logging options. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DescribeStorageConfiguration for usage and error information. +// API operation DescribeLoggingOptions for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * ResourceNotFoundException -// The requested resource can't be found. -// -// * InternalFailureException -// IoT SiteWise can't process your request right now. Try again later. -// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -3281,103 +3455,88 @@ func (c *IoTSiteWise) DescribeStorageConfigurationRequest(input *DescribeStorage // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * LimitExceededException -// You've reached the limit for a resource. For example, this can occur if you're -// trying to associate more than the allowed number of child assets or attempting -// to create more than the allowed number of properties for an asset model. -// -// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) -// in the IoT SiteWise User Guide. +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. // -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. +// * ResourceNotFoundException +// The requested resource can't be found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeStorageConfiguration -func (c *IoTSiteWise) DescribeStorageConfiguration(input *DescribeStorageConfigurationInput) (*DescribeStorageConfigurationOutput, error) { - req, out := c.DescribeStorageConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeLoggingOptions +func (c *IoTSiteWise) DescribeLoggingOptions(input *DescribeLoggingOptionsInput) (*DescribeLoggingOptionsOutput, error) { + req, out := c.DescribeLoggingOptionsRequest(input) return out, req.Send() } -// DescribeStorageConfigurationWithContext is the same as DescribeStorageConfiguration with the addition of +// DescribeLoggingOptionsWithContext is the same as DescribeLoggingOptions with the addition of // the ability to pass a context and additional request options. // -// See DescribeStorageConfiguration for details on how to use this API operation. +// See DescribeLoggingOptions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeStorageConfigurationWithContext(ctx aws.Context, input *DescribeStorageConfigurationInput, opts ...request.Option) (*DescribeStorageConfigurationOutput, error) { - req, out := c.DescribeStorageConfigurationRequest(input) +func (c *IoTSiteWise) DescribeLoggingOptionsWithContext(ctx aws.Context, input *DescribeLoggingOptionsInput, opts ...request.Option) (*DescribeLoggingOptionsOutput, error) { + req, out := c.DescribeLoggingOptionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeTimeSeries = "DescribeTimeSeries" +const opDescribePortal = "DescribePortal" -// DescribeTimeSeriesRequest generates a "aws/request.Request" representing the -// client's request for the DescribeTimeSeries operation. The "output" return +// DescribePortalRequest generates a "aws/request.Request" representing the +// client's request for the DescribePortal operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeTimeSeries for more information on using the DescribeTimeSeries +// See DescribePortal for more information on using the DescribePortal // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeTimeSeriesRequest method. -// req, resp := client.DescribeTimeSeriesRequest(params) +// // Example sending a request using the DescribePortalRequest method. +// req, resp := client.DescribePortalRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeTimeSeries -func (c *IoTSiteWise) DescribeTimeSeriesRequest(input *DescribeTimeSeriesInput) (req *request.Request, output *DescribeTimeSeriesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribePortal +func (c *IoTSiteWise) DescribePortalRequest(input *DescribePortalInput) (req *request.Request, output *DescribePortalOutput) { op := &request.Operation{ - Name: opDescribeTimeSeries, + Name: opDescribePortal, HTTPMethod: "GET", - HTTPPath: "/timeseries/describe/", + HTTPPath: "/portals/{portalId}", } if input == nil { - input = &DescribeTimeSeriesInput{} + input = &DescribePortalInput{} } - output = &DescribeTimeSeriesOutput{} + output = &DescribePortalOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DescribeTimeSeries API operation for AWS IoT SiteWise. -// -// Retrieves information about a time series (data stream). -// -// To identify a time series, do one of the following: -// -// * If the time series isn't associated with an asset property, specify -// the alias of the time series. +// DescribePortal API operation for AWS IoT SiteWise. // -// * If the time series is associated with an asset property, specify one -// of the following: The alias of the time series. The assetId and propertyId -// that identifies the asset property. +// Retrieves information about a portal. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DescribeTimeSeries for usage and error information. +// API operation DescribePortal for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3398,84 +3557,82 @@ func (c *IoTSiteWise) DescribeTimeSeriesRequest(input *DescribeTimeSeriesInput) // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeTimeSeries -func (c *IoTSiteWise) DescribeTimeSeries(input *DescribeTimeSeriesInput) (*DescribeTimeSeriesOutput, error) { - req, out := c.DescribeTimeSeriesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribePortal +func (c *IoTSiteWise) DescribePortal(input *DescribePortalInput) (*DescribePortalOutput, error) { + req, out := c.DescribePortalRequest(input) return out, req.Send() } -// DescribeTimeSeriesWithContext is the same as DescribeTimeSeries with the addition of +// DescribePortalWithContext is the same as DescribePortal with the addition of // the ability to pass a context and additional request options. // -// See DescribeTimeSeries for details on how to use this API operation. +// See DescribePortal for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DescribeTimeSeriesWithContext(ctx aws.Context, input *DescribeTimeSeriesInput, opts ...request.Option) (*DescribeTimeSeriesOutput, error) { - req, out := c.DescribeTimeSeriesRequest(input) +func (c *IoTSiteWise) DescribePortalWithContext(ctx aws.Context, input *DescribePortalInput, opts ...request.Option) (*DescribePortalOutput, error) { + req, out := c.DescribePortalRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociateAssets = "DisassociateAssets" +const opDescribeProject = "DescribeProject" -// DisassociateAssetsRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateAssets operation. The "output" return +// DescribeProjectRequest generates a "aws/request.Request" representing the +// client's request for the DescribeProject operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DisassociateAssets for more information on using the DisassociateAssets +// See DescribeProject for more information on using the DescribeProject // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DisassociateAssetsRequest method. -// req, resp := client.DisassociateAssetsRequest(params) +// // Example sending a request using the DescribeProjectRequest method. +// req, resp := client.DescribeProjectRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateAssets -func (c *IoTSiteWise) DisassociateAssetsRequest(input *DisassociateAssetsInput) (req *request.Request, output *DisassociateAssetsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeProject +func (c *IoTSiteWise) DescribeProjectRequest(input *DescribeProjectInput) (req *request.Request, output *DescribeProjectOutput) { op := &request.Operation{ - Name: opDisassociateAssets, - HTTPMethod: "POST", - HTTPPath: "/assets/{assetId}/disassociate", + Name: opDescribeProject, + HTTPMethod: "GET", + HTTPPath: "/projects/{projectId}", } if input == nil { - input = &DisassociateAssetsInput{} + input = &DescribeProjectInput{} } - output = &DisassociateAssetsOutput{} + output = &DescribeProjectOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DisassociateAssets API operation for AWS IoT SiteWise. +// DescribeProject API operation for AWS IoT SiteWise. // -// Disassociates a child asset from the given parent asset through a hierarchy -// defined in the parent asset's model. +// Retrieves information about a project. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DisassociateAssets for usage and error information. +// API operation DescribeProject for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3496,87 +3653,82 @@ func (c *IoTSiteWise) DisassociateAssetsRequest(input *DisassociateAssetsInput) // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateAssets -func (c *IoTSiteWise) DisassociateAssets(input *DisassociateAssetsInput) (*DisassociateAssetsOutput, error) { - req, out := c.DisassociateAssetsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeProject +func (c *IoTSiteWise) DescribeProject(input *DescribeProjectInput) (*DescribeProjectOutput, error) { + req, out := c.DescribeProjectRequest(input) return out, req.Send() } -// DisassociateAssetsWithContext is the same as DisassociateAssets with the addition of +// DescribeProjectWithContext is the same as DescribeProject with the addition of // the ability to pass a context and additional request options. // -// See DisassociateAssets for details on how to use this API operation. +// See DescribeProject for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DisassociateAssetsWithContext(ctx aws.Context, input *DisassociateAssetsInput, opts ...request.Option) (*DisassociateAssetsOutput, error) { - req, out := c.DisassociateAssetsRequest(input) +func (c *IoTSiteWise) DescribeProjectWithContext(ctx aws.Context, input *DescribeProjectInput, opts ...request.Option) (*DescribeProjectOutput, error) { + req, out := c.DescribeProjectRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociateTimeSeriesFromAssetProperty = "DisassociateTimeSeriesFromAssetProperty" +const opDescribeStorageConfiguration = "DescribeStorageConfiguration" -// DisassociateTimeSeriesFromAssetPropertyRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateTimeSeriesFromAssetProperty operation. The "output" return +// DescribeStorageConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeStorageConfiguration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DisassociateTimeSeriesFromAssetProperty for more information on using the DisassociateTimeSeriesFromAssetProperty +// See DescribeStorageConfiguration for more information on using the DescribeStorageConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DisassociateTimeSeriesFromAssetPropertyRequest method. -// req, resp := client.DisassociateTimeSeriesFromAssetPropertyRequest(params) +// // Example sending a request using the DescribeStorageConfigurationRequest method. +// req, resp := client.DescribeStorageConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateTimeSeriesFromAssetProperty -func (c *IoTSiteWise) DisassociateTimeSeriesFromAssetPropertyRequest(input *DisassociateTimeSeriesFromAssetPropertyInput) (req *request.Request, output *DisassociateTimeSeriesFromAssetPropertyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeStorageConfiguration +func (c *IoTSiteWise) DescribeStorageConfigurationRequest(input *DescribeStorageConfigurationInput) (req *request.Request, output *DescribeStorageConfigurationOutput) { op := &request.Operation{ - Name: opDisassociateTimeSeriesFromAssetProperty, - HTTPMethod: "POST", - HTTPPath: "/timeseries/disassociate/", + Name: opDescribeStorageConfiguration, + HTTPMethod: "GET", + HTTPPath: "/configuration/account/storage", } if input == nil { - input = &DisassociateTimeSeriesFromAssetPropertyInput{} + input = &DescribeStorageConfigurationInput{} } - output = &DisassociateTimeSeriesFromAssetPropertyOutput{} + output = &DescribeStorageConfigurationOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DisassociateTimeSeriesFromAssetProperty API operation for AWS IoT SiteWise. +// DescribeStorageConfiguration API operation for AWS IoT SiteWise. // -// Disassociates a time series (data stream) from an asset property. +// Retrieves information about the storage configuration for IoT SiteWise. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DisassociateTimeSeriesFromAssetProperty for usage and error information. +// API operation DescribeStorageConfiguration for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3597,101 +3749,103 @@ func (c *IoTSiteWise) DisassociateTimeSeriesFromAssetPropertyRequest(input *Disa // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // +// * LimitExceededException +// You've reached the limit for a resource. For example, this can occur if you're +// trying to associate more than the allowed number of child assets or attempting +// to create more than the allowed number of properties for an asset model. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// // * ConflictingOperationException // Your request has conflicting operations. This can occur if you're trying // to perform more than one operation on the same resource at the same time. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateTimeSeriesFromAssetProperty -func (c *IoTSiteWise) DisassociateTimeSeriesFromAssetProperty(input *DisassociateTimeSeriesFromAssetPropertyInput) (*DisassociateTimeSeriesFromAssetPropertyOutput, error) { - req, out := c.DisassociateTimeSeriesFromAssetPropertyRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeStorageConfiguration +func (c *IoTSiteWise) DescribeStorageConfiguration(input *DescribeStorageConfigurationInput) (*DescribeStorageConfigurationOutput, error) { + req, out := c.DescribeStorageConfigurationRequest(input) return out, req.Send() } -// DisassociateTimeSeriesFromAssetPropertyWithContext is the same as DisassociateTimeSeriesFromAssetProperty with the addition of +// DescribeStorageConfigurationWithContext is the same as DescribeStorageConfiguration with the addition of // the ability to pass a context and additional request options. // -// See DisassociateTimeSeriesFromAssetProperty for details on how to use this API operation. +// See DescribeStorageConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) DisassociateTimeSeriesFromAssetPropertyWithContext(ctx aws.Context, input *DisassociateTimeSeriesFromAssetPropertyInput, opts ...request.Option) (*DisassociateTimeSeriesFromAssetPropertyOutput, error) { - req, out := c.DisassociateTimeSeriesFromAssetPropertyRequest(input) +func (c *IoTSiteWise) DescribeStorageConfigurationWithContext(ctx aws.Context, input *DescribeStorageConfigurationInput, opts ...request.Option) (*DescribeStorageConfigurationOutput, error) { + req, out := c.DescribeStorageConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetAssetPropertyAggregates = "GetAssetPropertyAggregates" +const opDescribeTimeSeries = "DescribeTimeSeries" -// GetAssetPropertyAggregatesRequest generates a "aws/request.Request" representing the -// client's request for the GetAssetPropertyAggregates operation. The "output" return +// DescribeTimeSeriesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTimeSeries operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetAssetPropertyAggregates for more information on using the GetAssetPropertyAggregates +// See DescribeTimeSeries for more information on using the DescribeTimeSeries // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetAssetPropertyAggregatesRequest method. -// req, resp := client.GetAssetPropertyAggregatesRequest(params) +// // Example sending a request using the DescribeTimeSeriesRequest method. +// req, resp := client.DescribeTimeSeriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyAggregates -func (c *IoTSiteWise) GetAssetPropertyAggregatesRequest(input *GetAssetPropertyAggregatesInput) (req *request.Request, output *GetAssetPropertyAggregatesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeTimeSeries +func (c *IoTSiteWise) DescribeTimeSeriesRequest(input *DescribeTimeSeriesInput) (req *request.Request, output *DescribeTimeSeriesOutput) { op := &request.Operation{ - Name: opGetAssetPropertyAggregates, + Name: opDescribeTimeSeries, HTTPMethod: "GET", - HTTPPath: "/properties/aggregates", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, + HTTPPath: "/timeseries/describe/", } if input == nil { - input = &GetAssetPropertyAggregatesInput{} + input = &DescribeTimeSeriesInput{} } - output = &GetAssetPropertyAggregatesOutput{} + output = &DescribeTimeSeriesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetAssetPropertyAggregates API operation for AWS IoT SiteWise. +// DescribeTimeSeries API operation for AWS IoT SiteWise. // -// Gets aggregated values for an asset property. For more information, see Querying -// aggregates (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#aggregates) -// in the IoT SiteWise User Guide. +// Retrieves information about a time series (data stream). // -// To identify an asset property, you must specify one of the following: +// To identify a time series, do one of the following: // -// * The assetId and propertyId of an asset property. +// * If the time series isn't associated with an asset property, specify +// the alias of the time series. // -// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). -// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). +// * If the time series is associated with an asset property, specify one +// of the following: The alias of the time series. The assetId and propertyId +// that identifies the asset property. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation GetAssetPropertyAggregates for usage and error information. +// API operation DescribeTimeSeries for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3712,146 +3866,84 @@ func (c *IoTSiteWise) GetAssetPropertyAggregatesRequest(input *GetAssetPropertyA // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ServiceUnavailableException -// The requested service is unavailable. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyAggregates -func (c *IoTSiteWise) GetAssetPropertyAggregates(input *GetAssetPropertyAggregatesInput) (*GetAssetPropertyAggregatesOutput, error) { - req, out := c.GetAssetPropertyAggregatesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeTimeSeries +func (c *IoTSiteWise) DescribeTimeSeries(input *DescribeTimeSeriesInput) (*DescribeTimeSeriesOutput, error) { + req, out := c.DescribeTimeSeriesRequest(input) return out, req.Send() } -// GetAssetPropertyAggregatesWithContext is the same as GetAssetPropertyAggregates with the addition of +// DescribeTimeSeriesWithContext is the same as DescribeTimeSeries with the addition of // the ability to pass a context and additional request options. // -// See GetAssetPropertyAggregates for details on how to use this API operation. +// See DescribeTimeSeries for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) GetAssetPropertyAggregatesWithContext(ctx aws.Context, input *GetAssetPropertyAggregatesInput, opts ...request.Option) (*GetAssetPropertyAggregatesOutput, error) { - req, out := c.GetAssetPropertyAggregatesRequest(input) +func (c *IoTSiteWise) DescribeTimeSeriesWithContext(ctx aws.Context, input *DescribeTimeSeriesInput, opts ...request.Option) (*DescribeTimeSeriesOutput, error) { + req, out := c.DescribeTimeSeriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// GetAssetPropertyAggregatesPages iterates over the pages of a GetAssetPropertyAggregates operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See GetAssetPropertyAggregates 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 GetAssetPropertyAggregates operation. -// pageNum := 0 -// err := client.GetAssetPropertyAggregatesPages(params, -// func(page *iotsitewise.GetAssetPropertyAggregatesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *IoTSiteWise) GetAssetPropertyAggregatesPages(input *GetAssetPropertyAggregatesInput, fn func(*GetAssetPropertyAggregatesOutput, bool) bool) error { - return c.GetAssetPropertyAggregatesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// GetAssetPropertyAggregatesPagesWithContext same as GetAssetPropertyAggregatesPages 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 *IoTSiteWise) GetAssetPropertyAggregatesPagesWithContext(ctx aws.Context, input *GetAssetPropertyAggregatesInput, fn func(*GetAssetPropertyAggregatesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *GetAssetPropertyAggregatesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.GetAssetPropertyAggregatesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*GetAssetPropertyAggregatesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opGetAssetPropertyValue = "GetAssetPropertyValue" +const opDisassociateAssets = "DisassociateAssets" -// GetAssetPropertyValueRequest generates a "aws/request.Request" representing the -// client's request for the GetAssetPropertyValue operation. The "output" return +// DisassociateAssetsRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateAssets operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetAssetPropertyValue for more information on using the GetAssetPropertyValue +// See DisassociateAssets for more information on using the DisassociateAssets // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetAssetPropertyValueRequest method. -// req, resp := client.GetAssetPropertyValueRequest(params) +// // Example sending a request using the DisassociateAssetsRequest method. +// req, resp := client.DisassociateAssetsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyValue -func (c *IoTSiteWise) GetAssetPropertyValueRequest(input *GetAssetPropertyValueInput) (req *request.Request, output *GetAssetPropertyValueOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateAssets +func (c *IoTSiteWise) DisassociateAssetsRequest(input *DisassociateAssetsInput) (req *request.Request, output *DisassociateAssetsOutput) { op := &request.Operation{ - Name: opGetAssetPropertyValue, - HTTPMethod: "GET", - HTTPPath: "/properties/latest", + Name: opDisassociateAssets, + HTTPMethod: "POST", + HTTPPath: "/assets/{assetId}/disassociate", } if input == nil { - input = &GetAssetPropertyValueInput{} + input = &DisassociateAssetsInput{} } - output = &GetAssetPropertyValueOutput{} + output = &DisassociateAssetsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetAssetPropertyValue API operation for AWS IoT SiteWise. -// -// Gets an asset property's current value. For more information, see Querying -// current values (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#current-values) -// in the IoT SiteWise User Guide. -// -// To identify an asset property, you must specify one of the following: -// -// * The assetId and propertyId of an asset property. +// DisassociateAssets API operation for AWS IoT SiteWise. // -// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). -// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). +// Disassociates a child asset from the given parent asset through a hierarchy +// defined in the parent asset's model. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation GetAssetPropertyValue for usage and error information. +// API operation DisassociateAssets for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3872,100 +3964,87 @@ func (c *IoTSiteWise) GetAssetPropertyValueRequest(input *GetAssetPropertyValueI // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ServiceUnavailableException -// The requested service is unavailable. +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyValue -func (c *IoTSiteWise) GetAssetPropertyValue(input *GetAssetPropertyValueInput) (*GetAssetPropertyValueOutput, error) { - req, out := c.GetAssetPropertyValueRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateAssets +func (c *IoTSiteWise) DisassociateAssets(input *DisassociateAssetsInput) (*DisassociateAssetsOutput, error) { + req, out := c.DisassociateAssetsRequest(input) return out, req.Send() } -// GetAssetPropertyValueWithContext is the same as GetAssetPropertyValue with the addition of +// DisassociateAssetsWithContext is the same as DisassociateAssets with the addition of // the ability to pass a context and additional request options. // -// See GetAssetPropertyValue for details on how to use this API operation. +// See DisassociateAssets for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) GetAssetPropertyValueWithContext(ctx aws.Context, input *GetAssetPropertyValueInput, opts ...request.Option) (*GetAssetPropertyValueOutput, error) { - req, out := c.GetAssetPropertyValueRequest(input) +func (c *IoTSiteWise) DisassociateAssetsWithContext(ctx aws.Context, input *DisassociateAssetsInput, opts ...request.Option) (*DisassociateAssetsOutput, error) { + req, out := c.DisassociateAssetsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetAssetPropertyValueHistory = "GetAssetPropertyValueHistory" +const opDisassociateTimeSeriesFromAssetProperty = "DisassociateTimeSeriesFromAssetProperty" -// GetAssetPropertyValueHistoryRequest generates a "aws/request.Request" representing the -// client's request for the GetAssetPropertyValueHistory operation. The "output" return +// DisassociateTimeSeriesFromAssetPropertyRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateTimeSeriesFromAssetProperty operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetAssetPropertyValueHistory for more information on using the GetAssetPropertyValueHistory +// See DisassociateTimeSeriesFromAssetProperty for more information on using the DisassociateTimeSeriesFromAssetProperty // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetAssetPropertyValueHistoryRequest method. -// req, resp := client.GetAssetPropertyValueHistoryRequest(params) +// // Example sending a request using the DisassociateTimeSeriesFromAssetPropertyRequest method. +// req, resp := client.DisassociateTimeSeriesFromAssetPropertyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyValueHistory -func (c *IoTSiteWise) GetAssetPropertyValueHistoryRequest(input *GetAssetPropertyValueHistoryInput) (req *request.Request, output *GetAssetPropertyValueHistoryOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateTimeSeriesFromAssetProperty +func (c *IoTSiteWise) DisassociateTimeSeriesFromAssetPropertyRequest(input *DisassociateTimeSeriesFromAssetPropertyInput) (req *request.Request, output *DisassociateTimeSeriesFromAssetPropertyOutput) { op := &request.Operation{ - Name: opGetAssetPropertyValueHistory, - HTTPMethod: "GET", - HTTPPath: "/properties/history", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, + Name: opDisassociateTimeSeriesFromAssetProperty, + HTTPMethod: "POST", + HTTPPath: "/timeseries/disassociate/", } if input == nil { - input = &GetAssetPropertyValueHistoryInput{} + input = &DisassociateTimeSeriesFromAssetPropertyInput{} } - output = &GetAssetPropertyValueHistoryOutput{} + output = &DisassociateTimeSeriesFromAssetPropertyOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetAssetPropertyValueHistory API operation for AWS IoT SiteWise. -// -// Gets the history of an asset property's values. For more information, see -// Querying historical values (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#historical-values) -// in the IoT SiteWise User Guide. -// -// To identify an asset property, you must specify one of the following: -// -// * The assetId and propertyId of an asset property. +// DisassociateTimeSeriesFromAssetProperty API operation for AWS IoT SiteWise. // -// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). -// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). +// Disassociates a time series (data stream) from an asset property. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation GetAssetPropertyValueHistory for usage and error information. +// API operation DisassociateTimeSeriesFromAssetProperty for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3986,114 +4065,63 @@ func (c *IoTSiteWise) GetAssetPropertyValueHistoryRequest(input *GetAssetPropert // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ServiceUnavailableException -// The requested service is unavailable. +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyValueHistory -func (c *IoTSiteWise) GetAssetPropertyValueHistory(input *GetAssetPropertyValueHistoryInput) (*GetAssetPropertyValueHistoryOutput, error) { - req, out := c.GetAssetPropertyValueHistoryRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateTimeSeriesFromAssetProperty +func (c *IoTSiteWise) DisassociateTimeSeriesFromAssetProperty(input *DisassociateTimeSeriesFromAssetPropertyInput) (*DisassociateTimeSeriesFromAssetPropertyOutput, error) { + req, out := c.DisassociateTimeSeriesFromAssetPropertyRequest(input) return out, req.Send() } -// GetAssetPropertyValueHistoryWithContext is the same as GetAssetPropertyValueHistory with the addition of +// DisassociateTimeSeriesFromAssetPropertyWithContext is the same as DisassociateTimeSeriesFromAssetProperty with the addition of // the ability to pass a context and additional request options. // -// See GetAssetPropertyValueHistory for details on how to use this API operation. +// See DisassociateTimeSeriesFromAssetProperty for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) GetAssetPropertyValueHistoryWithContext(ctx aws.Context, input *GetAssetPropertyValueHistoryInput, opts ...request.Option) (*GetAssetPropertyValueHistoryOutput, error) { - req, out := c.GetAssetPropertyValueHistoryRequest(input) +func (c *IoTSiteWise) DisassociateTimeSeriesFromAssetPropertyWithContext(ctx aws.Context, input *DisassociateTimeSeriesFromAssetPropertyInput, opts ...request.Option) (*DisassociateTimeSeriesFromAssetPropertyOutput, error) { + req, out := c.DisassociateTimeSeriesFromAssetPropertyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// GetAssetPropertyValueHistoryPages iterates over the pages of a GetAssetPropertyValueHistory operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See GetAssetPropertyValueHistory 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 GetAssetPropertyValueHistory operation. -// pageNum := 0 -// err := client.GetAssetPropertyValueHistoryPages(params, -// func(page *iotsitewise.GetAssetPropertyValueHistoryOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *IoTSiteWise) GetAssetPropertyValueHistoryPages(input *GetAssetPropertyValueHistoryInput, fn func(*GetAssetPropertyValueHistoryOutput, bool) bool) error { - return c.GetAssetPropertyValueHistoryPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// GetAssetPropertyValueHistoryPagesWithContext same as GetAssetPropertyValueHistoryPages 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 *IoTSiteWise) GetAssetPropertyValueHistoryPagesWithContext(ctx aws.Context, input *GetAssetPropertyValueHistoryInput, fn func(*GetAssetPropertyValueHistoryOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *GetAssetPropertyValueHistoryInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.GetAssetPropertyValueHistoryRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*GetAssetPropertyValueHistoryOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opGetInterpolatedAssetPropertyValues = "GetInterpolatedAssetPropertyValues" +const opGetAssetPropertyAggregates = "GetAssetPropertyAggregates" -// GetInterpolatedAssetPropertyValuesRequest generates a "aws/request.Request" representing the -// client's request for the GetInterpolatedAssetPropertyValues operation. The "output" return +// GetAssetPropertyAggregatesRequest generates a "aws/request.Request" representing the +// client's request for the GetAssetPropertyAggregates operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetInterpolatedAssetPropertyValues for more information on using the GetInterpolatedAssetPropertyValues +// See GetAssetPropertyAggregates for more information on using the GetAssetPropertyAggregates // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetInterpolatedAssetPropertyValuesRequest method. -// req, resp := client.GetInterpolatedAssetPropertyValuesRequest(params) +// // Example sending a request using the GetAssetPropertyAggregatesRequest method. +// req, resp := client.GetAssetPropertyAggregatesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetInterpolatedAssetPropertyValues -func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesRequest(input *GetInterpolatedAssetPropertyValuesInput) (req *request.Request, output *GetInterpolatedAssetPropertyValuesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyAggregates +func (c *IoTSiteWise) GetAssetPropertyAggregatesRequest(input *GetAssetPropertyAggregatesInput) (req *request.Request, output *GetAssetPropertyAggregatesOutput) { op := &request.Operation{ - Name: opGetInterpolatedAssetPropertyValues, + Name: opGetAssetPropertyAggregates, HTTPMethod: "GET", - HTTPPath: "/properties/interpolated", + HTTPPath: "/properties/aggregates", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -4103,25 +4131,21 @@ func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesRequest(input *GetInterp } if input == nil { - input = &GetInterpolatedAssetPropertyValuesInput{} + input = &GetAssetPropertyAggregatesInput{} } - output = &GetInterpolatedAssetPropertyValuesOutput{} + output = &GetAssetPropertyAggregatesOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetInterpolatedAssetPropertyValues API operation for AWS IoT SiteWise. -// -// Get interpolated values for an asset property for a specified time interval, -// during a period of time. If your time series is missing data points during -// the specified time interval, you can use interpolation to estimate the missing -// data. +// GetAssetPropertyAggregates API operation for AWS IoT SiteWise. // -// For example, you can use this operation to return the interpolated temperature -// values for a wind turbine every 24 hours over a duration of 7 days. +// Gets aggregated values for an asset property. For more information, see Querying +// aggregates (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#aggregates) +// in the IoT SiteWise User Guide. // // To identify an asset property, you must specify one of the following: // @@ -4135,7 +4159,7 @@ func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesRequest(input *GetInterp // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation GetInterpolatedAssetPropertyValues for usage and error information. +// API operation GetAssetPropertyAggregates for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -4159,65 +4183,65 @@ func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesRequest(input *GetInterp // * ServiceUnavailableException // The requested service is unavailable. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetInterpolatedAssetPropertyValues -func (c *IoTSiteWise) GetInterpolatedAssetPropertyValues(input *GetInterpolatedAssetPropertyValuesInput) (*GetInterpolatedAssetPropertyValuesOutput, error) { - req, out := c.GetInterpolatedAssetPropertyValuesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyAggregates +func (c *IoTSiteWise) GetAssetPropertyAggregates(input *GetAssetPropertyAggregatesInput) (*GetAssetPropertyAggregatesOutput, error) { + req, out := c.GetAssetPropertyAggregatesRequest(input) return out, req.Send() } -// GetInterpolatedAssetPropertyValuesWithContext is the same as GetInterpolatedAssetPropertyValues with the addition of +// GetAssetPropertyAggregatesWithContext is the same as GetAssetPropertyAggregates with the addition of // the ability to pass a context and additional request options. // -// See GetInterpolatedAssetPropertyValues for details on how to use this API operation. +// See GetAssetPropertyAggregates for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesWithContext(ctx aws.Context, input *GetInterpolatedAssetPropertyValuesInput, opts ...request.Option) (*GetInterpolatedAssetPropertyValuesOutput, error) { - req, out := c.GetInterpolatedAssetPropertyValuesRequest(input) +func (c *IoTSiteWise) GetAssetPropertyAggregatesWithContext(ctx aws.Context, input *GetAssetPropertyAggregatesInput, opts ...request.Option) (*GetAssetPropertyAggregatesOutput, error) { + req, out := c.GetAssetPropertyAggregatesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// GetInterpolatedAssetPropertyValuesPages iterates over the pages of a GetInterpolatedAssetPropertyValues operation, +// GetAssetPropertyAggregatesPages iterates over the pages of a GetAssetPropertyAggregates operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See GetInterpolatedAssetPropertyValues method for more information on how to use this operation. +// See GetAssetPropertyAggregates 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 GetInterpolatedAssetPropertyValues operation. +// // Example iterating over at most 3 pages of a GetAssetPropertyAggregates operation. // pageNum := 0 -// err := client.GetInterpolatedAssetPropertyValuesPages(params, -// func(page *iotsitewise.GetInterpolatedAssetPropertyValuesOutput, lastPage bool) bool { +// err := client.GetAssetPropertyAggregatesPages(params, +// func(page *iotsitewise.GetAssetPropertyAggregatesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesPages(input *GetInterpolatedAssetPropertyValuesInput, fn func(*GetInterpolatedAssetPropertyValuesOutput, bool) bool) error { - return c.GetInterpolatedAssetPropertyValuesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *IoTSiteWise) GetAssetPropertyAggregatesPages(input *GetAssetPropertyAggregatesInput, fn func(*GetAssetPropertyAggregatesOutput, bool) bool) error { + return c.GetAssetPropertyAggregatesPagesWithContext(aws.BackgroundContext(), input, fn) } -// GetInterpolatedAssetPropertyValuesPagesWithContext same as GetInterpolatedAssetPropertyValuesPages except +// GetAssetPropertyAggregatesPagesWithContext same as GetAssetPropertyAggregatesPages 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 *IoTSiteWise) GetInterpolatedAssetPropertyValuesPagesWithContext(ctx aws.Context, input *GetInterpolatedAssetPropertyValuesInput, fn func(*GetInterpolatedAssetPropertyValuesOutput, bool) bool, opts ...request.Option) error { +func (c *IoTSiteWise) GetAssetPropertyAggregatesPagesWithContext(ctx aws.Context, input *GetAssetPropertyAggregatesInput, fn func(*GetAssetPropertyAggregatesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *GetInterpolatedAssetPropertyValuesInput + var inCpy *GetAssetPropertyAggregatesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.GetInterpolatedAssetPropertyValuesRequest(inCpy) + req, _ := c.GetAssetPropertyAggregatesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4225,7 +4249,7 @@ func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesPagesWithContext(ctx aws } for p.Next() { - if !fn(p.Page().(*GetInterpolatedAssetPropertyValuesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*GetAssetPropertyAggregatesOutput), !p.HasNextPage()) { break } } @@ -4233,74 +4257,78 @@ func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesPagesWithContext(ctx aws return p.Err() } -const opListAccessPolicies = "ListAccessPolicies" +const opGetAssetPropertyValue = "GetAssetPropertyValue" -// ListAccessPoliciesRequest generates a "aws/request.Request" representing the -// client's request for the ListAccessPolicies operation. The "output" return +// GetAssetPropertyValueRequest generates a "aws/request.Request" representing the +// client's request for the GetAssetPropertyValue operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListAccessPolicies for more information on using the ListAccessPolicies +// See GetAssetPropertyValue for more information on using the GetAssetPropertyValue // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListAccessPoliciesRequest method. -// req, resp := client.ListAccessPoliciesRequest(params) +// // Example sending a request using the GetAssetPropertyValueRequest method. +// req, resp := client.GetAssetPropertyValueRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAccessPolicies -func (c *IoTSiteWise) ListAccessPoliciesRequest(input *ListAccessPoliciesInput) (req *request.Request, output *ListAccessPoliciesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyValue +func (c *IoTSiteWise) GetAssetPropertyValueRequest(input *GetAssetPropertyValueInput) (req *request.Request, output *GetAssetPropertyValueOutput) { op := &request.Operation{ - Name: opListAccessPolicies, + Name: opGetAssetPropertyValue, HTTPMethod: "GET", - HTTPPath: "/access-policies", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, + HTTPPath: "/properties/latest", } if input == nil { - input = &ListAccessPoliciesInput{} + input = &GetAssetPropertyValueInput{} } - output = &ListAccessPoliciesOutput{} + output = &GetAssetPropertyValueOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListAccessPolicies API operation for AWS IoT SiteWise. +// GetAssetPropertyValue API operation for AWS IoT SiteWise. // -// Retrieves a paginated list of access policies for an identity (an Amazon -// Web Services SSO user, an Amazon Web Services SSO group, or an IAM user) -// or an IoT SiteWise Monitor resource (a portal or project). +// Gets an asset property's current value. For more information, see Querying +// current values (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#current-values) +// in the IoT SiteWise User Guide. +// +// To identify an asset property, you must specify one of the following: +// +// * The assetId and propertyId of an asset property. +// +// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). +// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.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 IoT SiteWise's -// API operation ListAccessPolicies for usage and error information. +// API operation GetAssetPropertyValue for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // +// * ResourceNotFoundException +// The requested resource can't be found. +// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -4312,111 +4340,62 @@ func (c *IoTSiteWise) ListAccessPoliciesRequest(input *ListAccessPoliciesInput) // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAccessPolicies -func (c *IoTSiteWise) ListAccessPolicies(input *ListAccessPoliciesInput) (*ListAccessPoliciesOutput, error) { - req, out := c.ListAccessPoliciesRequest(input) +// * ServiceUnavailableException +// The requested service is unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyValue +func (c *IoTSiteWise) GetAssetPropertyValue(input *GetAssetPropertyValueInput) (*GetAssetPropertyValueOutput, error) { + req, out := c.GetAssetPropertyValueRequest(input) return out, req.Send() } -// ListAccessPoliciesWithContext is the same as ListAccessPolicies with the addition of +// GetAssetPropertyValueWithContext is the same as GetAssetPropertyValue with the addition of // the ability to pass a context and additional request options. // -// See ListAccessPolicies for details on how to use this API operation. +// See GetAssetPropertyValue for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListAccessPoliciesWithContext(ctx aws.Context, input *ListAccessPoliciesInput, opts ...request.Option) (*ListAccessPoliciesOutput, error) { - req, out := c.ListAccessPoliciesRequest(input) +func (c *IoTSiteWise) GetAssetPropertyValueWithContext(ctx aws.Context, input *GetAssetPropertyValueInput, opts ...request.Option) (*GetAssetPropertyValueOutput, error) { + req, out := c.GetAssetPropertyValueRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListAccessPoliciesPages iterates over the pages of a ListAccessPolicies operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListAccessPolicies 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 ListAccessPolicies operation. -// pageNum := 0 -// err := client.ListAccessPoliciesPages(params, -// func(page *iotsitewise.ListAccessPoliciesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *IoTSiteWise) ListAccessPoliciesPages(input *ListAccessPoliciesInput, fn func(*ListAccessPoliciesOutput, bool) bool) error { - return c.ListAccessPoliciesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListAccessPoliciesPagesWithContext same as ListAccessPoliciesPages 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 *IoTSiteWise) ListAccessPoliciesPagesWithContext(ctx aws.Context, input *ListAccessPoliciesInput, fn func(*ListAccessPoliciesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListAccessPoliciesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListAccessPoliciesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListAccessPoliciesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListAssetModels = "ListAssetModels" +const opGetAssetPropertyValueHistory = "GetAssetPropertyValueHistory" -// ListAssetModelsRequest generates a "aws/request.Request" representing the -// client's request for the ListAssetModels operation. The "output" return +// GetAssetPropertyValueHistoryRequest generates a "aws/request.Request" representing the +// client's request for the GetAssetPropertyValueHistory operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListAssetModels for more information on using the ListAssetModels +// See GetAssetPropertyValueHistory for more information on using the GetAssetPropertyValueHistory // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListAssetModelsRequest method. -// req, resp := client.ListAssetModelsRequest(params) +// // Example sending a request using the GetAssetPropertyValueHistoryRequest method. +// req, resp := client.GetAssetPropertyValueHistoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssetModels -func (c *IoTSiteWise) ListAssetModelsRequest(input *ListAssetModelsInput) (req *request.Request, output *ListAssetModelsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyValueHistory +func (c *IoTSiteWise) GetAssetPropertyValueHistoryRequest(input *GetAssetPropertyValueHistoryInput) (req *request.Request, output *GetAssetPropertyValueHistoryOutput) { op := &request.Operation{ - Name: opListAssetModels, + Name: opGetAssetPropertyValueHistory, HTTPMethod: "GET", - HTTPPath: "/asset-models", + HTTPPath: "/properties/history", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -4426,32 +4405,44 @@ func (c *IoTSiteWise) ListAssetModelsRequest(input *ListAssetModelsInput) (req * } if input == nil { - input = &ListAssetModelsInput{} + input = &GetAssetPropertyValueHistoryInput{} } - output = &ListAssetModelsOutput{} + output = &GetAssetPropertyValueHistoryOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListAssetModels API operation for AWS IoT SiteWise. +// GetAssetPropertyValueHistory API operation for AWS IoT SiteWise. // -// Retrieves a paginated list of summaries of all asset models. +// Gets the history of an asset property's values. For more information, see +// Querying historical values (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#historical-values) +// in the IoT SiteWise User Guide. +// +// To identify an asset property, you must specify one of the following: +// +// * The assetId and propertyId of an asset property. +// +// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). +// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.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 IoT SiteWise's -// API operation ListAssetModels for usage and error information. +// API operation GetAssetPropertyValueHistory for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // +// * ResourceNotFoundException +// The requested resource can't be found. +// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -4463,65 +4454,68 @@ func (c *IoTSiteWise) ListAssetModelsRequest(input *ListAssetModelsInput) (req * // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssetModels -func (c *IoTSiteWise) ListAssetModels(input *ListAssetModelsInput) (*ListAssetModelsOutput, error) { - req, out := c.ListAssetModelsRequest(input) +// * ServiceUnavailableException +// The requested service is unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyValueHistory +func (c *IoTSiteWise) GetAssetPropertyValueHistory(input *GetAssetPropertyValueHistoryInput) (*GetAssetPropertyValueHistoryOutput, error) { + req, out := c.GetAssetPropertyValueHistoryRequest(input) return out, req.Send() } -// ListAssetModelsWithContext is the same as ListAssetModels with the addition of +// GetAssetPropertyValueHistoryWithContext is the same as GetAssetPropertyValueHistory with the addition of // the ability to pass a context and additional request options. // -// See ListAssetModels for details on how to use this API operation. +// See GetAssetPropertyValueHistory for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListAssetModelsWithContext(ctx aws.Context, input *ListAssetModelsInput, opts ...request.Option) (*ListAssetModelsOutput, error) { - req, out := c.ListAssetModelsRequest(input) +func (c *IoTSiteWise) GetAssetPropertyValueHistoryWithContext(ctx aws.Context, input *GetAssetPropertyValueHistoryInput, opts ...request.Option) (*GetAssetPropertyValueHistoryOutput, error) { + req, out := c.GetAssetPropertyValueHistoryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListAssetModelsPages iterates over the pages of a ListAssetModels operation, +// GetAssetPropertyValueHistoryPages iterates over the pages of a GetAssetPropertyValueHistory operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListAssetModels method for more information on how to use this operation. +// See GetAssetPropertyValueHistory 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 ListAssetModels operation. +// // Example iterating over at most 3 pages of a GetAssetPropertyValueHistory operation. // pageNum := 0 -// err := client.ListAssetModelsPages(params, -// func(page *iotsitewise.ListAssetModelsOutput, lastPage bool) bool { +// err := client.GetAssetPropertyValueHistoryPages(params, +// func(page *iotsitewise.GetAssetPropertyValueHistoryOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *IoTSiteWise) ListAssetModelsPages(input *ListAssetModelsInput, fn func(*ListAssetModelsOutput, bool) bool) error { - return c.ListAssetModelsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *IoTSiteWise) GetAssetPropertyValueHistoryPages(input *GetAssetPropertyValueHistoryInput, fn func(*GetAssetPropertyValueHistoryOutput, bool) bool) error { + return c.GetAssetPropertyValueHistoryPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListAssetModelsPagesWithContext same as ListAssetModelsPages except +// GetAssetPropertyValueHistoryPagesWithContext same as GetAssetPropertyValueHistoryPages 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 *IoTSiteWise) ListAssetModelsPagesWithContext(ctx aws.Context, input *ListAssetModelsInput, fn func(*ListAssetModelsOutput, bool) bool, opts ...request.Option) error { +func (c *IoTSiteWise) GetAssetPropertyValueHistoryPagesWithContext(ctx aws.Context, input *GetAssetPropertyValueHistoryInput, fn func(*GetAssetPropertyValueHistoryOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListAssetModelsInput + var inCpy *GetAssetPropertyValueHistoryInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListAssetModelsRequest(inCpy) + req, _ := c.GetAssetPropertyValueHistoryRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4529,7 +4523,7 @@ func (c *IoTSiteWise) ListAssetModelsPagesWithContext(ctx aws.Context, input *Li } for p.Next() { - if !fn(p.Page().(*ListAssetModelsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*GetAssetPropertyValueHistoryOutput), !p.HasNextPage()) { break } } @@ -4537,37 +4531,37 @@ func (c *IoTSiteWise) ListAssetModelsPagesWithContext(ctx aws.Context, input *Li return p.Err() } -const opListAssetRelationships = "ListAssetRelationships" +const opGetInterpolatedAssetPropertyValues = "GetInterpolatedAssetPropertyValues" -// ListAssetRelationshipsRequest generates a "aws/request.Request" representing the -// client's request for the ListAssetRelationships operation. The "output" return +// GetInterpolatedAssetPropertyValuesRequest generates a "aws/request.Request" representing the +// client's request for the GetInterpolatedAssetPropertyValues operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListAssetRelationships for more information on using the ListAssetRelationships +// See GetInterpolatedAssetPropertyValues for more information on using the GetInterpolatedAssetPropertyValues // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListAssetRelationshipsRequest method. -// req, resp := client.ListAssetRelationshipsRequest(params) +// // Example sending a request using the GetInterpolatedAssetPropertyValuesRequest method. +// req, resp := client.GetInterpolatedAssetPropertyValuesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssetRelationships -func (c *IoTSiteWise) ListAssetRelationshipsRequest(input *ListAssetRelationshipsInput) (req *request.Request, output *ListAssetRelationshipsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetInterpolatedAssetPropertyValues +func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesRequest(input *GetInterpolatedAssetPropertyValuesInput) (req *request.Request, output *GetInterpolatedAssetPropertyValuesOutput) { op := &request.Operation{ - Name: opListAssetRelationships, + Name: opGetInterpolatedAssetPropertyValues, HTTPMethod: "GET", - HTTPPath: "/assets/{assetId}/assetRelationships", + HTTPPath: "/properties/interpolated", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -4577,40 +4571,51 @@ func (c *IoTSiteWise) ListAssetRelationshipsRequest(input *ListAssetRelationship } if input == nil { - input = &ListAssetRelationshipsInput{} + input = &GetInterpolatedAssetPropertyValuesInput{} } - output = &ListAssetRelationshipsOutput{} + output = &GetInterpolatedAssetPropertyValuesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListAssetRelationships API operation for AWS IoT SiteWise. +// GetInterpolatedAssetPropertyValues API operation for AWS IoT SiteWise. // -// Retrieves a paginated list of asset relationships for an asset. You can use -// this operation to identify an asset's root asset and all associated assets -// between that asset and its root. +// Get interpolated values for an asset property for a specified time interval, +// during a period of time. If your time series is missing data points during +// the specified time interval, you can use interpolation to estimate the missing +// data. +// +// For example, you can use this operation to return the interpolated temperature +// values for a wind turbine every 24 hours over a duration of 7 days. +// +// To identify an asset property, you must specify one of the following: +// +// * The assetId and propertyId of an asset property. +// +// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). +// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.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 IoT SiteWise's -// API operation ListAssetRelationships for usage and error information. +// API operation GetInterpolatedAssetPropertyValues for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * InternalFailureException -// IoT SiteWise can't process your request right now. Try again later. -// // * ResourceNotFoundException // The requested resource can't be found. // +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. +// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -4619,65 +4624,68 @@ func (c *IoTSiteWise) ListAssetRelationshipsRequest(input *ListAssetRelationship // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssetRelationships -func (c *IoTSiteWise) ListAssetRelationships(input *ListAssetRelationshipsInput) (*ListAssetRelationshipsOutput, error) { - req, out := c.ListAssetRelationshipsRequest(input) +// * ServiceUnavailableException +// The requested service is unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetInterpolatedAssetPropertyValues +func (c *IoTSiteWise) GetInterpolatedAssetPropertyValues(input *GetInterpolatedAssetPropertyValuesInput) (*GetInterpolatedAssetPropertyValuesOutput, error) { + req, out := c.GetInterpolatedAssetPropertyValuesRequest(input) return out, req.Send() } -// ListAssetRelationshipsWithContext is the same as ListAssetRelationships with the addition of +// GetInterpolatedAssetPropertyValuesWithContext is the same as GetInterpolatedAssetPropertyValues with the addition of // the ability to pass a context and additional request options. // -// See ListAssetRelationships for details on how to use this API operation. +// See GetInterpolatedAssetPropertyValues for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListAssetRelationshipsWithContext(ctx aws.Context, input *ListAssetRelationshipsInput, opts ...request.Option) (*ListAssetRelationshipsOutput, error) { - req, out := c.ListAssetRelationshipsRequest(input) +func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesWithContext(ctx aws.Context, input *GetInterpolatedAssetPropertyValuesInput, opts ...request.Option) (*GetInterpolatedAssetPropertyValuesOutput, error) { + req, out := c.GetInterpolatedAssetPropertyValuesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListAssetRelationshipsPages iterates over the pages of a ListAssetRelationships operation, +// GetInterpolatedAssetPropertyValuesPages iterates over the pages of a GetInterpolatedAssetPropertyValues operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListAssetRelationships method for more information on how to use this operation. +// See GetInterpolatedAssetPropertyValues 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 ListAssetRelationships operation. +// // Example iterating over at most 3 pages of a GetInterpolatedAssetPropertyValues operation. // pageNum := 0 -// err := client.ListAssetRelationshipsPages(params, -// func(page *iotsitewise.ListAssetRelationshipsOutput, lastPage bool) bool { +// err := client.GetInterpolatedAssetPropertyValuesPages(params, +// func(page *iotsitewise.GetInterpolatedAssetPropertyValuesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *IoTSiteWise) ListAssetRelationshipsPages(input *ListAssetRelationshipsInput, fn func(*ListAssetRelationshipsOutput, bool) bool) error { - return c.ListAssetRelationshipsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesPages(input *GetInterpolatedAssetPropertyValuesInput, fn func(*GetInterpolatedAssetPropertyValuesOutput, bool) bool) error { + return c.GetInterpolatedAssetPropertyValuesPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListAssetRelationshipsPagesWithContext same as ListAssetRelationshipsPages except +// GetInterpolatedAssetPropertyValuesPagesWithContext same as GetInterpolatedAssetPropertyValuesPages 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 *IoTSiteWise) ListAssetRelationshipsPagesWithContext(ctx aws.Context, input *ListAssetRelationshipsInput, fn func(*ListAssetRelationshipsOutput, bool) bool, opts ...request.Option) error { +func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesPagesWithContext(ctx aws.Context, input *GetInterpolatedAssetPropertyValuesInput, fn func(*GetInterpolatedAssetPropertyValuesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListAssetRelationshipsInput + var inCpy *GetInterpolatedAssetPropertyValuesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListAssetRelationshipsRequest(inCpy) + req, _ := c.GetInterpolatedAssetPropertyValuesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4685,7 +4693,7 @@ func (c *IoTSiteWise) ListAssetRelationshipsPagesWithContext(ctx aws.Context, in } for p.Next() { - if !fn(p.Page().(*ListAssetRelationshipsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*GetInterpolatedAssetPropertyValuesOutput), !p.HasNextPage()) { break } } @@ -4693,37 +4701,37 @@ func (c *IoTSiteWise) ListAssetRelationshipsPagesWithContext(ctx aws.Context, in return p.Err() } -const opListAssets = "ListAssets" +const opListAccessPolicies = "ListAccessPolicies" -// ListAssetsRequest generates a "aws/request.Request" representing the -// client's request for the ListAssets operation. The "output" return +// ListAccessPoliciesRequest generates a "aws/request.Request" representing the +// client's request for the ListAccessPolicies operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListAssets for more information on using the ListAssets +// See ListAccessPolicies for more information on using the ListAccessPolicies // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListAssetsRequest method. -// req, resp := client.ListAssetsRequest(params) +// // Example sending a request using the ListAccessPoliciesRequest method. +// req, resp := client.ListAccessPoliciesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssets -func (c *IoTSiteWise) ListAssetsRequest(input *ListAssetsInput) (req *request.Request, output *ListAssetsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAccessPolicies +func (c *IoTSiteWise) ListAccessPoliciesRequest(input *ListAccessPoliciesInput) (req *request.Request, output *ListAccessPoliciesOutput) { op := &request.Operation{ - Name: opListAssets, + Name: opListAccessPolicies, HTTPMethod: "GET", - HTTPPath: "/assets", + HTTPPath: "/access-policies", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -4733,37 +4741,28 @@ func (c *IoTSiteWise) ListAssetsRequest(input *ListAssetsInput) (req *request.Re } if input == nil { - input = &ListAssetsInput{} + input = &ListAccessPoliciesInput{} } - output = &ListAssetsOutput{} + output = &ListAccessPoliciesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListAssets API operation for AWS IoT SiteWise. +// ListAccessPolicies API operation for AWS IoT SiteWise. // -// Retrieves a paginated list of asset summaries. -// -// You can use this operation to do the following: -// -// * List assets based on a specific asset model. -// -// * List top-level assets. -// -// You can't use this operation to list all assets. To retrieve summaries for -// all of your assets, use ListAssetModels (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListAssetModels.html) -// to get all of your asset model IDs. Then, use ListAssets to get all assets -// for each asset model. +// Retrieves a paginated list of access policies for an identity (an Amazon +// Web Services SSO user, an Amazon Web Services SSO group, or an IAM user) +// or an IoT SiteWise Monitor resource (a portal or project). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation ListAssets for usage and error information. +// API operation ListAccessPolicies for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -4773,9 +4772,6 @@ func (c *IoTSiteWise) ListAssetsRequest(input *ListAssetsInput) (req *request.Re // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // -// * ResourceNotFoundException -// The requested resource can't be found. -// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -4784,65 +4780,65 @@ func (c *IoTSiteWise) ListAssetsRequest(input *ListAssetsInput) (req *request.Re // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssets -func (c *IoTSiteWise) ListAssets(input *ListAssetsInput) (*ListAssetsOutput, error) { - req, out := c.ListAssetsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAccessPolicies +func (c *IoTSiteWise) ListAccessPolicies(input *ListAccessPoliciesInput) (*ListAccessPoliciesOutput, error) { + req, out := c.ListAccessPoliciesRequest(input) return out, req.Send() } -// ListAssetsWithContext is the same as ListAssets with the addition of +// ListAccessPoliciesWithContext is the same as ListAccessPolicies with the addition of // the ability to pass a context and additional request options. // -// See ListAssets for details on how to use this API operation. +// See ListAccessPolicies for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListAssetsWithContext(ctx aws.Context, input *ListAssetsInput, opts ...request.Option) (*ListAssetsOutput, error) { - req, out := c.ListAssetsRequest(input) +func (c *IoTSiteWise) ListAccessPoliciesWithContext(ctx aws.Context, input *ListAccessPoliciesInput, opts ...request.Option) (*ListAccessPoliciesOutput, error) { + req, out := c.ListAccessPoliciesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListAssetsPages iterates over the pages of a ListAssets operation, +// ListAccessPoliciesPages iterates over the pages of a ListAccessPolicies operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListAssets method for more information on how to use this operation. +// See ListAccessPolicies 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 ListAssets operation. +// // Example iterating over at most 3 pages of a ListAccessPolicies operation. // pageNum := 0 -// err := client.ListAssetsPages(params, -// func(page *iotsitewise.ListAssetsOutput, lastPage bool) bool { +// err := client.ListAccessPoliciesPages(params, +// func(page *iotsitewise.ListAccessPoliciesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *IoTSiteWise) ListAssetsPages(input *ListAssetsInput, fn func(*ListAssetsOutput, bool) bool) error { - return c.ListAssetsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *IoTSiteWise) ListAccessPoliciesPages(input *ListAccessPoliciesInput, fn func(*ListAccessPoliciesOutput, bool) bool) error { + return c.ListAccessPoliciesPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListAssetsPagesWithContext same as ListAssetsPages except +// ListAccessPoliciesPagesWithContext same as ListAccessPoliciesPages 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 *IoTSiteWise) ListAssetsPagesWithContext(ctx aws.Context, input *ListAssetsInput, fn func(*ListAssetsOutput, bool) bool, opts ...request.Option) error { +func (c *IoTSiteWise) ListAccessPoliciesPagesWithContext(ctx aws.Context, input *ListAccessPoliciesInput, fn func(*ListAccessPoliciesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListAssetsInput + var inCpy *ListAccessPoliciesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListAssetsRequest(inCpy) + req, _ := c.ListAccessPoliciesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4850,7 +4846,7 @@ func (c *IoTSiteWise) ListAssetsPagesWithContext(ctx aws.Context, input *ListAss } for p.Next() { - if !fn(p.Page().(*ListAssetsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListAccessPoliciesOutput), !p.HasNextPage()) { break } } @@ -4858,37 +4854,37 @@ func (c *IoTSiteWise) ListAssetsPagesWithContext(ctx aws.Context, input *ListAss return p.Err() } -const opListAssociatedAssets = "ListAssociatedAssets" +const opListAssetModels = "ListAssetModels" -// ListAssociatedAssetsRequest generates a "aws/request.Request" representing the -// client's request for the ListAssociatedAssets operation. The "output" return +// ListAssetModelsRequest generates a "aws/request.Request" representing the +// client's request for the ListAssetModels operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListAssociatedAssets for more information on using the ListAssociatedAssets +// See ListAssetModels for more information on using the ListAssetModels // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListAssociatedAssetsRequest method. -// req, resp := client.ListAssociatedAssetsRequest(params) +// // Example sending a request using the ListAssetModelsRequest method. +// req, resp := client.ListAssetModelsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssociatedAssets -func (c *IoTSiteWise) ListAssociatedAssetsRequest(input *ListAssociatedAssetsInput) (req *request.Request, output *ListAssociatedAssetsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssetModels +func (c *IoTSiteWise) ListAssetModelsRequest(input *ListAssetModelsInput) (req *request.Request, output *ListAssetModelsOutput) { op := &request.Operation{ - Name: opListAssociatedAssets, + Name: opListAssetModels, HTTPMethod: "GET", - HTTPPath: "/assets/{assetId}/hierarchies", + HTTPPath: "/asset-models", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -4898,33 +4894,26 @@ func (c *IoTSiteWise) ListAssociatedAssetsRequest(input *ListAssociatedAssetsInp } if input == nil { - input = &ListAssociatedAssetsInput{} + input = &ListAssetModelsInput{} } - output = &ListAssociatedAssetsOutput{} + output = &ListAssetModelsOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListAssociatedAssets API operation for AWS IoT SiteWise. -// -// Retrieves a paginated list of associated assets. -// -// You can use this operation to do the following: -// -// * List child assets associated to a parent asset by a hierarchy that you -// specify. +// ListAssetModels API operation for AWS IoT SiteWise. // -// * List an asset's parent asset. +// Retrieves a paginated list of summaries of all asset models. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation ListAssociatedAssets for usage and error information. +// API operation ListAssetModels for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -4934,9 +4923,6 @@ func (c *IoTSiteWise) ListAssociatedAssetsRequest(input *ListAssociatedAssetsInp // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // -// * ResourceNotFoundException -// The requested resource can't be found. -// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -4945,65 +4931,65 @@ func (c *IoTSiteWise) ListAssociatedAssetsRequest(input *ListAssociatedAssetsInp // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssociatedAssets -func (c *IoTSiteWise) ListAssociatedAssets(input *ListAssociatedAssetsInput) (*ListAssociatedAssetsOutput, error) { - req, out := c.ListAssociatedAssetsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssetModels +func (c *IoTSiteWise) ListAssetModels(input *ListAssetModelsInput) (*ListAssetModelsOutput, error) { + req, out := c.ListAssetModelsRequest(input) return out, req.Send() } -// ListAssociatedAssetsWithContext is the same as ListAssociatedAssets with the addition of +// ListAssetModelsWithContext is the same as ListAssetModels with the addition of // the ability to pass a context and additional request options. // -// See ListAssociatedAssets for details on how to use this API operation. +// See ListAssetModels for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListAssociatedAssetsWithContext(ctx aws.Context, input *ListAssociatedAssetsInput, opts ...request.Option) (*ListAssociatedAssetsOutput, error) { - req, out := c.ListAssociatedAssetsRequest(input) +func (c *IoTSiteWise) ListAssetModelsWithContext(ctx aws.Context, input *ListAssetModelsInput, opts ...request.Option) (*ListAssetModelsOutput, error) { + req, out := c.ListAssetModelsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListAssociatedAssetsPages iterates over the pages of a ListAssociatedAssets operation, +// ListAssetModelsPages iterates over the pages of a ListAssetModels operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListAssociatedAssets method for more information on how to use this operation. +// See ListAssetModels 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 ListAssociatedAssets operation. +// // Example iterating over at most 3 pages of a ListAssetModels operation. // pageNum := 0 -// err := client.ListAssociatedAssetsPages(params, -// func(page *iotsitewise.ListAssociatedAssetsOutput, lastPage bool) bool { +// err := client.ListAssetModelsPages(params, +// func(page *iotsitewise.ListAssetModelsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *IoTSiteWise) ListAssociatedAssetsPages(input *ListAssociatedAssetsInput, fn func(*ListAssociatedAssetsOutput, bool) bool) error { - return c.ListAssociatedAssetsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *IoTSiteWise) ListAssetModelsPages(input *ListAssetModelsInput, fn func(*ListAssetModelsOutput, bool) bool) error { + return c.ListAssetModelsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListAssociatedAssetsPagesWithContext same as ListAssociatedAssetsPages except +// ListAssetModelsPagesWithContext same as ListAssetModelsPages 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 *IoTSiteWise) ListAssociatedAssetsPagesWithContext(ctx aws.Context, input *ListAssociatedAssetsInput, fn func(*ListAssociatedAssetsOutput, bool) bool, opts ...request.Option) error { +func (c *IoTSiteWise) ListAssetModelsPagesWithContext(ctx aws.Context, input *ListAssetModelsInput, fn func(*ListAssetModelsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListAssociatedAssetsInput + var inCpy *ListAssetModelsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListAssociatedAssetsRequest(inCpy) + req, _ := c.ListAssetModelsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -5011,7 +4997,7 @@ func (c *IoTSiteWise) ListAssociatedAssetsPagesWithContext(ctx aws.Context, inpu } for p.Next() { - if !fn(p.Page().(*ListAssociatedAssetsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListAssetModelsOutput), !p.HasNextPage()) { break } } @@ -5019,37 +5005,37 @@ func (c *IoTSiteWise) ListAssociatedAssetsPagesWithContext(ctx aws.Context, inpu return p.Err() } -const opListDashboards = "ListDashboards" +const opListAssetRelationships = "ListAssetRelationships" -// ListDashboardsRequest generates a "aws/request.Request" representing the -// client's request for the ListDashboards operation. The "output" return +// ListAssetRelationshipsRequest generates a "aws/request.Request" representing the +// client's request for the ListAssetRelationships operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDashboards for more information on using the ListDashboards +// See ListAssetRelationships for more information on using the ListAssetRelationships // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListDashboardsRequest method. -// req, resp := client.ListDashboardsRequest(params) +// // Example sending a request using the ListAssetRelationshipsRequest method. +// req, resp := client.ListAssetRelationshipsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListDashboards -func (c *IoTSiteWise) ListDashboardsRequest(input *ListDashboardsInput) (req *request.Request, output *ListDashboardsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssetRelationships +func (c *IoTSiteWise) ListAssetRelationshipsRequest(input *ListAssetRelationshipsInput) (req *request.Request, output *ListAssetRelationshipsOutput) { op := &request.Operation{ - Name: opListDashboards, + Name: opListAssetRelationships, HTTPMethod: "GET", - HTTPPath: "/dashboards", + HTTPPath: "/assets/{assetId}/assetRelationships", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -5059,26 +5045,28 @@ func (c *IoTSiteWise) ListDashboardsRequest(input *ListDashboardsInput) (req *re } if input == nil { - input = &ListDashboardsInput{} + input = &ListAssetRelationshipsInput{} } - output = &ListDashboardsOutput{} + output = &ListAssetRelationshipsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListDashboards API operation for AWS IoT SiteWise. +// ListAssetRelationships API operation for AWS IoT SiteWise. // -// Retrieves a paginated list of dashboards for an IoT SiteWise Monitor project. +// Retrieves a paginated list of asset relationships for an asset. You can use +// this operation to identify an asset's root asset and all associated assets +// between that asset and its root. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation ListDashboards for usage and error information. +// API operation ListAssetRelationships for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -5088,6 +5076,9 @@ func (c *IoTSiteWise) ListDashboardsRequest(input *ListDashboardsInput) (req *re // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // +// * ResourceNotFoundException +// The requested resource can't be found. +// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -5096,65 +5087,65 @@ func (c *IoTSiteWise) ListDashboardsRequest(input *ListDashboardsInput) (req *re // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListDashboards -func (c *IoTSiteWise) ListDashboards(input *ListDashboardsInput) (*ListDashboardsOutput, error) { - req, out := c.ListDashboardsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssetRelationships +func (c *IoTSiteWise) ListAssetRelationships(input *ListAssetRelationshipsInput) (*ListAssetRelationshipsOutput, error) { + req, out := c.ListAssetRelationshipsRequest(input) return out, req.Send() } -// ListDashboardsWithContext is the same as ListDashboards with the addition of +// ListAssetRelationshipsWithContext is the same as ListAssetRelationships with the addition of // the ability to pass a context and additional request options. // -// See ListDashboards for details on how to use this API operation. +// See ListAssetRelationships for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListDashboardsWithContext(ctx aws.Context, input *ListDashboardsInput, opts ...request.Option) (*ListDashboardsOutput, error) { - req, out := c.ListDashboardsRequest(input) +func (c *IoTSiteWise) ListAssetRelationshipsWithContext(ctx aws.Context, input *ListAssetRelationshipsInput, opts ...request.Option) (*ListAssetRelationshipsOutput, error) { + req, out := c.ListAssetRelationshipsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListDashboardsPages iterates over the pages of a ListDashboards operation, +// ListAssetRelationshipsPages iterates over the pages of a ListAssetRelationships operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListDashboards method for more information on how to use this operation. +// See ListAssetRelationships 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 ListDashboards operation. +// // Example iterating over at most 3 pages of a ListAssetRelationships operation. // pageNum := 0 -// err := client.ListDashboardsPages(params, -// func(page *iotsitewise.ListDashboardsOutput, lastPage bool) bool { +// err := client.ListAssetRelationshipsPages(params, +// func(page *iotsitewise.ListAssetRelationshipsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *IoTSiteWise) ListDashboardsPages(input *ListDashboardsInput, fn func(*ListDashboardsOutput, bool) bool) error { - return c.ListDashboardsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *IoTSiteWise) ListAssetRelationshipsPages(input *ListAssetRelationshipsInput, fn func(*ListAssetRelationshipsOutput, bool) bool) error { + return c.ListAssetRelationshipsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListDashboardsPagesWithContext same as ListDashboardsPages except +// ListAssetRelationshipsPagesWithContext same as ListAssetRelationshipsPages 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 *IoTSiteWise) ListDashboardsPagesWithContext(ctx aws.Context, input *ListDashboardsInput, fn func(*ListDashboardsOutput, bool) bool, opts ...request.Option) error { +func (c *IoTSiteWise) ListAssetRelationshipsPagesWithContext(ctx aws.Context, input *ListAssetRelationshipsInput, fn func(*ListAssetRelationshipsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListDashboardsInput + var inCpy *ListAssetRelationshipsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListDashboardsRequest(inCpy) + req, _ := c.ListAssetRelationshipsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -5162,7 +5153,7 @@ func (c *IoTSiteWise) ListDashboardsPagesWithContext(ctx aws.Context, input *Lis } for p.Next() { - if !fn(p.Page().(*ListDashboardsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListAssetRelationshipsOutput), !p.HasNextPage()) { break } } @@ -5170,37 +5161,37 @@ func (c *IoTSiteWise) ListDashboardsPagesWithContext(ctx aws.Context, input *Lis return p.Err() } -const opListGateways = "ListGateways" +const opListAssets = "ListAssets" -// ListGatewaysRequest generates a "aws/request.Request" representing the -// client's request for the ListGateways operation. The "output" return +// ListAssetsRequest generates a "aws/request.Request" representing the +// client's request for the ListAssets operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListGateways for more information on using the ListGateways +// See ListAssets for more information on using the ListAssets // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListGatewaysRequest method. -// req, resp := client.ListGatewaysRequest(params) +// // Example sending a request using the ListAssetsRequest method. +// req, resp := client.ListAssetsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListGateways -func (c *IoTSiteWise) ListGatewaysRequest(input *ListGatewaysInput) (req *request.Request, output *ListGatewaysOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssets +func (c *IoTSiteWise) ListAssetsRequest(input *ListAssetsInput) (req *request.Request, output *ListAssetsOutput) { op := &request.Operation{ - Name: opListGateways, + Name: opListAssets, HTTPMethod: "GET", - HTTPPath: "/20200301/gateways", + HTTPPath: "/assets", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -5210,26 +5201,37 @@ func (c *IoTSiteWise) ListGatewaysRequest(input *ListGatewaysInput) (req *reques } if input == nil { - input = &ListGatewaysInput{} + input = &ListAssetsInput{} } - output = &ListGatewaysOutput{} + output = &ListAssetsOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListGateways API operation for AWS IoT SiteWise. +// ListAssets API operation for AWS IoT SiteWise. // -// Retrieves a paginated list of gateways. +// Retrieves a paginated list of asset summaries. +// +// You can use this operation to do the following: +// +// * List assets based on a specific asset model. +// +// * List top-level assets. +// +// You can't use this operation to list all assets. To retrieve summaries for +// all of your assets, use ListAssetModels (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListAssetModels.html) +// to get all of your asset model IDs. Then, use ListAssets to get all assets +// for each asset model. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation ListGateways for usage and error information. +// API operation ListAssets for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -5239,6 +5241,9 @@ func (c *IoTSiteWise) ListGatewaysRequest(input *ListGatewaysInput) (req *reques // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // +// * ResourceNotFoundException +// The requested resource can't be found. +// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -5247,65 +5252,65 @@ func (c *IoTSiteWise) ListGatewaysRequest(input *ListGatewaysInput) (req *reques // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListGateways -func (c *IoTSiteWise) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error) { - req, out := c.ListGatewaysRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssets +func (c *IoTSiteWise) ListAssets(input *ListAssetsInput) (*ListAssetsOutput, error) { + req, out := c.ListAssetsRequest(input) return out, req.Send() } -// ListGatewaysWithContext is the same as ListGateways with the addition of +// ListAssetsWithContext is the same as ListAssets with the addition of // the ability to pass a context and additional request options. // -// See ListGateways for details on how to use this API operation. +// See ListAssets for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListGatewaysWithContext(ctx aws.Context, input *ListGatewaysInput, opts ...request.Option) (*ListGatewaysOutput, error) { - req, out := c.ListGatewaysRequest(input) +func (c *IoTSiteWise) ListAssetsWithContext(ctx aws.Context, input *ListAssetsInput, opts ...request.Option) (*ListAssetsOutput, error) { + req, out := c.ListAssetsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListGatewaysPages iterates over the pages of a ListGateways operation, +// ListAssetsPages iterates over the pages of a ListAssets operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListGateways method for more information on how to use this operation. +// See ListAssets 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 ListGateways operation. +// // Example iterating over at most 3 pages of a ListAssets operation. // pageNum := 0 -// err := client.ListGatewaysPages(params, -// func(page *iotsitewise.ListGatewaysOutput, lastPage bool) bool { +// err := client.ListAssetsPages(params, +// func(page *iotsitewise.ListAssetsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *IoTSiteWise) ListGatewaysPages(input *ListGatewaysInput, fn func(*ListGatewaysOutput, bool) bool) error { - return c.ListGatewaysPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *IoTSiteWise) ListAssetsPages(input *ListAssetsInput, fn func(*ListAssetsOutput, bool) bool) error { + return c.ListAssetsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListGatewaysPagesWithContext same as ListGatewaysPages except +// ListAssetsPagesWithContext same as ListAssetsPages 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 *IoTSiteWise) ListGatewaysPagesWithContext(ctx aws.Context, input *ListGatewaysInput, fn func(*ListGatewaysOutput, bool) bool, opts ...request.Option) error { +func (c *IoTSiteWise) ListAssetsPagesWithContext(ctx aws.Context, input *ListAssetsInput, fn func(*ListAssetsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListGatewaysInput + var inCpy *ListAssetsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListGatewaysRequest(inCpy) + req, _ := c.ListAssetsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -5313,7 +5318,7 @@ func (c *IoTSiteWise) ListGatewaysPagesWithContext(ctx aws.Context, input *ListG } for p.Next() { - if !fn(p.Page().(*ListGatewaysOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListAssetsOutput), !p.HasNextPage()) { break } } @@ -5321,37 +5326,37 @@ func (c *IoTSiteWise) ListGatewaysPagesWithContext(ctx aws.Context, input *ListG return p.Err() } -const opListPortals = "ListPortals" +const opListAssociatedAssets = "ListAssociatedAssets" -// ListPortalsRequest generates a "aws/request.Request" representing the -// client's request for the ListPortals operation. The "output" return +// ListAssociatedAssetsRequest generates a "aws/request.Request" representing the +// client's request for the ListAssociatedAssets operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListPortals for more information on using the ListPortals +// See ListAssociatedAssets for more information on using the ListAssociatedAssets // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListPortalsRequest method. -// req, resp := client.ListPortalsRequest(params) +// // Example sending a request using the ListAssociatedAssetsRequest method. +// req, resp := client.ListAssociatedAssetsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListPortals -func (c *IoTSiteWise) ListPortalsRequest(input *ListPortalsInput) (req *request.Request, output *ListPortalsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssociatedAssets +func (c *IoTSiteWise) ListAssociatedAssetsRequest(input *ListAssociatedAssetsInput) (req *request.Request, output *ListAssociatedAssetsOutput) { op := &request.Operation{ - Name: opListPortals, + Name: opListAssociatedAssets, HTTPMethod: "GET", - HTTPPath: "/portals", + HTTPPath: "/assets/{assetId}/hierarchies", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -5361,26 +5366,33 @@ func (c *IoTSiteWise) ListPortalsRequest(input *ListPortalsInput) (req *request. } if input == nil { - input = &ListPortalsInput{} + input = &ListAssociatedAssetsInput{} } - output = &ListPortalsOutput{} + output = &ListAssociatedAssetsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListPortals API operation for AWS IoT SiteWise. +// ListAssociatedAssets API operation for AWS IoT SiteWise. // -// Retrieves a paginated list of IoT SiteWise Monitor portals. +// Retrieves a paginated list of associated assets. +// +// You can use this operation to do the following: +// +// * List child assets associated to a parent asset by a hierarchy that you +// specify. +// +// * List an asset's parent asset. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation ListPortals for usage and error information. +// API operation ListAssociatedAssets for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -5390,6 +5402,9 @@ func (c *IoTSiteWise) ListPortalsRequest(input *ListPortalsInput) (req *request. // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // +// * ResourceNotFoundException +// The requested resource can't be found. +// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -5398,65 +5413,65 @@ func (c *IoTSiteWise) ListPortalsRequest(input *ListPortalsInput) (req *request. // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListPortals -func (c *IoTSiteWise) ListPortals(input *ListPortalsInput) (*ListPortalsOutput, error) { - req, out := c.ListPortalsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListAssociatedAssets +func (c *IoTSiteWise) ListAssociatedAssets(input *ListAssociatedAssetsInput) (*ListAssociatedAssetsOutput, error) { + req, out := c.ListAssociatedAssetsRequest(input) return out, req.Send() } -// ListPortalsWithContext is the same as ListPortals with the addition of +// ListAssociatedAssetsWithContext is the same as ListAssociatedAssets with the addition of // the ability to pass a context and additional request options. // -// See ListPortals for details on how to use this API operation. +// See ListAssociatedAssets for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListPortalsWithContext(ctx aws.Context, input *ListPortalsInput, opts ...request.Option) (*ListPortalsOutput, error) { - req, out := c.ListPortalsRequest(input) +func (c *IoTSiteWise) ListAssociatedAssetsWithContext(ctx aws.Context, input *ListAssociatedAssetsInput, opts ...request.Option) (*ListAssociatedAssetsOutput, error) { + req, out := c.ListAssociatedAssetsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListPortalsPages iterates over the pages of a ListPortals operation, +// ListAssociatedAssetsPages iterates over the pages of a ListAssociatedAssets operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListPortals method for more information on how to use this operation. +// See ListAssociatedAssets 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 ListPortals operation. +// // Example iterating over at most 3 pages of a ListAssociatedAssets operation. // pageNum := 0 -// err := client.ListPortalsPages(params, -// func(page *iotsitewise.ListPortalsOutput, lastPage bool) bool { +// err := client.ListAssociatedAssetsPages(params, +// func(page *iotsitewise.ListAssociatedAssetsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *IoTSiteWise) ListPortalsPages(input *ListPortalsInput, fn func(*ListPortalsOutput, bool) bool) error { - return c.ListPortalsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *IoTSiteWise) ListAssociatedAssetsPages(input *ListAssociatedAssetsInput, fn func(*ListAssociatedAssetsOutput, bool) bool) error { + return c.ListAssociatedAssetsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListPortalsPagesWithContext same as ListPortalsPages except +// ListAssociatedAssetsPagesWithContext same as ListAssociatedAssetsPages 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 *IoTSiteWise) ListPortalsPagesWithContext(ctx aws.Context, input *ListPortalsInput, fn func(*ListPortalsOutput, bool) bool, opts ...request.Option) error { +func (c *IoTSiteWise) ListAssociatedAssetsPagesWithContext(ctx aws.Context, input *ListAssociatedAssetsInput, fn func(*ListAssociatedAssetsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListPortalsInput + var inCpy *ListAssociatedAssetsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListPortalsRequest(inCpy) + req, _ := c.ListAssociatedAssetsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -5464,7 +5479,7 @@ func (c *IoTSiteWise) ListPortalsPagesWithContext(ctx aws.Context, input *ListPo } for p.Next() { - if !fn(p.Page().(*ListPortalsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListAssociatedAssetsOutput), !p.HasNextPage()) { break } } @@ -5472,37 +5487,37 @@ func (c *IoTSiteWise) ListPortalsPagesWithContext(ctx aws.Context, input *ListPo return p.Err() } -const opListProjectAssets = "ListProjectAssets" +const opListDashboards = "ListDashboards" -// ListProjectAssetsRequest generates a "aws/request.Request" representing the -// client's request for the ListProjectAssets operation. The "output" return +// ListDashboardsRequest generates a "aws/request.Request" representing the +// client's request for the ListDashboards operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListProjectAssets for more information on using the ListProjectAssets +// See ListDashboards for more information on using the ListDashboards // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListProjectAssetsRequest method. -// req, resp := client.ListProjectAssetsRequest(params) +// // Example sending a request using the ListDashboardsRequest method. +// req, resp := client.ListDashboardsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListProjectAssets -func (c *IoTSiteWise) ListProjectAssetsRequest(input *ListProjectAssetsInput) (req *request.Request, output *ListProjectAssetsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListDashboards +func (c *IoTSiteWise) ListDashboardsRequest(input *ListDashboardsInput) (req *request.Request, output *ListDashboardsOutput) { op := &request.Operation{ - Name: opListProjectAssets, + Name: opListDashboards, HTTPMethod: "GET", - HTTPPath: "/projects/{projectId}/assets", + HTTPPath: "/dashboards", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -5512,27 +5527,26 @@ func (c *IoTSiteWise) ListProjectAssetsRequest(input *ListProjectAssetsInput) (r } if input == nil { - input = &ListProjectAssetsInput{} + input = &ListDashboardsInput{} } - output = &ListProjectAssetsOutput{} + output = &ListDashboardsOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListProjectAssets API operation for AWS IoT SiteWise. +// ListDashboards API operation for AWS IoT SiteWise. // -// Retrieves a paginated list of assets associated with an IoT SiteWise Monitor -// project. +// Retrieves a paginated list of dashboards for an IoT SiteWise Monitor project. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation ListProjectAssets for usage and error information. +// API operation ListDashboards for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -5550,65 +5564,65 @@ func (c *IoTSiteWise) ListProjectAssetsRequest(input *ListProjectAssetsInput) (r // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListProjectAssets -func (c *IoTSiteWise) ListProjectAssets(input *ListProjectAssetsInput) (*ListProjectAssetsOutput, error) { - req, out := c.ListProjectAssetsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListDashboards +func (c *IoTSiteWise) ListDashboards(input *ListDashboardsInput) (*ListDashboardsOutput, error) { + req, out := c.ListDashboardsRequest(input) return out, req.Send() } -// ListProjectAssetsWithContext is the same as ListProjectAssets with the addition of +// ListDashboardsWithContext is the same as ListDashboards with the addition of // the ability to pass a context and additional request options. // -// See ListProjectAssets for details on how to use this API operation. +// See ListDashboards for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListProjectAssetsWithContext(ctx aws.Context, input *ListProjectAssetsInput, opts ...request.Option) (*ListProjectAssetsOutput, error) { - req, out := c.ListProjectAssetsRequest(input) +func (c *IoTSiteWise) ListDashboardsWithContext(ctx aws.Context, input *ListDashboardsInput, opts ...request.Option) (*ListDashboardsOutput, error) { + req, out := c.ListDashboardsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListProjectAssetsPages iterates over the pages of a ListProjectAssets operation, +// ListDashboardsPages iterates over the pages of a ListDashboards operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListProjectAssets method for more information on how to use this operation. +// See ListDashboards 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 ListProjectAssets operation. +// // Example iterating over at most 3 pages of a ListDashboards operation. // pageNum := 0 -// err := client.ListProjectAssetsPages(params, -// func(page *iotsitewise.ListProjectAssetsOutput, lastPage bool) bool { +// err := client.ListDashboardsPages(params, +// func(page *iotsitewise.ListDashboardsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *IoTSiteWise) ListProjectAssetsPages(input *ListProjectAssetsInput, fn func(*ListProjectAssetsOutput, bool) bool) error { - return c.ListProjectAssetsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *IoTSiteWise) ListDashboardsPages(input *ListDashboardsInput, fn func(*ListDashboardsOutput, bool) bool) error { + return c.ListDashboardsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListProjectAssetsPagesWithContext same as ListProjectAssetsPages except +// ListDashboardsPagesWithContext same as ListDashboardsPages 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 *IoTSiteWise) ListProjectAssetsPagesWithContext(ctx aws.Context, input *ListProjectAssetsInput, fn func(*ListProjectAssetsOutput, bool) bool, opts ...request.Option) error { +func (c *IoTSiteWise) ListDashboardsPagesWithContext(ctx aws.Context, input *ListDashboardsInput, fn func(*ListDashboardsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListProjectAssetsInput + var inCpy *ListDashboardsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListProjectAssetsRequest(inCpy) + req, _ := c.ListDashboardsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -5616,7 +5630,7 @@ func (c *IoTSiteWise) ListProjectAssetsPagesWithContext(ctx aws.Context, input * } for p.Next() { - if !fn(p.Page().(*ListProjectAssetsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListDashboardsOutput), !p.HasNextPage()) { break } } @@ -5624,37 +5638,37 @@ func (c *IoTSiteWise) ListProjectAssetsPagesWithContext(ctx aws.Context, input * return p.Err() } -const opListProjects = "ListProjects" +const opListGateways = "ListGateways" -// ListProjectsRequest generates a "aws/request.Request" representing the -// client's request for the ListProjects operation. The "output" return +// ListGatewaysRequest generates a "aws/request.Request" representing the +// client's request for the ListGateways operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListProjects for more information on using the ListProjects +// See ListGateways for more information on using the ListGateways // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListProjectsRequest method. -// req, resp := client.ListProjectsRequest(params) +// // Example sending a request using the ListGatewaysRequest method. +// req, resp := client.ListGatewaysRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListProjects -func (c *IoTSiteWise) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListGateways +func (c *IoTSiteWise) ListGatewaysRequest(input *ListGatewaysInput) (req *request.Request, output *ListGatewaysOutput) { op := &request.Operation{ - Name: opListProjects, + Name: opListGateways, HTTPMethod: "GET", - HTTPPath: "/projects", + HTTPPath: "/20200301/gateways", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -5664,26 +5678,26 @@ func (c *IoTSiteWise) ListProjectsRequest(input *ListProjectsInput) (req *reques } if input == nil { - input = &ListProjectsInput{} + input = &ListGatewaysInput{} } - output = &ListProjectsOutput{} + output = &ListGatewaysOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListProjects API operation for AWS IoT SiteWise. +// ListGateways API operation for AWS IoT SiteWise. // -// Retrieves a paginated list of projects for an IoT SiteWise Monitor portal. +// Retrieves a paginated list of gateways. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation ListProjects for usage and error information. +// API operation ListGateways for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -5701,65 +5715,65 @@ func (c *IoTSiteWise) ListProjectsRequest(input *ListProjectsInput) (req *reques // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListProjects -func (c *IoTSiteWise) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) { - req, out := c.ListProjectsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListGateways +func (c *IoTSiteWise) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error) { + req, out := c.ListGatewaysRequest(input) return out, req.Send() } -// ListProjectsWithContext is the same as ListProjects with the addition of +// ListGatewaysWithContext is the same as ListGateways with the addition of // the ability to pass a context and additional request options. // -// See ListProjects for details on how to use this API operation. +// See ListGateways for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListProjectsWithContext(ctx aws.Context, input *ListProjectsInput, opts ...request.Option) (*ListProjectsOutput, error) { - req, out := c.ListProjectsRequest(input) +func (c *IoTSiteWise) ListGatewaysWithContext(ctx aws.Context, input *ListGatewaysInput, opts ...request.Option) (*ListGatewaysOutput, error) { + req, out := c.ListGatewaysRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListProjectsPages iterates over the pages of a ListProjects operation, +// ListGatewaysPages iterates over the pages of a ListGateways operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListProjects method for more information on how to use this operation. +// See ListGateways 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 ListProjects operation. +// // Example iterating over at most 3 pages of a ListGateways operation. // pageNum := 0 -// err := client.ListProjectsPages(params, -// func(page *iotsitewise.ListProjectsOutput, lastPage bool) bool { +// err := client.ListGatewaysPages(params, +// func(page *iotsitewise.ListGatewaysOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *IoTSiteWise) ListProjectsPages(input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool) error { - return c.ListProjectsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *IoTSiteWise) ListGatewaysPages(input *ListGatewaysInput, fn func(*ListGatewaysOutput, bool) bool) error { + return c.ListGatewaysPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListProjectsPagesWithContext same as ListProjectsPages except +// ListGatewaysPagesWithContext same as ListGatewaysPages 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 *IoTSiteWise) ListProjectsPagesWithContext(ctx aws.Context, input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool, opts ...request.Option) error { +func (c *IoTSiteWise) ListGatewaysPagesWithContext(ctx aws.Context, input *ListGatewaysInput, fn func(*ListGatewaysOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListProjectsInput + var inCpy *ListGatewaysInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListProjectsRequest(inCpy) + req, _ := c.ListGatewaysRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -5767,7 +5781,7 @@ func (c *IoTSiteWise) ListProjectsPagesWithContext(ctx aws.Context, input *ListP } for p.Next() { - if !fn(p.Page().(*ListProjectsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListGatewaysOutput), !p.HasNextPage()) { break } } @@ -5775,60 +5789,66 @@ func (c *IoTSiteWise) ListProjectsPagesWithContext(ctx aws.Context, input *ListP return p.Err() } -const opListTagsForResource = "ListTagsForResource" +const opListPortals = "ListPortals" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// ListPortalsRequest generates a "aws/request.Request" representing the +// client's request for the ListPortals operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the 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 ListPortals for more information on using the ListPortals // API call, and error handling. // // This method is useful when you want to 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 ListPortalsRequest method. +// req, resp := client.ListPortalsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListTagsForResource -func (c *IoTSiteWise) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListPortals +func (c *IoTSiteWise) ListPortalsRequest(input *ListPortalsInput) (req *request.Request, output *ListPortalsOutput) { op := &request.Operation{ - Name: opListTagsForResource, + Name: opListPortals, HTTPMethod: "GET", - HTTPPath: "/tags", + HTTPPath: "/portals", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &ListTagsForResourceInput{} + input = &ListPortalsInput{} } - output = &ListTagsForResourceOutput{} + output = &ListPortalsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListTagsForResource API operation for AWS IoT SiteWise. +// ListPortals API operation for AWS IoT SiteWise. // -// Retrieves the list of tags for an IoT SiteWise resource. +// Retrieves a paginated list of IoT SiteWise Monitor portals. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation ListTagsForResource for usage and error information. +// API operation ListPortals for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -5846,77 +5866,111 @@ func (c *IoTSiteWise) ListTagsForResourceRequest(input *ListTagsForResourceInput // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ResourceNotFoundException -// The requested resource can't be found. -// -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// -// * LimitExceededException -// You've reached the limit for a resource. For example, this can occur if you're -// trying to associate more than the allowed number of child assets or attempting -// to create more than the allowed number of properties for an asset model. -// -// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) -// in the IoT SiteWise User Guide. -// -// * UnauthorizedException -// You are not authorized. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListTagsForResource -func (c *IoTSiteWise) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListPortals +func (c *IoTSiteWise) ListPortals(input *ListPortalsInput) (*ListPortalsOutput, error) { + req, out := c.ListPortalsRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// ListPortalsWithContext is the same as ListPortals 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 ListPortals for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *IoTSiteWise) ListPortalsWithContext(ctx aws.Context, input *ListPortalsInput, opts ...request.Option) (*ListPortalsOutput, error) { + req, out := c.ListPortalsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListTimeSeries = "ListTimeSeries" +// ListPortalsPages iterates over the pages of a ListPortals operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPortals 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 ListPortals operation. +// pageNum := 0 +// err := client.ListPortalsPages(params, +// func(page *iotsitewise.ListPortalsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTSiteWise) ListPortalsPages(input *ListPortalsInput, fn func(*ListPortalsOutput, bool) bool) error { + return c.ListPortalsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// ListTimeSeriesRequest generates a "aws/request.Request" representing the -// client's request for the ListTimeSeries operation. The "output" return +// ListPortalsPagesWithContext same as ListPortalsPages 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 *IoTSiteWise) ListPortalsPagesWithContext(ctx aws.Context, input *ListPortalsInput, fn func(*ListPortalsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPortalsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPortalsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListPortalsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListProjectAssets = "ListProjectAssets" + +// ListProjectAssetsRequest generates a "aws/request.Request" representing the +// client's request for the ListProjectAssets operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListTimeSeries for more information on using the ListTimeSeries +// See ListProjectAssets for more information on using the ListProjectAssets // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListTimeSeriesRequest method. -// req, resp := client.ListTimeSeriesRequest(params) +// // Example sending a request using the ListProjectAssetsRequest method. +// req, resp := client.ListProjectAssetsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListTimeSeries -func (c *IoTSiteWise) ListTimeSeriesRequest(input *ListTimeSeriesInput) (req *request.Request, output *ListTimeSeriesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListProjectAssets +func (c *IoTSiteWise) ListProjectAssetsRequest(input *ListProjectAssetsInput) (req *request.Request, output *ListProjectAssetsOutput) { op := &request.Operation{ - Name: opListTimeSeries, + Name: opListProjectAssets, HTTPMethod: "GET", - HTTPPath: "/timeseries/", + HTTPPath: "/projects/{projectId}/assets", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -5926,35 +5980,33 @@ func (c *IoTSiteWise) ListTimeSeriesRequest(input *ListTimeSeriesInput) (req *re } if input == nil { - input = &ListTimeSeriesInput{} + input = &ListProjectAssetsInput{} } - output = &ListTimeSeriesOutput{} + output = &ListProjectAssetsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListTimeSeries API operation for AWS IoT SiteWise. +// ListProjectAssets API operation for AWS IoT SiteWise. // -// Retrieves a paginated list of time series (data streams). +// Retrieves a paginated list of assets associated with an IoT SiteWise Monitor +// project. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation ListTimeSeries for usage and error information. +// API operation ListProjectAssets for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * ResourceNotFoundException -// The requested resource can't be found. -// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -5966,65 +6018,65 @@ func (c *IoTSiteWise) ListTimeSeriesRequest(input *ListTimeSeriesInput) (req *re // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListTimeSeries -func (c *IoTSiteWise) ListTimeSeries(input *ListTimeSeriesInput) (*ListTimeSeriesOutput, error) { - req, out := c.ListTimeSeriesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListProjectAssets +func (c *IoTSiteWise) ListProjectAssets(input *ListProjectAssetsInput) (*ListProjectAssetsOutput, error) { + req, out := c.ListProjectAssetsRequest(input) return out, req.Send() } -// ListTimeSeriesWithContext is the same as ListTimeSeries with the addition of +// ListProjectAssetsWithContext is the same as ListProjectAssets with the addition of // the ability to pass a context and additional request options. // -// See ListTimeSeries for details on how to use this API operation. +// See ListProjectAssets for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) ListTimeSeriesWithContext(ctx aws.Context, input *ListTimeSeriesInput, opts ...request.Option) (*ListTimeSeriesOutput, error) { - req, out := c.ListTimeSeriesRequest(input) +func (c *IoTSiteWise) ListProjectAssetsWithContext(ctx aws.Context, input *ListProjectAssetsInput, opts ...request.Option) (*ListProjectAssetsOutput, error) { + req, out := c.ListProjectAssetsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListTimeSeriesPages iterates over the pages of a ListTimeSeries operation, +// ListProjectAssetsPages iterates over the pages of a ListProjectAssets operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListTimeSeries method for more information on how to use this operation. +// See ListProjectAssets 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 ListTimeSeries operation. +// // Example iterating over at most 3 pages of a ListProjectAssets operation. // pageNum := 0 -// err := client.ListTimeSeriesPages(params, -// func(page *iotsitewise.ListTimeSeriesOutput, lastPage bool) bool { +// err := client.ListProjectAssetsPages(params, +// func(page *iotsitewise.ListProjectAssetsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *IoTSiteWise) ListTimeSeriesPages(input *ListTimeSeriesInput, fn func(*ListTimeSeriesOutput, bool) bool) error { - return c.ListTimeSeriesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *IoTSiteWise) ListProjectAssetsPages(input *ListProjectAssetsInput, fn func(*ListProjectAssetsOutput, bool) bool) error { + return c.ListProjectAssetsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListTimeSeriesPagesWithContext same as ListTimeSeriesPages except +// ListProjectAssetsPagesWithContext same as ListProjectAssetsPages 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 *IoTSiteWise) ListTimeSeriesPagesWithContext(ctx aws.Context, input *ListTimeSeriesInput, fn func(*ListTimeSeriesOutput, bool) bool, opts ...request.Option) error { +func (c *IoTSiteWise) ListProjectAssetsPagesWithContext(ctx aws.Context, input *ListProjectAssetsInput, fn func(*ListProjectAssetsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListTimeSeriesInput + var inCpy *ListProjectAssetsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListTimeSeriesRequest(inCpy) + req, _ := c.ListProjectAssetsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -6032,7 +6084,7 @@ func (c *IoTSiteWise) ListTimeSeriesPagesWithContext(ctx aws.Context, input *Lis } for p.Next() { - if !fn(p.Page().(*ListTimeSeriesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListProjectAssetsOutput), !p.HasNextPage()) { break } } @@ -6040,62 +6092,66 @@ func (c *IoTSiteWise) ListTimeSeriesPagesWithContext(ctx aws.Context, input *Lis return p.Err() } -const opPutDefaultEncryptionConfiguration = "PutDefaultEncryptionConfiguration" +const opListProjects = "ListProjects" -// PutDefaultEncryptionConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutDefaultEncryptionConfiguration operation. The "output" return +// ListProjectsRequest generates a "aws/request.Request" representing the +// client's request for the ListProjects operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PutDefaultEncryptionConfiguration for more information on using the PutDefaultEncryptionConfiguration +// See ListProjects for more information on using the ListProjects // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PutDefaultEncryptionConfigurationRequest method. -// req, resp := client.PutDefaultEncryptionConfigurationRequest(params) +// // Example sending a request using the ListProjectsRequest method. +// req, resp := client.ListProjectsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutDefaultEncryptionConfiguration -func (c *IoTSiteWise) PutDefaultEncryptionConfigurationRequest(input *PutDefaultEncryptionConfigurationInput) (req *request.Request, output *PutDefaultEncryptionConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListProjects +func (c *IoTSiteWise) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput) { op := &request.Operation{ - Name: opPutDefaultEncryptionConfiguration, - HTTPMethod: "POST", - HTTPPath: "/configuration/account/encryption", + Name: opListProjects, + HTTPMethod: "GET", + HTTPPath: "/projects", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &PutDefaultEncryptionConfigurationInput{} + input = &ListProjectsInput{} } - output = &PutDefaultEncryptionConfigurationOutput{} + output = &ListProjectsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// PutDefaultEncryptionConfiguration API operation for AWS IoT SiteWise. +// ListProjects API operation for AWS IoT SiteWise. // -// Sets the default encryption configuration for the Amazon Web Services account. -// For more information, see Key management (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/key-management.html) -// in the IoT SiteWise User Guide. +// Retrieves a paginated list of projects for an IoT SiteWise Monitor portal. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation PutDefaultEncryptionConfiguration for usage and error information. +// API operation ListProjects for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -6113,101 +6169,143 @@ func (c *IoTSiteWise) PutDefaultEncryptionConfigurationRequest(input *PutDefault // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * LimitExceededException -// You've reached the limit for a resource. For example, this can occur if you're -// trying to associate more than the allowed number of child assets or attempting -// to create more than the allowed number of properties for an asset model. -// -// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) -// in the IoT SiteWise User Guide. -// -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutDefaultEncryptionConfiguration -func (c *IoTSiteWise) PutDefaultEncryptionConfiguration(input *PutDefaultEncryptionConfigurationInput) (*PutDefaultEncryptionConfigurationOutput, error) { - req, out := c.PutDefaultEncryptionConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListProjects +func (c *IoTSiteWise) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) { + req, out := c.ListProjectsRequest(input) return out, req.Send() } -// PutDefaultEncryptionConfigurationWithContext is the same as PutDefaultEncryptionConfiguration with the addition of +// ListProjectsWithContext is the same as ListProjects with the addition of // the ability to pass a context and additional request options. // -// See PutDefaultEncryptionConfiguration for details on how to use this API operation. +// See ListProjects for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) PutDefaultEncryptionConfigurationWithContext(ctx aws.Context, input *PutDefaultEncryptionConfigurationInput, opts ...request.Option) (*PutDefaultEncryptionConfigurationOutput, error) { - req, out := c.PutDefaultEncryptionConfigurationRequest(input) +func (c *IoTSiteWise) ListProjectsWithContext(ctx aws.Context, input *ListProjectsInput, opts ...request.Option) (*ListProjectsOutput, error) { + req, out := c.ListProjectsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutLoggingOptions = "PutLoggingOptions" +// ListProjectsPages iterates over the pages of a ListProjects operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListProjects 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 ListProjects operation. +// pageNum := 0 +// err := client.ListProjectsPages(params, +// func(page *iotsitewise.ListProjectsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTSiteWise) ListProjectsPages(input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool) error { + return c.ListProjectsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// PutLoggingOptionsRequest generates a "aws/request.Request" representing the -// client's request for the PutLoggingOptions operation. The "output" return +// ListProjectsPagesWithContext same as ListProjectsPages 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 *IoTSiteWise) ListProjectsPagesWithContext(ctx aws.Context, input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListProjectsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListProjectsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListProjectsOutput), !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 PutLoggingOptions for more information on using the PutLoggingOptions +// 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 PutLoggingOptionsRequest method. -// req, resp := client.PutLoggingOptionsRequest(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/iotsitewise-2019-12-02/PutLoggingOptions -func (c *IoTSiteWise) PutLoggingOptionsRequest(input *PutLoggingOptionsInput) (req *request.Request, output *PutLoggingOptionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListTagsForResource +func (c *IoTSiteWise) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opPutLoggingOptions, - HTTPMethod: "PUT", - HTTPPath: "/logging", + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags", } if input == nil { - input = &PutLoggingOptionsInput{} + input = &ListTagsForResourceInput{} } - output = &PutLoggingOptionsOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// PutLoggingOptions API operation for AWS IoT SiteWise. +// ListTagsForResource API operation for AWS IoT SiteWise. // -// Sets logging options for IoT SiteWise. +// Retrieves the list of tags for an IoT SiteWise resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation PutLoggingOptions for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. +// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -6216,101 +6314,112 @@ func (c *IoTSiteWise) PutLoggingOptionsRequest(input *PutLoggingOptionsInput) (r // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * InternalFailureException -// IoT SiteWise can't process your request right now. Try again later. +// * ResourceNotFoundException +// The requested resource can't be found. // // * ConflictingOperationException // Your request has conflicting operations. This can occur if you're trying // to perform more than one operation on the same resource at the same time. // -// * ResourceNotFoundException -// The requested resource can't be found. +// * LimitExceededException +// You've reached the limit for a resource. For example, this can occur if you're +// trying to associate more than the allowed number of child assets or attempting +// to create more than the allowed number of properties for an asset model. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutLoggingOptions -func (c *IoTSiteWise) PutLoggingOptions(input *PutLoggingOptionsInput) (*PutLoggingOptionsOutput, error) { - req, out := c.PutLoggingOptionsRequest(input) +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * UnauthorizedException +// You are not authorized. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListTagsForResource +func (c *IoTSiteWise) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// PutLoggingOptionsWithContext is the same as PutLoggingOptions 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 PutLoggingOptions 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 *IoTSiteWise) PutLoggingOptionsWithContext(ctx aws.Context, input *PutLoggingOptionsInput, opts ...request.Option) (*PutLoggingOptionsOutput, error) { - req, out := c.PutLoggingOptionsRequest(input) +func (c *IoTSiteWise) 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 opPutStorageConfiguration = "PutStorageConfiguration" +const opListTimeSeries = "ListTimeSeries" -// PutStorageConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutStorageConfiguration operation. The "output" return +// ListTimeSeriesRequest generates a "aws/request.Request" representing the +// client's request for the ListTimeSeries operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PutStorageConfiguration for more information on using the PutStorageConfiguration +// See ListTimeSeries for more information on using the ListTimeSeries // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PutStorageConfigurationRequest method. -// req, resp := client.PutStorageConfigurationRequest(params) +// // Example sending a request using the ListTimeSeriesRequest method. +// req, resp := client.ListTimeSeriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutStorageConfiguration -func (c *IoTSiteWise) PutStorageConfigurationRequest(input *PutStorageConfigurationInput) (req *request.Request, output *PutStorageConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListTimeSeries +func (c *IoTSiteWise) ListTimeSeriesRequest(input *ListTimeSeriesInput) (req *request.Request, output *ListTimeSeriesOutput) { op := &request.Operation{ - Name: opPutStorageConfiguration, - HTTPMethod: "POST", - HTTPPath: "/configuration/account/storage", + Name: opListTimeSeries, + HTTPMethod: "GET", + HTTPPath: "/timeseries/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &PutStorageConfigurationInput{} + input = &ListTimeSeriesInput{} } - output = &PutStorageConfigurationOutput{} + output = &ListTimeSeriesOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// PutStorageConfiguration API operation for AWS IoT SiteWise. +// ListTimeSeries API operation for AWS IoT SiteWise. // -// Configures storage settings for IoT SiteWise. +// Retrieves a paginated list of time series (data streams). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation PutStorageConfiguration for usage and error information. +// API operation ListTimeSeries for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * ResourceAlreadyExistsException -// The resource already exists. -// // * ResourceNotFoundException // The requested resource can't be found. // @@ -6325,96 +6434,136 @@ func (c *IoTSiteWise) PutStorageConfigurationRequest(input *PutStorageConfigurat // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * LimitExceededException -// You've reached the limit for a resource. For example, this can occur if you're -// trying to associate more than the allowed number of child assets or attempting -// to create more than the allowed number of properties for an asset model. -// -// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) -// in the IoT SiteWise User Guide. -// -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutStorageConfiguration -func (c *IoTSiteWise) PutStorageConfiguration(input *PutStorageConfigurationInput) (*PutStorageConfigurationOutput, error) { - req, out := c.PutStorageConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListTimeSeries +func (c *IoTSiteWise) ListTimeSeries(input *ListTimeSeriesInput) (*ListTimeSeriesOutput, error) { + req, out := c.ListTimeSeriesRequest(input) return out, req.Send() } -// PutStorageConfigurationWithContext is the same as PutStorageConfiguration with the addition of +// ListTimeSeriesWithContext is the same as ListTimeSeries with the addition of // the ability to pass a context and additional request options. // -// See PutStorageConfiguration for details on how to use this API operation. +// See ListTimeSeries for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) PutStorageConfigurationWithContext(ctx aws.Context, input *PutStorageConfigurationInput, opts ...request.Option) (*PutStorageConfigurationOutput, error) { - req, out := c.PutStorageConfigurationRequest(input) +func (c *IoTSiteWise) ListTimeSeriesWithContext(ctx aws.Context, input *ListTimeSeriesInput, opts ...request.Option) (*ListTimeSeriesOutput, error) { + req, out := c.ListTimeSeriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagResource = "TagResource" +// ListTimeSeriesPages iterates over the pages of a ListTimeSeries operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTimeSeries 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 ListTimeSeries operation. +// pageNum := 0 +// err := client.ListTimeSeriesPages(params, +// func(page *iotsitewise.ListTimeSeriesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTSiteWise) ListTimeSeriesPages(input *ListTimeSeriesInput, fn func(*ListTimeSeriesOutput, bool) bool) error { + return c.ListTimeSeriesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// ListTimeSeriesPagesWithContext same as ListTimeSeriesPages 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 *IoTSiteWise) ListTimeSeriesPagesWithContext(ctx aws.Context, input *ListTimeSeriesInput, fn func(*ListTimeSeriesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTimeSeriesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTimeSeriesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListTimeSeriesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opPutDefaultEncryptionConfiguration = "PutDefaultEncryptionConfiguration" + +// PutDefaultEncryptionConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutDefaultEncryptionConfiguration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the 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 PutDefaultEncryptionConfiguration for more information on using the PutDefaultEncryptionConfiguration // API call, and error handling. // // This method is useful when you want to 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 PutDefaultEncryptionConfigurationRequest method. +// req, resp := client.PutDefaultEncryptionConfigurationRequest(params) +// // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/TagResource -func (c *IoTSiteWise) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutDefaultEncryptionConfiguration +func (c *IoTSiteWise) PutDefaultEncryptionConfigurationRequest(input *PutDefaultEncryptionConfigurationInput) (req *request.Request, output *PutDefaultEncryptionConfigurationOutput) { op := &request.Operation{ - Name: opTagResource, + Name: opPutDefaultEncryptionConfiguration, HTTPMethod: "POST", - HTTPPath: "/tags", + HTTPPath: "/configuration/account/encryption", } if input == nil { - input = &TagResourceInput{} + input = &PutDefaultEncryptionConfigurationInput{} } - output = &TagResourceOutput{} + output = &PutDefaultEncryptionConfigurationOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// TagResource API operation for AWS IoT SiteWise. +// PutDefaultEncryptionConfiguration API operation for AWS IoT SiteWise. // -// Adds tags to an IoT SiteWise resource. If a tag already exists for the resource, -// this operation updates the tag's value. +// Sets the default encryption configuration for the Amazon Web Services account. +// For more information, see Key management (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/key-management.html) +// in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation TagResource for usage and error information. +// API operation PutDefaultEncryptionConfiguration for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -6432,13 +6581,6 @@ func (c *IoTSiteWise) TagResourceRequest(input *TagResourceInput) (req *request. // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ResourceNotFoundException -// The requested resource can't be found. -// -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// // * LimitExceededException // You've reached the limit for a resource. For example, this can occur if you're // trying to associate more than the allowed number of child assets or attempting @@ -6447,74 +6589,70 @@ func (c *IoTSiteWise) TagResourceRequest(input *TagResourceInput) (req *request. // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * UnauthorizedException -// You are not authorized. -// -// * TooManyTagsException -// You've reached the limit for the number of tags allowed for a resource. For -// more information, see Tag naming limits and requirements (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions) -// in the Amazon Web Services General Reference. +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/TagResource -func (c *IoTSiteWise) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutDefaultEncryptionConfiguration +func (c *IoTSiteWise) PutDefaultEncryptionConfiguration(input *PutDefaultEncryptionConfigurationInput) (*PutDefaultEncryptionConfigurationOutput, error) { + req, out := c.PutDefaultEncryptionConfigurationRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// PutDefaultEncryptionConfigurationWithContext is the same as PutDefaultEncryptionConfiguration 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 PutDefaultEncryptionConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *IoTSiteWise) PutDefaultEncryptionConfigurationWithContext(ctx aws.Context, input *PutDefaultEncryptionConfigurationInput, opts ...request.Option) (*PutDefaultEncryptionConfigurationOutput, error) { + req, out := c.PutDefaultEncryptionConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" +const opPutLoggingOptions = "PutLoggingOptions" -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// PutLoggingOptionsRequest generates a "aws/request.Request" representing the +// client's request for the PutLoggingOptions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the 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 PutLoggingOptions for more information on using the PutLoggingOptions // API call, and error handling. // // This method is useful when you want to 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 PutLoggingOptionsRequest method. +// req, resp := client.PutLoggingOptionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UntagResource -func (c *IoTSiteWise) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutLoggingOptions +func (c *IoTSiteWise) PutLoggingOptionsRequest(input *PutLoggingOptionsInput) (req *request.Request, output *PutLoggingOptionsOutput) { op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "DELETE", - HTTPPath: "/tags", + Name: opPutLoggingOptions, + HTTPMethod: "PUT", + HTTPPath: "/logging", } if input == nil { - input = &UntagResourceInput{} + input = &PutLoggingOptionsInput{} } - output = &UntagResourceOutput{} + output = &PutLoggingOptionsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) @@ -6522,25 +6660,22 @@ func (c *IoTSiteWise) UntagResourceRequest(input *UntagResourceInput) (req *requ return } -// UntagResource API operation for AWS IoT SiteWise. +// PutLoggingOptions API operation for AWS IoT SiteWise. // -// Removes a tag from an IoT SiteWise resource. +// Sets logging options for IoT SiteWise. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation UntagResource for usage and error information. +// API operation PutLoggingOptions for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * InternalFailureException -// IoT SiteWise can't process your request right now. Try again later. -// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -6549,108 +6684,101 @@ func (c *IoTSiteWise) UntagResourceRequest(input *UntagResourceInput) (req *requ // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ResourceNotFoundException -// The requested resource can't be found. +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. // // * ConflictingOperationException // Your request has conflicting operations. This can occur if you're trying // to perform more than one operation on the same resource at the same time. // -// * LimitExceededException -// You've reached the limit for a resource. For example, this can occur if you're -// trying to associate more than the allowed number of child assets or attempting -// to create more than the allowed number of properties for an asset model. -// -// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) -// in the IoT SiteWise User Guide. -// -// * UnauthorizedException -// You are not authorized. +// * ResourceNotFoundException +// The requested resource can't be found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UntagResource -func (c *IoTSiteWise) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutLoggingOptions +func (c *IoTSiteWise) PutLoggingOptions(input *PutLoggingOptionsInput) (*PutLoggingOptionsOutput, error) { + req, out := c.PutLoggingOptionsRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// PutLoggingOptionsWithContext is the same as PutLoggingOptions 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 PutLoggingOptions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *IoTSiteWise) PutLoggingOptionsWithContext(ctx aws.Context, input *PutLoggingOptionsInput, opts ...request.Option) (*PutLoggingOptionsOutput, error) { + req, out := c.PutLoggingOptionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateAccessPolicy = "UpdateAccessPolicy" +const opPutStorageConfiguration = "PutStorageConfiguration" -// UpdateAccessPolicyRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAccessPolicy operation. The "output" return +// PutStorageConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutStorageConfiguration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateAccessPolicy for more information on using the UpdateAccessPolicy +// See PutStorageConfiguration for more information on using the PutStorageConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateAccessPolicyRequest method. -// req, resp := client.UpdateAccessPolicyRequest(params) +// // Example sending a request using the PutStorageConfigurationRequest method. +// req, resp := client.PutStorageConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAccessPolicy -func (c *IoTSiteWise) UpdateAccessPolicyRequest(input *UpdateAccessPolicyInput) (req *request.Request, output *UpdateAccessPolicyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutStorageConfiguration +func (c *IoTSiteWise) PutStorageConfigurationRequest(input *PutStorageConfigurationInput) (req *request.Request, output *PutStorageConfigurationOutput) { op := &request.Operation{ - Name: opUpdateAccessPolicy, - HTTPMethod: "PUT", - HTTPPath: "/access-policies/{accessPolicyId}", + Name: opPutStorageConfiguration, + HTTPMethod: "POST", + HTTPPath: "/configuration/account/storage", } if input == nil { - input = &UpdateAccessPolicyInput{} + input = &PutStorageConfigurationInput{} } - output = &UpdateAccessPolicyOutput{} + output = &PutStorageConfigurationOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UpdateAccessPolicy API operation for AWS IoT SiteWise. +// PutStorageConfiguration API operation for AWS IoT SiteWise. // -// Updates an existing access policy that specifies an identity's access to -// an IoT SiteWise Monitor portal or project resource. +// Configures storage settings for IoT SiteWise. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation UpdateAccessPolicy for usage and error information. +// API operation PutStorageConfiguration for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // +// * ResourceAlreadyExistsException +// The resource already exists. +// // * ResourceNotFoundException // The requested resource can't be found. // @@ -6665,96 +6793,102 @@ func (c *IoTSiteWise) UpdateAccessPolicyRequest(input *UpdateAccessPolicyInput) // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAccessPolicy -func (c *IoTSiteWise) UpdateAccessPolicy(input *UpdateAccessPolicyInput) (*UpdateAccessPolicyOutput, error) { - req, out := c.UpdateAccessPolicyRequest(input) +// * LimitExceededException +// You've reached the limit for a resource. For example, this can occur if you're +// trying to associate more than the allowed number of child assets or attempting +// to create more than the allowed number of properties for an asset model. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutStorageConfiguration +func (c *IoTSiteWise) PutStorageConfiguration(input *PutStorageConfigurationInput) (*PutStorageConfigurationOutput, error) { + req, out := c.PutStorageConfigurationRequest(input) return out, req.Send() } -// UpdateAccessPolicyWithContext is the same as UpdateAccessPolicy with the addition of +// PutStorageConfigurationWithContext is the same as PutStorageConfiguration with the addition of // the ability to pass a context and additional request options. // -// See UpdateAccessPolicy for details on how to use this API operation. +// See PutStorageConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) UpdateAccessPolicyWithContext(ctx aws.Context, input *UpdateAccessPolicyInput, opts ...request.Option) (*UpdateAccessPolicyOutput, error) { - req, out := c.UpdateAccessPolicyRequest(input) +func (c *IoTSiteWise) PutStorageConfigurationWithContext(ctx aws.Context, input *PutStorageConfigurationInput, opts ...request.Option) (*PutStorageConfigurationOutput, error) { + req, out := c.PutStorageConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateAsset = "UpdateAsset" +const opTagResource = "TagResource" -// UpdateAssetRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAsset operation. The "output" return +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateAsset for more information on using the UpdateAsset +// 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 UpdateAssetRequest method. -// req, resp := client.UpdateAssetRequest(params) +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAsset -func (c *IoTSiteWise) UpdateAssetRequest(input *UpdateAssetInput) (req *request.Request, output *UpdateAssetOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/TagResource +func (c *IoTSiteWise) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ - Name: opUpdateAsset, - HTTPMethod: "PUT", - HTTPPath: "/assets/{assetId}", + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags", } if input == nil { - input = &UpdateAssetInput{} + input = &TagResourceInput{} } - output = &UpdateAssetOutput{} + output = &TagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UpdateAsset API operation for AWS IoT SiteWise. +// TagResource API operation for AWS IoT SiteWise. // -// Updates an asset's name. For more information, see Updating assets and models -// (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/update-assets-and-models.html) -// in the IoT SiteWise User Guide. +// Adds tags to an IoT SiteWise resource. If a tag already exists for the resource, +// this operation updates the tag's value. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation UpdateAsset for usage and error information. +// API operation TagResource for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * ResourceAlreadyExistsException -// The resource already exists. -// -// * ResourceNotFoundException -// The requested resource can't be found. -// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -6766,123 +6900,115 @@ func (c *IoTSiteWise) UpdateAssetRequest(input *UpdateAssetInput) (req *request. // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // +// * ResourceNotFoundException +// The requested resource can't be found. +// // * ConflictingOperationException // Your request has conflicting operations. This can occur if you're trying // to perform more than one operation on the same resource at the same time. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAsset -func (c *IoTSiteWise) UpdateAsset(input *UpdateAssetInput) (*UpdateAssetOutput, error) { - req, out := c.UpdateAssetRequest(input) +// * LimitExceededException +// You've reached the limit for a resource. For example, this can occur if you're +// trying to associate more than the allowed number of child assets or attempting +// to create more than the allowed number of properties for an asset model. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * UnauthorizedException +// You are not authorized. +// +// * TooManyTagsException +// You've reached the limit for the number of tags allowed for a resource. For +// more information, see Tag naming limits and requirements (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions) +// in the Amazon Web Services General Reference. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/TagResource +func (c *IoTSiteWise) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) return out, req.Send() } -// UpdateAssetWithContext is the same as UpdateAsset with the addition of +// TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateAsset for details on how to use this API operation. +// See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) UpdateAssetWithContext(ctx aws.Context, input *UpdateAssetInput, opts ...request.Option) (*UpdateAssetOutput, error) { - req, out := c.UpdateAssetRequest(input) +func (c *IoTSiteWise) 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 opUpdateAssetModel = "UpdateAssetModel" +const opUntagResource = "UntagResource" -// UpdateAssetModelRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAssetModel operation. The "output" return +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateAssetModel for more information on using the UpdateAssetModel +// 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 UpdateAssetModelRequest method. -// req, resp := client.UpdateAssetModelRequest(params) +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAssetModel -func (c *IoTSiteWise) UpdateAssetModelRequest(input *UpdateAssetModelInput) (req *request.Request, output *UpdateAssetModelOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UntagResource +func (c *IoTSiteWise) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ - Name: opUpdateAssetModel, - HTTPMethod: "PUT", - HTTPPath: "/asset-models/{assetModelId}", + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags", } if input == nil { - input = &UpdateAssetModelInput{} + input = &UntagResourceInput{} } - output = &UpdateAssetModelOutput{} + output = &UntagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UpdateAssetModel API operation for AWS IoT SiteWise. -// -// Updates an asset model and all of the assets that were created from the model. -// Each asset created from the model inherits the updated asset model's property -// and hierarchy definitions. For more information, see Updating assets and -// models (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/update-assets-and-models.html) -// in the IoT SiteWise User Guide. -// -// This operation overwrites the existing model with the provided model. To -// avoid deleting your asset model's properties or hierarchies, you must include -// their IDs and definitions in the updated asset model payload. For more information, -// see DescribeAssetModel (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAssetModel.html). +// UntagResource API operation for AWS IoT SiteWise. // -// If you remove a property from an asset model, IoT SiteWise deletes all previous -// data for that property. If you remove a hierarchy definition from an asset -// model, IoT SiteWise disassociates every asset associated with that hierarchy. -// You can't change the type or data type of an existing property. +// Removes a tag from an IoT SiteWise resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation UpdateAssetModel for usage and error information. +// API operation UntagResource for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // -// * ResourceAlreadyExistsException -// The resource already exists. -// -// * ResourceNotFoundException -// The requested resource can't be found. -// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // -// * LimitExceededException -// You've reached the limit for a resource. For example, this can occur if you're -// trying to associate more than the allowed number of child assets or attempting -// to create more than the allowed number of properties for an asset model. -// -// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) -// in the IoT SiteWise User Guide. -// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -6891,92 +7017,102 @@ func (c *IoTSiteWise) UpdateAssetModelRequest(input *UpdateAssetModelInput) (req // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // +// * ResourceNotFoundException +// The requested resource can't be found. +// // * ConflictingOperationException // Your request has conflicting operations. This can occur if you're trying // to perform more than one operation on the same resource at the same time. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAssetModel -func (c *IoTSiteWise) UpdateAssetModel(input *UpdateAssetModelInput) (*UpdateAssetModelOutput, error) { - req, out := c.UpdateAssetModelRequest(input) +// * LimitExceededException +// You've reached the limit for a resource. For example, this can occur if you're +// trying to associate more than the allowed number of child assets or attempting +// to create more than the allowed number of properties for an asset model. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * UnauthorizedException +// You are not authorized. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UntagResource +func (c *IoTSiteWise) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) return out, req.Send() } -// UpdateAssetModelWithContext is the same as UpdateAssetModel with the addition of +// UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateAssetModel for details on how to use this API operation. +// 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 *IoTSiteWise) UpdateAssetModelWithContext(ctx aws.Context, input *UpdateAssetModelInput, opts ...request.Option) (*UpdateAssetModelOutput, error) { - req, out := c.UpdateAssetModelRequest(input) +func (c *IoTSiteWise) 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 opUpdateAssetProperty = "UpdateAssetProperty" +const opUpdateAccessPolicy = "UpdateAccessPolicy" -// UpdateAssetPropertyRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAssetProperty operation. The "output" return +// UpdateAccessPolicyRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAccessPolicy operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateAssetProperty for more information on using the UpdateAssetProperty +// See UpdateAccessPolicy for more information on using the UpdateAccessPolicy // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateAssetPropertyRequest method. -// req, resp := client.UpdateAssetPropertyRequest(params) +// // Example sending a request using the UpdateAccessPolicyRequest method. +// req, resp := client.UpdateAccessPolicyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAssetProperty -func (c *IoTSiteWise) UpdateAssetPropertyRequest(input *UpdateAssetPropertyInput) (req *request.Request, output *UpdateAssetPropertyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAccessPolicy +func (c *IoTSiteWise) UpdateAccessPolicyRequest(input *UpdateAccessPolicyInput) (req *request.Request, output *UpdateAccessPolicyOutput) { op := &request.Operation{ - Name: opUpdateAssetProperty, + Name: opUpdateAccessPolicy, HTTPMethod: "PUT", - HTTPPath: "/assets/{assetId}/properties/{propertyId}", + HTTPPath: "/access-policies/{accessPolicyId}", } if input == nil { - input = &UpdateAssetPropertyInput{} + input = &UpdateAccessPolicyInput{} } - output = &UpdateAssetPropertyOutput{} + output = &UpdateAccessPolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UpdateAssetProperty API operation for AWS IoT SiteWise. -// -// Updates an asset property's alias and notification state. +// UpdateAccessPolicy API operation for AWS IoT SiteWise. // -// This operation overwrites the property's existing alias and notification -// state. To keep your existing property's alias or notification state, you -// must include the existing values in the UpdateAssetProperty request. For -// more information, see DescribeAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAssetProperty.html). +// Updates an existing access policy that specifies an identity's access to +// an IoT SiteWise Monitor portal or project resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation UpdateAssetProperty for usage and error information. +// API operation UpdateAccessPolicy for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -6997,93 +7133,93 @@ func (c *IoTSiteWise) UpdateAssetPropertyRequest(input *UpdateAssetPropertyInput // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAssetProperty -func (c *IoTSiteWise) UpdateAssetProperty(input *UpdateAssetPropertyInput) (*UpdateAssetPropertyOutput, error) { - req, out := c.UpdateAssetPropertyRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAccessPolicy +func (c *IoTSiteWise) UpdateAccessPolicy(input *UpdateAccessPolicyInput) (*UpdateAccessPolicyOutput, error) { + req, out := c.UpdateAccessPolicyRequest(input) return out, req.Send() } -// UpdateAssetPropertyWithContext is the same as UpdateAssetProperty with the addition of +// UpdateAccessPolicyWithContext is the same as UpdateAccessPolicy with the addition of // the ability to pass a context and additional request options. // -// See UpdateAssetProperty for details on how to use this API operation. +// See UpdateAccessPolicy for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) UpdateAssetPropertyWithContext(ctx aws.Context, input *UpdateAssetPropertyInput, opts ...request.Option) (*UpdateAssetPropertyOutput, error) { - req, out := c.UpdateAssetPropertyRequest(input) +func (c *IoTSiteWise) UpdateAccessPolicyWithContext(ctx aws.Context, input *UpdateAccessPolicyInput, opts ...request.Option) (*UpdateAccessPolicyOutput, error) { + req, out := c.UpdateAccessPolicyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateDashboard = "UpdateDashboard" +const opUpdateAsset = "UpdateAsset" -// UpdateDashboardRequest generates a "aws/request.Request" representing the -// client's request for the UpdateDashboard operation. The "output" return +// UpdateAssetRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAsset operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateDashboard for more information on using the UpdateDashboard +// See UpdateAsset for more information on using the UpdateAsset // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateDashboardRequest method. -// req, resp := client.UpdateDashboardRequest(params) +// // Example sending a request using the UpdateAssetRequest method. +// req, resp := client.UpdateAssetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateDashboard -func (c *IoTSiteWise) UpdateDashboardRequest(input *UpdateDashboardInput) (req *request.Request, output *UpdateDashboardOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAsset +func (c *IoTSiteWise) UpdateAssetRequest(input *UpdateAssetInput) (req *request.Request, output *UpdateAssetOutput) { op := &request.Operation{ - Name: opUpdateDashboard, + Name: opUpdateAsset, HTTPMethod: "PUT", - HTTPPath: "/dashboards/{dashboardId}", + HTTPPath: "/assets/{assetId}", } if input == nil { - input = &UpdateDashboardInput{} + input = &UpdateAssetInput{} } - output = &UpdateDashboardOutput{} + output = &UpdateAssetOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UpdateDashboard API operation for AWS IoT SiteWise. +// UpdateAsset API operation for AWS IoT SiteWise. // -// Updates an IoT SiteWise Monitor dashboard. +// Updates an asset's name. For more information, see Updating assets and models +// (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/update-assets-and-models.html) +// in the IoT SiteWise User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation UpdateDashboard for usage and error information. +// API operation UpdateAsset for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // +// * ResourceAlreadyExistsException +// The resource already exists. +// // * ResourceNotFoundException // The requested resource can't be found. // @@ -7098,99 +7234,123 @@ func (c *IoTSiteWise) UpdateDashboardRequest(input *UpdateDashboardInput) (req * // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateDashboard -func (c *IoTSiteWise) UpdateDashboard(input *UpdateDashboardInput) (*UpdateDashboardOutput, error) { - req, out := c.UpdateDashboardRequest(input) +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAsset +func (c *IoTSiteWise) UpdateAsset(input *UpdateAssetInput) (*UpdateAssetOutput, error) { + req, out := c.UpdateAssetRequest(input) return out, req.Send() } -// UpdateDashboardWithContext is the same as UpdateDashboard with the addition of +// UpdateAssetWithContext is the same as UpdateAsset with the addition of // the ability to pass a context and additional request options. // -// See UpdateDashboard for details on how to use this API operation. +// See UpdateAsset for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) UpdateDashboardWithContext(ctx aws.Context, input *UpdateDashboardInput, opts ...request.Option) (*UpdateDashboardOutput, error) { - req, out := c.UpdateDashboardRequest(input) +func (c *IoTSiteWise) UpdateAssetWithContext(ctx aws.Context, input *UpdateAssetInput, opts ...request.Option) (*UpdateAssetOutput, error) { + req, out := c.UpdateAssetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateGateway = "UpdateGateway" +const opUpdateAssetModel = "UpdateAssetModel" -// UpdateGatewayRequest generates a "aws/request.Request" representing the -// client's request for the UpdateGateway operation. The "output" return +// UpdateAssetModelRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAssetModel operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateGateway for more information on using the UpdateGateway +// See UpdateAssetModel for more information on using the UpdateAssetModel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateGatewayRequest method. -// req, resp := client.UpdateGatewayRequest(params) +// // Example sending a request using the UpdateAssetModelRequest method. +// req, resp := client.UpdateAssetModelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateGateway -func (c *IoTSiteWise) UpdateGatewayRequest(input *UpdateGatewayInput) (req *request.Request, output *UpdateGatewayOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAssetModel +func (c *IoTSiteWise) UpdateAssetModelRequest(input *UpdateAssetModelInput) (req *request.Request, output *UpdateAssetModelOutput) { op := &request.Operation{ - Name: opUpdateGateway, + Name: opUpdateAssetModel, HTTPMethod: "PUT", - HTTPPath: "/20200301/gateways/{gatewayId}", + HTTPPath: "/asset-models/{assetModelId}", } if input == nil { - input = &UpdateGatewayInput{} + input = &UpdateAssetModelInput{} } - output = &UpdateGatewayOutput{} + output = &UpdateAssetModelOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UpdateGateway API operation for AWS IoT SiteWise. +// UpdateAssetModel API operation for AWS IoT SiteWise. // -// Updates a gateway's name. +// Updates an asset model and all of the assets that were created from the model. +// Each asset created from the model inherits the updated asset model's property +// and hierarchy definitions. For more information, see Updating assets and +// models (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/update-assets-and-models.html) +// in the IoT SiteWise User Guide. +// +// This operation overwrites the existing model with the provided model. To +// avoid deleting your asset model's properties or hierarchies, you must include +// their IDs and definitions in the updated asset model payload. For more information, +// see DescribeAssetModel (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAssetModel.html). +// +// If you remove a property from an asset model, IoT SiteWise deletes all previous +// data for that property. If you remove a hierarchy definition from an asset +// model, IoT SiteWise disassociates every asset associated with that hierarchy. +// You can't change the type or data type of an existing property. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation UpdateGateway for usage and error information. +// API operation UpdateAssetModel for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // +// * ResourceAlreadyExistsException +// The resource already exists. +// // * ResourceNotFoundException // The requested resource can't be found. // -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // +// * LimitExceededException +// You've reached the limit for a resource. For example, this can occur if you're +// trying to associate more than the allowed number of child assets or attempting +// to create more than the allowed number of properties for an asset model. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// // * ThrottlingException // Your request exceeded a rate limit. For example, you might have exceeded // the number of IoT SiteWise assets that can be created per second, the allowed @@ -7199,87 +7359,92 @@ func (c *IoTSiteWise) UpdateGatewayRequest(input *UpdateGatewayInput) (req *requ // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateGateway -func (c *IoTSiteWise) UpdateGateway(input *UpdateGatewayInput) (*UpdateGatewayOutput, error) { - req, out := c.UpdateGatewayRequest(input) +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAssetModel +func (c *IoTSiteWise) UpdateAssetModel(input *UpdateAssetModelInput) (*UpdateAssetModelOutput, error) { + req, out := c.UpdateAssetModelRequest(input) return out, req.Send() } -// UpdateGatewayWithContext is the same as UpdateGateway with the addition of +// UpdateAssetModelWithContext is the same as UpdateAssetModel with the addition of // the ability to pass a context and additional request options. // -// See UpdateGateway for details on how to use this API operation. +// See UpdateAssetModel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) UpdateGatewayWithContext(ctx aws.Context, input *UpdateGatewayInput, opts ...request.Option) (*UpdateGatewayOutput, error) { - req, out := c.UpdateGatewayRequest(input) +func (c *IoTSiteWise) UpdateAssetModelWithContext(ctx aws.Context, input *UpdateAssetModelInput, opts ...request.Option) (*UpdateAssetModelOutput, error) { + req, out := c.UpdateAssetModelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateGatewayCapabilityConfiguration = "UpdateGatewayCapabilityConfiguration" +const opUpdateAssetProperty = "UpdateAssetProperty" -// UpdateGatewayCapabilityConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateGatewayCapabilityConfiguration operation. The "output" return +// UpdateAssetPropertyRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAssetProperty operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateGatewayCapabilityConfiguration for more information on using the UpdateGatewayCapabilityConfiguration +// See UpdateAssetProperty for more information on using the UpdateAssetProperty // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateGatewayCapabilityConfigurationRequest method. -// req, resp := client.UpdateGatewayCapabilityConfigurationRequest(params) +// // Example sending a request using the UpdateAssetPropertyRequest method. +// req, resp := client.UpdateAssetPropertyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateGatewayCapabilityConfiguration -func (c *IoTSiteWise) UpdateGatewayCapabilityConfigurationRequest(input *UpdateGatewayCapabilityConfigurationInput) (req *request.Request, output *UpdateGatewayCapabilityConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAssetProperty +func (c *IoTSiteWise) UpdateAssetPropertyRequest(input *UpdateAssetPropertyInput) (req *request.Request, output *UpdateAssetPropertyOutput) { op := &request.Operation{ - Name: opUpdateGatewayCapabilityConfiguration, - HTTPMethod: "POST", - HTTPPath: "/20200301/gateways/{gatewayId}/capability", + Name: opUpdateAssetProperty, + HTTPMethod: "PUT", + HTTPPath: "/assets/{assetId}/properties/{propertyId}", } if input == nil { - input = &UpdateGatewayCapabilityConfigurationInput{} + input = &UpdateAssetPropertyInput{} } - output = &UpdateGatewayCapabilityConfigurationOutput{} + output = &UpdateAssetPropertyOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UpdateGatewayCapabilityConfiguration API operation for AWS IoT SiteWise. +// UpdateAssetProperty API operation for AWS IoT SiteWise. // -// Updates a gateway capability configuration or defines a new capability configuration. -// Each gateway capability defines data sources for a gateway. A capability -// configuration can contain multiple data source configurations. If you define -// OPC-UA sources for a gateway in the IoT SiteWise console, all of your OPC-UA -// sources are stored in one capability configuration. To list all capability -// configurations for a gateway, use DescribeGateway (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGateway.html). +// Updates an asset property's alias and notification state. +// +// This operation overwrites the property's existing alias and notification +// state. To keep your existing property's alias or notification state, you +// must include the existing values in the UpdateAssetProperty request. For +// more information, see DescribeAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAssetProperty.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 IoT SiteWise's -// API operation UpdateGatewayCapabilityConfiguration for usage and error information. +// API operation UpdateAssetProperty for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -7289,10 +7454,6 @@ func (c *IoTSiteWise) UpdateGatewayCapabilityConfigurationRequest(input *UpdateG // * ResourceNotFoundException // The requested resource can't be found. // -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -7304,90 +7465,87 @@ func (c *IoTSiteWise) UpdateGatewayCapabilityConfigurationRequest(input *UpdateG // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * LimitExceededException -// You've reached the limit for a resource. For example, this can occur if you're -// trying to associate more than the allowed number of child assets or attempting -// to create more than the allowed number of properties for an asset model. -// -// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) -// in the IoT SiteWise User Guide. +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateGatewayCapabilityConfiguration -func (c *IoTSiteWise) UpdateGatewayCapabilityConfiguration(input *UpdateGatewayCapabilityConfigurationInput) (*UpdateGatewayCapabilityConfigurationOutput, error) { - req, out := c.UpdateGatewayCapabilityConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateAssetProperty +func (c *IoTSiteWise) UpdateAssetProperty(input *UpdateAssetPropertyInput) (*UpdateAssetPropertyOutput, error) { + req, out := c.UpdateAssetPropertyRequest(input) return out, req.Send() } -// UpdateGatewayCapabilityConfigurationWithContext is the same as UpdateGatewayCapabilityConfiguration with the addition of +// UpdateAssetPropertyWithContext is the same as UpdateAssetProperty with the addition of // the ability to pass a context and additional request options. // -// See UpdateGatewayCapabilityConfiguration for details on how to use this API operation. +// See UpdateAssetProperty for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) UpdateGatewayCapabilityConfigurationWithContext(ctx aws.Context, input *UpdateGatewayCapabilityConfigurationInput, opts ...request.Option) (*UpdateGatewayCapabilityConfigurationOutput, error) { - req, out := c.UpdateGatewayCapabilityConfigurationRequest(input) +func (c *IoTSiteWise) UpdateAssetPropertyWithContext(ctx aws.Context, input *UpdateAssetPropertyInput, opts ...request.Option) (*UpdateAssetPropertyOutput, error) { + req, out := c.UpdateAssetPropertyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdatePortal = "UpdatePortal" +const opUpdateDashboard = "UpdateDashboard" -// UpdatePortalRequest generates a "aws/request.Request" representing the -// client's request for the UpdatePortal operation. The "output" return +// UpdateDashboardRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDashboard operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdatePortal for more information on using the UpdatePortal +// See UpdateDashboard for more information on using the UpdateDashboard // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdatePortalRequest method. -// req, resp := client.UpdatePortalRequest(params) +// // Example sending a request using the UpdateDashboardRequest method. +// req, resp := client.UpdateDashboardRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdatePortal -func (c *IoTSiteWise) UpdatePortalRequest(input *UpdatePortalInput) (req *request.Request, output *UpdatePortalOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateDashboard +func (c *IoTSiteWise) UpdateDashboardRequest(input *UpdateDashboardInput) (req *request.Request, output *UpdateDashboardOutput) { op := &request.Operation{ - Name: opUpdatePortal, + Name: opUpdateDashboard, HTTPMethod: "PUT", - HTTPPath: "/portals/{portalId}", + HTTPPath: "/dashboards/{dashboardId}", } if input == nil { - input = &UpdatePortalInput{} + input = &UpdateDashboardInput{} } - output = &UpdatePortalOutput{} + output = &UpdateDashboardOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UpdatePortal API operation for AWS IoT SiteWise. +// UpdateDashboard API operation for AWS IoT SiteWise. // -// Updates an IoT SiteWise Monitor portal. +// Updates an IoT SiteWise Monitor dashboard. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation UpdatePortal for usage and error information. +// API operation UpdateDashboard for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -7408,87 +7566,83 @@ func (c *IoTSiteWise) UpdatePortalRequest(input *UpdatePortalInput) (req *reques // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdatePortal -func (c *IoTSiteWise) UpdatePortal(input *UpdatePortalInput) (*UpdatePortalOutput, error) { - req, out := c.UpdatePortalRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateDashboard +func (c *IoTSiteWise) UpdateDashboard(input *UpdateDashboardInput) (*UpdateDashboardOutput, error) { + req, out := c.UpdateDashboardRequest(input) return out, req.Send() } -// UpdatePortalWithContext is the same as UpdatePortal with the addition of +// UpdateDashboardWithContext is the same as UpdateDashboard with the addition of // the ability to pass a context and additional request options. // -// See UpdatePortal for details on how to use this API operation. +// See UpdateDashboard for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) UpdatePortalWithContext(ctx aws.Context, input *UpdatePortalInput, opts ...request.Option) (*UpdatePortalOutput, error) { - req, out := c.UpdatePortalRequest(input) +func (c *IoTSiteWise) UpdateDashboardWithContext(ctx aws.Context, input *UpdateDashboardInput, opts ...request.Option) (*UpdateDashboardOutput, error) { + req, out := c.UpdateDashboardRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateProject = "UpdateProject" +const opUpdateGateway = "UpdateGateway" -// UpdateProjectRequest generates a "aws/request.Request" representing the -// client's request for the UpdateProject operation. The "output" return +// UpdateGatewayRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGateway operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateProject for more information on using the UpdateProject +// See UpdateGateway for more information on using the UpdateGateway // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateProjectRequest method. -// req, resp := client.UpdateProjectRequest(params) +// // Example sending a request using the UpdateGatewayRequest method. +// req, resp := client.UpdateGatewayRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateProject -func (c *IoTSiteWise) UpdateProjectRequest(input *UpdateProjectInput) (req *request.Request, output *UpdateProjectOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateGateway +func (c *IoTSiteWise) UpdateGatewayRequest(input *UpdateGatewayInput) (req *request.Request, output *UpdateGatewayOutput) { op := &request.Operation{ - Name: opUpdateProject, + Name: opUpdateGateway, HTTPMethod: "PUT", - HTTPPath: "/projects/{projectId}", + HTTPPath: "/20200301/gateways/{gatewayId}", } if input == nil { - input = &UpdateProjectInput{} + input = &UpdateGatewayInput{} } - output = &UpdateProjectOutput{} + output = &UpdateGatewayOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UpdateProject API operation for AWS IoT SiteWise. +// UpdateGateway API operation for AWS IoT SiteWise. // -// Updates an IoT SiteWise Monitor project. +// Updates a gateway's name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation UpdateProject for usage and error information. +// API operation UpdateGateway for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -7498,6 +7652,10 @@ func (c *IoTSiteWise) UpdateProjectRequest(input *UpdateProjectInput) (req *requ // * ResourceNotFoundException // The requested resource can't be found. // +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -7509,60 +7667,1616 @@ func (c *IoTSiteWise) UpdateProjectRequest(input *UpdateProjectInput) (req *requ // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateProject -func (c *IoTSiteWise) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error) { - req, out := c.UpdateProjectRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateGateway +func (c *IoTSiteWise) UpdateGateway(input *UpdateGatewayInput) (*UpdateGatewayOutput, error) { + req, out := c.UpdateGatewayRequest(input) return out, req.Send() } -// UpdateProjectWithContext is the same as UpdateProject with the addition of +// UpdateGatewayWithContext is the same as UpdateGateway with the addition of // the ability to pass a context and additional request options. // -// See UpdateProject for details on how to use this API operation. +// See UpdateGateway for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTSiteWise) UpdateProjectWithContext(ctx aws.Context, input *UpdateProjectInput, opts ...request.Option) (*UpdateProjectOutput, error) { - req, out := c.UpdateProjectRequest(input) +func (c *IoTSiteWise) UpdateGatewayWithContext(ctx aws.Context, input *UpdateGatewayInput, opts ...request.Option) (*UpdateGatewayOutput, error) { + req, out := c.UpdateGatewayRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// Contains an access policy that defines an identity's access to an IoT SiteWise -// Monitor resource. -type AccessPolicySummary struct { - _ struct{} `type:"structure"` - - // The date the access policy was created, in Unix epoch time. - CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` +const opUpdateGatewayCapabilityConfiguration = "UpdateGatewayCapabilityConfiguration" - // The ID of the access policy. - // - // Id is a required field - Id *string `locationName:"id" min:"36" type:"string" required:"true"` +// UpdateGatewayCapabilityConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGatewayCapabilityConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateGatewayCapabilityConfiguration for more information on using the UpdateGatewayCapabilityConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateGatewayCapabilityConfigurationRequest method. +// req, resp := client.UpdateGatewayCapabilityConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateGatewayCapabilityConfiguration +func (c *IoTSiteWise) UpdateGatewayCapabilityConfigurationRequest(input *UpdateGatewayCapabilityConfigurationInput) (req *request.Request, output *UpdateGatewayCapabilityConfigurationOutput) { + op := &request.Operation{ + Name: opUpdateGatewayCapabilityConfiguration, + HTTPMethod: "POST", + HTTPPath: "/20200301/gateways/{gatewayId}/capability", + } - // The identity (an Amazon Web Services SSO user, an Amazon Web Services SSO - // group, or an IAM user). - // - // Identity is a required field - Identity *Identity `locationName:"identity" type:"structure" required:"true"` + if input == nil { + input = &UpdateGatewayCapabilityConfigurationInput{} + } - // The date the access policy was last updated, in Unix epoch time. - LastUpdateDate *time.Time `locationName:"lastUpdateDate" type:"timestamp"` + output = &UpdateGatewayCapabilityConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// UpdateGatewayCapabilityConfiguration API operation for AWS IoT SiteWise. +// +// Updates a gateway capability configuration or defines a new capability configuration. +// Each gateway capability defines data sources for a gateway. A capability +// configuration can contain multiple data source configurations. If you define +// OPC-UA sources for a gateway in the IoT SiteWise console, all of your OPC-UA +// sources are stored in one capability configuration. To list all capability +// configurations for a gateway, use DescribeGateway (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGateway.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 IoT SiteWise's +// API operation UpdateGatewayCapabilityConfiguration for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request isn't valid. This can occur if your request contains malformed +// JSON or unsupported characters. Check your request and try again. +// +// * ResourceNotFoundException +// The requested resource can't be found. +// +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. +// +// * ThrottlingException +// Your request exceeded a rate limit. For example, you might have exceeded +// the number of IoT SiteWise assets that can be created per second, the allowed +// number of messages per second, and so on. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * LimitExceededException +// You've reached the limit for a resource. For example, this can occur if you're +// trying to associate more than the allowed number of child assets or attempting +// to create more than the allowed number of properties for an asset model. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateGatewayCapabilityConfiguration +func (c *IoTSiteWise) UpdateGatewayCapabilityConfiguration(input *UpdateGatewayCapabilityConfigurationInput) (*UpdateGatewayCapabilityConfigurationOutput, error) { + req, out := c.UpdateGatewayCapabilityConfigurationRequest(input) + return out, req.Send() +} + +// UpdateGatewayCapabilityConfigurationWithContext is the same as UpdateGatewayCapabilityConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateGatewayCapabilityConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTSiteWise) UpdateGatewayCapabilityConfigurationWithContext(ctx aws.Context, input *UpdateGatewayCapabilityConfigurationInput, opts ...request.Option) (*UpdateGatewayCapabilityConfigurationOutput, error) { + req, out := c.UpdateGatewayCapabilityConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdatePortal = "UpdatePortal" + +// UpdatePortalRequest generates a "aws/request.Request" representing the +// client's request for the UpdatePortal operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdatePortal for more information on using the UpdatePortal +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdatePortalRequest method. +// req, resp := client.UpdatePortalRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdatePortal +func (c *IoTSiteWise) UpdatePortalRequest(input *UpdatePortalInput) (req *request.Request, output *UpdatePortalOutput) { + op := &request.Operation{ + Name: opUpdatePortal, + HTTPMethod: "PUT", + HTTPPath: "/portals/{portalId}", + } + + if input == nil { + input = &UpdatePortalInput{} + } + + output = &UpdatePortalOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// UpdatePortal API operation for AWS IoT SiteWise. +// +// Updates an IoT SiteWise Monitor portal. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT SiteWise's +// API operation UpdatePortal for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request isn't valid. This can occur if your request contains malformed +// JSON or unsupported characters. Check your request and try again. +// +// * ResourceNotFoundException +// The requested resource can't be found. +// +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. +// +// * ThrottlingException +// Your request exceeded a rate limit. For example, you might have exceeded +// the number of IoT SiteWise assets that can be created per second, the allowed +// number of messages per second, and so on. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdatePortal +func (c *IoTSiteWise) UpdatePortal(input *UpdatePortalInput) (*UpdatePortalOutput, error) { + req, out := c.UpdatePortalRequest(input) + return out, req.Send() +} + +// UpdatePortalWithContext is the same as UpdatePortal with the addition of +// the ability to pass a context and additional request options. +// +// See UpdatePortal for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTSiteWise) UpdatePortalWithContext(ctx aws.Context, input *UpdatePortalInput, opts ...request.Option) (*UpdatePortalOutput, error) { + req, out := c.UpdatePortalRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateProject = "UpdateProject" + +// UpdateProjectRequest generates a "aws/request.Request" representing the +// client's request for the UpdateProject operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateProject for more information on using the UpdateProject +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateProjectRequest method. +// req, resp := client.UpdateProjectRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateProject +func (c *IoTSiteWise) UpdateProjectRequest(input *UpdateProjectInput) (req *request.Request, output *UpdateProjectOutput) { + op := &request.Operation{ + Name: opUpdateProject, + HTTPMethod: "PUT", + HTTPPath: "/projects/{projectId}", + } + + if input == nil { + input = &UpdateProjectInput{} + } + + output = &UpdateProjectOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("monitor.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// UpdateProject API operation for AWS IoT SiteWise. +// +// Updates an IoT SiteWise Monitor project. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT SiteWise's +// API operation UpdateProject for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request isn't valid. This can occur if your request contains malformed +// JSON or unsupported characters. Check your request and try again. +// +// * ResourceNotFoundException +// The requested resource can't be found. +// +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. +// +// * ThrottlingException +// Your request exceeded a rate limit. For example, you might have exceeded +// the number of IoT SiteWise assets that can be created per second, the allowed +// number of messages per second, and so on. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/UpdateProject +func (c *IoTSiteWise) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error) { + req, out := c.UpdateProjectRequest(input) + return out, req.Send() +} + +// UpdateProjectWithContext is the same as UpdateProject with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateProject for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTSiteWise) UpdateProjectWithContext(ctx aws.Context, input *UpdateProjectInput, opts ...request.Option) (*UpdateProjectOutput, error) { + req, out := c.UpdateProjectRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Contains an access policy that defines an identity's access to an IoT SiteWise +// Monitor resource. +type AccessPolicySummary struct { + _ struct{} `type:"structure"` + + // The date the access policy was created, in Unix epoch time. + CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` + + // The ID of the access policy. + // + // Id is a required field + Id *string `locationName:"id" min:"36" type:"string" required:"true"` + + // The identity (an Amazon Web Services SSO user, an Amazon Web Services SSO + // group, or an IAM user). + // + // Identity is a required field + Identity *Identity `locationName:"identity" type:"structure" required:"true"` + + // The date the access policy was last updated, in Unix epoch time. + LastUpdateDate *time.Time `locationName:"lastUpdateDate" type:"timestamp"` // The permissions for the access policy. Note that a project ADMINISTRATOR // is also known as a project owner. // - // Permission is a required field - Permission *string `locationName:"permission" type:"string" required:"true" enum:"Permission"` + // Permission is a required field + Permission *string `locationName:"permission" type:"string" required:"true" enum:"Permission"` + + // The IoT SiteWise Monitor resource (a portal or project). + // + // Resource is a required field + Resource *Resource `locationName:"resource" type:"structure" 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 AccessPolicySummary) 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 AccessPolicySummary) GoString() string { + return s.String() +} + +// SetCreationDate sets the CreationDate field's value. +func (s *AccessPolicySummary) SetCreationDate(v time.Time) *AccessPolicySummary { + s.CreationDate = &v + return s +} + +// SetId sets the Id field's value. +func (s *AccessPolicySummary) SetId(v string) *AccessPolicySummary { + s.Id = &v + return s +} + +// SetIdentity sets the Identity field's value. +func (s *AccessPolicySummary) SetIdentity(v *Identity) *AccessPolicySummary { + s.Identity = v + return s +} + +// SetLastUpdateDate sets the LastUpdateDate field's value. +func (s *AccessPolicySummary) SetLastUpdateDate(v time.Time) *AccessPolicySummary { + s.LastUpdateDate = &v + return s +} + +// SetPermission sets the Permission field's value. +func (s *AccessPolicySummary) SetPermission(v string) *AccessPolicySummary { + s.Permission = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *AccessPolicySummary) SetResource(v *Resource) *AccessPolicySummary { + s.Resource = v + return s +} + +// Contains aggregated asset property values (for example, average, minimum, +// and maximum). +type AggregatedValue struct { + _ struct{} `type:"structure"` + + // The quality of the aggregated data. + Quality *string `locationName:"quality" type:"string" enum:"Quality"` + + // The date the aggregating computations occurred, in Unix epoch time. + // + // Timestamp is a required field + Timestamp *time.Time `locationName:"timestamp" type:"timestamp" required:"true"` + + // The value of the aggregates. + // + // Value is a required field + Value *Aggregates `locationName:"value" type:"structure" 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 AggregatedValue) 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 AggregatedValue) GoString() string { + return s.String() +} + +// SetQuality sets the Quality field's value. +func (s *AggregatedValue) SetQuality(v string) *AggregatedValue { + s.Quality = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *AggregatedValue) SetTimestamp(v time.Time) *AggregatedValue { + s.Timestamp = &v + return s +} + +// SetValue sets the Value field's value. +func (s *AggregatedValue) SetValue(v *Aggregates) *AggregatedValue { + s.Value = v + return s +} + +// Contains the (pre-calculated) aggregate values for an asset property. +type Aggregates struct { + _ struct{} `type:"structure"` + + // The average (mean) value of the time series over a time interval window. + Average *float64 `locationName:"average" type:"double"` + + // The count of data points in the time series over a time interval window. + Count *float64 `locationName:"count" type:"double"` + + // The maximum value of the time series over a time interval window. + Maximum *float64 `locationName:"maximum" type:"double"` + + // The minimum value of the time series over a time interval window. + Minimum *float64 `locationName:"minimum" type:"double"` + + // The standard deviation of the time series over a time interval window. + StandardDeviation *float64 `locationName:"standardDeviation" type:"double"` + + // The sum of the time series over a time interval window. + Sum *float64 `locationName:"sum" type:"double"` +} + +// 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 Aggregates) 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 Aggregates) GoString() string { + return s.String() +} + +// SetAverage sets the Average field's value. +func (s *Aggregates) SetAverage(v float64) *Aggregates { + s.Average = &v + return s +} + +// SetCount sets the Count field's value. +func (s *Aggregates) SetCount(v float64) *Aggregates { + s.Count = &v + return s +} + +// SetMaximum sets the Maximum field's value. +func (s *Aggregates) SetMaximum(v float64) *Aggregates { + s.Maximum = &v + return s +} + +// SetMinimum sets the Minimum field's value. +func (s *Aggregates) SetMinimum(v float64) *Aggregates { + s.Minimum = &v + return s +} + +// SetStandardDeviation sets the StandardDeviation field's value. +func (s *Aggregates) SetStandardDeviation(v float64) *Aggregates { + s.StandardDeviation = &v + return s +} + +// SetSum sets the Sum field's value. +func (s *Aggregates) SetSum(v float64) *Aggregates { + s.Sum = &v + return s +} + +// Contains the configuration information of an alarm created in an IoT SiteWise +// Monitor portal. You can use the alarm to monitor an asset property and get +// notified when the asset property value is outside a specified range. For +// more information, see Monitoring with alarms (https://docs.aws.amazon.com/iot-sitewise/latest/appguide/monitor-alarms.html) +// in the IoT SiteWise Application Guide. +type Alarms struct { + _ struct{} `type:"structure"` + + // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // of the IAM role that allows the alarm to perform actions and access Amazon + // Web Services resources and services, such as IoT Events. + // + // AlarmRoleArn is a required field + AlarmRoleArn *string `locationName:"alarmRoleArn" min:"1" type:"string" required:"true"` + + // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // of the Lambda function that manages alarm notifications. For more information, + // see Managing alarm notifications (https://docs.aws.amazon.com/iotevents/latest/developerguide/lambda-support.html) + // in the IoT Events Developer Guide. + NotificationLambdaArn *string `locationName:"notificationLambdaArn" 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 Alarms) 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 Alarms) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Alarms) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Alarms"} + if s.AlarmRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("AlarmRoleArn")) + } + if s.AlarmRoleArn != nil && len(*s.AlarmRoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AlarmRoleArn", 1)) + } + if s.NotificationLambdaArn != nil && len(*s.NotificationLambdaArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NotificationLambdaArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlarmRoleArn sets the AlarmRoleArn field's value. +func (s *Alarms) SetAlarmRoleArn(v string) *Alarms { + s.AlarmRoleArn = &v + return s +} + +// SetNotificationLambdaArn sets the NotificationLambdaArn field's value. +func (s *Alarms) SetNotificationLambdaArn(v string) *Alarms { + s.NotificationLambdaArn = &v + return s +} + +// Contains information about a composite model in an asset. This object contains +// the asset's properties that you define in the composite model. +type AssetCompositeModel struct { + _ struct{} `type:"structure"` + + // The description of the composite model. + Description *string `locationName:"description" min:"1" type:"string"` + + // The name of the composite model. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The asset properties that this composite model defines. + // + // Properties is a required field + Properties []*AssetProperty `locationName:"properties" type:"list" required:"true"` + + // The type of the composite model. For alarm composite models, this type is + // AWS/ALARM. + // + // Type is a required field + Type *string `locationName:"type" min:"1" 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 AssetCompositeModel) 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 AssetCompositeModel) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *AssetCompositeModel) SetDescription(v string) *AssetCompositeModel { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssetCompositeModel) SetName(v string) *AssetCompositeModel { + s.Name = &v + return s +} + +// SetProperties sets the Properties field's value. +func (s *AssetCompositeModel) SetProperties(v []*AssetProperty) *AssetCompositeModel { + s.Properties = v + return s +} + +// SetType sets the Type field's value. +func (s *AssetCompositeModel) SetType(v string) *AssetCompositeModel { + s.Type = &v + return s +} + +// Contains error details for the requested associate project asset action. +type AssetErrorDetails struct { + _ struct{} `type:"structure"` + + // The ID of the asset. + // + // AssetId is a required field + AssetId *string `locationName:"assetId" min:"36" type:"string" required:"true"` + + // The error code. + // + // Code is a required field + Code *string `locationName:"code" type:"string" required:"true" enum:"AssetErrorCode"` + + // The error message. + // + // Message is a required field + Message *string `locationName:"message" 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 AssetErrorDetails) 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 AssetErrorDetails) GoString() string { + return s.String() +} + +// SetAssetId sets the AssetId field's value. +func (s *AssetErrorDetails) SetAssetId(v string) *AssetErrorDetails { + s.AssetId = &v + return s +} + +// SetCode sets the Code field's value. +func (s *AssetErrorDetails) SetCode(v string) *AssetErrorDetails { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *AssetErrorDetails) SetMessage(v string) *AssetErrorDetails { + s.Message = &v + return s +} + +// Describes an asset hierarchy that contains a hierarchy's name and ID. +type AssetHierarchy struct { + _ struct{} `type:"structure"` + + // The ID of the hierarchy. This ID is a hierarchyId. + Id *string `locationName:"id" min:"36" type:"string"` + + // The hierarchy name provided in the CreateAssetModel (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAssetModel.html) + // or UpdateAssetModel (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetModel.html) + // API operation. + // + // Name is a required field + Name *string `locationName:"name" min:"1" 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 AssetHierarchy) 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 AssetHierarchy) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *AssetHierarchy) SetId(v string) *AssetHierarchy { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssetHierarchy) SetName(v string) *AssetHierarchy { + s.Name = &v + return s +} + +// Contains information about a parent asset and a child asset that are related +// through an asset hierarchy. +type AssetHierarchyInfo struct { + _ struct{} `type:"structure"` + + // The ID of the child asset in this asset relationship. + ChildAssetId *string `locationName:"childAssetId" min:"36" type:"string"` + + // The ID of the parent asset in this asset relationship. + ParentAssetId *string `locationName:"parentAssetId" min:"36" 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 AssetHierarchyInfo) 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 AssetHierarchyInfo) GoString() string { + return s.String() +} + +// SetChildAssetId sets the ChildAssetId field's value. +func (s *AssetHierarchyInfo) SetChildAssetId(v string) *AssetHierarchyInfo { + s.ChildAssetId = &v + return s +} + +// SetParentAssetId sets the ParentAssetId field's value. +func (s *AssetHierarchyInfo) SetParentAssetId(v string) *AssetHierarchyInfo { + s.ParentAssetId = &v + return s +} + +// Contains information about a composite model in an asset model. This object +// contains the asset property definitions that you define in the composite +// model. +type AssetModelCompositeModel struct { + _ struct{} `type:"structure"` + + // The description of the composite model. + Description *string `locationName:"description" min:"1" type:"string"` + + // The name of the composite model. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The asset property definitions for this composite model. + Properties []*AssetModelProperty `locationName:"properties" type:"list"` + + // The type of the composite model. For alarm composite models, this type is + // AWS/ALARM. + // + // Type is a required field + Type *string `locationName:"type" min:"1" 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 AssetModelCompositeModel) 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 AssetModelCompositeModel) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssetModelCompositeModel) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssetModelCompositeModel"} + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Type != nil && len(*s.Type) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Type", 1)) + } + if s.Properties != nil { + for i, v := range s.Properties { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Properties", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *AssetModelCompositeModel) SetDescription(v string) *AssetModelCompositeModel { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssetModelCompositeModel) SetName(v string) *AssetModelCompositeModel { + s.Name = &v + return s +} + +// SetProperties sets the Properties field's value. +func (s *AssetModelCompositeModel) SetProperties(v []*AssetModelProperty) *AssetModelCompositeModel { + s.Properties = v + return s +} + +// SetType sets the Type field's value. +func (s *AssetModelCompositeModel) SetType(v string) *AssetModelCompositeModel { + s.Type = &v + return s +} + +// Contains a composite model definition in an asset model. This composite model +// definition is applied to all assets created from the asset model. +type AssetModelCompositeModelDefinition struct { + _ struct{} `type:"structure"` + + // The description of the composite model. + Description *string `locationName:"description" min:"1" type:"string"` + + // The name of the composite model. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The asset property definitions for this composite model. + Properties []*AssetModelPropertyDefinition `locationName:"properties" type:"list"` + + // The type of the composite model. For alarm composite models, this type is + // AWS/ALARM. + // + // Type is a required field + Type *string `locationName:"type" min:"1" 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 AssetModelCompositeModelDefinition) 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 AssetModelCompositeModelDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssetModelCompositeModelDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssetModelCompositeModelDefinition"} + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Type != nil && len(*s.Type) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Type", 1)) + } + if s.Properties != nil { + for i, v := range s.Properties { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Properties", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *AssetModelCompositeModelDefinition) SetDescription(v string) *AssetModelCompositeModelDefinition { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssetModelCompositeModelDefinition) SetName(v string) *AssetModelCompositeModelDefinition { + s.Name = &v + return s +} + +// SetProperties sets the Properties field's value. +func (s *AssetModelCompositeModelDefinition) SetProperties(v []*AssetModelPropertyDefinition) *AssetModelCompositeModelDefinition { + s.Properties = v + return s +} + +// SetType sets the Type field's value. +func (s *AssetModelCompositeModelDefinition) SetType(v string) *AssetModelCompositeModelDefinition { + s.Type = &v + return s +} + +// Describes an asset hierarchy that contains a hierarchy's name, ID, and child +// asset model ID that specifies the type of asset that can be in this hierarchy. +type AssetModelHierarchy struct { + _ struct{} `type:"structure"` + + // The ID of the asset model. All assets in this hierarchy must be instances + // of the childAssetModelId asset model. + // + // ChildAssetModelId is a required field + ChildAssetModelId *string `locationName:"childAssetModelId" min:"36" type:"string" required:"true"` + + // The ID of the asset model hierarchy. This ID is a hierarchyId. + Id *string `locationName:"id" min:"36" type:"string"` + + // The name of the asset model hierarchy that you specify by using the CreateAssetModel + // (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAssetModel.html) + // or UpdateAssetModel (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetModel.html) + // API operation. + // + // Name is a required field + Name *string `locationName:"name" min:"1" 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 AssetModelHierarchy) 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 AssetModelHierarchy) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssetModelHierarchy) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssetModelHierarchy"} + if s.ChildAssetModelId == nil { + invalidParams.Add(request.NewErrParamRequired("ChildAssetModelId")) + } + if s.ChildAssetModelId != nil && len(*s.ChildAssetModelId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ChildAssetModelId", 36)) + } + if s.Id != nil && len(*s.Id) < 36 { + invalidParams.Add(request.NewErrParamMinLen("Id", 36)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChildAssetModelId sets the ChildAssetModelId field's value. +func (s *AssetModelHierarchy) SetChildAssetModelId(v string) *AssetModelHierarchy { + s.ChildAssetModelId = &v + return s +} + +// SetId sets the Id field's value. +func (s *AssetModelHierarchy) SetId(v string) *AssetModelHierarchy { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssetModelHierarchy) SetName(v string) *AssetModelHierarchy { + s.Name = &v + return s +} + +// Contains an asset model hierarchy used in asset model creation. An asset +// model hierarchy determines the kind (or type) of asset that can belong to +// a hierarchy. +type AssetModelHierarchyDefinition struct { + _ struct{} `type:"structure"` + + // The ID of an asset model for this hierarchy. + // + // ChildAssetModelId is a required field + ChildAssetModelId *string `locationName:"childAssetModelId" min:"36" type:"string" required:"true"` + + // The name of the asset model hierarchy definition (as specified in the CreateAssetModel + // (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAssetModel.html) + // or UpdateAssetModel (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetModel.html) + // API operation). + // + // Name is a required field + Name *string `locationName:"name" min:"1" 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 AssetModelHierarchyDefinition) 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 AssetModelHierarchyDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssetModelHierarchyDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssetModelHierarchyDefinition"} + if s.ChildAssetModelId == nil { + invalidParams.Add(request.NewErrParamRequired("ChildAssetModelId")) + } + if s.ChildAssetModelId != nil && len(*s.ChildAssetModelId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ChildAssetModelId", 36)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChildAssetModelId sets the ChildAssetModelId field's value. +func (s *AssetModelHierarchyDefinition) SetChildAssetModelId(v string) *AssetModelHierarchyDefinition { + s.ChildAssetModelId = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssetModelHierarchyDefinition) SetName(v string) *AssetModelHierarchyDefinition { + s.Name = &v + return s +} + +// Contains information about an asset model property. +type AssetModelProperty struct { + _ struct{} `type:"structure"` + + // The data type of the asset model property. + // + // DataType is a required field + DataType *string `locationName:"dataType" type:"string" required:"true" enum:"PropertyDataType"` + + // The data type of the structure for this property. This parameter exists on + // properties that have the STRUCT data type. + DataTypeSpec *string `locationName:"dataTypeSpec" min:"1" type:"string"` + + // The ID of the asset model property. + Id *string `locationName:"id" min:"36" type:"string"` + + // The name of the asset model property. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The property type (see PropertyType). + // + // Type is a required field + Type *PropertyType `locationName:"type" type:"structure" required:"true"` + + // The unit of the asset model property, such as Newtons or RPM. + Unit *string `locationName:"unit" 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 AssetModelProperty) 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 AssetModelProperty) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssetModelProperty) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssetModelProperty"} + if s.DataType == nil { + invalidParams.Add(request.NewErrParamRequired("DataType")) + } + if s.DataTypeSpec != nil && len(*s.DataTypeSpec) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DataTypeSpec", 1)) + } + if s.Id != nil && len(*s.Id) < 36 { + invalidParams.Add(request.NewErrParamMinLen("Id", 36)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Unit != nil && len(*s.Unit) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Unit", 1)) + } + if s.Type != nil { + if err := s.Type.Validate(); err != nil { + invalidParams.AddNested("Type", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataType sets the DataType field's value. +func (s *AssetModelProperty) SetDataType(v string) *AssetModelProperty { + s.DataType = &v + return s +} + +// SetDataTypeSpec sets the DataTypeSpec field's value. +func (s *AssetModelProperty) SetDataTypeSpec(v string) *AssetModelProperty { + s.DataTypeSpec = &v + return s +} + +// SetId sets the Id field's value. +func (s *AssetModelProperty) SetId(v string) *AssetModelProperty { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssetModelProperty) SetName(v string) *AssetModelProperty { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *AssetModelProperty) SetType(v *PropertyType) *AssetModelProperty { + s.Type = v + return s +} + +// SetUnit sets the Unit field's value. +func (s *AssetModelProperty) SetUnit(v string) *AssetModelProperty { + s.Unit = &v + return s +} + +// Contains an asset model property definition. This property definition is +// applied to all assets created from the asset model. +type AssetModelPropertyDefinition struct { + _ struct{} `type:"structure"` + + // The data type of the property definition. + // + // If you specify STRUCT, you must also specify dataTypeSpec to identify the + // type of the structure for this property. + // + // DataType is a required field + DataType *string `locationName:"dataType" type:"string" required:"true" enum:"PropertyDataType"` + + // The data type of the structure for this property. This parameter is required + // on properties that have the STRUCT data type. + // + // The options for this parameter depend on the type of the composite model + // in which you define this property. Use AWS/ALARM_STATE for alarm state in + // alarm composite models. + DataTypeSpec *string `locationName:"dataTypeSpec" min:"1" type:"string"` + + // The name of the property definition. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The property definition type (see PropertyType). You can only specify one + // type in a property definition. + // + // Type is a required field + Type *PropertyType `locationName:"type" type:"structure" required:"true"` + + // The unit of the property definition, such as Newtons or RPM. + Unit *string `locationName:"unit" 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 AssetModelPropertyDefinition) 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 AssetModelPropertyDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssetModelPropertyDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssetModelPropertyDefinition"} + if s.DataType == nil { + invalidParams.Add(request.NewErrParamRequired("DataType")) + } + if s.DataTypeSpec != nil && len(*s.DataTypeSpec) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DataTypeSpec", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Unit != nil && len(*s.Unit) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Unit", 1)) + } + if s.Type != nil { + if err := s.Type.Validate(); err != nil { + invalidParams.AddNested("Type", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataType sets the DataType field's value. +func (s *AssetModelPropertyDefinition) SetDataType(v string) *AssetModelPropertyDefinition { + s.DataType = &v + return s +} + +// SetDataTypeSpec sets the DataTypeSpec field's value. +func (s *AssetModelPropertyDefinition) SetDataTypeSpec(v string) *AssetModelPropertyDefinition { + s.DataTypeSpec = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssetModelPropertyDefinition) SetName(v string) *AssetModelPropertyDefinition { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *AssetModelPropertyDefinition) SetType(v *PropertyType) *AssetModelPropertyDefinition { + s.Type = v + return s +} + +// SetUnit sets the Unit field's value. +func (s *AssetModelPropertyDefinition) SetUnit(v string) *AssetModelPropertyDefinition { + s.Unit = &v + return s +} + +// Contains current status information for an asset model. For more information, +// see Asset and model states (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-and-model-states.html) +// in the IoT SiteWise User Guide. +type AssetModelStatus struct { + _ struct{} `type:"structure"` + + // Contains associated error information, if any. + Error *ErrorDetails `locationName:"error" type:"structure"` + + // The current state of the asset model. + // + // State is a required field + State *string `locationName:"state" type:"string" required:"true" enum:"AssetModelState"` +} + +// 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 AssetModelStatus) 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 AssetModelStatus) GoString() string { + return s.String() +} + +// SetError sets the Error field's value. +func (s *AssetModelStatus) SetError(v *ErrorDetails) *AssetModelStatus { + s.Error = v + return s +} + +// SetState sets the State field's value. +func (s *AssetModelStatus) SetState(v string) *AssetModelStatus { + s.State = &v + return s +} + +// Contains a summary of an asset model. +type AssetModelSummary struct { + _ struct{} `type:"structure"` + + // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // of the asset model, which has the following format. + // + // arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId} + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // The date the asset model was created, in Unix epoch time. + // + // CreationDate is a required field + CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` + + // The asset model description. + // + // Description is a required field + Description *string `locationName:"description" min:"1" type:"string" required:"true"` + + // The ID of the asset model (used with IoT SiteWise APIs). + // + // Id is a required field + Id *string `locationName:"id" min:"36" type:"string" required:"true"` + + // The date the asset model was last updated, in Unix epoch time. + // + // LastUpdateDate is a required field + LastUpdateDate *time.Time `locationName:"lastUpdateDate" type:"timestamp" required:"true"` + + // The name of the asset model. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The current status of the asset model. + // + // Status is a required field + Status *AssetModelStatus `locationName:"status" type:"structure" 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 AssetModelSummary) 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 AssetModelSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *AssetModelSummary) SetArn(v string) *AssetModelSummary { + s.Arn = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *AssetModelSummary) SetCreationDate(v time.Time) *AssetModelSummary { + s.CreationDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *AssetModelSummary) SetDescription(v string) *AssetModelSummary { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *AssetModelSummary) SetId(v string) *AssetModelSummary { + s.Id = &v + return s +} + +// SetLastUpdateDate sets the LastUpdateDate field's value. +func (s *AssetModelSummary) SetLastUpdateDate(v time.Time) *AssetModelSummary { + s.LastUpdateDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *AssetModelSummary) SetName(v string) *AssetModelSummary { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AssetModelSummary) SetStatus(v *AssetModelStatus) *AssetModelSummary { + s.Status = v + return s +} + +// Contains asset property information. +type AssetProperty struct { + _ struct{} `type:"structure"` + + // The alias that identifies the property, such as an OPC-UA server data stream + // path (for example, /company/windfarm/3/turbine/7/temperature). For more information, + // see Mapping industrial data streams to asset properties (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html) + // in the IoT SiteWise User Guide. + Alias *string `locationName:"alias" min:"1" type:"string"` + + // The data type of the asset property. + // + // DataType is a required field + DataType *string `locationName:"dataType" type:"string" required:"true" enum:"PropertyDataType"` - // The IoT SiteWise Monitor resource (a portal or project). + // The data type of the structure for this property. This parameter exists on + // properties that have the STRUCT data type. + DataTypeSpec *string `locationName:"dataTypeSpec" min:"1" type:"string"` + + // The ID of the asset property. // - // Resource is a required field - Resource *Resource `locationName:"resource" type:"structure" required:"true"` + // Id is a required field + Id *string `locationName:"id" min:"36" type:"string" required:"true"` + + // The name of the property. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The asset property's notification topic and state. For more information, + // see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). + Notification *PropertyNotification `locationName:"notification" type:"structure"` + + // The unit (such as Newtons or RPM) of the asset property. + Unit *string `locationName:"unit" min:"1" type:"string"` } // String returns the string representation. @@ -7570,7 +9284,7 @@ type AccessPolicySummary 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 AccessPolicySummary) String() string { +func (s AssetProperty) String() string { return awsutil.Prettify(s) } @@ -7579,63 +9293,68 @@ func (s AccessPolicySummary) 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 AccessPolicySummary) GoString() string { +func (s AssetProperty) GoString() string { return s.String() } -// SetCreationDate sets the CreationDate field's value. -func (s *AccessPolicySummary) SetCreationDate(v time.Time) *AccessPolicySummary { - s.CreationDate = &v +// SetAlias sets the Alias field's value. +func (s *AssetProperty) SetAlias(v string) *AssetProperty { + s.Alias = &v return s } -// SetId sets the Id field's value. -func (s *AccessPolicySummary) SetId(v string) *AccessPolicySummary { - s.Id = &v +// SetDataType sets the DataType field's value. +func (s *AssetProperty) SetDataType(v string) *AssetProperty { + s.DataType = &v return s } -// SetIdentity sets the Identity field's value. -func (s *AccessPolicySummary) SetIdentity(v *Identity) *AccessPolicySummary { - s.Identity = v +// SetDataTypeSpec sets the DataTypeSpec field's value. +func (s *AssetProperty) SetDataTypeSpec(v string) *AssetProperty { + s.DataTypeSpec = &v return s } -// SetLastUpdateDate sets the LastUpdateDate field's value. -func (s *AccessPolicySummary) SetLastUpdateDate(v time.Time) *AccessPolicySummary { - s.LastUpdateDate = &v +// SetId sets the Id field's value. +func (s *AssetProperty) SetId(v string) *AssetProperty { + s.Id = &v return s } -// SetPermission sets the Permission field's value. -func (s *AccessPolicySummary) SetPermission(v string) *AccessPolicySummary { - s.Permission = &v +// SetName sets the Name field's value. +func (s *AssetProperty) SetName(v string) *AssetProperty { + s.Name = &v return s } -// SetResource sets the Resource field's value. -func (s *AccessPolicySummary) SetResource(v *Resource) *AccessPolicySummary { - s.Resource = v +// SetNotification sets the Notification field's value. +func (s *AssetProperty) SetNotification(v *PropertyNotification) *AssetProperty { + s.Notification = v return s } -// Contains aggregated asset property values (for example, average, minimum, -// and maximum). -type AggregatedValue struct { +// SetUnit sets the Unit field's value. +func (s *AssetProperty) SetUnit(v string) *AssetProperty { + s.Unit = &v + return s +} + +// Contains asset property value information. +type AssetPropertyValue struct { _ struct{} `type:"structure"` - // The quality of the aggregated data. + // The quality of the asset property value. Quality *string `locationName:"quality" type:"string" enum:"Quality"` - // The date the aggregating computations occurred, in Unix epoch time. + // The timestamp of the asset property value. // // Timestamp is a required field - Timestamp *time.Time `locationName:"timestamp" type:"timestamp" required:"true"` + Timestamp *TimeInNanos `locationName:"timestamp" type:"structure" required:"true"` - // The value of the aggregates. + // The value of the asset property (see Variant). // // Value is a required field - Value *Aggregates `locationName:"value" type:"structure" required:"true"` + Value *Variant `locationName:"value" type:"structure" required:"true"` } // String returns the string representation. @@ -7643,7 +9362,7 @@ type AggregatedValue 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 AggregatedValue) String() string { +func (s AssetPropertyValue) String() string { return awsutil.Prettify(s) } @@ -7652,49 +9371,191 @@ func (s AggregatedValue) 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 AggregatedValue) GoString() string { +func (s AssetPropertyValue) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssetPropertyValue) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssetPropertyValue"} + if s.Timestamp == nil { + invalidParams.Add(request.NewErrParamRequired("Timestamp")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Timestamp != nil { + if err := s.Timestamp.Validate(); err != nil { + invalidParams.AddNested("Timestamp", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetQuality sets the Quality field's value. -func (s *AggregatedValue) SetQuality(v string) *AggregatedValue { +func (s *AssetPropertyValue) SetQuality(v string) *AssetPropertyValue { s.Quality = &v return s } // SetTimestamp sets the Timestamp field's value. -func (s *AggregatedValue) SetTimestamp(v time.Time) *AggregatedValue { - s.Timestamp = &v +func (s *AssetPropertyValue) SetTimestamp(v *TimeInNanos) *AssetPropertyValue { + s.Timestamp = v return s } // SetValue sets the Value field's value. -func (s *AggregatedValue) SetValue(v *Aggregates) *AggregatedValue { +func (s *AssetPropertyValue) SetValue(v *Variant) *AssetPropertyValue { s.Value = v return s } -// Contains the (pre-calculated) aggregate values for an asset property. -type Aggregates struct { +// Contains information about assets that are related to one another. +type AssetRelationshipSummary struct { _ struct{} `type:"structure"` - // The average (mean) value of the time series over a time interval window. - Average *float64 `locationName:"average" type:"double"` + // The assets that are related through an asset hierarchy. + // + // This object is present if the relationshipType is HIERARCHY. + HierarchyInfo *AssetHierarchyInfo `locationName:"hierarchyInfo" type:"structure"` - // The count of data points in the time series over a time interval window. - Count *float64 `locationName:"count" type:"double"` + // The relationship type of the assets in this relationship. This value is one + // of the following: + // + // * HIERARCHY – The assets are related through an asset hierarchy. If + // you specify this relationship type, this asset relationship includes the + // hierarchyInfo object. + // + // RelationshipType is a required field + RelationshipType *string `locationName:"relationshipType" type:"string" required:"true" enum:"AssetRelationshipType"` +} - // The maximum value of the time series over a time interval window. - Maximum *float64 `locationName:"maximum" type:"double"` +// 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 AssetRelationshipSummary) String() string { + return awsutil.Prettify(s) +} - // The minimum value of the time series over a time interval window. - Minimum *float64 `locationName:"minimum" type:"double"` +// 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 AssetRelationshipSummary) GoString() string { + return s.String() +} + +// SetHierarchyInfo sets the HierarchyInfo field's value. +func (s *AssetRelationshipSummary) SetHierarchyInfo(v *AssetHierarchyInfo) *AssetRelationshipSummary { + s.HierarchyInfo = v + return s +} + +// SetRelationshipType sets the RelationshipType field's value. +func (s *AssetRelationshipSummary) SetRelationshipType(v string) *AssetRelationshipSummary { + s.RelationshipType = &v + return s +} + +// Contains information about the current status of an asset. For more information, +// see Asset and model states (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-and-model-states.html) +// in the IoT SiteWise User Guide. +type AssetStatus struct { + _ struct{} `type:"structure"` + + // Contains associated error information, if any. + Error *ErrorDetails `locationName:"error" type:"structure"` + + // The current status of the asset. + // + // State is a required field + State *string `locationName:"state" type:"string" required:"true" enum:"AssetState"` +} + +// 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 AssetStatus) 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 AssetStatus) GoString() string { + return s.String() +} + +// SetError sets the Error field's value. +func (s *AssetStatus) SetError(v *ErrorDetails) *AssetStatus { + s.Error = v + return s +} + +// SetState sets the State field's value. +func (s *AssetStatus) SetState(v string) *AssetStatus { + s.State = &v + return s +} + +// Contains a summary of an asset. +type AssetSummary struct { + _ struct{} `type:"structure"` + + // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // of the asset, which has the following format. + // + // arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // The ID of the asset model used to create this asset. + // + // AssetModelId is a required field + AssetModelId *string `locationName:"assetModelId" min:"36" type:"string" required:"true"` + + // The date the asset was created, in Unix epoch time. + // + // CreationDate is a required field + CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` + + // A list of asset hierarchies that each contain a hierarchyId. A hierarchy + // specifies allowed parent/child asset relationships. + // + // Hierarchies is a required field + Hierarchies []*AssetHierarchy `locationName:"hierarchies" type:"list" required:"true"` + + // The ID of the asset. + // + // Id is a required field + Id *string `locationName:"id" min:"36" type:"string" required:"true"` + + // The date the asset was last updated, in Unix epoch time. + // + // LastUpdateDate is a required field + LastUpdateDate *time.Time `locationName:"lastUpdateDate" type:"timestamp" required:"true"` - // The standard deviation of the time series over a time interval window. - StandardDeviation *float64 `locationName:"standardDeviation" type:"double"` + // The name of the asset. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // The sum of the time series over a time interval window. - Sum *float64 `locationName:"sum" type:"double"` + // The current status of the asset. + // + // Status is a required field + Status *AssetStatus `locationName:"status" type:"structure" required:"true"` } // String returns the string representation. @@ -7702,7 +9563,7 @@ type Aggregates 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 Aggregates) String() string { +func (s AssetSummary) String() string { return awsutil.Prettify(s) } @@ -7711,66 +9572,83 @@ func (s Aggregates) 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 Aggregates) GoString() string { +func (s AssetSummary) GoString() string { return s.String() } -// SetAverage sets the Average field's value. -func (s *Aggregates) SetAverage(v float64) *Aggregates { - s.Average = &v +// SetArn sets the Arn field's value. +func (s *AssetSummary) SetArn(v string) *AssetSummary { + s.Arn = &v return s } -// SetCount sets the Count field's value. -func (s *Aggregates) SetCount(v float64) *Aggregates { - s.Count = &v +// SetAssetModelId sets the AssetModelId field's value. +func (s *AssetSummary) SetAssetModelId(v string) *AssetSummary { + s.AssetModelId = &v return s } -// SetMaximum sets the Maximum field's value. -func (s *Aggregates) SetMaximum(v float64) *Aggregates { - s.Maximum = &v +// SetCreationDate sets the CreationDate field's value. +func (s *AssetSummary) SetCreationDate(v time.Time) *AssetSummary { + s.CreationDate = &v return s } -// SetMinimum sets the Minimum field's value. -func (s *Aggregates) SetMinimum(v float64) *Aggregates { - s.Minimum = &v +// SetHierarchies sets the Hierarchies field's value. +func (s *AssetSummary) SetHierarchies(v []*AssetHierarchy) *AssetSummary { + s.Hierarchies = v return s } -// SetStandardDeviation sets the StandardDeviation field's value. -func (s *Aggregates) SetStandardDeviation(v float64) *Aggregates { - s.StandardDeviation = &v +// SetId sets the Id field's value. +func (s *AssetSummary) SetId(v string) *AssetSummary { + s.Id = &v return s } -// SetSum sets the Sum field's value. -func (s *Aggregates) SetSum(v float64) *Aggregates { - s.Sum = &v +// SetLastUpdateDate sets the LastUpdateDate field's value. +func (s *AssetSummary) SetLastUpdateDate(v time.Time) *AssetSummary { + s.LastUpdateDate = &v return s } -// Contains the configuration information of an alarm created in an IoT SiteWise -// Monitor portal. You can use the alarm to monitor an asset property and get -// notified when the asset property value is outside a specified range. For -// more information, see Monitoring with alarms (https://docs.aws.amazon.com/iot-sitewise/latest/appguide/monitor-alarms.html) -// in the IoT SiteWise Application Guide. -type Alarms struct { +// SetName sets the Name field's value. +func (s *AssetSummary) SetName(v string) *AssetSummary { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AssetSummary) SetStatus(v *AssetStatus) *AssetSummary { + s.Status = v + return s +} + +type AssociateAssetsInput struct { _ struct{} `type:"structure"` - // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // of the IAM role that allows the alarm to perform actions and access Amazon - // Web Services resources and services, such as IoT Events. + // The ID of the parent asset. // - // AlarmRoleArn is a required field - AlarmRoleArn *string `locationName:"alarmRoleArn" min:"1" type:"string" required:"true"` + // AssetId is a required field + AssetId *string `location:"uri" locationName:"assetId" min:"36" type:"string" required:"true"` - // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // of the Lambda function that manages alarm notifications. For more information, - // see Managing alarm notifications (https://docs.aws.amazon.com/iotevents/latest/developerguide/lambda-support.html) - // in the IoT Events Developer Guide. - NotificationLambdaArn *string `locationName:"notificationLambdaArn" min:"1" type:"string"` + // The ID of the child asset to be associated. + // + // ChildAssetId is a required field + ChildAssetId *string `locationName:"childAssetId" min:"36" type:"string" required:"true"` + + // A unique case-sensitive identifier that you can provide to ensure the idempotency + // of the request. Don't reuse this client token if a new idempotent request + // is required. + ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"` + + // The ID of a hierarchy in the parent asset's model. Hierarchies allow different + // groupings of assets to be formed that all come from the same asset model. + // For more information, see Asset hierarchies (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html) + // in the IoT SiteWise User Guide. + // + // HierarchyId is a required field + HierarchyId *string `locationName:"hierarchyId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -7778,7 +9656,7 @@ type Alarms 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 Alarms) String() string { +func (s AssociateAssetsInput) String() string { return awsutil.Prettify(s) } @@ -7787,21 +9665,33 @@ func (s Alarms) 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 Alarms) GoString() string { +func (s AssociateAssetsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *Alarms) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Alarms"} - if s.AlarmRoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("AlarmRoleArn")) +func (s *AssociateAssetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateAssetsInput"} + if s.AssetId == nil { + invalidParams.Add(request.NewErrParamRequired("AssetId")) } - if s.AlarmRoleArn != nil && len(*s.AlarmRoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AlarmRoleArn", 1)) + if s.AssetId != nil && len(*s.AssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) } - if s.NotificationLambdaArn != nil && len(*s.NotificationLambdaArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NotificationLambdaArn", 1)) + if s.ChildAssetId == nil { + invalidParams.Add(request.NewErrParamRequired("ChildAssetId")) + } + if s.ChildAssetId != nil && len(*s.ChildAssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ChildAssetId", 36)) + } + if s.ClientToken != nil && len(*s.ClientToken) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) + } + if s.HierarchyId == nil { + invalidParams.Add(request.NewErrParamRequired("HierarchyId")) + } + if s.HierarchyId != nil && len(*s.HierarchyId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("HierarchyId", 36)) } if invalidParams.Len() > 0 { @@ -7810,41 +9700,74 @@ func (s *Alarms) Validate() error { return nil } -// SetAlarmRoleArn sets the AlarmRoleArn field's value. -func (s *Alarms) SetAlarmRoleArn(v string) *Alarms { - s.AlarmRoleArn = &v +// SetAssetId sets the AssetId field's value. +func (s *AssociateAssetsInput) SetAssetId(v string) *AssociateAssetsInput { + s.AssetId = &v return s } -// SetNotificationLambdaArn sets the NotificationLambdaArn field's value. -func (s *Alarms) SetNotificationLambdaArn(v string) *Alarms { - s.NotificationLambdaArn = &v +// SetChildAssetId sets the ChildAssetId field's value. +func (s *AssociateAssetsInput) SetChildAssetId(v string) *AssociateAssetsInput { + s.ChildAssetId = &v return s } -// Contains information about a composite model in an asset. This object contains -// the asset's properties that you define in the composite model. -type AssetCompositeModel struct { +// SetClientToken sets the ClientToken field's value. +func (s *AssociateAssetsInput) SetClientToken(v string) *AssociateAssetsInput { + s.ClientToken = &v + return s +} + +// SetHierarchyId sets the HierarchyId field's value. +func (s *AssociateAssetsInput) SetHierarchyId(v string) *AssociateAssetsInput { + s.HierarchyId = &v + return s +} + +type AssociateAssetsOutput struct { _ struct{} `type:"structure"` +} - // The description of the composite model. - Description *string `locationName:"description" 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 AssociateAssetsOutput) String() string { + return awsutil.Prettify(s) +} - // The name of the composite model. +// 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 AssociateAssetsOutput) GoString() string { + return s.String() +} + +type AssociateTimeSeriesToAssetPropertyInput struct { + _ struct{} `type:"structure"` + + // The alias that identifies the time series. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // Alias is a required field + Alias *string `location:"querystring" locationName:"alias" min:"1" type:"string" required:"true"` - // The asset properties that this composite model defines. + // The ID of the asset in which the asset property was created. // - // Properties is a required field - Properties []*AssetProperty `locationName:"properties" type:"list" required:"true"` + // AssetId is a required field + AssetId *string `location:"querystring" locationName:"assetId" min:"36" type:"string" required:"true"` - // The type of the composite model. For alarm composite models, this type is - // AWS/ALARM. + // A unique case-sensitive identifier that you can provide to ensure the idempotency + // of the request. Don't reuse this client token if a new idempotent request + // is required. + ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"` + + // The ID of the asset property. // - // Type is a required field - Type *string `locationName:"type" min:"1" type:"string" required:"true"` + // PropertyId is a required field + PropertyId *string `location:"querystring" locationName:"propertyId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -7852,7 +9775,7 @@ type AssetCompositeModel 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 AssetCompositeModel) String() string { +func (s AssociateTimeSeriesToAssetPropertyInput) String() string { return awsutil.Prettify(s) } @@ -7861,52 +9784,67 @@ func (s AssetCompositeModel) 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 AssetCompositeModel) GoString() string { +func (s AssociateTimeSeriesToAssetPropertyInput) GoString() string { return s.String() } -// SetDescription sets the Description field's value. -func (s *AssetCompositeModel) SetDescription(v string) *AssetCompositeModel { - s.Description = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateTimeSeriesToAssetPropertyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateTimeSeriesToAssetPropertyInput"} + if s.Alias == nil { + invalidParams.Add(request.NewErrParamRequired("Alias")) + } + if s.Alias != nil && len(*s.Alias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Alias", 1)) + } + if s.AssetId == nil { + invalidParams.Add(request.NewErrParamRequired("AssetId")) + } + if s.AssetId != nil && len(*s.AssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) + } + if s.ClientToken != nil && len(*s.ClientToken) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) + } + if s.PropertyId == nil { + invalidParams.Add(request.NewErrParamRequired("PropertyId")) + } + if s.PropertyId != nil && len(*s.PropertyId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("PropertyId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetName sets the Name field's value. -func (s *AssetCompositeModel) SetName(v string) *AssetCompositeModel { - s.Name = &v +// SetAlias sets the Alias field's value. +func (s *AssociateTimeSeriesToAssetPropertyInput) SetAlias(v string) *AssociateTimeSeriesToAssetPropertyInput { + s.Alias = &v + return s +} + +// SetAssetId sets the AssetId field's value. +func (s *AssociateTimeSeriesToAssetPropertyInput) SetAssetId(v string) *AssociateTimeSeriesToAssetPropertyInput { + s.AssetId = &v return s } -// SetProperties sets the Properties field's value. -func (s *AssetCompositeModel) SetProperties(v []*AssetProperty) *AssetCompositeModel { - s.Properties = v +// SetClientToken sets the ClientToken field's value. +func (s *AssociateTimeSeriesToAssetPropertyInput) SetClientToken(v string) *AssociateTimeSeriesToAssetPropertyInput { + s.ClientToken = &v return s } -// SetType sets the Type field's value. -func (s *AssetCompositeModel) SetType(v string) *AssetCompositeModel { - s.Type = &v +// SetPropertyId sets the PropertyId field's value. +func (s *AssociateTimeSeriesToAssetPropertyInput) SetPropertyId(v string) *AssociateTimeSeriesToAssetPropertyInput { + s.PropertyId = &v return s } -// Contains error details for the requested associate project asset action. -type AssetErrorDetails struct { +type AssociateTimeSeriesToAssetPropertyOutput struct { _ struct{} `type:"structure"` - - // The ID of the asset. - // - // AssetId is a required field - AssetId *string `locationName:"assetId" min:"36" type:"string" required:"true"` - - // The error code. - // - // Code is a required field - Code *string `locationName:"code" type:"string" required:"true" enum:"AssetErrorCode"` - - // The error message. - // - // Message is a required field - Message *string `locationName:"message" type:"string" required:"true"` } // String returns the string representation. @@ -7914,7 +9852,7 @@ type AssetErrorDetails 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 AssetErrorDetails) String() string { +func (s AssociateTimeSeriesToAssetPropertyOutput) String() string { return awsutil.Prettify(s) } @@ -7923,41 +9861,57 @@ func (s AssetErrorDetails) 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 AssetErrorDetails) GoString() string { +func (s AssociateTimeSeriesToAssetPropertyOutput) GoString() string { return s.String() } -// SetAssetId sets the AssetId field's value. -func (s *AssetErrorDetails) SetAssetId(v string) *AssetErrorDetails { - s.AssetId = &v - return s -} +// Contains a summary of an associated asset. +type AssociatedAssetsSummary struct { + _ struct{} `type:"structure"` -// SetCode sets the Code field's value. -func (s *AssetErrorDetails) SetCode(v string) *AssetErrorDetails { - s.Code = &v - return s -} + // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // of the asset, which has the following format. + // + // arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` -// SetMessage sets the Message field's value. -func (s *AssetErrorDetails) SetMessage(v string) *AssetErrorDetails { - s.Message = &v - return s -} + // The ID of the asset model used to create the asset. + // + // AssetModelId is a required field + AssetModelId *string `locationName:"assetModelId" min:"36" type:"string" required:"true"` -// Describes an asset hierarchy that contains a hierarchy's name and ID. -type AssetHierarchy struct { - _ struct{} `type:"structure"` + // The date the asset was created, in Unix epoch time. + // + // CreationDate is a required field + CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` - // The ID of the hierarchy. This ID is a hierarchyId. - Id *string `locationName:"id" min:"36" type:"string"` + // A list of asset hierarchies that each contain a hierarchyId. A hierarchy + // specifies allowed parent/child asset relationships. + // + // Hierarchies is a required field + Hierarchies []*AssetHierarchy `locationName:"hierarchies" type:"list" required:"true"` - // The hierarchy name provided in the CreateAssetModel (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAssetModel.html) - // or UpdateAssetModel (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetModel.html) - // API operation. + // The ID of the asset. + // + // Id is a required field + Id *string `locationName:"id" min:"36" type:"string" required:"true"` + + // The date the asset was last updated, in Unix epoch time. + // + // LastUpdateDate is a required field + LastUpdateDate *time.Time `locationName:"lastUpdateDate" type:"timestamp" required:"true"` + + // The name of the asset. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The current status of the asset. + // + // Status is a required field + Status *AssetStatus `locationName:"status" type:"structure" required:"true"` } // String returns the string representation. @@ -7965,7 +9919,7 @@ type AssetHierarchy 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 AssetHierarchy) String() string { +func (s AssociatedAssetsSummary) String() string { return awsutil.Prettify(s) } @@ -7974,86 +9928,70 @@ func (s AssetHierarchy) 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 AssetHierarchy) GoString() string { +func (s AssociatedAssetsSummary) GoString() string { return s.String() } -// SetId sets the Id field's value. -func (s *AssetHierarchy) SetId(v string) *AssetHierarchy { - s.Id = &v +// SetArn sets the Arn field's value. +func (s *AssociatedAssetsSummary) SetArn(v string) *AssociatedAssetsSummary { + s.Arn = &v return s } -// SetName sets the Name field's value. -func (s *AssetHierarchy) SetName(v string) *AssetHierarchy { - s.Name = &v +// SetAssetModelId sets the AssetModelId field's value. +func (s *AssociatedAssetsSummary) SetAssetModelId(v string) *AssociatedAssetsSummary { + s.AssetModelId = &v return s } -// Contains information about a parent asset and a child asset that are related -// through an asset hierarchy. -type AssetHierarchyInfo struct { - _ struct{} `type:"structure"` - - // The ID of the child asset in this asset relationship. - ChildAssetId *string `locationName:"childAssetId" min:"36" type:"string"` +// SetCreationDate sets the CreationDate field's value. +func (s *AssociatedAssetsSummary) SetCreationDate(v time.Time) *AssociatedAssetsSummary { + s.CreationDate = &v + return s +} - // The ID of the parent asset in this asset relationship. - ParentAssetId *string `locationName:"parentAssetId" min:"36" type:"string"` +// SetHierarchies sets the Hierarchies field's value. +func (s *AssociatedAssetsSummary) SetHierarchies(v []*AssetHierarchy) *AssociatedAssetsSummary { + s.Hierarchies = 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 AssetHierarchyInfo) String() string { - return awsutil.Prettify(s) +// SetId sets the Id field's value. +func (s *AssociatedAssetsSummary) SetId(v string) *AssociatedAssetsSummary { + s.Id = &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 AssetHierarchyInfo) GoString() string { - return s.String() +// SetLastUpdateDate sets the LastUpdateDate field's value. +func (s *AssociatedAssetsSummary) SetLastUpdateDate(v time.Time) *AssociatedAssetsSummary { + s.LastUpdateDate = &v + return s } -// SetChildAssetId sets the ChildAssetId field's value. -func (s *AssetHierarchyInfo) SetChildAssetId(v string) *AssetHierarchyInfo { - s.ChildAssetId = &v +// SetName sets the Name field's value. +func (s *AssociatedAssetsSummary) SetName(v string) *AssociatedAssetsSummary { + s.Name = &v return s } -// SetParentAssetId sets the ParentAssetId field's value. -func (s *AssetHierarchyInfo) SetParentAssetId(v string) *AssetHierarchyInfo { - s.ParentAssetId = &v +// SetStatus sets the Status field's value. +func (s *AssociatedAssetsSummary) SetStatus(v *AssetStatus) *AssociatedAssetsSummary { + s.Status = v return s } -// Contains information about a composite model in an asset model. This object -// contains the asset property definitions that you define in the composite -// model. -type AssetModelCompositeModel struct { +// Contains an asset attribute property. For more information, see Attributes +// (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html#attributes) +// in the IoT SiteWise User Guide. +type Attribute struct { _ struct{} `type:"structure"` - // The description of the composite model. - Description *string `locationName:"description" min:"1" type:"string"` - - // The name of the composite model. - // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // The asset property definitions for this composite model. - Properties []*AssetModelProperty `locationName:"properties" type:"list"` - - // The type of the composite model. For alarm composite models, this type is - // AWS/ALARM. - // - // Type is a required field - Type *string `locationName:"type" min:"1" type:"string" required:"true"` + // The default value of the asset model property attribute. All assets that + // you create from the asset model contain this attribute value. You can update + // an attribute's value after you create an asset. For more information, see + // Updating attribute values (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/update-attribute-values.html) + // in the IoT SiteWise User Guide. + DefaultValue *string `locationName:"defaultValue" min:"1" type:"string"` } // String returns the string representation. @@ -8061,7 +9999,7 @@ type AssetModelCompositeModel 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 AssetModelCompositeModel) String() string { +func (s Attribute) String() string { return awsutil.Prettify(s) } @@ -8070,90 +10008,46 @@ func (s AssetModelCompositeModel) 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 AssetModelCompositeModel) GoString() string { +func (s Attribute) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssetModelCompositeModel) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssetModelCompositeModel"} - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.Type != nil && len(*s.Type) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Type", 1)) - } - if s.Properties != nil { - for i, v := range s.Properties { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Properties", i), err.(request.ErrInvalidParams)) - } - } +func (s *Attribute) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Attribute"} + if s.DefaultValue != nil && len(*s.DefaultValue) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DefaultValue", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil -} - -// SetDescription sets the Description field's value. -func (s *AssetModelCompositeModel) SetDescription(v string) *AssetModelCompositeModel { - s.Description = &v - return s -} - -// SetName sets the Name field's value. -func (s *AssetModelCompositeModel) SetName(v string) *AssetModelCompositeModel { - s.Name = &v - return s -} - -// SetProperties sets the Properties field's value. -func (s *AssetModelCompositeModel) SetProperties(v []*AssetModelProperty) *AssetModelCompositeModel { - s.Properties = v - return s -} - -// SetType sets the Type field's value. -func (s *AssetModelCompositeModel) SetType(v string) *AssetModelCompositeModel { - s.Type = &v +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *Attribute) SetDefaultValue(v string) *Attribute { + s.DefaultValue = &v return s } -// Contains a composite model definition in an asset model. This composite model -// definition is applied to all assets created from the asset model. -type AssetModelCompositeModelDefinition struct { +type BatchAssociateProjectAssetsInput struct { _ struct{} `type:"structure"` - // The description of the composite model. - Description *string `locationName:"description" min:"1" type:"string"` - - // The name of the composite model. + // The IDs of the assets to be associated to the project. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // AssetIds is a required field + AssetIds []*string `locationName:"assetIds" min:"1" type:"list" required:"true"` - // The asset property definitions for this composite model. - Properties []*AssetModelPropertyDefinition `locationName:"properties" type:"list"` + // A unique case-sensitive identifier that you can provide to ensure the idempotency + // of the request. Don't reuse this client token if a new idempotent request + // is required. + ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"` - // The type of the composite model. For alarm composite models, this type is - // AWS/ALARM. + // The ID of the project to which to associate the assets. // - // Type is a required field - Type *string `locationName:"type" min:"1" type:"string" required:"true"` + // ProjectId is a required field + ProjectId *string `location:"uri" locationName:"projectId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -8161,7 +10055,7 @@ type AssetModelCompositeModelDefinition 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 AssetModelCompositeModelDefinition) String() string { +func (s BatchAssociateProjectAssetsInput) String() string { return awsutil.Prettify(s) } @@ -8170,37 +10064,27 @@ func (s AssetModelCompositeModelDefinition) 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 AssetModelCompositeModelDefinition) GoString() string { +func (s BatchAssociateProjectAssetsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssetModelCompositeModelDefinition) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssetModelCompositeModelDefinition"} - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *BatchAssociateProjectAssetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchAssociateProjectAssetsInput"} + if s.AssetIds == nil { + invalidParams.Add(request.NewErrParamRequired("AssetIds")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.AssetIds != nil && len(s.AssetIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssetIds", 1)) } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) + if s.ClientToken != nil && len(*s.ClientToken) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) } - if s.Type != nil && len(*s.Type) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Type", 1)) + if s.ProjectId == nil { + invalidParams.Add(request.NewErrParamRequired("ProjectId")) } - if s.Properties != nil { - for i, v := range s.Properties { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Properties", i), err.(request.ErrInvalidParams)) - } - } + if s.ProjectId != nil && len(*s.ProjectId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ProjectId", 36)) } if invalidParams.Len() > 0 { @@ -8209,51 +10093,72 @@ func (s *AssetModelCompositeModelDefinition) Validate() error { return nil } -// SetDescription sets the Description field's value. -func (s *AssetModelCompositeModelDefinition) SetDescription(v string) *AssetModelCompositeModelDefinition { - s.Description = &v +// SetAssetIds sets the AssetIds field's value. +func (s *BatchAssociateProjectAssetsInput) SetAssetIds(v []*string) *BatchAssociateProjectAssetsInput { + s.AssetIds = v return s } -// SetName sets the Name field's value. -func (s *AssetModelCompositeModelDefinition) SetName(v string) *AssetModelCompositeModelDefinition { - s.Name = &v +// SetClientToken sets the ClientToken field's value. +func (s *BatchAssociateProjectAssetsInput) SetClientToken(v string) *BatchAssociateProjectAssetsInput { + s.ClientToken = &v return s } -// SetProperties sets the Properties field's value. -func (s *AssetModelCompositeModelDefinition) SetProperties(v []*AssetModelPropertyDefinition) *AssetModelCompositeModelDefinition { - s.Properties = v +// SetProjectId sets the ProjectId field's value. +func (s *BatchAssociateProjectAssetsInput) SetProjectId(v string) *BatchAssociateProjectAssetsInput { + s.ProjectId = &v return s } -// SetType sets the Type field's value. -func (s *AssetModelCompositeModelDefinition) SetType(v string) *AssetModelCompositeModelDefinition { - s.Type = &v +type BatchAssociateProjectAssetsOutput struct { + _ struct{} `type:"structure"` + + // A list of associated error information, if any. + Errors []*AssetErrorDetails `locationName:"errors" 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 BatchAssociateProjectAssetsOutput) 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 BatchAssociateProjectAssetsOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchAssociateProjectAssetsOutput) SetErrors(v []*AssetErrorDetails) *BatchAssociateProjectAssetsOutput { + s.Errors = v return s } -// Describes an asset hierarchy that contains a hierarchy's name, ID, and child -// asset model ID that specifies the type of asset that can be in this hierarchy. -type AssetModelHierarchy struct { +type BatchDisassociateProjectAssetsInput struct { _ struct{} `type:"structure"` - // The ID of the asset model. All assets in this hierarchy must be instances - // of the childAssetModelId asset model. + // The IDs of the assets to be disassociated from the project. // - // ChildAssetModelId is a required field - ChildAssetModelId *string `locationName:"childAssetModelId" min:"36" type:"string" required:"true"` + // AssetIds is a required field + AssetIds []*string `locationName:"assetIds" min:"1" type:"list" required:"true"` - // The ID of the asset model hierarchy. This ID is a hierarchyId. - Id *string `locationName:"id" min:"36" type:"string"` + // A unique case-sensitive identifier that you can provide to ensure the idempotency + // of the request. Don't reuse this client token if a new idempotent request + // is required. + ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"` - // The name of the asset model hierarchy that you specify by using the CreateAssetModel - // (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAssetModel.html) - // or UpdateAssetModel (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetModel.html) - // API operation. + // The ID of the project from which to disassociate the assets. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // ProjectId is a required field + ProjectId *string `location:"uri" locationName:"projectId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -8261,7 +10166,7 @@ type AssetModelHierarchy 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 AssetModelHierarchy) String() string { +func (s BatchDisassociateProjectAssetsInput) String() string { return awsutil.Prettify(s) } @@ -8270,27 +10175,27 @@ func (s AssetModelHierarchy) 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 AssetModelHierarchy) GoString() string { +func (s BatchDisassociateProjectAssetsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssetModelHierarchy) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssetModelHierarchy"} - if s.ChildAssetModelId == nil { - invalidParams.Add(request.NewErrParamRequired("ChildAssetModelId")) +func (s *BatchDisassociateProjectAssetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDisassociateProjectAssetsInput"} + if s.AssetIds == nil { + invalidParams.Add(request.NewErrParamRequired("AssetIds")) } - if s.ChildAssetModelId != nil && len(*s.ChildAssetModelId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("ChildAssetModelId", 36)) + if s.AssetIds != nil && len(s.AssetIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssetIds", 1)) } - if s.Id != nil && len(*s.Id) < 36 { - invalidParams.Add(request.NewErrParamMinLen("Id", 36)) + if s.ClientToken != nil && len(*s.ClientToken) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + if s.ProjectId == nil { + invalidParams.Add(request.NewErrParamRequired("ProjectId")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.ProjectId != nil && len(*s.ProjectId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ProjectId", 36)) } if invalidParams.Len() > 0 { @@ -8299,42 +10204,29 @@ func (s *AssetModelHierarchy) Validate() error { return nil } -// SetChildAssetModelId sets the ChildAssetModelId field's value. -func (s *AssetModelHierarchy) SetChildAssetModelId(v string) *AssetModelHierarchy { - s.ChildAssetModelId = &v +// SetAssetIds sets the AssetIds field's value. +func (s *BatchDisassociateProjectAssetsInput) SetAssetIds(v []*string) *BatchDisassociateProjectAssetsInput { + s.AssetIds = v return s } -// SetId sets the Id field's value. -func (s *AssetModelHierarchy) SetId(v string) *AssetModelHierarchy { - s.Id = &v +// SetClientToken sets the ClientToken field's value. +func (s *BatchDisassociateProjectAssetsInput) SetClientToken(v string) *BatchDisassociateProjectAssetsInput { + s.ClientToken = &v return s } -// SetName sets the Name field's value. -func (s *AssetModelHierarchy) SetName(v string) *AssetModelHierarchy { - s.Name = &v +// SetProjectId sets the ProjectId field's value. +func (s *BatchDisassociateProjectAssetsInput) SetProjectId(v string) *BatchDisassociateProjectAssetsInput { + s.ProjectId = &v return s } -// Contains an asset model hierarchy used in asset model creation. An asset -// model hierarchy determines the kind (or type) of asset that can belong to -// a hierarchy. -type AssetModelHierarchyDefinition struct { +type BatchDisassociateProjectAssetsOutput struct { _ struct{} `type:"structure"` - // The ID of an asset model for this hierarchy. - // - // ChildAssetModelId is a required field - ChildAssetModelId *string `locationName:"childAssetModelId" min:"36" type:"string" required:"true"` - - // The name of the asset model hierarchy definition (as specified in the CreateAssetModel - // (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAssetModel.html) - // or UpdateAssetModel (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetModel.html) - // API operation). - // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // A list of associated error information, if any. + Errors []*AssetErrorDetails `locationName:"errors" type:"list"` } // String returns the string representation. @@ -8342,7 +10234,7 @@ type AssetModelHierarchyDefinition 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 AssetModelHierarchyDefinition) String() string { +func (s BatchDisassociateProjectAssetsOutput) String() string { return awsutil.Prettify(s) } @@ -8351,72 +10243,75 @@ func (s AssetModelHierarchyDefinition) 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 AssetModelHierarchyDefinition) GoString() string { +func (s BatchDisassociateProjectAssetsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssetModelHierarchyDefinition) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssetModelHierarchyDefinition"} - if s.ChildAssetModelId == nil { - invalidParams.Add(request.NewErrParamRequired("ChildAssetModelId")) - } - if s.ChildAssetModelId != nil && len(*s.ChildAssetModelId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("ChildAssetModelId", 36)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetChildAssetModelId sets the ChildAssetModelId field's value. -func (s *AssetModelHierarchyDefinition) SetChildAssetModelId(v string) *AssetModelHierarchyDefinition { - s.ChildAssetModelId = &v - return s -} - -// SetName sets the Name field's value. -func (s *AssetModelHierarchyDefinition) SetName(v string) *AssetModelHierarchyDefinition { - s.Name = &v +// SetErrors sets the Errors field's value. +func (s *BatchDisassociateProjectAssetsOutput) SetErrors(v []*AssetErrorDetails) *BatchDisassociateProjectAssetsOutput { + s.Errors = v return s } -// Contains information about an asset model property. -type AssetModelProperty struct { +// Contains information for an asset property aggregate entry that is associated +// with the BatchGetAssetPropertyAggregates (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyAggregates.html) +// API. +// +// To identify an asset property, you must specify one of the following: +// +// * The assetId and propertyId of an asset property. +// +// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). +// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). +type BatchGetAssetPropertyAggregatesEntry struct { _ struct{} `type:"structure"` - // The data type of the asset model property. + // The data aggregating function. // - // DataType is a required field - DataType *string `locationName:"dataType" type:"string" required:"true" enum:"PropertyDataType"` + // AggregateTypes is a required field + AggregateTypes []*string `locationName:"aggregateTypes" min:"1" type:"list" required:"true" enum:"AggregateType"` - // The data type of the structure for this property. This parameter exists on - // properties that have the STRUCT data type. - DataTypeSpec *string `locationName:"dataTypeSpec" min:"1" type:"string"` + // The ID of the asset in which the asset property was created. + AssetId *string `locationName:"assetId" min:"36" type:"string"` - // The ID of the asset model property. - Id *string `locationName:"id" min:"36" type:"string"` + // The inclusive end of the range from which to query historical data, expressed + // in seconds in Unix epoch time. + // + // EndDate is a required field + EndDate *time.Time `locationName:"endDate" type:"timestamp" required:"true"` - // The name of the asset model property. + // The ID of the entry. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` - // The property type (see PropertyType). + // The alias that identifies the property, such as an OPC-UA server data stream + // path (for example, /company/windfarm/3/turbine/7/temperature). For more information, + // see Mapping industrial data streams to asset properties (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html) + // in the IoT SiteWise User Guide. + PropertyAlias *string `locationName:"propertyAlias" min:"1" type:"string"` + + // The ID of the asset property. + PropertyId *string `locationName:"propertyId" min:"36" type:"string"` + + // The quality by which to filter asset data. + Qualities []*string `locationName:"qualities" min:"1" type:"list" enum:"Quality"` + + // The time interval over which to aggregate data. // - // Type is a required field - Type *PropertyType `locationName:"type" type:"structure" required:"true"` + // Resolution is a required field + Resolution *string `locationName:"resolution" min:"2" type:"string" required:"true"` - // The unit of the asset model property, such as Newtons or RPM. - Unit *string `locationName:"unit" min:"1" type:"string"` + // The exclusive start of the range from which to query historical data, expressed + // in seconds in Unix epoch time. + // + // StartDate is a required field + StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"` + + // The chronological sorting order of the requested information. + // + // Default: ASCENDING + TimeOrdering *string `locationName:"timeOrdering" type:"string" enum:"TimeOrdering"` } // String returns the string representation. @@ -8424,7 +10319,7 @@ type AssetModelProperty 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 AssetModelProperty) String() string { +func (s BatchGetAssetPropertyAggregatesEntry) String() string { return awsutil.Prettify(s) } @@ -8433,38 +10328,48 @@ func (s AssetModelProperty) 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 AssetModelProperty) GoString() string { +func (s BatchGetAssetPropertyAggregatesEntry) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssetModelProperty) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssetModelProperty"} - if s.DataType == nil { - invalidParams.Add(request.NewErrParamRequired("DataType")) +func (s *BatchGetAssetPropertyAggregatesEntry) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetAssetPropertyAggregatesEntry"} + if s.AggregateTypes == nil { + invalidParams.Add(request.NewErrParamRequired("AggregateTypes")) } - if s.DataTypeSpec != nil && len(*s.DataTypeSpec) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DataTypeSpec", 1)) + if s.AggregateTypes != nil && len(s.AggregateTypes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AggregateTypes", 1)) } - if s.Id != nil && len(*s.Id) < 36 { - invalidParams.Add(request.NewErrParamMinLen("Id", 36)) + if s.AssetId != nil && len(*s.AssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + if s.EndDate == nil { + invalidParams.Add(request.NewErrParamRequired("EndDate")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.EntryId == nil { + invalidParams.Add(request.NewErrParamRequired("EntryId")) } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) + if s.EntryId != nil && len(*s.EntryId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EntryId", 1)) } - if s.Unit != nil && len(*s.Unit) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Unit", 1)) + if s.PropertyAlias != nil && len(*s.PropertyAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PropertyAlias", 1)) } - if s.Type != nil { - if err := s.Type.Validate(); err != nil { - invalidParams.AddNested("Type", err.(request.ErrInvalidParams)) - } + if s.PropertyId != nil && len(*s.PropertyId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("PropertyId", 36)) + } + if s.Qualities != nil && len(s.Qualities) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Qualities", 1)) + } + if s.Resolution == nil { + invalidParams.Add(request.NewErrParamRequired("Resolution")) + } + if s.Resolution != nil && len(*s.Resolution) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Resolution", 2)) + } + if s.StartDate == nil { + invalidParams.Add(request.NewErrParamRequired("StartDate")) } if invalidParams.Len() > 0 { @@ -8473,76 +10378,86 @@ func (s *AssetModelProperty) Validate() error { return nil } -// SetDataType sets the DataType field's value. -func (s *AssetModelProperty) SetDataType(v string) *AssetModelProperty { - s.DataType = &v +// SetAggregateTypes sets the AggregateTypes field's value. +func (s *BatchGetAssetPropertyAggregatesEntry) SetAggregateTypes(v []*string) *BatchGetAssetPropertyAggregatesEntry { + s.AggregateTypes = v return s } -// SetDataTypeSpec sets the DataTypeSpec field's value. -func (s *AssetModelProperty) SetDataTypeSpec(v string) *AssetModelProperty { - s.DataTypeSpec = &v +// SetAssetId sets the AssetId field's value. +func (s *BatchGetAssetPropertyAggregatesEntry) SetAssetId(v string) *BatchGetAssetPropertyAggregatesEntry { + s.AssetId = &v return s } -// SetId sets the Id field's value. -func (s *AssetModelProperty) SetId(v string) *AssetModelProperty { - s.Id = &v +// SetEndDate sets the EndDate field's value. +func (s *BatchGetAssetPropertyAggregatesEntry) SetEndDate(v time.Time) *BatchGetAssetPropertyAggregatesEntry { + s.EndDate = &v return s } -// SetName sets the Name field's value. -func (s *AssetModelProperty) SetName(v string) *AssetModelProperty { - s.Name = &v +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyAggregatesEntry) SetEntryId(v string) *BatchGetAssetPropertyAggregatesEntry { + s.EntryId = &v return s } -// SetType sets the Type field's value. -func (s *AssetModelProperty) SetType(v *PropertyType) *AssetModelProperty { - s.Type = v +// SetPropertyAlias sets the PropertyAlias field's value. +func (s *BatchGetAssetPropertyAggregatesEntry) SetPropertyAlias(v string) *BatchGetAssetPropertyAggregatesEntry { + s.PropertyAlias = &v return s } -// SetUnit sets the Unit field's value. -func (s *AssetModelProperty) SetUnit(v string) *AssetModelProperty { - s.Unit = &v +// SetPropertyId sets the PropertyId field's value. +func (s *BatchGetAssetPropertyAggregatesEntry) SetPropertyId(v string) *BatchGetAssetPropertyAggregatesEntry { + s.PropertyId = &v return s } -// Contains an asset model property definition. This property definition is -// applied to all assets created from the asset model. -type AssetModelPropertyDefinition struct { - _ struct{} `type:"structure"` +// SetQualities sets the Qualities field's value. +func (s *BatchGetAssetPropertyAggregatesEntry) SetQualities(v []*string) *BatchGetAssetPropertyAggregatesEntry { + s.Qualities = v + return s +} - // The data type of the property definition. - // - // If you specify STRUCT, you must also specify dataTypeSpec to identify the - // type of the structure for this property. - // - // DataType is a required field - DataType *string `locationName:"dataType" type:"string" required:"true" enum:"PropertyDataType"` +// SetResolution sets the Resolution field's value. +func (s *BatchGetAssetPropertyAggregatesEntry) SetResolution(v string) *BatchGetAssetPropertyAggregatesEntry { + s.Resolution = &v + return s +} - // The data type of the structure for this property. This parameter is required - // on properties that have the STRUCT data type. - // - // The options for this parameter depend on the type of the composite model - // in which you define this property. Use AWS/ALARM_STATE for alarm state in - // alarm composite models. - DataTypeSpec *string `locationName:"dataTypeSpec" min:"1" type:"string"` +// SetStartDate sets the StartDate field's value. +func (s *BatchGetAssetPropertyAggregatesEntry) SetStartDate(v time.Time) *BatchGetAssetPropertyAggregatesEntry { + s.StartDate = &v + return s +} - // The name of the property definition. +// SetTimeOrdering sets the TimeOrdering field's value. +func (s *BatchGetAssetPropertyAggregatesEntry) SetTimeOrdering(v string) *BatchGetAssetPropertyAggregatesEntry { + s.TimeOrdering = &v + return s +} + +// Contains error information for an asset property aggregate entry that is +// associated with the BatchGetAssetPropertyAggregates (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyAggregates.html) +// API. +type BatchGetAssetPropertyAggregatesErrorEntry struct { + _ struct{} `type:"structure"` + + // The ID of the entry. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` - // The property definition type (see PropertyType). You can only specify one - // type in a property definition. + // The error code. // - // Type is a required field - Type *PropertyType `locationName:"type" type:"structure" required:"true"` + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"BatchGetAssetPropertyAggregatesErrorCode"` - // The unit of the property definition, such as Newtons or RPM. - Unit *string `locationName:"unit" min:"1" type:"string"` + // The associated error message. + // + // ErrorMessage is a required field + ErrorMessage *string `locationName:"errorMessage" type:"string" required:"true"` } // String returns the string representation. @@ -8550,7 +10465,7 @@ type AssetModelPropertyDefinition 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 AssetModelPropertyDefinition) String() string { +func (s BatchGetAssetPropertyAggregatesErrorEntry) String() string { return awsutil.Prettify(s) } @@ -8559,86 +10474,95 @@ func (s AssetModelPropertyDefinition) 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 AssetModelPropertyDefinition) GoString() string { +func (s BatchGetAssetPropertyAggregatesErrorEntry) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssetModelPropertyDefinition) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssetModelPropertyDefinition"} - if s.DataType == nil { - invalidParams.Add(request.NewErrParamRequired("DataType")) - } - if s.DataTypeSpec != nil && len(*s.DataTypeSpec) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DataTypeSpec", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.Unit != nil && len(*s.Unit) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Unit", 1)) - } - if s.Type != nil { - if err := s.Type.Validate(); err != nil { - invalidParams.AddNested("Type", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyAggregatesErrorEntry) SetEntryId(v string) *BatchGetAssetPropertyAggregatesErrorEntry { + s.EntryId = &v + return s } -// SetDataType sets the DataType field's value. -func (s *AssetModelPropertyDefinition) SetDataType(v string) *AssetModelPropertyDefinition { - s.DataType = &v +// SetErrorCode sets the ErrorCode field's value. +func (s *BatchGetAssetPropertyAggregatesErrorEntry) SetErrorCode(v string) *BatchGetAssetPropertyAggregatesErrorEntry { + s.ErrorCode = &v return s } -// SetDataTypeSpec sets the DataTypeSpec field's value. -func (s *AssetModelPropertyDefinition) SetDataTypeSpec(v string) *AssetModelPropertyDefinition { - s.DataTypeSpec = &v +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BatchGetAssetPropertyAggregatesErrorEntry) SetErrorMessage(v string) *BatchGetAssetPropertyAggregatesErrorEntry { + s.ErrorMessage = &v return s } -// SetName sets the Name field's value. -func (s *AssetModelPropertyDefinition) SetName(v string) *AssetModelPropertyDefinition { - s.Name = &v - return s +// Contains the error code and the timestamp for an asset property aggregate +// entry that is associated with the BatchGetAssetPropertyAggregates (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyAggregates.html) +// API. +type BatchGetAssetPropertyAggregatesErrorInfo struct { + _ struct{} `type:"structure"` + + // The error code. + // + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"BatchGetAssetPropertyAggregatesErrorCode"` + + // The date the error occurred, in Unix epoch time. + // + // ErrorTimestamp is a required field + ErrorTimestamp *time.Time `locationName:"errorTimestamp" type:"timestamp" 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 BatchGetAssetPropertyAggregatesErrorInfo) 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 BatchGetAssetPropertyAggregatesErrorInfo) GoString() string { + return s.String() } -// SetType sets the Type field's value. -func (s *AssetModelPropertyDefinition) SetType(v *PropertyType) *AssetModelPropertyDefinition { - s.Type = v +// SetErrorCode sets the ErrorCode field's value. +func (s *BatchGetAssetPropertyAggregatesErrorInfo) SetErrorCode(v string) *BatchGetAssetPropertyAggregatesErrorInfo { + s.ErrorCode = &v return s } -// SetUnit sets the Unit field's value. -func (s *AssetModelPropertyDefinition) SetUnit(v string) *AssetModelPropertyDefinition { - s.Unit = &v +// SetErrorTimestamp sets the ErrorTimestamp field's value. +func (s *BatchGetAssetPropertyAggregatesErrorInfo) SetErrorTimestamp(v time.Time) *BatchGetAssetPropertyAggregatesErrorInfo { + s.ErrorTimestamp = &v return s } -// Contains current status information for an asset model. For more information, -// see Asset and model states (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-and-model-states.html) -// in the IoT SiteWise User Guide. -type AssetModelStatus struct { +type BatchGetAssetPropertyAggregatesInput struct { _ struct{} `type:"structure"` - // Contains associated error information, if any. - Error *ErrorDetails `locationName:"error" type:"structure"` + // The list of asset property aggregate entries for the batch get request. You + // can specify up to 16 entries per request. + // + // Entries is a required field + Entries []*BatchGetAssetPropertyAggregatesEntry `locationName:"entries" type:"list" required:"true"` - // The current state of the asset model. + // The maximum number of results to return for each paginated request. A result + // set is returned in the two cases, whichever occurs first. // - // State is a required field - State *string `locationName:"state" type:"string" required:"true" enum:"AssetModelState"` + // * The size of the result set is less than 1 MB. + // + // * The number of data points in the result set is less than the value of + // maxResults. The maximum value of maxResults is 4000. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token to be used for the next set of paginated results. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. @@ -8646,7 +10570,7 @@ type AssetModelStatus 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 AssetModelStatus) String() string { +func (s BatchGetAssetPropertyAggregatesInput) String() string { return awsutil.Prettify(s) } @@ -8655,63 +10579,83 @@ func (s AssetModelStatus) 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 AssetModelStatus) GoString() string { +func (s BatchGetAssetPropertyAggregatesInput) GoString() string { return s.String() } -// SetError sets the Error field's value. -func (s *AssetModelStatus) SetError(v *ErrorDetails) *AssetModelStatus { - s.Error = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetAssetPropertyAggregatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetAssetPropertyAggregatesInput"} + if s.Entries == nil { + invalidParams.Add(request.NewErrParamRequired("Entries")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.Entries != nil { + for i, v := range s.Entries { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetState sets the State field's value. -func (s *AssetModelStatus) SetState(v string) *AssetModelStatus { - s.State = &v +// SetEntries sets the Entries field's value. +func (s *BatchGetAssetPropertyAggregatesInput) SetEntries(v []*BatchGetAssetPropertyAggregatesEntry) *BatchGetAssetPropertyAggregatesInput { + s.Entries = v return s } -// Contains a summary of an asset model. -type AssetModelSummary struct { - _ struct{} `type:"structure"` - - // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // of the asset model, which has the following format. - // - // arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId} - // - // Arn is a required field - Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` +// SetMaxResults sets the MaxResults field's value. +func (s *BatchGetAssetPropertyAggregatesInput) SetMaxResults(v int64) *BatchGetAssetPropertyAggregatesInput { + s.MaxResults = &v + return s +} - // The date the asset model was created, in Unix epoch time. - // - // CreationDate is a required field - CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` +// SetNextToken sets the NextToken field's value. +func (s *BatchGetAssetPropertyAggregatesInput) SetNextToken(v string) *BatchGetAssetPropertyAggregatesInput { + s.NextToken = &v + return s +} - // The asset model description. - // - // Description is a required field - Description *string `locationName:"description" min:"1" type:"string" required:"true"` +type BatchGetAssetPropertyAggregatesOutput struct { + _ struct{} `type:"structure"` - // The ID of the asset model (used with IoT SiteWise APIs). + // A list of the errors (if any) associated with the batch request. Each error + // entry contains the entryId of the entry that failed. // - // Id is a required field - Id *string `locationName:"id" min:"36" type:"string" required:"true"` + // ErrorEntries is a required field + ErrorEntries []*BatchGetAssetPropertyAggregatesErrorEntry `locationName:"errorEntries" type:"list" required:"true"` - // The date the asset model was last updated, in Unix epoch time. - // - // LastUpdateDate is a required field - LastUpdateDate *time.Time `locationName:"lastUpdateDate" type:"timestamp" required:"true"` + // The token for the next set of results, or null if there are no additional + // results. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // The name of the asset model. + // A list of entries that were not processed by this batch request. because + // these entries had been completely processed by previous paginated requests. + // Each skipped entry contains the entryId of the entry that skipped. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // SkippedEntries is a required field + SkippedEntries []*BatchGetAssetPropertyAggregatesSkippedEntry `locationName:"skippedEntries" type:"list" required:"true"` - // The current status of the asset model. + // A list of entries that were processed successfully by this batch request. + // Each success entry contains the entryId of the entry that succeeded and the + // latest query result. // - // Status is a required field - Status *AssetModelStatus `locationName:"status" type:"structure" required:"true"` + // SuccessEntries is a required field + SuccessEntries []*BatchGetAssetPropertyAggregatesSuccessEntry `locationName:"successEntries" type:"list" required:"true"` } // String returns the string representation. @@ -8719,7 +10663,7 @@ type AssetModelSummary 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 AssetModelSummary) String() string { +func (s BatchGetAssetPropertyAggregatesOutput) String() string { return awsutil.Prettify(s) } @@ -8728,87 +10672,54 @@ func (s AssetModelSummary) 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 AssetModelSummary) GoString() string { +func (s BatchGetAssetPropertyAggregatesOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *AssetModelSummary) SetArn(v string) *AssetModelSummary { - s.Arn = &v - return s -} - -// SetCreationDate sets the CreationDate field's value. -func (s *AssetModelSummary) SetCreationDate(v time.Time) *AssetModelSummary { - s.CreationDate = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *AssetModelSummary) SetDescription(v string) *AssetModelSummary { - s.Description = &v - return s -} - -// SetId sets the Id field's value. -func (s *AssetModelSummary) SetId(v string) *AssetModelSummary { - s.Id = &v +// SetErrorEntries sets the ErrorEntries field's value. +func (s *BatchGetAssetPropertyAggregatesOutput) SetErrorEntries(v []*BatchGetAssetPropertyAggregatesErrorEntry) *BatchGetAssetPropertyAggregatesOutput { + s.ErrorEntries = v return s } -// SetLastUpdateDate sets the LastUpdateDate field's value. -func (s *AssetModelSummary) SetLastUpdateDate(v time.Time) *AssetModelSummary { - s.LastUpdateDate = &v +// SetNextToken sets the NextToken field's value. +func (s *BatchGetAssetPropertyAggregatesOutput) SetNextToken(v string) *BatchGetAssetPropertyAggregatesOutput { + s.NextToken = &v return s } -// SetName sets the Name field's value. -func (s *AssetModelSummary) SetName(v string) *AssetModelSummary { - s.Name = &v +// SetSkippedEntries sets the SkippedEntries field's value. +func (s *BatchGetAssetPropertyAggregatesOutput) SetSkippedEntries(v []*BatchGetAssetPropertyAggregatesSkippedEntry) *BatchGetAssetPropertyAggregatesOutput { + s.SkippedEntries = v return s } -// SetStatus sets the Status field's value. -func (s *AssetModelSummary) SetStatus(v *AssetModelStatus) *AssetModelSummary { - s.Status = v +// SetSuccessEntries sets the SuccessEntries field's value. +func (s *BatchGetAssetPropertyAggregatesOutput) SetSuccessEntries(v []*BatchGetAssetPropertyAggregatesSuccessEntry) *BatchGetAssetPropertyAggregatesOutput { + s.SuccessEntries = v return s } -// Contains asset property information. -type AssetProperty struct { +// Contains information for an entry that has been processed by the previous +// BatchGetAssetPropertyAggregates (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyAggregates.html) +// request. +type BatchGetAssetPropertyAggregatesSkippedEntry struct { _ struct{} `type:"structure"` - // The alias that identifies the property, such as an OPC-UA server data stream - // path (for example, /company/windfarm/3/turbine/7/temperature). For more information, - // see Mapping industrial data streams to asset properties (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html) - // in the IoT SiteWise User Guide. - Alias *string `locationName:"alias" min:"1" type:"string"` - - // The data type of the asset property. - // - // DataType is a required field - DataType *string `locationName:"dataType" type:"string" required:"true" enum:"PropertyDataType"` - - // The data type of the structure for this property. This parameter exists on - // properties that have the STRUCT data type. - DataTypeSpec *string `locationName:"dataTypeSpec" min:"1" type:"string"` - - // The ID of the asset property. + // The completion status of each entry that is associated with the BatchGetAssetPropertyAggregates + // (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyAggregates.html) + // API. // - // Id is a required field - Id *string `locationName:"id" min:"36" type:"string" required:"true"` + // CompletionStatus is a required field + CompletionStatus *string `locationName:"completionStatus" type:"string" required:"true" enum:"BatchEntryCompletionStatus"` - // The name of the property. + // The ID of the entry. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // The asset property's notification topic and state. For more information, - // see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). - Notification *PropertyNotification `locationName:"notification" type:"structure"` + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` - // The unit (such as Newtons or RPM) of the asset property. - Unit *string `locationName:"unit" min:"1" type:"string"` + // The error information, such as the error code and the timestamp. + ErrorInfo *BatchGetAssetPropertyAggregatesErrorInfo `locationName:"errorInfo" type:"structure"` } // String returns the string representation. @@ -8816,7 +10727,7 @@ type AssetProperty 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 AssetProperty) String() string { +func (s BatchGetAssetPropertyAggregatesSkippedEntry) String() string { return awsutil.Prettify(s) } @@ -8825,68 +10736,105 @@ func (s AssetProperty) 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 AssetProperty) GoString() string { +func (s BatchGetAssetPropertyAggregatesSkippedEntry) GoString() string { return s.String() } -// SetAlias sets the Alias field's value. -func (s *AssetProperty) SetAlias(v string) *AssetProperty { - s.Alias = &v +// SetCompletionStatus sets the CompletionStatus field's value. +func (s *BatchGetAssetPropertyAggregatesSkippedEntry) SetCompletionStatus(v string) *BatchGetAssetPropertyAggregatesSkippedEntry { + s.CompletionStatus = &v return s } -// SetDataType sets the DataType field's value. -func (s *AssetProperty) SetDataType(v string) *AssetProperty { - s.DataType = &v +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyAggregatesSkippedEntry) SetEntryId(v string) *BatchGetAssetPropertyAggregatesSkippedEntry { + s.EntryId = &v return s } -// SetDataTypeSpec sets the DataTypeSpec field's value. -func (s *AssetProperty) SetDataTypeSpec(v string) *AssetProperty { - s.DataTypeSpec = &v +// SetErrorInfo sets the ErrorInfo field's value. +func (s *BatchGetAssetPropertyAggregatesSkippedEntry) SetErrorInfo(v *BatchGetAssetPropertyAggregatesErrorInfo) *BatchGetAssetPropertyAggregatesSkippedEntry { + s.ErrorInfo = v return s } -// SetId sets the Id field's value. -func (s *AssetProperty) SetId(v string) *AssetProperty { - s.Id = &v - return s +// Contains success information for an entry that is associated with the BatchGetAssetPropertyAggregates +// (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyAggregates.html) +// API. +type BatchGetAssetPropertyAggregatesSuccessEntry struct { + _ struct{} `type:"structure"` + + // The requested aggregated asset property values (for example, average, minimum, + // and maximum). + // + // AggregatedValues is a required field + AggregatedValues []*AggregatedValue `locationName:"aggregatedValues" type:"list" required:"true"` + + // The ID of the entry. + // + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` } -// SetName sets the Name field's value. -func (s *AssetProperty) SetName(v string) *AssetProperty { - s.Name = &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 BatchGetAssetPropertyAggregatesSuccessEntry) String() string { + return awsutil.Prettify(s) } -// SetNotification sets the Notification field's value. -func (s *AssetProperty) SetNotification(v *PropertyNotification) *AssetProperty { - s.Notification = v +// 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 BatchGetAssetPropertyAggregatesSuccessEntry) GoString() string { + return s.String() +} + +// SetAggregatedValues sets the AggregatedValues field's value. +func (s *BatchGetAssetPropertyAggregatesSuccessEntry) SetAggregatedValues(v []*AggregatedValue) *BatchGetAssetPropertyAggregatesSuccessEntry { + s.AggregatedValues = v return s } -// SetUnit sets the Unit field's value. -func (s *AssetProperty) SetUnit(v string) *AssetProperty { - s.Unit = &v +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyAggregatesSuccessEntry) SetEntryId(v string) *BatchGetAssetPropertyAggregatesSuccessEntry { + s.EntryId = &v return s } -// Contains asset property value information. -type AssetPropertyValue struct { +// Contains information for an asset property value entry that is associated +// with the BatchGetAssetPropertyValue (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValue.html) +// API. +// +// To identify an asset property, you must specify one of the following: +// +// * The assetId and propertyId of an asset property. +// +// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). +// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). +type BatchGetAssetPropertyValueEntry struct { _ struct{} `type:"structure"` - // The quality of the asset property value. - Quality *string `locationName:"quality" type:"string" enum:"Quality"` + // The ID of the asset in which the asset property was created. + AssetId *string `locationName:"assetId" min:"36" type:"string"` - // The timestamp of the asset property value. + // The ID of the entry. // - // Timestamp is a required field - Timestamp *TimeInNanos `locationName:"timestamp" type:"structure" required:"true"` + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` - // The value of the asset property (see Variant). - // - // Value is a required field - Value *Variant `locationName:"value" type:"structure" required:"true"` + // The alias that identifies the property, such as an OPC-UA server data stream + // path (for example, /company/windfarm/3/turbine/7/temperature). For more information, + // see Mapping industrial data streams to asset properties (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html) + // in the IoT SiteWise User Guide. + PropertyAlias *string `locationName:"propertyAlias" min:"1" type:"string"` + + // The ID of the asset property. + PropertyId *string `locationName:"propertyId" min:"36" type:"string"` } // String returns the string representation. @@ -8894,7 +10842,7 @@ type AssetPropertyValue 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 AssetPropertyValue) String() string { +func (s BatchGetAssetPropertyValueEntry) String() string { return awsutil.Prettify(s) } @@ -8903,23 +10851,27 @@ func (s AssetPropertyValue) 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 AssetPropertyValue) GoString() string { +func (s BatchGetAssetPropertyValueEntry) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssetPropertyValue) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssetPropertyValue"} - if s.Timestamp == nil { - invalidParams.Add(request.NewErrParamRequired("Timestamp")) +func (s *BatchGetAssetPropertyValueEntry) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetAssetPropertyValueEntry"} + if s.AssetId != nil && len(*s.AssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) + if s.EntryId == nil { + invalidParams.Add(request.NewErrParamRequired("EntryId")) } - if s.Timestamp != nil { - if err := s.Timestamp.Validate(); err != nil { - invalidParams.AddNested("Timestamp", err.(request.ErrInvalidParams)) - } + if s.EntryId != nil && len(*s.EntryId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EntryId", 1)) + } + if s.PropertyAlias != nil && len(*s.PropertyAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PropertyAlias", 1)) + } + if s.PropertyId != nil && len(*s.PropertyId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("PropertyId", 36)) } if invalidParams.Len() > 0 { @@ -8928,42 +10880,50 @@ func (s *AssetPropertyValue) Validate() error { return nil } -// SetQuality sets the Quality field's value. -func (s *AssetPropertyValue) SetQuality(v string) *AssetPropertyValue { - s.Quality = &v +// SetAssetId sets the AssetId field's value. +func (s *BatchGetAssetPropertyValueEntry) SetAssetId(v string) *BatchGetAssetPropertyValueEntry { + s.AssetId = &v return s } -// SetTimestamp sets the Timestamp field's value. -func (s *AssetPropertyValue) SetTimestamp(v *TimeInNanos) *AssetPropertyValue { - s.Timestamp = v +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyValueEntry) SetEntryId(v string) *BatchGetAssetPropertyValueEntry { + s.EntryId = &v return s } -// SetValue sets the Value field's value. -func (s *AssetPropertyValue) SetValue(v *Variant) *AssetPropertyValue { - s.Value = v +// SetPropertyAlias sets the PropertyAlias field's value. +func (s *BatchGetAssetPropertyValueEntry) SetPropertyAlias(v string) *BatchGetAssetPropertyValueEntry { + s.PropertyAlias = &v return s } -// Contains information about assets that are related to one another. -type AssetRelationshipSummary struct { +// SetPropertyId sets the PropertyId field's value. +func (s *BatchGetAssetPropertyValueEntry) SetPropertyId(v string) *BatchGetAssetPropertyValueEntry { + s.PropertyId = &v + return s +} + +// Contains error information for an asset property value entry that is associated +// with the BatchGetAssetPropertyValue (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValue.html) +// API. +type BatchGetAssetPropertyValueErrorEntry struct { _ struct{} `type:"structure"` - // The assets that are related through an asset hierarchy. + // The ID of the entry. // - // This object is present if the relationshipType is HIERARCHY. - HierarchyInfo *AssetHierarchyInfo `locationName:"hierarchyInfo" type:"structure"` + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` - // The relationship type of the assets in this relationship. This value is one - // of the following: + // The error code. // - // * HIERARCHY – The assets are related through an asset hierarchy. If - // you specify this relationship type, this asset relationship includes the - // hierarchyInfo object. + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"BatchGetAssetPropertyValueErrorCode"` + + // The associated error message. // - // RelationshipType is a required field - RelationshipType *string `locationName:"relationshipType" type:"string" required:"true" enum:"AssetRelationshipType"` + // ErrorMessage is a required field + ErrorMessage *string `locationName:"errorMessage" type:"string" required:"true"` } // String returns the string representation. @@ -8971,7 +10931,7 @@ type AssetRelationshipSummary 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 AssetRelationshipSummary) String() string { +func (s BatchGetAssetPropertyValueErrorEntry) String() string { return awsutil.Prettify(s) } @@ -8980,35 +10940,41 @@ func (s AssetRelationshipSummary) 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 AssetRelationshipSummary) GoString() string { +func (s BatchGetAssetPropertyValueErrorEntry) GoString() string { return s.String() } -// SetHierarchyInfo sets the HierarchyInfo field's value. -func (s *AssetRelationshipSummary) SetHierarchyInfo(v *AssetHierarchyInfo) *AssetRelationshipSummary { - s.HierarchyInfo = v +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyValueErrorEntry) SetEntryId(v string) *BatchGetAssetPropertyValueErrorEntry { + s.EntryId = &v return s } -// SetRelationshipType sets the RelationshipType field's value. -func (s *AssetRelationshipSummary) SetRelationshipType(v string) *AssetRelationshipSummary { - s.RelationshipType = &v +// SetErrorCode sets the ErrorCode field's value. +func (s *BatchGetAssetPropertyValueErrorEntry) SetErrorCode(v string) *BatchGetAssetPropertyValueErrorEntry { + s.ErrorCode = &v return s } -// Contains information about the current status of an asset. For more information, -// see Asset and model states (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-and-model-states.html) -// in the IoT SiteWise User Guide. -type AssetStatus struct { +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BatchGetAssetPropertyValueErrorEntry) SetErrorMessage(v string) *BatchGetAssetPropertyValueErrorEntry { + s.ErrorMessage = &v + return s +} + +// The error information, such as the error code and the timestamp. +type BatchGetAssetPropertyValueErrorInfo struct { _ struct{} `type:"structure"` - // Contains associated error information, if any. - Error *ErrorDetails `locationName:"error" type:"structure"` + // The error code. + // + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"BatchGetAssetPropertyValueErrorCode"` - // The current status of the asset. + // The date the error occurred, in Unix epoch time. // - // State is a required field - State *string `locationName:"state" type:"string" required:"true" enum:"AssetState"` + // ErrorTimestamp is a required field + ErrorTimestamp *time.Time `locationName:"errorTimestamp" type:"timestamp" required:"true"` } // String returns the string representation. @@ -9016,7 +10982,7 @@ type AssetStatus 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 AssetStatus) String() string { +func (s BatchGetAssetPropertyValueErrorInfo) String() string { return awsutil.Prettify(s) } @@ -9025,69 +10991,67 @@ func (s AssetStatus) 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 AssetStatus) GoString() string { +func (s BatchGetAssetPropertyValueErrorInfo) GoString() string { return s.String() } -// SetError sets the Error field's value. -func (s *AssetStatus) SetError(v *ErrorDetails) *AssetStatus { - s.Error = v +// SetErrorCode sets the ErrorCode field's value. +func (s *BatchGetAssetPropertyValueErrorInfo) SetErrorCode(v string) *BatchGetAssetPropertyValueErrorInfo { + s.ErrorCode = &v return s } -// SetState sets the State field's value. -func (s *AssetStatus) SetState(v string) *AssetStatus { - s.State = &v +// SetErrorTimestamp sets the ErrorTimestamp field's value. +func (s *BatchGetAssetPropertyValueErrorInfo) SetErrorTimestamp(v time.Time) *BatchGetAssetPropertyValueErrorInfo { + s.ErrorTimestamp = &v return s } -// Contains a summary of an asset. -type AssetSummary struct { +// Contains information for an asset property historical value entry that is +// associated with the BatchGetAssetPropertyValueHistory (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValue.html) +// API. +// +// To identify an asset property, you must specify one of the following: +// +// * The assetId and propertyId of an asset property. +// +// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). +// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). +type BatchGetAssetPropertyValueHistoryEntry struct { _ struct{} `type:"structure"` - // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // of the asset, which has the following format. - // - // arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} - // - // Arn is a required field - Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + // The ID of the asset in which the asset property was created. + AssetId *string `locationName:"assetId" min:"36" type:"string"` - // The ID of the asset model used to create this asset. - // - // AssetModelId is a required field - AssetModelId *string `locationName:"assetModelId" min:"36" type:"string" required:"true"` + // The inclusive end of the range from which to query historical data, expressed + // in seconds in Unix epoch time. + EndDate *time.Time `locationName:"endDate" type:"timestamp"` - // The date the asset was created, in Unix epoch time. + // The ID of the entry. // - // CreationDate is a required field - CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` - // A list of asset hierarchies that each contain a hierarchyId. A hierarchy - // specifies allowed parent/child asset relationships. - // - // Hierarchies is a required field - Hierarchies []*AssetHierarchy `locationName:"hierarchies" type:"list" required:"true"` + // The alias that identifies the property, such as an OPC-UA server data stream + // path (for example, /company/windfarm/3/turbine/7/temperature). For more information, + // see Mapping industrial data streams to asset properties (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html) + // in the IoT SiteWise User Guide. + PropertyAlias *string `locationName:"propertyAlias" min:"1" type:"string"` - // The ID of the asset. - // - // Id is a required field - Id *string `locationName:"id" min:"36" type:"string" required:"true"` + // The ID of the asset property. + PropertyId *string `locationName:"propertyId" min:"36" type:"string"` - // The date the asset was last updated, in Unix epoch time. - // - // LastUpdateDate is a required field - LastUpdateDate *time.Time `locationName:"lastUpdateDate" type:"timestamp" required:"true"` + // The quality by which to filter asset data. + Qualities []*string `locationName:"qualities" min:"1" type:"list" enum:"Quality"` - // The name of the asset. - // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // The exclusive start of the range from which to query historical data, expressed + // in seconds in Unix epoch time. + StartDate *time.Time `locationName:"startDate" type:"timestamp"` - // The current status of the asset. + // The chronological sorting order of the requested information. // - // Status is a required field - Status *AssetStatus `locationName:"status" type:"structure" required:"true"` + // Default: ASCENDING + TimeOrdering *string `locationName:"timeOrdering" type:"string" enum:"TimeOrdering"` } // String returns the string representation. @@ -9095,7 +11059,7 @@ type AssetSummary 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 AssetSummary) String() string { +func (s BatchGetAssetPropertyValueHistoryEntry) String() string { return awsutil.Prettify(s) } @@ -9104,83 +11068,105 @@ func (s AssetSummary) 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 AssetSummary) GoString() string { +func (s BatchGetAssetPropertyValueHistoryEntry) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *AssetSummary) SetArn(v string) *AssetSummary { - s.Arn = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetAssetPropertyValueHistoryEntry) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetAssetPropertyValueHistoryEntry"} + if s.AssetId != nil && len(*s.AssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) + } + if s.EntryId == nil { + invalidParams.Add(request.NewErrParamRequired("EntryId")) + } + if s.EntryId != nil && len(*s.EntryId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EntryId", 1)) + } + if s.PropertyAlias != nil && len(*s.PropertyAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PropertyAlias", 1)) + } + if s.PropertyId != nil && len(*s.PropertyId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("PropertyId", 36)) + } + if s.Qualities != nil && len(s.Qualities) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Qualities", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssetId sets the AssetId field's value. +func (s *BatchGetAssetPropertyValueHistoryEntry) SetAssetId(v string) *BatchGetAssetPropertyValueHistoryEntry { + s.AssetId = &v return s } -// SetAssetModelId sets the AssetModelId field's value. -func (s *AssetSummary) SetAssetModelId(v string) *AssetSummary { - s.AssetModelId = &v +// SetEndDate sets the EndDate field's value. +func (s *BatchGetAssetPropertyValueHistoryEntry) SetEndDate(v time.Time) *BatchGetAssetPropertyValueHistoryEntry { + s.EndDate = &v return s } -// SetCreationDate sets the CreationDate field's value. -func (s *AssetSummary) SetCreationDate(v time.Time) *AssetSummary { - s.CreationDate = &v +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyValueHistoryEntry) SetEntryId(v string) *BatchGetAssetPropertyValueHistoryEntry { + s.EntryId = &v return s } -// SetHierarchies sets the Hierarchies field's value. -func (s *AssetSummary) SetHierarchies(v []*AssetHierarchy) *AssetSummary { - s.Hierarchies = v +// SetPropertyAlias sets the PropertyAlias field's value. +func (s *BatchGetAssetPropertyValueHistoryEntry) SetPropertyAlias(v string) *BatchGetAssetPropertyValueHistoryEntry { + s.PropertyAlias = &v return s } -// SetId sets the Id field's value. -func (s *AssetSummary) SetId(v string) *AssetSummary { - s.Id = &v +// SetPropertyId sets the PropertyId field's value. +func (s *BatchGetAssetPropertyValueHistoryEntry) SetPropertyId(v string) *BatchGetAssetPropertyValueHistoryEntry { + s.PropertyId = &v return s } -// SetLastUpdateDate sets the LastUpdateDate field's value. -func (s *AssetSummary) SetLastUpdateDate(v time.Time) *AssetSummary { - s.LastUpdateDate = &v +// SetQualities sets the Qualities field's value. +func (s *BatchGetAssetPropertyValueHistoryEntry) SetQualities(v []*string) *BatchGetAssetPropertyValueHistoryEntry { + s.Qualities = v return s } -// SetName sets the Name field's value. -func (s *AssetSummary) SetName(v string) *AssetSummary { - s.Name = &v +// SetStartDate sets the StartDate field's value. +func (s *BatchGetAssetPropertyValueHistoryEntry) SetStartDate(v time.Time) *BatchGetAssetPropertyValueHistoryEntry { + s.StartDate = &v return s } -// SetStatus sets the Status field's value. -func (s *AssetSummary) SetStatus(v *AssetStatus) *AssetSummary { - s.Status = v +// SetTimeOrdering sets the TimeOrdering field's value. +func (s *BatchGetAssetPropertyValueHistoryEntry) SetTimeOrdering(v string) *BatchGetAssetPropertyValueHistoryEntry { + s.TimeOrdering = &v return s } -type AssociateAssetsInput struct { +// A list of the errors (if any) associated with the batch request. Each error +// entry contains the entryId of the entry that failed. +type BatchGetAssetPropertyValueHistoryErrorEntry struct { _ struct{} `type:"structure"` - // The ID of the parent asset. + // The ID of the entry. // - // AssetId is a required field - AssetId *string `location:"uri" locationName:"assetId" min:"36" type:"string" required:"true"` + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` - // The ID of the child asset to be associated. + // The error code. // - // ChildAssetId is a required field - ChildAssetId *string `locationName:"childAssetId" min:"36" type:"string" required:"true"` - - // A unique case-sensitive identifier that you can provide to ensure the idempotency - // of the request. Don't reuse this client token if a new idempotent request - // is required. - ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"` + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"BatchGetAssetPropertyValueHistoryErrorCode"` - // The ID of a hierarchy in the parent asset's model. Hierarchies allow different - // groupings of assets to be formed that all come from the same asset model. - // For more information, see Asset hierarchies (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html) - // in the IoT SiteWise User Guide. + // The associated error message. // - // HierarchyId is a required field - HierarchyId *string `locationName:"hierarchyId" min:"36" type:"string" required:"true"` + // ErrorMessage is a required field + ErrorMessage *string `locationName:"errorMessage" type:"string" required:"true"` } // String returns the string representation. @@ -9188,7 +11174,7 @@ type AssociateAssetsInput 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 AssociateAssetsInput) String() string { +func (s BatchGetAssetPropertyValueHistoryErrorEntry) String() string { return awsutil.Prettify(s) } @@ -9197,67 +11183,41 @@ func (s AssociateAssetsInput) 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 AssociateAssetsInput) GoString() string { +func (s BatchGetAssetPropertyValueHistoryErrorEntry) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateAssetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateAssetsInput"} - if s.AssetId == nil { - invalidParams.Add(request.NewErrParamRequired("AssetId")) - } - if s.AssetId != nil && len(*s.AssetId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) - } - if s.ChildAssetId == nil { - invalidParams.Add(request.NewErrParamRequired("ChildAssetId")) - } - if s.ChildAssetId != nil && len(*s.ChildAssetId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("ChildAssetId", 36)) - } - if s.ClientToken != nil && len(*s.ClientToken) < 36 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) - } - if s.HierarchyId == nil { - invalidParams.Add(request.NewErrParamRequired("HierarchyId")) - } - if s.HierarchyId != nil && len(*s.HierarchyId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("HierarchyId", 36)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAssetId sets the AssetId field's value. -func (s *AssociateAssetsInput) SetAssetId(v string) *AssociateAssetsInput { - s.AssetId = &v - return s -} - -// SetChildAssetId sets the ChildAssetId field's value. -func (s *AssociateAssetsInput) SetChildAssetId(v string) *AssociateAssetsInput { - s.ChildAssetId = &v +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyValueHistoryErrorEntry) SetEntryId(v string) *BatchGetAssetPropertyValueHistoryErrorEntry { + s.EntryId = &v return s } -// SetClientToken sets the ClientToken field's value. -func (s *AssociateAssetsInput) SetClientToken(v string) *AssociateAssetsInput { - s.ClientToken = &v +// SetErrorCode sets the ErrorCode field's value. +func (s *BatchGetAssetPropertyValueHistoryErrorEntry) SetErrorCode(v string) *BatchGetAssetPropertyValueHistoryErrorEntry { + s.ErrorCode = &v return s } -// SetHierarchyId sets the HierarchyId field's value. -func (s *AssociateAssetsInput) SetHierarchyId(v string) *AssociateAssetsInput { - s.HierarchyId = &v +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BatchGetAssetPropertyValueHistoryErrorEntry) SetErrorMessage(v string) *BatchGetAssetPropertyValueHistoryErrorEntry { + s.ErrorMessage = &v return s } -type AssociateAssetsOutput struct { +// The error information, such as the error code and the timestamp. +type BatchGetAssetPropertyValueHistoryErrorInfo struct { _ struct{} `type:"structure"` + + // The error code. + // + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"BatchGetAssetPropertyValueHistoryErrorCode"` + + // The date the error occurred, in Unix epoch time. + // + // ErrorTimestamp is a required field + ErrorTimestamp *time.Time `locationName:"errorTimestamp" type:"timestamp" required:"true"` } // String returns the string representation. @@ -9265,7 +11225,7 @@ type AssociateAssetsOutput 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 AssociateAssetsOutput) String() string { +func (s BatchGetAssetPropertyValueHistoryErrorInfo) String() string { return awsutil.Prettify(s) } @@ -9274,32 +11234,42 @@ func (s AssociateAssetsOutput) 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 AssociateAssetsOutput) GoString() string { +func (s BatchGetAssetPropertyValueHistoryErrorInfo) GoString() string { return s.String() } -type AssociateTimeSeriesToAssetPropertyInput struct { +// SetErrorCode sets the ErrorCode field's value. +func (s *BatchGetAssetPropertyValueHistoryErrorInfo) SetErrorCode(v string) *BatchGetAssetPropertyValueHistoryErrorInfo { + s.ErrorCode = &v + return s +} + +// SetErrorTimestamp sets the ErrorTimestamp field's value. +func (s *BatchGetAssetPropertyValueHistoryErrorInfo) SetErrorTimestamp(v time.Time) *BatchGetAssetPropertyValueHistoryErrorInfo { + s.ErrorTimestamp = &v + return s +} + +type BatchGetAssetPropertyValueHistoryInput struct { _ struct{} `type:"structure"` - // The alias that identifies the time series. + // The list of asset property historical value entries for the batch get request. + // You can specify up to 16 entries per request. // - // Alias is a required field - Alias *string `location:"querystring" locationName:"alias" min:"1" type:"string" required:"true"` + // Entries is a required field + Entries []*BatchGetAssetPropertyValueHistoryEntry `locationName:"entries" type:"list" required:"true"` - // The ID of the asset in which the asset property was created. + // The maximum number of results to return for each paginated request. A result + // set is returned in the two cases, whichever occurs first. // - // AssetId is a required field - AssetId *string `location:"querystring" locationName:"assetId" min:"36" type:"string" required:"true"` - - // A unique case-sensitive identifier that you can provide to ensure the idempotency - // of the request. Don't reuse this client token if a new idempotent request - // is required. - ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"` - - // The ID of the asset property. + // * The size of the result set is less than 1 MB. // - // PropertyId is a required field - PropertyId *string `location:"querystring" locationName:"propertyId" min:"36" type:"string" required:"true"` + // * The number of data points in the result set is less than the value of + // maxResults. The maximum value of maxResults is 4000. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token to be used for the next set of paginated results. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. @@ -9307,7 +11277,7 @@ type AssociateTimeSeriesToAssetPropertyInput 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 AssociateTimeSeriesToAssetPropertyInput) String() string { +func (s BatchGetAssetPropertyValueHistoryInput) String() string { return awsutil.Prettify(s) } @@ -9316,33 +11286,31 @@ func (s AssociateTimeSeriesToAssetPropertyInput) 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 AssociateTimeSeriesToAssetPropertyInput) GoString() string { +func (s BatchGetAssetPropertyValueHistoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateTimeSeriesToAssetPropertyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateTimeSeriesToAssetPropertyInput"} - if s.Alias == nil { - invalidParams.Add(request.NewErrParamRequired("Alias")) - } - if s.Alias != nil && len(*s.Alias) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Alias", 1)) - } - if s.AssetId == nil { - invalidParams.Add(request.NewErrParamRequired("AssetId")) - } - if s.AssetId != nil && len(*s.AssetId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) +func (s *BatchGetAssetPropertyValueHistoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetAssetPropertyValueHistoryInput"} + if s.Entries == nil { + invalidParams.Add(request.NewErrParamRequired("Entries")) } - if s.ClientToken != nil && len(*s.ClientToken) < 36 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.PropertyId == nil { - invalidParams.Add(request.NewErrParamRequired("PropertyId")) + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } - if s.PropertyId != nil && len(*s.PropertyId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("PropertyId", 36)) + if s.Entries != nil { + for i, v := range s.Entries { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -9351,99 +11319,50 @@ func (s *AssociateTimeSeriesToAssetPropertyInput) Validate() error { return nil } -// SetAlias sets the Alias field's value. -func (s *AssociateTimeSeriesToAssetPropertyInput) SetAlias(v string) *AssociateTimeSeriesToAssetPropertyInput { - s.Alias = &v - return s -} - -// SetAssetId sets the AssetId field's value. -func (s *AssociateTimeSeriesToAssetPropertyInput) SetAssetId(v string) *AssociateTimeSeriesToAssetPropertyInput { - s.AssetId = &v +// SetEntries sets the Entries field's value. +func (s *BatchGetAssetPropertyValueHistoryInput) SetEntries(v []*BatchGetAssetPropertyValueHistoryEntry) *BatchGetAssetPropertyValueHistoryInput { + s.Entries = v return s } -// SetClientToken sets the ClientToken field's value. -func (s *AssociateTimeSeriesToAssetPropertyInput) SetClientToken(v string) *AssociateTimeSeriesToAssetPropertyInput { - s.ClientToken = &v +// SetMaxResults sets the MaxResults field's value. +func (s *BatchGetAssetPropertyValueHistoryInput) SetMaxResults(v int64) *BatchGetAssetPropertyValueHistoryInput { + s.MaxResults = &v return s } -// SetPropertyId sets the PropertyId field's value. -func (s *AssociateTimeSeriesToAssetPropertyInput) SetPropertyId(v string) *AssociateTimeSeriesToAssetPropertyInput { - s.PropertyId = &v +// SetNextToken sets the NextToken field's value. +func (s *BatchGetAssetPropertyValueHistoryInput) SetNextToken(v string) *BatchGetAssetPropertyValueHistoryInput { + s.NextToken = &v return s } -type AssociateTimeSeriesToAssetPropertyOutput 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 AssociateTimeSeriesToAssetPropertyOutput) 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 AssociateTimeSeriesToAssetPropertyOutput) GoString() string { - return s.String() -} - -// Contains a summary of an associated asset. -type AssociatedAssetsSummary struct { +type BatchGetAssetPropertyValueHistoryOutput struct { _ struct{} `type:"structure"` - // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // of the asset, which has the following format. - // - // arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} - // - // Arn is a required field - Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` - - // The ID of the asset model used to create the asset. - // - // AssetModelId is a required field - AssetModelId *string `locationName:"assetModelId" min:"36" type:"string" required:"true"` - - // The date the asset was created, in Unix epoch time. - // - // CreationDate is a required field - CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` - - // A list of asset hierarchies that each contain a hierarchyId. A hierarchy - // specifies allowed parent/child asset relationships. - // - // Hierarchies is a required field - Hierarchies []*AssetHierarchy `locationName:"hierarchies" type:"list" required:"true"` - - // The ID of the asset. + // A list of the errors (if any) associated with the batch request. Each error + // entry contains the entryId of the entry that failed. // - // Id is a required field - Id *string `locationName:"id" min:"36" type:"string" required:"true"` + // ErrorEntries is a required field + ErrorEntries []*BatchGetAssetPropertyValueHistoryErrorEntry `locationName:"errorEntries" type:"list" required:"true"` - // The date the asset was last updated, in Unix epoch time. - // - // LastUpdateDate is a required field - LastUpdateDate *time.Time `locationName:"lastUpdateDate" type:"timestamp" required:"true"` + // The token for the next set of results, or null if there are no additional + // results. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // The name of the asset. + // A list of entries that were not processed by this batch request. because + // these entries had been completely processed by previous paginated requests. + // Each skipped entry contains the entryId of the entry that skipped. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // SkippedEntries is a required field + SkippedEntries []*BatchGetAssetPropertyValueHistorySkippedEntry `locationName:"skippedEntries" type:"list" required:"true"` - // The current status of the asset. + // A list of entries that were processed successfully by this batch request. + // Each success entry contains the entryId of the entry that succeeded and the + // latest query result. // - // Status is a required field - Status *AssetStatus `locationName:"status" type:"structure" required:"true"` + // SuccessEntries is a required field + SuccessEntries []*BatchGetAssetPropertyValueHistorySuccessEntry `locationName:"successEntries" type:"list" required:"true"` } // String returns the string representation. @@ -9451,7 +11370,7 @@ type AssociatedAssetsSummary 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 AssociatedAssetsSummary) String() string { +func (s BatchGetAssetPropertyValueHistoryOutput) String() string { return awsutil.Prettify(s) } @@ -9460,70 +11379,107 @@ func (s AssociatedAssetsSummary) 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 AssociatedAssetsSummary) GoString() string { +func (s BatchGetAssetPropertyValueHistoryOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *AssociatedAssetsSummary) SetArn(v string) *AssociatedAssetsSummary { - s.Arn = &v +// SetErrorEntries sets the ErrorEntries field's value. +func (s *BatchGetAssetPropertyValueHistoryOutput) SetErrorEntries(v []*BatchGetAssetPropertyValueHistoryErrorEntry) *BatchGetAssetPropertyValueHistoryOutput { + s.ErrorEntries = v return s } -// SetAssetModelId sets the AssetModelId field's value. -func (s *AssociatedAssetsSummary) SetAssetModelId(v string) *AssociatedAssetsSummary { - s.AssetModelId = &v +// SetNextToken sets the NextToken field's value. +func (s *BatchGetAssetPropertyValueHistoryOutput) SetNextToken(v string) *BatchGetAssetPropertyValueHistoryOutput { + s.NextToken = &v return s } -// SetCreationDate sets the CreationDate field's value. -func (s *AssociatedAssetsSummary) SetCreationDate(v time.Time) *AssociatedAssetsSummary { - s.CreationDate = &v +// SetSkippedEntries sets the SkippedEntries field's value. +func (s *BatchGetAssetPropertyValueHistoryOutput) SetSkippedEntries(v []*BatchGetAssetPropertyValueHistorySkippedEntry) *BatchGetAssetPropertyValueHistoryOutput { + s.SkippedEntries = v return s } -// SetHierarchies sets the Hierarchies field's value. -func (s *AssociatedAssetsSummary) SetHierarchies(v []*AssetHierarchy) *AssociatedAssetsSummary { - s.Hierarchies = v +// SetSuccessEntries sets the SuccessEntries field's value. +func (s *BatchGetAssetPropertyValueHistoryOutput) SetSuccessEntries(v []*BatchGetAssetPropertyValueHistorySuccessEntry) *BatchGetAssetPropertyValueHistoryOutput { + s.SuccessEntries = v return s } -// SetId sets the Id field's value. -func (s *AssociatedAssetsSummary) SetId(v string) *AssociatedAssetsSummary { - s.Id = &v - return s +// Contains information for an entry that has been processed by the previous +// BatchGetAssetPropertyValueHistory (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValue.html) +// request. +type BatchGetAssetPropertyValueHistorySkippedEntry struct { + _ struct{} `type:"structure"` + + // The completion status of each entry that is associated with the BatchGetAssetPropertyValueHistory + // (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValueHistory.html) + // API. + // + // CompletionStatus is a required field + CompletionStatus *string `locationName:"completionStatus" type:"string" required:"true" enum:"BatchEntryCompletionStatus"` + + // The ID of the entry. + // + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` + + // The error information, such as the error code and the timestamp. + ErrorInfo *BatchGetAssetPropertyValueHistoryErrorInfo `locationName:"errorInfo" 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 BatchGetAssetPropertyValueHistorySkippedEntry) String() string { + return awsutil.Prettify(s) } -// SetLastUpdateDate sets the LastUpdateDate field's value. -func (s *AssociatedAssetsSummary) SetLastUpdateDate(v time.Time) *AssociatedAssetsSummary { - s.LastUpdateDate = &v +// 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 BatchGetAssetPropertyValueHistorySkippedEntry) GoString() string { + return s.String() +} + +// SetCompletionStatus sets the CompletionStatus field's value. +func (s *BatchGetAssetPropertyValueHistorySkippedEntry) SetCompletionStatus(v string) *BatchGetAssetPropertyValueHistorySkippedEntry { + s.CompletionStatus = &v return s } -// SetName sets the Name field's value. -func (s *AssociatedAssetsSummary) SetName(v string) *AssociatedAssetsSummary { - s.Name = &v +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyValueHistorySkippedEntry) SetEntryId(v string) *BatchGetAssetPropertyValueHistorySkippedEntry { + s.EntryId = &v return s } -// SetStatus sets the Status field's value. -func (s *AssociatedAssetsSummary) SetStatus(v *AssetStatus) *AssociatedAssetsSummary { - s.Status = v +// SetErrorInfo sets the ErrorInfo field's value. +func (s *BatchGetAssetPropertyValueHistorySkippedEntry) SetErrorInfo(v *BatchGetAssetPropertyValueHistoryErrorInfo) *BatchGetAssetPropertyValueHistorySkippedEntry { + s.ErrorInfo = v return s } -// Contains an asset attribute property. For more information, see Attributes -// (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html#attributes) -// in the IoT SiteWise User Guide. -type Attribute struct { +// Contains success information for an entry that is associated with the BatchGetAssetPropertyValueHistory +// (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValue.html) +// API. +type BatchGetAssetPropertyValueHistorySuccessEntry struct { _ struct{} `type:"structure"` - // The default value of the asset model property attribute. All assets that - // you create from the asset model contain this attribute value. You can update - // an attribute's value after you create an asset. For more information, see - // Updating attribute values (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/update-attribute-values.html) - // in the IoT SiteWise User Guide. - DefaultValue *string `locationName:"defaultValue" min:"1" type:"string"` + // The requested historical values for the specified asset property. + // + // AssetPropertyValueHistory is a required field + AssetPropertyValueHistory []*AssetPropertyValue `locationName:"assetPropertyValueHistory" type:"list" required:"true"` + + // The ID of the entry. + // + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -9531,7 +11487,7 @@ type Attribute 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 Attribute) String() string { +func (s BatchGetAssetPropertyValueHistorySuccessEntry) String() string { return awsutil.Prettify(s) } @@ -9540,46 +11496,33 @@ func (s Attribute) 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 Attribute) GoString() string { +func (s BatchGetAssetPropertyValueHistorySuccessEntry) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Attribute) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Attribute"} - if s.DefaultValue != nil && len(*s.DefaultValue) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DefaultValue", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAssetPropertyValueHistory sets the AssetPropertyValueHistory field's value. +func (s *BatchGetAssetPropertyValueHistorySuccessEntry) SetAssetPropertyValueHistory(v []*AssetPropertyValue) *BatchGetAssetPropertyValueHistorySuccessEntry { + s.AssetPropertyValueHistory = v + return s } -// SetDefaultValue sets the DefaultValue field's value. -func (s *Attribute) SetDefaultValue(v string) *Attribute { - s.DefaultValue = &v +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyValueHistorySuccessEntry) SetEntryId(v string) *BatchGetAssetPropertyValueHistorySuccessEntry { + s.EntryId = &v return s } -type BatchAssociateProjectAssetsInput struct { +type BatchGetAssetPropertyValueInput struct { _ struct{} `type:"structure"` - // The IDs of the assets to be associated to the project. + // The list of asset property value entries for the batch get request. You can + // specify up to 16 entries per request. // - // AssetIds is a required field - AssetIds []*string `locationName:"assetIds" min:"1" type:"list" required:"true"` - - // A unique case-sensitive identifier that you can provide to ensure the idempotency - // of the request. Don't reuse this client token if a new idempotent request - // is required. - ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"` + // Entries is a required field + Entries []*BatchGetAssetPropertyValueEntry `locationName:"entries" type:"list" required:"true"` - // The ID of the project to which to associate the assets. - // - // ProjectId is a required field - ProjectId *string `location:"uri" locationName:"projectId" min:"36" type:"string" required:"true"` + // The token to be used for the next set of paginated results. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. @@ -9587,7 +11530,7 @@ type BatchAssociateProjectAssetsInput 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 BatchAssociateProjectAssetsInput) String() string { +func (s BatchGetAssetPropertyValueInput) String() string { return awsutil.Prettify(s) } @@ -9596,27 +11539,28 @@ func (s BatchAssociateProjectAssetsInput) 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 BatchAssociateProjectAssetsInput) GoString() string { +func (s BatchGetAssetPropertyValueInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchAssociateProjectAssetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchAssociateProjectAssetsInput"} - if s.AssetIds == nil { - invalidParams.Add(request.NewErrParamRequired("AssetIds")) - } - if s.AssetIds != nil && len(s.AssetIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssetIds", 1)) - } - if s.ClientToken != nil && len(*s.ClientToken) < 36 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) +func (s *BatchGetAssetPropertyValueInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetAssetPropertyValueInput"} + if s.Entries == nil { + invalidParams.Add(request.NewErrParamRequired("Entries")) } - if s.ProjectId == nil { - invalidParams.Add(request.NewErrParamRequired("ProjectId")) + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } - if s.ProjectId != nil && len(*s.ProjectId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("ProjectId", 36)) + if s.Entries != nil { + for i, v := range s.Entries { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -9625,29 +11569,44 @@ func (s *BatchAssociateProjectAssetsInput) Validate() error { return nil } -// SetAssetIds sets the AssetIds field's value. -func (s *BatchAssociateProjectAssetsInput) SetAssetIds(v []*string) *BatchAssociateProjectAssetsInput { - s.AssetIds = v - return s -} - -// SetClientToken sets the ClientToken field's value. -func (s *BatchAssociateProjectAssetsInput) SetClientToken(v string) *BatchAssociateProjectAssetsInput { - s.ClientToken = &v +// SetEntries sets the Entries field's value. +func (s *BatchGetAssetPropertyValueInput) SetEntries(v []*BatchGetAssetPropertyValueEntry) *BatchGetAssetPropertyValueInput { + s.Entries = v return s } -// SetProjectId sets the ProjectId field's value. -func (s *BatchAssociateProjectAssetsInput) SetProjectId(v string) *BatchAssociateProjectAssetsInput { - s.ProjectId = &v +// SetNextToken sets the NextToken field's value. +func (s *BatchGetAssetPropertyValueInput) SetNextToken(v string) *BatchGetAssetPropertyValueInput { + s.NextToken = &v return s } -type BatchAssociateProjectAssetsOutput struct { +type BatchGetAssetPropertyValueOutput struct { _ struct{} `type:"structure"` - // A list of associated error information, if any. - Errors []*AssetErrorDetails `locationName:"errors" type:"list"` + // A list of the errors (if any) associated with the batch request. Each error + // entry contains the entryId of the entry that failed. + // + // ErrorEntries is a required field + ErrorEntries []*BatchGetAssetPropertyValueErrorEntry `locationName:"errorEntries" type:"list" required:"true"` + + // The token for the next set of results, or null if there are no additional + // results. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // A list of entries that were not processed by this batch request. because + // these entries had been completely processed by previous paginated requests. + // Each skipped entry contains the entryId of the entry that skipped. + // + // SkippedEntries is a required field + SkippedEntries []*BatchGetAssetPropertyValueSkippedEntry `locationName:"skippedEntries" type:"list" required:"true"` + + // A list of entries that were processed successfully by this batch request. + // Each success entry contains the entryId of the entry that succeeded and the + // latest query result. + // + // SuccessEntries is a required field + SuccessEntries []*BatchGetAssetPropertyValueSuccessEntry `locationName:"successEntries" type:"list" required:"true"` } // String returns the string representation. @@ -9655,7 +11614,7 @@ type BatchAssociateProjectAssetsOutput 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 BatchAssociateProjectAssetsOutput) String() string { +func (s BatchGetAssetPropertyValueOutput) String() string { return awsutil.Prettify(s) } @@ -9664,33 +11623,54 @@ func (s BatchAssociateProjectAssetsOutput) 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 BatchAssociateProjectAssetsOutput) GoString() string { +func (s BatchGetAssetPropertyValueOutput) GoString() string { return s.String() } -// SetErrors sets the Errors field's value. -func (s *BatchAssociateProjectAssetsOutput) SetErrors(v []*AssetErrorDetails) *BatchAssociateProjectAssetsOutput { - s.Errors = v +// SetErrorEntries sets the ErrorEntries field's value. +func (s *BatchGetAssetPropertyValueOutput) SetErrorEntries(v []*BatchGetAssetPropertyValueErrorEntry) *BatchGetAssetPropertyValueOutput { + s.ErrorEntries = v return s } -type BatchDisassociateProjectAssetsInput struct { +// SetNextToken sets the NextToken field's value. +func (s *BatchGetAssetPropertyValueOutput) SetNextToken(v string) *BatchGetAssetPropertyValueOutput { + s.NextToken = &v + return s +} + +// SetSkippedEntries sets the SkippedEntries field's value. +func (s *BatchGetAssetPropertyValueOutput) SetSkippedEntries(v []*BatchGetAssetPropertyValueSkippedEntry) *BatchGetAssetPropertyValueOutput { + s.SkippedEntries = v + return s +} + +// SetSuccessEntries sets the SuccessEntries field's value. +func (s *BatchGetAssetPropertyValueOutput) SetSuccessEntries(v []*BatchGetAssetPropertyValueSuccessEntry) *BatchGetAssetPropertyValueOutput { + s.SuccessEntries = v + return s +} + +// Contains information for an entry that has been processed by the previous +// BatchGetAssetPropertyValue (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValue.html) +// request. +type BatchGetAssetPropertyValueSkippedEntry struct { _ struct{} `type:"structure"` - // The IDs of the assets to be disassociated from the project. + // The completion status of each entry that is associated with the BatchGetAssetPropertyValue + // (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValue.html) + // request. // - // AssetIds is a required field - AssetIds []*string `locationName:"assetIds" min:"1" type:"list" required:"true"` - - // A unique case-sensitive identifier that you can provide to ensure the idempotency - // of the request. Don't reuse this client token if a new idempotent request - // is required. - ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"` + // CompletionStatus is a required field + CompletionStatus *string `locationName:"completionStatus" type:"string" required:"true" enum:"BatchEntryCompletionStatus"` - // The ID of the project from which to disassociate the assets. + // The ID of the entry. // - // ProjectId is a required field - ProjectId *string `location:"uri" locationName:"projectId" min:"36" type:"string" required:"true"` + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` + + // The error information, such as the error code and the timestamp. + ErrorInfo *BatchGetAssetPropertyValueErrorInfo `locationName:"errorInfo" type:"structure"` } // String returns the string representation. @@ -9698,7 +11678,7 @@ type BatchDisassociateProjectAssetsInput 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 BatchDisassociateProjectAssetsInput) String() string { +func (s BatchGetAssetPropertyValueSkippedEntry) String() string { return awsutil.Prettify(s) } @@ -9707,58 +11687,41 @@ func (s BatchDisassociateProjectAssetsInput) 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 BatchDisassociateProjectAssetsInput) GoString() string { +func (s BatchGetAssetPropertyValueSkippedEntry) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchDisassociateProjectAssetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchDisassociateProjectAssetsInput"} - if s.AssetIds == nil { - invalidParams.Add(request.NewErrParamRequired("AssetIds")) - } - if s.AssetIds != nil && len(s.AssetIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssetIds", 1)) - } - if s.ClientToken != nil && len(*s.ClientToken) < 36 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) - } - if s.ProjectId == nil { - invalidParams.Add(request.NewErrParamRequired("ProjectId")) - } - if s.ProjectId != nil && len(*s.ProjectId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("ProjectId", 36)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAssetIds sets the AssetIds field's value. -func (s *BatchDisassociateProjectAssetsInput) SetAssetIds(v []*string) *BatchDisassociateProjectAssetsInput { - s.AssetIds = v +// SetCompletionStatus sets the CompletionStatus field's value. +func (s *BatchGetAssetPropertyValueSkippedEntry) SetCompletionStatus(v string) *BatchGetAssetPropertyValueSkippedEntry { + s.CompletionStatus = &v return s } -// SetClientToken sets the ClientToken field's value. -func (s *BatchDisassociateProjectAssetsInput) SetClientToken(v string) *BatchDisassociateProjectAssetsInput { - s.ClientToken = &v +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyValueSkippedEntry) SetEntryId(v string) *BatchGetAssetPropertyValueSkippedEntry { + s.EntryId = &v return s } -// SetProjectId sets the ProjectId field's value. -func (s *BatchDisassociateProjectAssetsInput) SetProjectId(v string) *BatchDisassociateProjectAssetsInput { - s.ProjectId = &v +// SetErrorInfo sets the ErrorInfo field's value. +func (s *BatchGetAssetPropertyValueSkippedEntry) SetErrorInfo(v *BatchGetAssetPropertyValueErrorInfo) *BatchGetAssetPropertyValueSkippedEntry { + s.ErrorInfo = v return s } -type BatchDisassociateProjectAssetsOutput struct { +// Contains success information for an entry that is associated with the BatchGetAssetPropertyValue +// (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValue.html) +// API. +type BatchGetAssetPropertyValueSuccessEntry struct { _ struct{} `type:"structure"` - // A list of associated error information, if any. - Errors []*AssetErrorDetails `locationName:"errors" type:"list"` + // Contains asset property value information. + AssetPropertyValue *AssetPropertyValue `locationName:"assetPropertyValue" type:"structure"` + + // The ID of the entry. + // + // EntryId is a required field + EntryId *string `locationName:"entryId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -9766,7 +11729,7 @@ type BatchDisassociateProjectAssetsOutput 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 BatchDisassociateProjectAssetsOutput) String() string { +func (s BatchGetAssetPropertyValueSuccessEntry) String() string { return awsutil.Prettify(s) } @@ -9775,13 +11738,19 @@ func (s BatchDisassociateProjectAssetsOutput) 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 BatchDisassociateProjectAssetsOutput) GoString() string { +func (s BatchGetAssetPropertyValueSuccessEntry) GoString() string { return s.String() } -// SetErrors sets the Errors field's value. -func (s *BatchDisassociateProjectAssetsOutput) SetErrors(v []*AssetErrorDetails) *BatchDisassociateProjectAssetsOutput { - s.Errors = v +// SetAssetPropertyValue sets the AssetPropertyValue field's value. +func (s *BatchGetAssetPropertyValueSuccessEntry) SetAssetPropertyValue(v *AssetPropertyValue) *BatchGetAssetPropertyValueSuccessEntry { + s.AssetPropertyValue = v + return s +} + +// SetEntryId sets the EntryId field's value. +func (s *BatchGetAssetPropertyValueSuccessEntry) SetEntryId(v string) *BatchGetAssetPropertyValueSuccessEntry { + s.EntryId = &v return s } @@ -22266,6 +24235,82 @@ func AuthMode_Values() []string { } } +const ( + // BatchEntryCompletionStatusSuccess is a BatchEntryCompletionStatus enum value + BatchEntryCompletionStatusSuccess = "SUCCESS" + + // BatchEntryCompletionStatusError is a BatchEntryCompletionStatus enum value + BatchEntryCompletionStatusError = "ERROR" +) + +// BatchEntryCompletionStatus_Values returns all elements of the BatchEntryCompletionStatus enum +func BatchEntryCompletionStatus_Values() []string { + return []string{ + BatchEntryCompletionStatusSuccess, + BatchEntryCompletionStatusError, + } +} + +const ( + // BatchGetAssetPropertyAggregatesErrorCodeResourceNotFoundException is a BatchGetAssetPropertyAggregatesErrorCode enum value + BatchGetAssetPropertyAggregatesErrorCodeResourceNotFoundException = "ResourceNotFoundException" + + // BatchGetAssetPropertyAggregatesErrorCodeInvalidRequestException is a BatchGetAssetPropertyAggregatesErrorCode enum value + BatchGetAssetPropertyAggregatesErrorCodeInvalidRequestException = "InvalidRequestException" + + // BatchGetAssetPropertyAggregatesErrorCodeAccessDeniedException is a BatchGetAssetPropertyAggregatesErrorCode enum value + BatchGetAssetPropertyAggregatesErrorCodeAccessDeniedException = "AccessDeniedException" +) + +// BatchGetAssetPropertyAggregatesErrorCode_Values returns all elements of the BatchGetAssetPropertyAggregatesErrorCode enum +func BatchGetAssetPropertyAggregatesErrorCode_Values() []string { + return []string{ + BatchGetAssetPropertyAggregatesErrorCodeResourceNotFoundException, + BatchGetAssetPropertyAggregatesErrorCodeInvalidRequestException, + BatchGetAssetPropertyAggregatesErrorCodeAccessDeniedException, + } +} + +const ( + // BatchGetAssetPropertyValueErrorCodeResourceNotFoundException is a BatchGetAssetPropertyValueErrorCode enum value + BatchGetAssetPropertyValueErrorCodeResourceNotFoundException = "ResourceNotFoundException" + + // BatchGetAssetPropertyValueErrorCodeInvalidRequestException is a BatchGetAssetPropertyValueErrorCode enum value + BatchGetAssetPropertyValueErrorCodeInvalidRequestException = "InvalidRequestException" + + // BatchGetAssetPropertyValueErrorCodeAccessDeniedException is a BatchGetAssetPropertyValueErrorCode enum value + BatchGetAssetPropertyValueErrorCodeAccessDeniedException = "AccessDeniedException" +) + +// BatchGetAssetPropertyValueErrorCode_Values returns all elements of the BatchGetAssetPropertyValueErrorCode enum +func BatchGetAssetPropertyValueErrorCode_Values() []string { + return []string{ + BatchGetAssetPropertyValueErrorCodeResourceNotFoundException, + BatchGetAssetPropertyValueErrorCodeInvalidRequestException, + BatchGetAssetPropertyValueErrorCodeAccessDeniedException, + } +} + +const ( + // BatchGetAssetPropertyValueHistoryErrorCodeResourceNotFoundException is a BatchGetAssetPropertyValueHistoryErrorCode enum value + BatchGetAssetPropertyValueHistoryErrorCodeResourceNotFoundException = "ResourceNotFoundException" + + // BatchGetAssetPropertyValueHistoryErrorCodeInvalidRequestException is a BatchGetAssetPropertyValueHistoryErrorCode enum value + BatchGetAssetPropertyValueHistoryErrorCodeInvalidRequestException = "InvalidRequestException" + + // BatchGetAssetPropertyValueHistoryErrorCodeAccessDeniedException is a BatchGetAssetPropertyValueHistoryErrorCode enum value + BatchGetAssetPropertyValueHistoryErrorCodeAccessDeniedException = "AccessDeniedException" +) + +// BatchGetAssetPropertyValueHistoryErrorCode_Values returns all elements of the BatchGetAssetPropertyValueHistoryErrorCode enum +func BatchGetAssetPropertyValueHistoryErrorCode_Values() []string { + return []string{ + BatchGetAssetPropertyValueHistoryErrorCodeResourceNotFoundException, + BatchGetAssetPropertyValueHistoryErrorCodeInvalidRequestException, + BatchGetAssetPropertyValueHistoryErrorCodeAccessDeniedException, + } +} + const ( // BatchPutAssetPropertyValueErrorCodeResourceNotFoundException is a BatchPutAssetPropertyValueErrorCode enum value BatchPutAssetPropertyValueErrorCodeResourceNotFoundException = "ResourceNotFoundException" diff --git a/service/iotsitewise/iotsitewiseiface/interface.go b/service/iotsitewise/iotsitewiseiface/interface.go index 5059004fca..dc0eed705f 100644 --- a/service/iotsitewise/iotsitewiseiface/interface.go +++ b/service/iotsitewise/iotsitewiseiface/interface.go @@ -76,6 +76,27 @@ type IoTSiteWiseAPI interface { BatchDisassociateProjectAssetsWithContext(aws.Context, *iotsitewise.BatchDisassociateProjectAssetsInput, ...request.Option) (*iotsitewise.BatchDisassociateProjectAssetsOutput, error) BatchDisassociateProjectAssetsRequest(*iotsitewise.BatchDisassociateProjectAssetsInput) (*request.Request, *iotsitewise.BatchDisassociateProjectAssetsOutput) + BatchGetAssetPropertyAggregates(*iotsitewise.BatchGetAssetPropertyAggregatesInput) (*iotsitewise.BatchGetAssetPropertyAggregatesOutput, error) + BatchGetAssetPropertyAggregatesWithContext(aws.Context, *iotsitewise.BatchGetAssetPropertyAggregatesInput, ...request.Option) (*iotsitewise.BatchGetAssetPropertyAggregatesOutput, error) + BatchGetAssetPropertyAggregatesRequest(*iotsitewise.BatchGetAssetPropertyAggregatesInput) (*request.Request, *iotsitewise.BatchGetAssetPropertyAggregatesOutput) + + BatchGetAssetPropertyAggregatesPages(*iotsitewise.BatchGetAssetPropertyAggregatesInput, func(*iotsitewise.BatchGetAssetPropertyAggregatesOutput, bool) bool) error + BatchGetAssetPropertyAggregatesPagesWithContext(aws.Context, *iotsitewise.BatchGetAssetPropertyAggregatesInput, func(*iotsitewise.BatchGetAssetPropertyAggregatesOutput, bool) bool, ...request.Option) error + + BatchGetAssetPropertyValue(*iotsitewise.BatchGetAssetPropertyValueInput) (*iotsitewise.BatchGetAssetPropertyValueOutput, error) + BatchGetAssetPropertyValueWithContext(aws.Context, *iotsitewise.BatchGetAssetPropertyValueInput, ...request.Option) (*iotsitewise.BatchGetAssetPropertyValueOutput, error) + BatchGetAssetPropertyValueRequest(*iotsitewise.BatchGetAssetPropertyValueInput) (*request.Request, *iotsitewise.BatchGetAssetPropertyValueOutput) + + BatchGetAssetPropertyValuePages(*iotsitewise.BatchGetAssetPropertyValueInput, func(*iotsitewise.BatchGetAssetPropertyValueOutput, bool) bool) error + BatchGetAssetPropertyValuePagesWithContext(aws.Context, *iotsitewise.BatchGetAssetPropertyValueInput, func(*iotsitewise.BatchGetAssetPropertyValueOutput, bool) bool, ...request.Option) error + + BatchGetAssetPropertyValueHistory(*iotsitewise.BatchGetAssetPropertyValueHistoryInput) (*iotsitewise.BatchGetAssetPropertyValueHistoryOutput, error) + BatchGetAssetPropertyValueHistoryWithContext(aws.Context, *iotsitewise.BatchGetAssetPropertyValueHistoryInput, ...request.Option) (*iotsitewise.BatchGetAssetPropertyValueHistoryOutput, error) + BatchGetAssetPropertyValueHistoryRequest(*iotsitewise.BatchGetAssetPropertyValueHistoryInput) (*request.Request, *iotsitewise.BatchGetAssetPropertyValueHistoryOutput) + + BatchGetAssetPropertyValueHistoryPages(*iotsitewise.BatchGetAssetPropertyValueHistoryInput, func(*iotsitewise.BatchGetAssetPropertyValueHistoryOutput, bool) bool) error + BatchGetAssetPropertyValueHistoryPagesWithContext(aws.Context, *iotsitewise.BatchGetAssetPropertyValueHistoryInput, func(*iotsitewise.BatchGetAssetPropertyValueHistoryOutput, bool) bool, ...request.Option) error + BatchPutAssetPropertyValue(*iotsitewise.BatchPutAssetPropertyValueInput) (*iotsitewise.BatchPutAssetPropertyValueOutput, error) BatchPutAssetPropertyValueWithContext(aws.Context, *iotsitewise.BatchPutAssetPropertyValueInput, ...request.Option) (*iotsitewise.BatchPutAssetPropertyValueOutput, error) BatchPutAssetPropertyValueRequest(*iotsitewise.BatchPutAssetPropertyValueInput) (*request.Request, *iotsitewise.BatchPutAssetPropertyValueOutput) diff --git a/service/iottwinmaker/api.go b/service/iottwinmaker/api.go index 7985f5f694..fff3569554 100644 --- a/service/iottwinmaker/api.go +++ b/service/iottwinmaker/api.go @@ -5671,7 +5671,10 @@ type GetPropertyValueHistoryInput struct { // Deprecated: This field is deprecated and will throw an error in the future. Use endTime instead. EndDateTime *time.Time `locationName:"endDateTime" deprecated:"true" type:"timestamp"` - // Timestamp represented in ISO 8601 format + // The ISO8601 DateTime of the latest property value to return. + // + // For more information about the ISO8601 DateTime format, see the data type + // PropertyValue (https://docs.aws.amazon.com/roci/latest/roci-api/API_PropertyValue.html). EndTime *string `locationName:"endTime" min:"20" type:"string"` // The ID of the entity. @@ -5703,7 +5706,10 @@ type GetPropertyValueHistoryInput struct { // Deprecated: This field is deprecated and will throw an error in the future. Use startTime instead. StartDateTime *time.Time `locationName:"startDateTime" deprecated:"true" type:"timestamp"` - // Timestamp represented in ISO 8601 format + // The ISO8601 DateTime of the earliest property value to return. + // + // For more information about the ISO8601 DateTime format, see the data type + // PropertyValue (https://docs.aws.amazon.com/roci/latest/roci-api/API_PropertyValue.html). StartTime *string `locationName:"startTime" min:"20" type:"string"` // The ID of the workspace. @@ -6518,6 +6524,8 @@ func (s *LambdaFunction) SetArn(v string) *LambdaFunction { } // An object that filters items in a list of component types. +// +// Only one object is accepted as a valid input. type ListComponentTypesFilter struct { _ struct{} `type:"structure"` @@ -6806,6 +6814,8 @@ type ListEntitiesInput struct { _ struct{} `type:"structure"` // A list of objects that filter the request. + // + // Only one object is accepted as a valid input. Filters []*ListEntitiesFilter `locationName:"filters" type:"list"` // The maximum number of results to display. @@ -7753,7 +7763,30 @@ func (s *PropertyResponse) SetValue(v *DataValue) *PropertyResponse { type PropertyValue struct { _ struct{} `type:"structure"` - // Timestamp represented in ISO 8601 format + // ISO8601 DateTime of a value for a time series property. + // + // The time for when the property value was recorded in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.SSSSSSSSS][Z/±HH:mm]. + // + // * [YYYY]: year + // + // * [MM]: month + // + // * [DD]: day + // + // * [hh]: hour + // + // * [mm]: minute + // + // * [ss]: seconds + // + // * [.SSSSSSSSS]: additional precision, where precedence is maintained. + // For example: [.573123] is equal to 573123000 nanoseconds. + // + // * Z: default timezone UTC + // + // * ± HH:mm: time zone offset in Hours and Minutes. + // + // Required sub-fields: YYYY-MM-DDThh:mm:ss and [Z/±HH:mm] Time *string `locationName:"time" min:"20" type:"string"` // The timestamp of a value for a time series property. @@ -7824,7 +7857,9 @@ func (s *PropertyValue) SetValue(v *DataValue) *PropertyValue { return s } -// An object that specifies information about time series property values. +// An object that specifies information about time series property values. This +// object is used and consumed by the BatchPutPropertyValues (https://docs.aws.amazon.com/iot-twinmaker/latest/apireference/API_BatchPutPropertyValues.html) +// action. type PropertyValueEntry struct { _ struct{} `type:"structure"` diff --git a/service/lookoutmetrics/api.go b/service/lookoutmetrics/api.go index de3f7374b6..222c8c6ae7 100644 --- a/service/lookoutmetrics/api.go +++ b/service/lookoutmetrics/api.go @@ -1258,6 +1258,101 @@ func (c *LookoutMetrics) DescribeMetricSetWithContext(ctx aws.Context, input *De return out, req.Send() } +const opDetectMetricSetConfig = "DetectMetricSetConfig" + +// DetectMetricSetConfigRequest generates a "aws/request.Request" representing the +// client's request for the DetectMetricSetConfig operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DetectMetricSetConfig for more information on using the DetectMetricSetConfig +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DetectMetricSetConfigRequest method. +// req, resp := client.DetectMetricSetConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectMetricSetConfig +func (c *LookoutMetrics) DetectMetricSetConfigRequest(input *DetectMetricSetConfigInput) (req *request.Request, output *DetectMetricSetConfigOutput) { + op := &request.Operation{ + Name: opDetectMetricSetConfig, + HTTPMethod: "POST", + HTTPPath: "/DetectMetricSetConfig", + } + + if input == nil { + input = &DetectMetricSetConfigInput{} + } + + output = &DetectMetricSetConfigOutput{} + req = c.newRequest(op, input, output) + return +} + +// DetectMetricSetConfig API operation for Amazon Lookout for Metrics. +// +// Detects an Amazon S3 dataset's file format, interval, and offset. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lookout for Metrics's +// API operation DetectMetricSetConfig for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// The specified resource cannot be found. Check the ARN of the resource and +// try again. +// +// * ValidationException +// The input fails to satisfy the constraints specified by the AWS service. +// Check your input values and try again. +// +// * InternalServerException +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// * TooManyRequestsException +// The request was denied due to too many requests being submitted at the same +// time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectMetricSetConfig +func (c *LookoutMetrics) DetectMetricSetConfig(input *DetectMetricSetConfigInput) (*DetectMetricSetConfigOutput, error) { + req, out := c.DetectMetricSetConfigRequest(input) + return out, req.Send() +} + +// DetectMetricSetConfigWithContext is the same as DetectMetricSetConfig with the addition of +// the ability to pass a context and additional request options. +// +// See DetectMetricSetConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LookoutMetrics) DetectMetricSetConfigWithContext(ctx aws.Context, input *DetectMetricSetConfigInput, opts ...request.Option) (*DetectMetricSetConfigOutput, error) { + req, out := c.DetectMetricSetConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetAnomalyGroup = "GetAnomalyGroup" // GetAnomalyGroupRequest generates a "aws/request.Request" representing the @@ -4020,6 +4115,187 @@ func (s *AppFlowConfig) SetRoleArn(v string) *AppFlowConfig { return s } +// An attribute value. +type AttributeValue struct { + _ struct{} `type:"structure"` + + // A binary value. + B *string `type:"string"` + + // A list of binary values. + BS []*string `type:"list"` + + // A number. + N *string `type:"string"` + + // A list of numbers. + NS []*string `type:"list"` + + // A string. + S *string `type:"string"` + + // A list of strings. + SS []*string `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 AttributeValue) 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 AttributeValue) GoString() string { + return s.String() +} + +// SetB sets the B field's value. +func (s *AttributeValue) SetB(v string) *AttributeValue { + s.B = &v + return s +} + +// SetBS sets the BS field's value. +func (s *AttributeValue) SetBS(v []*string) *AttributeValue { + s.BS = v + return s +} + +// SetN sets the N field's value. +func (s *AttributeValue) SetN(v string) *AttributeValue { + s.N = &v + return s +} + +// SetNS sets the NS field's value. +func (s *AttributeValue) SetNS(v []*string) *AttributeValue { + s.NS = v + return s +} + +// SetS sets the S field's value. +func (s *AttributeValue) SetS(v string) *AttributeValue { + s.S = &v + return s +} + +// SetSS sets the SS field's value. +func (s *AttributeValue) SetSS(v []*string) *AttributeValue { + s.SS = v + return s +} + +// An auto detection metric source. +type AutoDetectionMetricSource struct { + _ struct{} `type:"structure"` + + // The source's source config. + S3SourceConfig *AutoDetectionS3SourceConfig `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 AutoDetectionMetricSource) 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 AutoDetectionMetricSource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AutoDetectionMetricSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AutoDetectionMetricSource"} + if s.S3SourceConfig != nil { + if err := s.S3SourceConfig.Validate(); err != nil { + invalidParams.AddNested("S3SourceConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3SourceConfig sets the S3SourceConfig field's value. +func (s *AutoDetectionMetricSource) SetS3SourceConfig(v *AutoDetectionS3SourceConfig) *AutoDetectionMetricSource { + s.S3SourceConfig = v + return s +} + +// An auto detection source config. +type AutoDetectionS3SourceConfig struct { + _ struct{} `type:"structure"` + + // The config's historical data path list. + HistoricalDataPathList []*string `min:"1" type:"list"` + + // The config's templated path list. + TemplatedPathList []*string `min:"1" 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 AutoDetectionS3SourceConfig) 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 AutoDetectionS3SourceConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AutoDetectionS3SourceConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AutoDetectionS3SourceConfig"} + if s.HistoricalDataPathList != nil && len(s.HistoricalDataPathList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HistoricalDataPathList", 1)) + } + if s.TemplatedPathList != nil && len(s.TemplatedPathList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplatedPathList", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHistoricalDataPathList sets the HistoricalDataPathList field's value. +func (s *AutoDetectionS3SourceConfig) SetHistoricalDataPathList(v []*string) *AutoDetectionS3SourceConfig { + s.HistoricalDataPathList = v + return s +} + +// SetTemplatedPathList sets the TemplatedPathList field's value. +func (s *AutoDetectionS3SourceConfig) SetTemplatedPathList(v []*string) *AutoDetectionS3SourceConfig { + s.TemplatedPathList = v + return s +} + type BackTestAnomalyDetectorInput struct { _ struct{} `type:"structure"` @@ -5545,6 +5821,425 @@ func (s *DescribeMetricSetOutput) SetTimezone(v string) *DescribeMetricSetOutput return s } +type DetectMetricSetConfigInput struct { + _ struct{} `type:"structure"` + + // An anomaly detector ARN. + // + // AnomalyDetectorArn is a required field + AnomalyDetectorArn *string `type:"string" required:"true"` + + // A data source. + // + // AutoDetectionMetricSource is a required field + AutoDetectionMetricSource *AutoDetectionMetricSource `type:"structure" 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 DetectMetricSetConfigInput) 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 DetectMetricSetConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectMetricSetConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectMetricSetConfigInput"} + if s.AnomalyDetectorArn == nil { + invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn")) + } + if s.AutoDetectionMetricSource == nil { + invalidParams.Add(request.NewErrParamRequired("AutoDetectionMetricSource")) + } + if s.AutoDetectionMetricSource != nil { + if err := s.AutoDetectionMetricSource.Validate(); err != nil { + invalidParams.AddNested("AutoDetectionMetricSource", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value. +func (s *DetectMetricSetConfigInput) SetAnomalyDetectorArn(v string) *DetectMetricSetConfigInput { + s.AnomalyDetectorArn = &v + return s +} + +// SetAutoDetectionMetricSource sets the AutoDetectionMetricSource field's value. +func (s *DetectMetricSetConfigInput) SetAutoDetectionMetricSource(v *AutoDetectionMetricSource) *DetectMetricSetConfigInput { + s.AutoDetectionMetricSource = v + return s +} + +type DetectMetricSetConfigOutput struct { + _ struct{} `type:"structure"` + + // The inferred dataset configuration for the datasource. + DetectedMetricSetConfig *DetectedMetricSetConfig `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 DetectMetricSetConfigOutput) 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 DetectMetricSetConfigOutput) GoString() string { + return s.String() +} + +// SetDetectedMetricSetConfig sets the DetectedMetricSetConfig field's value. +func (s *DetectMetricSetConfigOutput) SetDetectedMetricSetConfig(v *DetectedMetricSetConfig) *DetectMetricSetConfigOutput { + s.DetectedMetricSetConfig = v + return s +} + +// Properties of an inferred CSV format. +type DetectedCsvFormatDescriptor struct { + _ struct{} `type:"structure"` + + // The format's charset. + Charset *DetectedField `type:"structure"` + + // Whether the format includes a header. + ContainsHeader *DetectedField `type:"structure"` + + // The format's delimiter. + Delimiter *DetectedField `type:"structure"` + + // The format's file compression. + FileCompression *DetectedField `type:"structure"` + + // The format's header list. + HeaderList *DetectedField `type:"structure"` + + // The format's quote symbol. + QuoteSymbol *DetectedField `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 DetectedCsvFormatDescriptor) 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 DetectedCsvFormatDescriptor) GoString() string { + return s.String() +} + +// SetCharset sets the Charset field's value. +func (s *DetectedCsvFormatDescriptor) SetCharset(v *DetectedField) *DetectedCsvFormatDescriptor { + s.Charset = v + return s +} + +// SetContainsHeader sets the ContainsHeader field's value. +func (s *DetectedCsvFormatDescriptor) SetContainsHeader(v *DetectedField) *DetectedCsvFormatDescriptor { + s.ContainsHeader = v + return s +} + +// SetDelimiter sets the Delimiter field's value. +func (s *DetectedCsvFormatDescriptor) SetDelimiter(v *DetectedField) *DetectedCsvFormatDescriptor { + s.Delimiter = v + return s +} + +// SetFileCompression sets the FileCompression field's value. +func (s *DetectedCsvFormatDescriptor) SetFileCompression(v *DetectedField) *DetectedCsvFormatDescriptor { + s.FileCompression = v + return s +} + +// SetHeaderList sets the HeaderList field's value. +func (s *DetectedCsvFormatDescriptor) SetHeaderList(v *DetectedField) *DetectedCsvFormatDescriptor { + s.HeaderList = v + return s +} + +// SetQuoteSymbol sets the QuoteSymbol field's value. +func (s *DetectedCsvFormatDescriptor) SetQuoteSymbol(v *DetectedField) *DetectedCsvFormatDescriptor { + s.QuoteSymbol = v + return s +} + +// An inferred field. +type DetectedField struct { + _ struct{} `type:"structure"` + + // The field's confidence. + Confidence *string `type:"string" enum:"Confidence"` + + // The field's message. + Message *string `type:"string"` + + // The field's value. + Value *AttributeValue `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 DetectedField) 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 DetectedField) GoString() string { + return s.String() +} + +// SetConfidence sets the Confidence field's value. +func (s *DetectedField) SetConfidence(v string) *DetectedField { + s.Confidence = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *DetectedField) SetMessage(v string) *DetectedField { + s.Message = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DetectedField) SetValue(v *AttributeValue) *DetectedField { + s.Value = v + return s +} + +// Properties of an inferred data format. +type DetectedFileFormatDescriptor struct { + _ struct{} `type:"structure"` + + // Details about a CSV format. + CsvFormatDescriptor *DetectedCsvFormatDescriptor `type:"structure"` + + // Details about a JSON format. + JsonFormatDescriptor *DetectedJsonFormatDescriptor `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 DetectedFileFormatDescriptor) 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 DetectedFileFormatDescriptor) GoString() string { + return s.String() +} + +// SetCsvFormatDescriptor sets the CsvFormatDescriptor field's value. +func (s *DetectedFileFormatDescriptor) SetCsvFormatDescriptor(v *DetectedCsvFormatDescriptor) *DetectedFileFormatDescriptor { + s.CsvFormatDescriptor = v + return s +} + +// SetJsonFormatDescriptor sets the JsonFormatDescriptor field's value. +func (s *DetectedFileFormatDescriptor) SetJsonFormatDescriptor(v *DetectedJsonFormatDescriptor) *DetectedFileFormatDescriptor { + s.JsonFormatDescriptor = v + return s +} + +// A detected JSON format descriptor. +type DetectedJsonFormatDescriptor struct { + _ struct{} `type:"structure"` + + // The format's character set. + Charset *DetectedField `type:"structure"` + + // The format's file compression. + FileCompression *DetectedField `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 DetectedJsonFormatDescriptor) 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 DetectedJsonFormatDescriptor) GoString() string { + return s.String() +} + +// SetCharset sets the Charset field's value. +func (s *DetectedJsonFormatDescriptor) SetCharset(v *DetectedField) *DetectedJsonFormatDescriptor { + s.Charset = v + return s +} + +// SetFileCompression sets the FileCompression field's value. +func (s *DetectedJsonFormatDescriptor) SetFileCompression(v *DetectedField) *DetectedJsonFormatDescriptor { + s.FileCompression = v + return s +} + +// An inferred dataset configuration. +type DetectedMetricSetConfig struct { + _ struct{} `type:"structure"` + + // The dataset's interval. + MetricSetFrequency *DetectedField `type:"structure"` + + // The dataset's data source. + MetricSource *DetectedMetricSource `type:"structure"` + + // The dataset's offset. + Offset *DetectedField `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 DetectedMetricSetConfig) 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 DetectedMetricSetConfig) GoString() string { + return s.String() +} + +// SetMetricSetFrequency sets the MetricSetFrequency field's value. +func (s *DetectedMetricSetConfig) SetMetricSetFrequency(v *DetectedField) *DetectedMetricSetConfig { + s.MetricSetFrequency = v + return s +} + +// SetMetricSource sets the MetricSource field's value. +func (s *DetectedMetricSetConfig) SetMetricSource(v *DetectedMetricSource) *DetectedMetricSetConfig { + s.MetricSource = v + return s +} + +// SetOffset sets the Offset field's value. +func (s *DetectedMetricSetConfig) SetOffset(v *DetectedField) *DetectedMetricSetConfig { + s.Offset = v + return s +} + +// An inferred data source. +type DetectedMetricSource struct { + _ struct{} `type:"structure"` + + // The data source's source configuration. + S3SourceConfig *DetectedS3SourceConfig `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 DetectedMetricSource) 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 DetectedMetricSource) GoString() string { + return s.String() +} + +// SetS3SourceConfig sets the S3SourceConfig field's value. +func (s *DetectedMetricSource) SetS3SourceConfig(v *DetectedS3SourceConfig) *DetectedMetricSource { + s.S3SourceConfig = v + return s +} + +// An inferred source configuration. +type DetectedS3SourceConfig struct { + _ struct{} `type:"structure"` + + // The source's file format descriptor. + FileFormatDescriptor *DetectedFileFormatDescriptor `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 DetectedS3SourceConfig) 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 DetectedS3SourceConfig) GoString() string { + return s.String() +} + +// SetFileFormatDescriptor sets the FileFormatDescriptor field's value. +func (s *DetectedS3SourceConfig) SetFileFormatDescriptor(v *DetectedFileFormatDescriptor) *DetectedS3SourceConfig { + s.FileFormatDescriptor = v + return s +} + // Details about a dimension that contributed to an anomaly. type DimensionContribution struct { _ struct{} `type:"structure"` @@ -9212,6 +9907,26 @@ func CSVFileCompression_Values() []string { } } +const ( + // ConfidenceHigh is a Confidence enum value + ConfidenceHigh = "HIGH" + + // ConfidenceLow is a Confidence enum value + ConfidenceLow = "LOW" + + // ConfidenceNone is a Confidence enum value + ConfidenceNone = "NONE" +) + +// Confidence_Values returns all elements of the Confidence enum +func Confidence_Values() []string { + return []string{ + ConfidenceHigh, + ConfidenceLow, + ConfidenceNone, + } +} + const ( // FrequencyP1d is a Frequency enum value FrequencyP1d = "P1D" diff --git a/service/lookoutmetrics/lookoutmetricsiface/interface.go b/service/lookoutmetrics/lookoutmetricsiface/interface.go index 6fb66ba61d..c0185f449e 100644 --- a/service/lookoutmetrics/lookoutmetricsiface/interface.go +++ b/service/lookoutmetrics/lookoutmetricsiface/interface.go @@ -111,6 +111,10 @@ type LookoutMetricsAPI interface { DescribeMetricSetWithContext(aws.Context, *lookoutmetrics.DescribeMetricSetInput, ...request.Option) (*lookoutmetrics.DescribeMetricSetOutput, error) DescribeMetricSetRequest(*lookoutmetrics.DescribeMetricSetInput) (*request.Request, *lookoutmetrics.DescribeMetricSetOutput) + DetectMetricSetConfig(*lookoutmetrics.DetectMetricSetConfigInput) (*lookoutmetrics.DetectMetricSetConfigOutput, error) + DetectMetricSetConfigWithContext(aws.Context, *lookoutmetrics.DetectMetricSetConfigInput, ...request.Option) (*lookoutmetrics.DetectMetricSetConfigOutput, error) + DetectMetricSetConfigRequest(*lookoutmetrics.DetectMetricSetConfigInput) (*request.Request, *lookoutmetrics.DetectMetricSetConfigOutput) + GetAnomalyGroup(*lookoutmetrics.GetAnomalyGroupInput) (*lookoutmetrics.GetAnomalyGroupOutput, error) GetAnomalyGroupWithContext(aws.Context, *lookoutmetrics.GetAnomalyGroupInput, ...request.Option) (*lookoutmetrics.GetAnomalyGroupOutput, error) GetAnomalyGroupRequest(*lookoutmetrics.GetAnomalyGroupInput) (*request.Request, *lookoutmetrics.GetAnomalyGroupOutput) diff --git a/service/mediatailor/api.go b/service/mediatailor/api.go index 1fe302693a..6c8b5272c1 100644 --- a/service/mediatailor/api.go +++ b/service/mediatailor/api.go @@ -161,6 +161,80 @@ func (c *MediaTailor) CreateChannelWithContext(ctx aws.Context, input *CreateCha return out, req.Send() } +const opCreateLiveSource = "CreateLiveSource" + +// CreateLiveSourceRequest generates a "aws/request.Request" representing the +// client's request for the CreateLiveSource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLiveSource for more information on using the CreateLiveSource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateLiveSourceRequest method. +// req, resp := client.CreateLiveSourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/CreateLiveSource +func (c *MediaTailor) CreateLiveSourceRequest(input *CreateLiveSourceInput) (req *request.Request, output *CreateLiveSourceOutput) { + op := &request.Operation{ + Name: opCreateLiveSource, + HTTPMethod: "POST", + HTTPPath: "/sourceLocation/{sourceLocationName}/liveSource/{liveSourceName}", + } + + if input == nil { + input = &CreateLiveSourceInput{} + } + + output = &CreateLiveSourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLiveSource API operation for AWS MediaTailor. +// +// Creates name for a specific live source in a source location. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS MediaTailor's +// API operation CreateLiveSource for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/CreateLiveSource +func (c *MediaTailor) CreateLiveSource(input *CreateLiveSourceInput) (*CreateLiveSourceOutput, error) { + req, out := c.CreateLiveSourceRequest(input) + return out, req.Send() +} + +// CreateLiveSourceWithContext is the same as CreateLiveSource with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLiveSource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaTailor) CreateLiveSourceWithContext(ctx aws.Context, input *CreateLiveSourceInput, opts ...request.Option) (*CreateLiveSourceOutput, error) { + req, out := c.CreateLiveSourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreatePrefetchSchedule = "CreatePrefetchSchedule" // CreatePrefetchScheduleRequest generates a "aws/request.Request" representing the @@ -607,6 +681,81 @@ func (c *MediaTailor) DeleteChannelPolicyWithContext(ctx aws.Context, input *Del return out, req.Send() } +const opDeleteLiveSource = "DeleteLiveSource" + +// DeleteLiveSourceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLiveSource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteLiveSource for more information on using the DeleteLiveSource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteLiveSourceRequest method. +// req, resp := client.DeleteLiveSourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/DeleteLiveSource +func (c *MediaTailor) DeleteLiveSourceRequest(input *DeleteLiveSourceInput) (req *request.Request, output *DeleteLiveSourceOutput) { + op := &request.Operation{ + Name: opDeleteLiveSource, + HTTPMethod: "DELETE", + HTTPPath: "/sourceLocation/{sourceLocationName}/liveSource/{liveSourceName}", + } + + if input == nil { + input = &DeleteLiveSourceInput{} + } + + output = &DeleteLiveSourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteLiveSource API operation for AWS MediaTailor. +// +// Deletes a specific live source in a specific source location. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS MediaTailor's +// API operation DeleteLiveSource for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/DeleteLiveSource +func (c *MediaTailor) DeleteLiveSource(input *DeleteLiveSourceInput) (*DeleteLiveSourceOutput, error) { + req, out := c.DeleteLiveSourceRequest(input) + return out, req.Send() +} + +// DeleteLiveSourceWithContext is the same as DeleteLiveSource with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteLiveSource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaTailor) DeleteLiveSourceWithContext(ctx aws.Context, input *DeleteLiveSourceInput, opts ...request.Option) (*DeleteLiveSourceOutput, error) { + req, out := c.DeleteLiveSourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeletePlaybackConfiguration = "DeletePlaybackConfiguration" // DeletePlaybackConfigurationRequest generates a "aws/request.Request" representing the @@ -1058,6 +1207,80 @@ func (c *MediaTailor) DescribeChannelWithContext(ctx aws.Context, input *Describ return out, req.Send() } +const opDescribeLiveSource = "DescribeLiveSource" + +// DescribeLiveSourceRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLiveSource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeLiveSource for more information on using the DescribeLiveSource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeLiveSourceRequest method. +// req, resp := client.DescribeLiveSourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/DescribeLiveSource +func (c *MediaTailor) DescribeLiveSourceRequest(input *DescribeLiveSourceInput) (req *request.Request, output *DescribeLiveSourceOutput) { + op := &request.Operation{ + Name: opDescribeLiveSource, + HTTPMethod: "GET", + HTTPPath: "/sourceLocation/{sourceLocationName}/liveSource/{liveSourceName}", + } + + if input == nil { + input = &DescribeLiveSourceInput{} + } + + output = &DescribeLiveSourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeLiveSource API operation for AWS MediaTailor. +// +// Provides details about a specific live source in a specific source location. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS MediaTailor's +// API operation DescribeLiveSource for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/DescribeLiveSource +func (c *MediaTailor) DescribeLiveSource(input *DescribeLiveSourceInput) (*DescribeLiveSourceOutput, error) { + req, out := c.DescribeLiveSourceRequest(input) + return out, req.Send() +} + +// DescribeLiveSourceWithContext is the same as DescribeLiveSource with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeLiveSource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaTailor) DescribeLiveSourceWithContext(ctx aws.Context, input *DescribeLiveSourceInput, opts ...request.Option) (*DescribeLiveSourceOutput, error) { + req, out := c.DescribeLiveSourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeProgram = "DescribeProgram" // DescribeProgramRequest generates a "aws/request.Request" representing the @@ -1900,6 +2123,138 @@ func (c *MediaTailor) ListChannelsPagesWithContext(ctx aws.Context, input *ListC return p.Err() } +const opListLiveSources = "ListLiveSources" + +// ListLiveSourcesRequest generates a "aws/request.Request" representing the +// client's request for the ListLiveSources operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListLiveSources for more information on using the ListLiveSources +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListLiveSourcesRequest method. +// req, resp := client.ListLiveSourcesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ListLiveSources +func (c *MediaTailor) ListLiveSourcesRequest(input *ListLiveSourcesInput) (req *request.Request, output *ListLiveSourcesOutput) { + op := &request.Operation{ + Name: opListLiveSources, + HTTPMethod: "GET", + HTTPPath: "/sourceLocation/{sourceLocationName}/liveSources", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListLiveSourcesInput{} + } + + output = &ListLiveSourcesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLiveSources API operation for AWS MediaTailor. +// +// lists all the live sources in a source location. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS MediaTailor's +// API operation ListLiveSources for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ListLiveSources +func (c *MediaTailor) ListLiveSources(input *ListLiveSourcesInput) (*ListLiveSourcesOutput, error) { + req, out := c.ListLiveSourcesRequest(input) + return out, req.Send() +} + +// ListLiveSourcesWithContext is the same as ListLiveSources with the addition of +// the ability to pass a context and additional request options. +// +// See ListLiveSources for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaTailor) ListLiveSourcesWithContext(ctx aws.Context, input *ListLiveSourcesInput, opts ...request.Option) (*ListLiveSourcesOutput, error) { + req, out := c.ListLiveSourcesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListLiveSourcesPages iterates over the pages of a ListLiveSources operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLiveSources 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 ListLiveSources operation. +// pageNum := 0 +// err := client.ListLiveSourcesPages(params, +// func(page *mediatailor.ListLiveSourcesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MediaTailor) ListLiveSourcesPages(input *ListLiveSourcesInput, fn func(*ListLiveSourcesOutput, bool) bool) error { + return c.ListLiveSourcesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListLiveSourcesPagesWithContext same as ListLiveSourcesPages 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 *MediaTailor) ListLiveSourcesPagesWithContext(ctx aws.Context, input *ListLiveSourcesInput, fn func(*ListLiveSourcesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLiveSourcesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLiveSourcesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListLiveSourcesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListPlaybackConfigurations = "ListPlaybackConfigurations" // ListPlaybackConfigurationsRequest generates a "aws/request.Request" representing the @@ -3047,7 +3402,81 @@ func (c *MediaTailor) UpdateChannelWithContext(ctx aws.Context, input *UpdateCha return out, req.Send() } -const opUpdateSourceLocation = "UpdateSourceLocation" +const opUpdateLiveSource = "UpdateLiveSource" + +// UpdateLiveSourceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLiveSource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateLiveSource for more information on using the UpdateLiveSource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateLiveSourceRequest method. +// req, resp := client.UpdateLiveSourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/UpdateLiveSource +func (c *MediaTailor) UpdateLiveSourceRequest(input *UpdateLiveSourceInput) (req *request.Request, output *UpdateLiveSourceOutput) { + op := &request.Operation{ + Name: opUpdateLiveSource, + HTTPMethod: "PUT", + HTTPPath: "/sourceLocation/{sourceLocationName}/liveSource/{liveSourceName}", + } + + if input == nil { + input = &UpdateLiveSourceInput{} + } + + output = &UpdateLiveSourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateLiveSource API operation for AWS MediaTailor. +// +// Updates a specific live source in a specific source location. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS MediaTailor's +// API operation UpdateLiveSource for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/UpdateLiveSource +func (c *MediaTailor) UpdateLiveSource(input *UpdateLiveSourceInput) (*UpdateLiveSourceOutput, error) { + req, out := c.UpdateLiveSourceRequest(input) + return out, req.Send() +} + +// UpdateLiveSourceWithContext is the same as UpdateLiveSource with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateLiveSource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaTailor) UpdateLiveSourceWithContext(ctx aws.Context, input *UpdateLiveSourceInput, opts ...request.Option) (*UpdateLiveSourceOutput, error) { + req, out := c.UpdateLiveSourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSourceLocation = "UpdateSourceLocation" // UpdateSourceLocationRequest generates a "aws/request.Request" representing the // client's request for the UpdateSourceLocation operation. The "output" return @@ -3777,6 +4206,11 @@ type Channel struct { // The tags to assign to the channel. Tags map[string]*string `locationName:"tags" type:"map"` + + // The tier for this channel. STANDARD tier channels can contain live programs. + // + // Tier is a required field + Tier *string `type:"string" required:"true"` } // String returns the string representation. @@ -3851,6 +4285,12 @@ func (s *Channel) SetTags(v map[string]*string) *Channel { return s } +// SetTier sets the Tier field's value. +func (s *Channel) SetTier(v string) *Channel { + s.Tier = &v + return s +} + // Configures Amazon CloudWatch log settings for an existing MediaTailor playback // configuration. type ConfigureLogsForPlaybackConfigurationInput struct { @@ -3992,6 +4432,9 @@ type CreateChannelInput struct { // The tags to assign to the channel. Tags map[string]*string `locationName:"tags" type:"map"` + + // The tier of the channel. + Tier *string `type:"string" enum:"Tier"` } // String returns the string representation. @@ -4074,6 +4517,12 @@ func (s *CreateChannelInput) SetTags(v map[string]*string) *CreateChannelInput { return s } +// SetTier sets the Tier field's value. +func (s *CreateChannelInput) SetTier(v string) *CreateChannelInput { + s.Tier = &v + return s +} + type CreateChannelOutput struct { _ struct{} `type:"structure"` @@ -4095,6 +4544,8 @@ type CreateChannelOutput struct { PlaybackMode *string `type:"string"` Tags map[string]*string `locationName:"tags" type:"map"` + + Tier *string `type:"string"` } // String returns the string representation. @@ -4169,6 +4620,187 @@ func (s *CreateChannelOutput) SetTags(v map[string]*string) *CreateChannelOutput return s } +// SetTier sets the Tier field's value. +func (s *CreateChannelOutput) SetTier(v string) *CreateChannelOutput { + s.Tier = &v + return s +} + +// The live source configuration parameters. +type CreateLiveSourceInput struct { + _ struct{} `type:"structure"` + + // A list of HTTP package configuration parameters for this live source. + // + // HttpPackageConfigurations is a required field + HttpPackageConfigurations []*HttpPackageConfiguration `type:"list" required:"true"` + + // LiveSourceName is a required field + LiveSourceName *string `location:"uri" locationName:"liveSourceName" type:"string" required:"true"` + + // SourceLocationName is a required field + SourceLocationName *string `location:"uri" locationName:"sourceLocationName" type:"string" required:"true"` + + // The tags to assign to the live source. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// 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 CreateLiveSourceInput) 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 CreateLiveSourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLiveSourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLiveSourceInput"} + if s.HttpPackageConfigurations == nil { + invalidParams.Add(request.NewErrParamRequired("HttpPackageConfigurations")) + } + if s.LiveSourceName == nil { + invalidParams.Add(request.NewErrParamRequired("LiveSourceName")) + } + if s.LiveSourceName != nil && len(*s.LiveSourceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LiveSourceName", 1)) + } + if s.SourceLocationName == nil { + invalidParams.Add(request.NewErrParamRequired("SourceLocationName")) + } + if s.SourceLocationName != nil && len(*s.SourceLocationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceLocationName", 1)) + } + if s.HttpPackageConfigurations != nil { + for i, v := range s.HttpPackageConfigurations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "HttpPackageConfigurations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHttpPackageConfigurations sets the HttpPackageConfigurations field's value. +func (s *CreateLiveSourceInput) SetHttpPackageConfigurations(v []*HttpPackageConfiguration) *CreateLiveSourceInput { + s.HttpPackageConfigurations = v + return s +} + +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *CreateLiveSourceInput) SetLiveSourceName(v string) *CreateLiveSourceInput { + s.LiveSourceName = &v + return s +} + +// SetSourceLocationName sets the SourceLocationName field's value. +func (s *CreateLiveSourceInput) SetSourceLocationName(v string) *CreateLiveSourceInput { + s.SourceLocationName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLiveSourceInput) SetTags(v map[string]*string) *CreateLiveSourceInput { + s.Tags = v + return s +} + +type CreateLiveSourceOutput struct { + _ struct{} `type:"structure"` + + Arn *string `type:"string"` + + CreationTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` + + // The VOD source's HTTP package configuration settings. + HttpPackageConfigurations []*HttpPackageConfiguration `type:"list"` + + LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` + + LiveSourceName *string `type:"string"` + + SourceLocationName *string `type:"string"` + + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// 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 CreateLiveSourceOutput) 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 CreateLiveSourceOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateLiveSourceOutput) SetArn(v string) *CreateLiveSourceOutput { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *CreateLiveSourceOutput) SetCreationTime(v time.Time) *CreateLiveSourceOutput { + s.CreationTime = &v + return s +} + +// SetHttpPackageConfigurations sets the HttpPackageConfigurations field's value. +func (s *CreateLiveSourceOutput) SetHttpPackageConfigurations(v []*HttpPackageConfiguration) *CreateLiveSourceOutput { + s.HttpPackageConfigurations = v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *CreateLiveSourceOutput) SetLastModifiedTime(v time.Time) *CreateLiveSourceOutput { + s.LastModifiedTime = &v + return s +} + +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *CreateLiveSourceOutput) SetLiveSourceName(v string) *CreateLiveSourceOutput { + s.LiveSourceName = &v + return s +} + +// SetSourceLocationName sets the SourceLocationName field's value. +func (s *CreateLiveSourceOutput) SetSourceLocationName(v string) *CreateLiveSourceOutput { + s.SourceLocationName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLiveSourceOutput) SetTags(v map[string]*string) *CreateLiveSourceOutput { + s.Tags = v + return s +} + // A complex type that contains configuration settings for retrieval, consumption, // and an optional stream ID. type CreatePrefetchScheduleInput struct { @@ -4375,6 +5007,9 @@ type CreateProgramInput struct { // ChannelName is a required field ChannelName *string `location:"uri" locationName:"channelName" type:"string" required:"true"` + // The name of the LiveSource for this Program. + LiveSourceName *string `type:"string"` + // ProgramName is a required field ProgramName *string `location:"uri" locationName:"programName" type:"string" required:"true"` @@ -4389,9 +5024,7 @@ type CreateProgramInput struct { SourceLocationName *string `type:"string" required:"true"` // The name that's used to refer to a VOD source. - // - // VodSourceName is a required field - VodSourceName *string `type:"string" required:"true"` + VodSourceName *string `type:"string"` } // String returns the string representation. @@ -4433,9 +5066,6 @@ func (s *CreateProgramInput) Validate() error { if s.SourceLocationName == nil { invalidParams.Add(request.NewErrParamRequired("SourceLocationName")) } - if s.VodSourceName == nil { - invalidParams.Add(request.NewErrParamRequired("VodSourceName")) - } if s.ScheduleConfiguration != nil { if err := s.ScheduleConfiguration.Validate(); err != nil { invalidParams.AddNested("ScheduleConfiguration", err.(request.ErrInvalidParams)) @@ -4460,6 +5090,12 @@ func (s *CreateProgramInput) SetChannelName(v string) *CreateProgramInput { return s } +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *CreateProgramInput) SetLiveSourceName(v string) *CreateProgramInput { + s.LiveSourceName = &v + return s +} + // SetProgramName sets the ProgramName field's value. func (s *CreateProgramInput) SetProgramName(v string) *CreateProgramInput { s.ProgramName = &v @@ -4495,6 +5131,8 @@ type CreateProgramOutput struct { CreationTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` + LiveSourceName *string `type:"string"` + ProgramName *string `type:"string"` ScheduledStartTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` @@ -4546,6 +5184,12 @@ func (s *CreateProgramOutput) SetCreationTime(v time.Time) *CreateProgramOutput return s } +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *CreateProgramOutput) SetLiveSourceName(v string) *CreateProgramOutput { + s.LiveSourceName = &v + return s +} + // SetProgramName sets the ProgramName field's value. func (s *CreateProgramOutput) SetProgramName(v string) *CreateProgramOutput { s.ProgramName = &v @@ -4586,7 +5230,7 @@ type CreateSourceLocationInput struct { // HttpConfiguration is a required field HttpConfiguration *HttpConfiguration `type:"structure" required:"true"` - // An array of segment delivery configurations for this source location. + // A list of the segment delivery configurations associated with this resource. SegmentDeliveryConfigurations []*SegmentDeliveryConfiguration `type:"list"` // SourceLocationName is a required field @@ -4780,7 +5424,7 @@ func (s *CreateSourceLocationOutput) SetTags(v map[string]*string) *CreateSource type CreateVodSourceInput struct { _ struct{} `type:"structure"` - // An array of HTTP package configuration parameters for this VOD source. + // A list of HTTP package configuration parameters for this VOD source. // // HttpPackageConfigurations is a required field HttpPackageConfigurations []*HttpPackageConfiguration `type:"list" required:"true"` @@ -5307,6 +5951,91 @@ func (s DeleteChannelPolicyOutput) GoString() string { return s.String() } +type DeleteLiveSourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // LiveSourceName is a required field + LiveSourceName *string `location:"uri" locationName:"liveSourceName" type:"string" required:"true"` + + // SourceLocationName is a required field + SourceLocationName *string `location:"uri" locationName:"sourceLocationName" 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 DeleteLiveSourceInput) 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 DeleteLiveSourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLiveSourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLiveSourceInput"} + if s.LiveSourceName == nil { + invalidParams.Add(request.NewErrParamRequired("LiveSourceName")) + } + if s.LiveSourceName != nil && len(*s.LiveSourceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LiveSourceName", 1)) + } + if s.SourceLocationName == nil { + invalidParams.Add(request.NewErrParamRequired("SourceLocationName")) + } + if s.SourceLocationName != nil && len(*s.SourceLocationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceLocationName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *DeleteLiveSourceInput) SetLiveSourceName(v string) *DeleteLiveSourceInput { + s.LiveSourceName = &v + return s +} + +// SetSourceLocationName sets the SourceLocationName field's value. +func (s *DeleteLiveSourceInput) SetSourceLocationName(v string) *DeleteLiveSourceInput { + s.SourceLocationName = &v + return s +} + +// This response includes only the "type" : "object" property. +type DeleteLiveSourceOutput 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 DeleteLiveSourceOutput) 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 DeleteLiveSourceOutput) GoString() string { + return s.String() +} + type DeletePlaybackConfigurationInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -5780,6 +6509,9 @@ type DescribeChannelOutput struct { // The tags assigned to the channel. Tags map[string]*string `locationName:"tags" type:"map"` + + // The channel's tier. + Tier *string `type:"string"` } // String returns the string representation. @@ -5854,6 +6586,160 @@ func (s *DescribeChannelOutput) SetTags(v map[string]*string) *DescribeChannelOu return s } +// SetTier sets the Tier field's value. +func (s *DescribeChannelOutput) SetTier(v string) *DescribeChannelOutput { + s.Tier = &v + return s +} + +type DescribeLiveSourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // LiveSourceName is a required field + LiveSourceName *string `location:"uri" locationName:"liveSourceName" type:"string" required:"true"` + + // SourceLocationName is a required field + SourceLocationName *string `location:"uri" locationName:"sourceLocationName" 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 DescribeLiveSourceInput) 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 DescribeLiveSourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeLiveSourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeLiveSourceInput"} + if s.LiveSourceName == nil { + invalidParams.Add(request.NewErrParamRequired("LiveSourceName")) + } + if s.LiveSourceName != nil && len(*s.LiveSourceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LiveSourceName", 1)) + } + if s.SourceLocationName == nil { + invalidParams.Add(request.NewErrParamRequired("SourceLocationName")) + } + if s.SourceLocationName != nil && len(*s.SourceLocationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceLocationName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *DescribeLiveSourceInput) SetLiveSourceName(v string) *DescribeLiveSourceInput { + s.LiveSourceName = &v + return s +} + +// SetSourceLocationName sets the SourceLocationName field's value. +func (s *DescribeLiveSourceInput) SetSourceLocationName(v string) *DescribeLiveSourceInput { + s.SourceLocationName = &v + return s +} + +// This response includes only the "type" : "object" property. +type DescribeLiveSourceOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the live source. + Arn *string `type:"string"` + + // The timestamp that indicates when the live source was created. + CreationTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` + + // The HTTP package configurations. + HttpPackageConfigurations []*HttpPackageConfiguration `type:"list"` + + // The timestamp that indicates when the live source was modified. + LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` + + // The name of the live source. + LiveSourceName *string `type:"string"` + + // The name of the source location associated with the VOD source. + SourceLocationName *string `type:"string"` + + // The tags assigned to the live source. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// 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 DescribeLiveSourceOutput) 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 DescribeLiveSourceOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *DescribeLiveSourceOutput) SetArn(v string) *DescribeLiveSourceOutput { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeLiveSourceOutput) SetCreationTime(v time.Time) *DescribeLiveSourceOutput { + s.CreationTime = &v + return s +} + +// SetHttpPackageConfigurations sets the HttpPackageConfigurations field's value. +func (s *DescribeLiveSourceOutput) SetHttpPackageConfigurations(v []*HttpPackageConfiguration) *DescribeLiveSourceOutput { + s.HttpPackageConfigurations = v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeLiveSourceOutput) SetLastModifiedTime(v time.Time) *DescribeLiveSourceOutput { + s.LastModifiedTime = &v + return s +} + +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *DescribeLiveSourceOutput) SetLiveSourceName(v string) *DescribeLiveSourceOutput { + s.LiveSourceName = &v + return s +} + +// SetSourceLocationName sets the SourceLocationName field's value. +func (s *DescribeLiveSourceOutput) SetSourceLocationName(v string) *DescribeLiveSourceOutput { + s.SourceLocationName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeLiveSourceOutput) SetTags(v map[string]*string) *DescribeLiveSourceOutput { + s.Tags = v + return s +} + type DescribeProgramInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -5932,6 +6818,9 @@ type DescribeProgramOutput struct { // The timestamp of when the program was created. CreationTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` + // The name of the LiveSource for this Program. + LiveSourceName *string `type:"string"` + // The name of the program. ProgramName *string `type:"string"` @@ -5989,6 +6878,12 @@ func (s *DescribeProgramOutput) SetCreationTime(v time.Time) *DescribeProgramOut return s } +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *DescribeProgramOutput) SetLiveSourceName(v string) *DescribeProgramOutput { + s.LiveSourceName = &v + return s +} + // SetProgramName sets the ProgramName field's value. func (s *DescribeProgramOutput) SetProgramName(v string) *DescribeProgramOutput { s.ProgramName = &v @@ -6082,7 +6977,7 @@ type DescribeSourceLocationOutput struct { // The timestamp that indicates when the source location was last modified. LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` - // An array of segment delivery configurations for this source location. + // A list of the segment delivery configurations associated with this resource. SegmentDeliveryConfigurations []*SegmentDeliveryConfiguration `type:"list"` // The name of the source location. @@ -6239,7 +7134,7 @@ type DescribeVodSourceOutput struct { // The HTTP package configurations. HttpPackageConfigurations []*HttpPackageConfiguration `type:"list"` - // The ARN for the VOD source. + // The last modified time of the VOD source. LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` // The name of the source location associated with the VOD source. @@ -6469,7 +7364,7 @@ func (s *GetChannelScheduleInput) SetNextToken(v string) *GetChannelScheduleInpu type GetChannelScheduleOutput struct { _ struct{} `type:"structure"` - // An array of schedule entries for the channel. + // A list of schedule entries for the channel. Items []*ScheduleEntry `type:"list"` // Pagination token from the GET list request. Use the token to fetch the next @@ -7170,7 +8065,7 @@ func (s *ListAlertsInput) SetResourceArn(v string) *ListAlertsInput { type ListAlertsOutput struct { _ struct{} `type:"structure"` - // An array of alerts that are associated with this resource. + // A list of alerts that are associated with this resource. Items []*Alert `type:"list"` // Pagination token from the list request. Use the token to fetch the next page @@ -7248,26 +8143,134 @@ func (s *ListChannelsInput) Validate() error { } // SetMaxResults sets the MaxResults field's value. -func (s *ListChannelsInput) SetMaxResults(v int64) *ListChannelsInput { +func (s *ListChannelsInput) SetMaxResults(v int64) *ListChannelsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListChannelsInput) SetNextToken(v string) *ListChannelsInput { + s.NextToken = &v + return s +} + +// Returns a list of channels. +type ListChannelsOutput struct { + _ struct{} `type:"structure"` + + // A list of channels that are associated with this account. + Items []*Channel `type:"list"` + + // Pagination token returned by the list request when results exceed the maximum + // allowed. Use the token to fetch 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 ListChannelsOutput) 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 ListChannelsOutput) GoString() string { + return s.String() +} + +// SetItems sets the Items field's value. +func (s *ListChannelsOutput) SetItems(v []*Channel) *ListChannelsOutput { + s.Items = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListChannelsOutput) SetNextToken(v string) *ListChannelsOutput { + s.NextToken = &v + return s +} + +type ListLiveSourcesInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // SourceLocationName is a required field + SourceLocationName *string `location:"uri" locationName:"sourceLocationName" 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 ListLiveSourcesInput) 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 ListLiveSourcesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLiveSourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLiveSourcesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.SourceLocationName == nil { + invalidParams.Add(request.NewErrParamRequired("SourceLocationName")) + } + if s.SourceLocationName != nil && len(*s.SourceLocationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceLocationName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListLiveSourcesInput) SetMaxResults(v int64) *ListLiveSourcesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListChannelsInput) SetNextToken(v string) *ListChannelsInput { +func (s *ListLiveSourcesInput) SetNextToken(v string) *ListLiveSourcesInput { s.NextToken = &v return s } -// Returns a list of channels. -type ListChannelsOutput struct { +// SetSourceLocationName sets the SourceLocationName field's value. +func (s *ListLiveSourcesInput) SetSourceLocationName(v string) *ListLiveSourcesInput { + s.SourceLocationName = &v + return s +} + +// A list of your live sources. +type ListLiveSourcesOutput struct { _ struct{} `type:"structure"` - // An array of channels that are associated with this account. - Items []*Channel `type:"list"` + // Lists the live sources. + Items []*LiveSource `type:"list"` - // Pagination token returned by the list request when results exceed the maximum - // allowed. Use the token to fetch the next page of results. + // Pagination token from the list request. Use the token to fetch the next page + // of results. NextToken *string `type:"string"` } @@ -7276,7 +8279,7 @@ type ListChannelsOutput 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 ListChannelsOutput) String() string { +func (s ListLiveSourcesOutput) String() string { return awsutil.Prettify(s) } @@ -7285,18 +8288,18 @@ func (s ListChannelsOutput) 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 ListChannelsOutput) GoString() string { +func (s ListLiveSourcesOutput) GoString() string { return s.String() } // SetItems sets the Items field's value. -func (s *ListChannelsOutput) SetItems(v []*Channel) *ListChannelsOutput { +func (s *ListLiveSourcesOutput) SetItems(v []*LiveSource) *ListLiveSourcesOutput { s.Items = v return s } // SetNextToken sets the NextToken field's value. -func (s *ListChannelsOutput) SetNextToken(v string) *ListChannelsOutput { +func (s *ListLiveSourcesOutput) SetNextToken(v string) *ListLiveSourcesOutput { s.NextToken = &v return s } @@ -7585,7 +8588,7 @@ func (s *ListSourceLocationsInput) SetNextToken(v string) *ListSourceLocationsIn type ListSourceLocationsOutput struct { _ struct{} `type:"structure"` - // An array of source locations. + // A list of source locations. Items []*SourceLocation `type:"list"` // Pagination token from the list request. Use the token to fetch the next page @@ -7766,7 +8769,7 @@ func (s *ListVodSourcesInput) SetSourceLocationName(v string) *ListVodSourcesInp return s } -// An array of VOD sources. +// A list of VOD sources. type ListVodSourcesOutput struct { _ struct{} `type:"structure"` @@ -7855,6 +8858,100 @@ func (s *LivePreRollConfiguration) SetMaxDurationSeconds(v int64) *LivePreRollCo return s } +// Live source configuration parameters. +type LiveSource struct { + _ struct{} `type:"structure"` + + // The ARN for the live source. + // + // Arn is a required field + Arn *string `type:"string" required:"true"` + + // The timestamp that indicates when the live source was created. + CreationTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` + + // The HTTP package configurations for the live source. + // + // HttpPackageConfigurations is a required field + HttpPackageConfigurations []*HttpPackageConfiguration `type:"list" required:"true"` + + // The timestamp that indicates when the live source was last modified. + LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` + + // The name that's used to refer to a live source. + // + // LiveSourceName is a required field + LiveSourceName *string `type:"string" required:"true"` + + // The name of the source location. + // + // SourceLocationName is a required field + SourceLocationName *string `type:"string" required:"true"` + + // The tags assigned to the live source. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// 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 LiveSource) 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 LiveSource) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *LiveSource) SetArn(v string) *LiveSource { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *LiveSource) SetCreationTime(v time.Time) *LiveSource { + s.CreationTime = &v + return s +} + +// SetHttpPackageConfigurations sets the HttpPackageConfigurations field's value. +func (s *LiveSource) SetHttpPackageConfigurations(v []*HttpPackageConfiguration) *LiveSource { + s.HttpPackageConfigurations = v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *LiveSource) SetLastModifiedTime(v time.Time) *LiveSource { + s.LastModifiedTime = &v + return s +} + +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *LiveSource) SetLiveSourceName(v string) *LiveSource { + s.LiveSourceName = &v + return s +} + +// SetSourceLocationName sets the SourceLocationName field's value. +func (s *LiveSource) SetSourceLocationName(v string) *LiveSource { + s.SourceLocationName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *LiveSource) SetTags(v map[string]*string) *LiveSource { + s.Tags = v + return s +} + // Returns Amazon CloudWatch log settings for a playback configuration. type LogConfiguration struct { _ struct{} `type:"structure"` @@ -9157,6 +10254,9 @@ type ScheduleEntry struct { // ChannelName is a required field ChannelName *string `type:"string" required:"true"` + // The name of the live source used for the program. + LiveSourceName *string `type:"string"` + // The name of the program. // // ProgramName is a required field @@ -9176,9 +10276,7 @@ type ScheduleEntry struct { SourceLocationName *string `type:"string" required:"true"` // The name of the VOD source. - // - // VodSourceName is a required field - VodSourceName *string `type:"string" required:"true"` + VodSourceName *string `type:"string"` } // String returns the string representation. @@ -9223,6 +10321,12 @@ func (s *ScheduleEntry) SetChannelName(v string) *ScheduleEntry { return s } +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *ScheduleEntry) SetLiveSourceName(v string) *ScheduleEntry { + s.LiveSourceName = &v + return s +} + // SetProgramName sets the ProgramName field's value. func (s *ScheduleEntry) SetProgramName(v string) *ScheduleEntry { s.ProgramName = &v @@ -9309,6 +10413,11 @@ func (s *SecretsManagerAccessTokenConfiguration) SetSecretStringKey(v string) *S return s } +// The base URL of the host or path of the segment delivery server that you're +// using to serve segments. This is typically a content delivery network (CDN). +// The URL can be absolute or relative. To use an absolute URL include the protocol, +// such as https://example.com/some/path. To use a relative URL specify the +// relative path, such as /some/path*. type SegmentDeliveryConfiguration struct { _ struct{} `type:"structure"` @@ -9316,7 +10425,7 @@ type SegmentDeliveryConfiguration struct { // using to serve segments. This is typically a content delivery network (CDN). // The URL can be absolute or relative. To use an absolute URL include the protocol, // such as https://example.com/some/path. To use a relative URL specify the - // relative path, such as /some/path. + // relative path, such as /some/path*. BaseUrl *string `type:"string"` // A unique identifier used to distinguish between multiple segment delivery @@ -9422,7 +10531,7 @@ type SourceLocation struct { // The timestamp that indicates when the source location was last modified. LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` - // An array of segment delivery configurations for this source location. + // The segment delivery configurations for the source location. SegmentDeliveryConfigurations []*SegmentDeliveryConfiguration `type:"list"` // The name of the source location. @@ -9795,6 +10904,9 @@ func (s TagResourceOutput) GoString() string { type Transition struct { _ struct{} `type:"structure"` + // The duration of the live program in seconds. + DurationMillis *int64 `type:"long"` + // The position where this program will be inserted relative to the RelativePosition. // // RelativePosition is a required field @@ -9863,6 +10975,12 @@ func (s *Transition) Validate() error { return nil } +// SetDurationMillis sets the DurationMillis field's value. +func (s *Transition) SetDurationMillis(v int64) *Transition { + s.DurationMillis = &v + return s +} + // SetRelativePosition sets the RelativePosition field's value. func (s *Transition) SetRelativePosition(v string) *Transition { s.RelativePosition = &v @@ -10072,6 +11190,8 @@ type UpdateChannelOutput struct { PlaybackMode *string `type:"string"` Tags map[string]*string `locationName:"tags" type:"map"` + + Tier *string `type:"string"` } // String returns the string representation. @@ -10146,6 +11266,178 @@ func (s *UpdateChannelOutput) SetTags(v map[string]*string) *UpdateChannelOutput return s } +// SetTier sets the Tier field's value. +func (s *UpdateChannelOutput) SetTier(v string) *UpdateChannelOutput { + s.Tier = &v + return s +} + +// Updates a live source's configuration. +type UpdateLiveSourceInput struct { + _ struct{} `type:"structure"` + + // A list of HTTP package configurations for the live source on this account. + // + // HttpPackageConfigurations is a required field + HttpPackageConfigurations []*HttpPackageConfiguration `type:"list" required:"true"` + + // LiveSourceName is a required field + LiveSourceName *string `location:"uri" locationName:"liveSourceName" type:"string" required:"true"` + + // SourceLocationName is a required field + SourceLocationName *string `location:"uri" locationName:"sourceLocationName" 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 UpdateLiveSourceInput) 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 UpdateLiveSourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateLiveSourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateLiveSourceInput"} + if s.HttpPackageConfigurations == nil { + invalidParams.Add(request.NewErrParamRequired("HttpPackageConfigurations")) + } + if s.LiveSourceName == nil { + invalidParams.Add(request.NewErrParamRequired("LiveSourceName")) + } + if s.LiveSourceName != nil && len(*s.LiveSourceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LiveSourceName", 1)) + } + if s.SourceLocationName == nil { + invalidParams.Add(request.NewErrParamRequired("SourceLocationName")) + } + if s.SourceLocationName != nil && len(*s.SourceLocationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceLocationName", 1)) + } + if s.HttpPackageConfigurations != nil { + for i, v := range s.HttpPackageConfigurations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "HttpPackageConfigurations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHttpPackageConfigurations sets the HttpPackageConfigurations field's value. +func (s *UpdateLiveSourceInput) SetHttpPackageConfigurations(v []*HttpPackageConfiguration) *UpdateLiveSourceInput { + s.HttpPackageConfigurations = v + return s +} + +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *UpdateLiveSourceInput) SetLiveSourceName(v string) *UpdateLiveSourceInput { + s.LiveSourceName = &v + return s +} + +// SetSourceLocationName sets the SourceLocationName field's value. +func (s *UpdateLiveSourceInput) SetSourceLocationName(v string) *UpdateLiveSourceInput { + s.SourceLocationName = &v + return s +} + +type UpdateLiveSourceOutput struct { + _ struct{} `type:"structure"` + + Arn *string `type:"string"` + + CreationTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` + + // The VOD source's HTTP package configuration settings. + HttpPackageConfigurations []*HttpPackageConfiguration `type:"list"` + + LastModifiedTime *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"` + + LiveSourceName *string `type:"string"` + + SourceLocationName *string `type:"string"` + + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// 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 UpdateLiveSourceOutput) 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 UpdateLiveSourceOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *UpdateLiveSourceOutput) SetArn(v string) *UpdateLiveSourceOutput { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *UpdateLiveSourceOutput) SetCreationTime(v time.Time) *UpdateLiveSourceOutput { + s.CreationTime = &v + return s +} + +// SetHttpPackageConfigurations sets the HttpPackageConfigurations field's value. +func (s *UpdateLiveSourceOutput) SetHttpPackageConfigurations(v []*HttpPackageConfiguration) *UpdateLiveSourceOutput { + s.HttpPackageConfigurations = v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *UpdateLiveSourceOutput) SetLastModifiedTime(v time.Time) *UpdateLiveSourceOutput { + s.LastModifiedTime = &v + return s +} + +// SetLiveSourceName sets the LiveSourceName field's value. +func (s *UpdateLiveSourceOutput) SetLiveSourceName(v string) *UpdateLiveSourceOutput { + s.LiveSourceName = &v + return s +} + +// SetSourceLocationName sets the SourceLocationName field's value. +func (s *UpdateLiveSourceOutput) SetSourceLocationName(v string) *UpdateLiveSourceOutput { + s.SourceLocationName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *UpdateLiveSourceOutput) SetTags(v map[string]*string) *UpdateLiveSourceOutput { + s.Tags = v + return s +} + // Source location configuration parameters. type UpdateSourceLocationInput struct { _ struct{} `type:"structure"` @@ -10162,7 +11454,7 @@ type UpdateSourceLocationInput struct { // HttpConfiguration is a required field HttpConfiguration *HttpConfiguration `type:"structure" required:"true"` - // An array of segment delivery configurations for this source location. + // A list of the segment delivery configurations associated with this resource. SegmentDeliveryConfigurations []*SegmentDeliveryConfiguration `type:"list"` // SourceLocationName is a required field @@ -10347,7 +11639,7 @@ func (s *UpdateSourceLocationOutput) SetTags(v map[string]*string) *UpdateSource type UpdateVodSourceInput struct { _ struct{} `type:"structure"` - // An array of HTTP package configurations for the VOD source on this account. + // A list of HTTP package configurations for the VOD source on this account. // // HttpPackageConfigurations is a required field HttpPackageConfigurations []*HttpPackageConfiguration `type:"list" required:"true"` @@ -10739,6 +12031,22 @@ func ScheduleEntryType_Values() []string { } } +const ( + // TierBasic is a Tier enum value + TierBasic = "BASIC" + + // TierStandard is a Tier enum value + TierStandard = "STANDARD" +) + +// Tier_Values returns all elements of the Tier enum +func Tier_Values() []string { + return []string{ + TierBasic, + TierStandard, + } +} + const ( // TypeDash is a Type enum value TypeDash = "DASH" diff --git a/service/mediatailor/mediatailoriface/interface.go b/service/mediatailor/mediatailoriface/interface.go index 71800d9321..36572892e6 100644 --- a/service/mediatailor/mediatailoriface/interface.go +++ b/service/mediatailor/mediatailoriface/interface.go @@ -68,6 +68,10 @@ type MediaTailorAPI interface { CreateChannelWithContext(aws.Context, *mediatailor.CreateChannelInput, ...request.Option) (*mediatailor.CreateChannelOutput, error) CreateChannelRequest(*mediatailor.CreateChannelInput) (*request.Request, *mediatailor.CreateChannelOutput) + CreateLiveSource(*mediatailor.CreateLiveSourceInput) (*mediatailor.CreateLiveSourceOutput, error) + CreateLiveSourceWithContext(aws.Context, *mediatailor.CreateLiveSourceInput, ...request.Option) (*mediatailor.CreateLiveSourceOutput, error) + CreateLiveSourceRequest(*mediatailor.CreateLiveSourceInput) (*request.Request, *mediatailor.CreateLiveSourceOutput) + CreatePrefetchSchedule(*mediatailor.CreatePrefetchScheduleInput) (*mediatailor.CreatePrefetchScheduleOutput, error) CreatePrefetchScheduleWithContext(aws.Context, *mediatailor.CreatePrefetchScheduleInput, ...request.Option) (*mediatailor.CreatePrefetchScheduleOutput, error) CreatePrefetchScheduleRequest(*mediatailor.CreatePrefetchScheduleInput) (*request.Request, *mediatailor.CreatePrefetchScheduleOutput) @@ -92,6 +96,10 @@ type MediaTailorAPI interface { DeleteChannelPolicyWithContext(aws.Context, *mediatailor.DeleteChannelPolicyInput, ...request.Option) (*mediatailor.DeleteChannelPolicyOutput, error) DeleteChannelPolicyRequest(*mediatailor.DeleteChannelPolicyInput) (*request.Request, *mediatailor.DeleteChannelPolicyOutput) + DeleteLiveSource(*mediatailor.DeleteLiveSourceInput) (*mediatailor.DeleteLiveSourceOutput, error) + DeleteLiveSourceWithContext(aws.Context, *mediatailor.DeleteLiveSourceInput, ...request.Option) (*mediatailor.DeleteLiveSourceOutput, error) + DeleteLiveSourceRequest(*mediatailor.DeleteLiveSourceInput) (*request.Request, *mediatailor.DeleteLiveSourceOutput) + DeletePlaybackConfiguration(*mediatailor.DeletePlaybackConfigurationInput) (*mediatailor.DeletePlaybackConfigurationOutput, error) DeletePlaybackConfigurationWithContext(aws.Context, *mediatailor.DeletePlaybackConfigurationInput, ...request.Option) (*mediatailor.DeletePlaybackConfigurationOutput, error) DeletePlaybackConfigurationRequest(*mediatailor.DeletePlaybackConfigurationInput) (*request.Request, *mediatailor.DeletePlaybackConfigurationOutput) @@ -116,6 +124,10 @@ type MediaTailorAPI interface { DescribeChannelWithContext(aws.Context, *mediatailor.DescribeChannelInput, ...request.Option) (*mediatailor.DescribeChannelOutput, error) DescribeChannelRequest(*mediatailor.DescribeChannelInput) (*request.Request, *mediatailor.DescribeChannelOutput) + DescribeLiveSource(*mediatailor.DescribeLiveSourceInput) (*mediatailor.DescribeLiveSourceOutput, error) + DescribeLiveSourceWithContext(aws.Context, *mediatailor.DescribeLiveSourceInput, ...request.Option) (*mediatailor.DescribeLiveSourceOutput, error) + DescribeLiveSourceRequest(*mediatailor.DescribeLiveSourceInput) (*request.Request, *mediatailor.DescribeLiveSourceOutput) + DescribeProgram(*mediatailor.DescribeProgramInput) (*mediatailor.DescribeProgramOutput, error) DescribeProgramWithContext(aws.Context, *mediatailor.DescribeProgramInput, ...request.Option) (*mediatailor.DescribeProgramOutput, error) DescribeProgramRequest(*mediatailor.DescribeProgramInput) (*request.Request, *mediatailor.DescribeProgramOutput) @@ -161,6 +173,13 @@ type MediaTailorAPI interface { ListChannelsPages(*mediatailor.ListChannelsInput, func(*mediatailor.ListChannelsOutput, bool) bool) error ListChannelsPagesWithContext(aws.Context, *mediatailor.ListChannelsInput, func(*mediatailor.ListChannelsOutput, bool) bool, ...request.Option) error + ListLiveSources(*mediatailor.ListLiveSourcesInput) (*mediatailor.ListLiveSourcesOutput, error) + ListLiveSourcesWithContext(aws.Context, *mediatailor.ListLiveSourcesInput, ...request.Option) (*mediatailor.ListLiveSourcesOutput, error) + ListLiveSourcesRequest(*mediatailor.ListLiveSourcesInput) (*request.Request, *mediatailor.ListLiveSourcesOutput) + + ListLiveSourcesPages(*mediatailor.ListLiveSourcesInput, func(*mediatailor.ListLiveSourcesOutput, bool) bool) error + ListLiveSourcesPagesWithContext(aws.Context, *mediatailor.ListLiveSourcesInput, func(*mediatailor.ListLiveSourcesOutput, bool) bool, ...request.Option) error + ListPlaybackConfigurations(*mediatailor.ListPlaybackConfigurationsInput) (*mediatailor.ListPlaybackConfigurationsOutput, error) ListPlaybackConfigurationsWithContext(aws.Context, *mediatailor.ListPlaybackConfigurationsInput, ...request.Option) (*mediatailor.ListPlaybackConfigurationsOutput, error) ListPlaybackConfigurationsRequest(*mediatailor.ListPlaybackConfigurationsInput) (*request.Request, *mediatailor.ListPlaybackConfigurationsOutput) @@ -221,6 +240,10 @@ type MediaTailorAPI interface { UpdateChannelWithContext(aws.Context, *mediatailor.UpdateChannelInput, ...request.Option) (*mediatailor.UpdateChannelOutput, error) UpdateChannelRequest(*mediatailor.UpdateChannelInput) (*request.Request, *mediatailor.UpdateChannelOutput) + UpdateLiveSource(*mediatailor.UpdateLiveSourceInput) (*mediatailor.UpdateLiveSourceOutput, error) + UpdateLiveSourceWithContext(aws.Context, *mediatailor.UpdateLiveSourceInput, ...request.Option) (*mediatailor.UpdateLiveSourceOutput, error) + UpdateLiveSourceRequest(*mediatailor.UpdateLiveSourceInput) (*request.Request, *mediatailor.UpdateLiveSourceOutput) + UpdateSourceLocation(*mediatailor.UpdateSourceLocationInput) (*mediatailor.UpdateSourceLocationOutput, error) UpdateSourceLocationWithContext(aws.Context, *mediatailor.UpdateSourceLocationInput, ...request.Option) (*mediatailor.UpdateSourceLocationOutput, error) UpdateSourceLocationRequest(*mediatailor.UpdateSourceLocationInput) (*request.Request, *mediatailor.UpdateSourceLocationOutput) diff --git a/service/secretsmanager/api.go b/service/secretsmanager/api.go index 12eebd49b8..7c14caea56 100644 --- a/service/secretsmanager/api.go +++ b/service/secretsmanager/api.go @@ -70,7 +70,7 @@ func (c *SecretsManager) CancelRotateSecretRequest(input *CancelRotateSecretInpu // deleted. You can delete a version by removing all staging labels from it. // // Required permissions: secretsmanager:CancelRotateSecret. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -167,12 +167,13 @@ func (c *SecretsManager) CreateSecretRequest(input *CreateSecretInput) (req *req // CreateSecret API operation for AWS Secrets Manager. // -// Creates a new secret. A secret is a set of credentials, such as a user name -// and password, that you store in an encrypted form in Secrets Manager. The -// secret also includes the connection information to access a database or other -// service, which Secrets Manager doesn't encrypt. A secret in Secrets Manager -// consists of both the protected secret data and the important information -// needed to manage the secret. +// Creates a new secret. A secret can be a password, a set of credentials such +// as a user name and password, an OAuth token, or other secret information +// that you store in an encrypted form in Secrets Manager. The secret also includes +// the connection information to access a database or other service, which Secrets +// Manager doesn't encrypt. A secret in Secrets Manager consists of both the +// protected secret data and the important information needed to manage the +// secret. // // For information about creating a secret in the console, see Create a secret // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html). @@ -183,6 +184,10 @@ func (c *SecretsManager) CreateSecretRequest(input *CreateSecretInput) (req *req // initial secret version and automatically attaches the staging label AWSCURRENT // to it. // +// For database credentials you want to rotate, for Secrets Manager to be able +// to rotate the secret, you must make sure the JSON you store in the SecretString +// matches the JSON structure of a database secret (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_secret_json_structure.html). +// // If you don't specify an KMS encryption key, Secrets Manager uses the Amazon // Web Services managed key aws/secretsmanager. If this key doesn't already // exist in your account, then Secrets Manager creates it for you automatically. @@ -194,10 +199,14 @@ func (c *SecretsManager) CreateSecretRequest(input *CreateSecretInput) (req *req // calling the API, then you can't use aws/secretsmanager to encrypt the secret, // and you must create and use a customer managed KMS key. // -// Required permissions: secretsmanager:CreateSecret. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// Required permissions: secretsmanager:CreateSecret. If you include tags in +// the secret, you also need secretsmanager:TagResource. For more information, +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // +// To encrypt the secret with a KMS key other than aws/secretsmanager, you need +// kms:GenerateDataKey and kms:Decrypt permission to the key. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -317,7 +326,7 @@ func (c *SecretsManager) DeleteResourcePolicyRequest(input *DeleteResourcePolicy // a policy to a secret, use PutResourcePolicy. // // Required permissions: secretsmanager:DeleteResourcePolicy. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -436,7 +445,7 @@ func (c *SecretsManager) DeleteSecretRequest(input *DeleteSecretInput) (req *req // and then retrieve the information. // // Required permissions: secretsmanager:DeleteSecret. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -537,7 +546,7 @@ func (c *SecretsManager) DescribeSecretRequest(input *DescribeSecretInput) (req // value. Secrets Manager only returns fields that have a value in the response. // // Required permissions: secretsmanager:DescribeSecret. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -628,7 +637,7 @@ func (c *SecretsManager) GetRandomPasswordRequest(input *GetRandomPasswordInput) // for can support. // // Required permissions: secretsmanager:GetRandomPassword. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -727,7 +736,7 @@ func (c *SecretsManager) GetResourcePolicyRequest(input *GetResourcePolicyInput) // secret, see Permissions policies attached to a secret (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-policies.html). // // Required permissions: secretsmanager:GetResourcePolicy. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -834,7 +843,7 @@ func (c *SecretsManager) GetSecretValueRequest(input *GetSecretValueInput) (req // Required permissions: secretsmanager:GetSecretValue. If the secret is encrypted // using a customer-managed key instead of the Amazon Web Services managed key // aws/secretsmanager, then you also need kms:Decrypt permissions for that key. -// For more information, see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// For more information, see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -948,7 +957,7 @@ func (c *SecretsManager) ListSecretVersionIdsRequest(input *ListSecretVersionIds // To get the secret value from SecretString or SecretBinary, call GetSecretValue. // // Required permissions: secretsmanager:ListSecretVersionIds. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1107,7 +1116,7 @@ func (c *SecretsManager) ListSecretsRequest(input *ListSecretsInput) (req *reque // capabilities for secrets in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_search-secret.html). // // Required permissions: secretsmanager:ListSecrets. For more information, see -// IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1253,7 +1262,7 @@ func (c *SecretsManager) PutResourcePolicyRequest(input *PutResourcePolicyInput) // policy to a secret (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-based-policies.html). // // Required permissions: secretsmanager:PutResourcePolicy. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1386,7 +1395,7 @@ func (c *SecretsManager) PutSecretValueRequest(input *PutSecretValueInput) (req // modify an existing version; you can only create new ones. // // Required permissions: secretsmanager:PutSecretValue. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1502,7 +1511,7 @@ func (c *SecretsManager) RemoveRegionsFromReplicationRequest(input *RemoveRegion // from the Regions you specify. // // Required permissions: secretsmanager:RemoveRegionsFromReplication. For more -// information, see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// information, see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1602,7 +1611,7 @@ func (c *SecretsManager) ReplicateSecretToRegionsRequest(input *ReplicateSecretT // Replicates the secret to a new Regions. See Multi-Region secrets (https://docs.aws.amazon.com/secretsmanager/latest/userguide/create-manage-multi-region-secrets.html). // // Required permissions: secretsmanager:ReplicateSecretToRegions. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1703,7 +1712,7 @@ func (c *SecretsManager) RestoreSecretRequest(input *RestoreSecretInput) (req *r // stamp. You can access a secret again after it has been restored. // // Required permissions: secretsmanager:RestoreSecret. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1800,15 +1809,21 @@ func (c *SecretsManager) RotateSecretRequest(input *RotateSecretInput) (req *req // RotateSecret API operation for AWS Secrets Manager. // -// Configures and starts the asynchronous process of rotating the secret. +// Configures and starts the asynchronous process of rotating the secret. For +// more information about rotation, see Rotate secrets (https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html). // // If you include the configuration parameters, the operation sets the values // for the secret and then immediately starts a rotation. If you don't include // the configuration parameters, the operation starts a rotation with the values -// already stored in the secret. For more information about rotation, see Rotate -// secrets (https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html). +// already stored in the secret. +// +// For database credentials you want to rotate, for Secrets Manager to be able +// to rotate the secret, you must make sure the secret value is in the JSON +// structure of a database secret (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_secret_json_structure.html). +// In particular, if you want to use the alternating users strategy (https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets_strategies.html#rotating-secrets-two-users), +// your secret must contain the ARN of a superuser secret. // -// To configure rotation, you include the ARN of an Amazon Web Services Lambda +// To configure rotation, you also need the ARN of an Amazon Web Services Lambda // function and the schedule for the rotation. The Lambda rotation function // creates a new version of the secret and creates or updates the credentials // on the database or service to match. After testing the new credentials, the @@ -1816,16 +1831,20 @@ func (c *SecretsManager) RotateSecretRequest(input *RotateSecretInput) (req *req // Then anyone who retrieves the secret gets the new version. For more information, // see How rotation works (https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html). // +// You can create the Lambda rotation function based on the rotation function +// templates (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html) +// that Secrets Manager provides. Choose a template that matches your Rotation +// strategy (https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets_strategies.html). +// // When rotation is successful, the AWSPENDING staging label might be attached // to the same version as the AWSCURRENT version, or it might not be attached -// to any version. -// -// If the AWSPENDING staging label is present but not attached to the same version -// as AWSCURRENT, then any later invocation of RotateSecret assumes that a previous -// rotation request is still in progress and returns an error. +// to any version. If the AWSPENDING staging label is present but not attached +// to the same version as AWSCURRENT, then any later invocation of RotateSecret +// assumes that a previous rotation request is still in progress and returns +// an error. // // Required permissions: secretsmanager:RotateSecret. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // You also need lambda:InvokeFunction permissions on the rotation function. // For more information, see Permissions for rotation (https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets-required-permissions-function.html). @@ -1931,7 +1950,7 @@ func (c *SecretsManager) StopReplicationToReplicaRequest(input *StopReplicationT // the replica to a primary secret. // // Required permissions: secretsmanager:StopReplicationToReplica. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2059,7 +2078,7 @@ func (c *SecretsManager) TagResourceRequest(input *TagResourceInput) (req *reque // is blocked and returns an Access Denied error. // // Required permissions: secretsmanager:TagResource. For more information, see -// IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2168,7 +2187,7 @@ func (c *SecretsManager) UntagResourceRequest(input *UntagResourceInput) (req *r // and returns an Access Denied error. // // Required permissions: secretsmanager:UntagResource. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2299,7 +2318,7 @@ func (c *SecretsManager) UpdateSecretRequest(input *UpdateSecretInput) (req *req // and you must create and use a customer managed key. // // Required permissions: secretsmanager:UpdateSecret. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // If you use a customer managed key, you must also have kms:GenerateDataKey // and kms:Decrypt permissions on the key. For more information, see Secret @@ -2442,7 +2461,7 @@ func (c *SecretsManager) UpdateSecretVersionStageRequest(input *UpdateSecretVers // Manager. // // Required permissions: secretsmanager:UpdateSecretVersionStage. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2557,7 +2576,7 @@ func (c *SecretsManager) ValidateResourcePolicyRequest(input *ValidateResourcePo // * Verifies the policy does not lock out a caller. // // Required permissions: secretsmanager:ValidateResourcePolicy. For more information, -// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions) +// see IAM policy actions for Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions) // and Authentication and access control in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2619,7 +2638,7 @@ type CancelRotateSecretInput struct { // The ARN or name of the secret. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -3117,7 +3136,7 @@ type DeleteResourcePolicyInput struct { // for. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -3231,7 +3250,7 @@ type DeleteSecretInput struct { // The ARN or name of the secret to delete. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -3346,7 +3365,7 @@ type DescribeSecretInput struct { // The ARN or name of the secret. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -3908,7 +3927,7 @@ type GetResourcePolicyInput struct { // for. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -4011,7 +4030,7 @@ type GetSecretValueInput struct { // The ARN or name of the secret to retrieve. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -4553,7 +4572,7 @@ type ListSecretVersionIdsInput struct { // The ARN or name of the secret whose versions you want to list. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -5028,7 +5047,7 @@ type PutResourcePolicyInput struct { // The ARN or name of the secret to attach the resource-based policy. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -5183,7 +5202,7 @@ type PutSecretValueInput struct { // The ARN or name of the secret to add a new version to. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // If the secret doesn't already exist, use CreateSecret instead. // @@ -5838,7 +5857,7 @@ type RestoreSecretInput struct { // The ARN or name of the secret to restore. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -5967,7 +5986,7 @@ type RotateSecretInput struct { // The ARN or name of the secret to rotate. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -6592,7 +6611,7 @@ type TagResourceInput struct { // Amazon Resource Name (ARN) or the friendly name of the secret. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -6696,7 +6715,7 @@ type UntagResourceInput struct { // The ARN or name of the secret. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -6838,7 +6857,7 @@ type UpdateSecretInput struct { // The ARN or name of the secret. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -6998,7 +7017,7 @@ type UpdateSecretVersionStageInput struct { // The ARN or the name of the secret with the version and staging labelsto modify. // // For an ARN, we recommend that you specify a complete ARN rather than a partial - // ARN. + // ARN. See Finding a secret from a partial ARN (https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` diff --git a/service/storagegateway/api.go b/service/storagegateway/api.go index ba9810b232..8012a38e9c 100644 --- a/service/storagegateway/api.go +++ b/service/storagegateway/api.go @@ -528,8 +528,6 @@ func (c *StorageGateway) AssignTapePoolRequest(input *AssignTapePoolInput) (req // into the S3 storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds // to the pool. // -// Valid Values: GLACIER | DEEP_ARCHIVE -// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -2286,8 +2284,8 @@ func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotSche // This API action enables you to delete a snapshot schedule for a volume. For // more information, see Backing up your volumes (https://docs.aws.amazon.com/storagegateway/latest/userguide/backing-up-volumes.html). // In the DeleteSnapshotSchedule request, you identify the volume by providing -// its Amazon Resource Name (ARN). This operation is only supported in stored -// and cached volume gateway types. +// its Amazon Resource Name (ARN). This operation is only supported for cached +// volume gateway types. // // To list or delete a snapshot, you must use the Amazon EC2 API. For more information, // go to DescribeSnapshots (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSnapshots.html) @@ -6471,7 +6469,7 @@ func (c *StorageGateway) NotifyWhenUploadedRequest(input *NotifyWhenUploadedInpu // NotifyWhenUploaded API operation for AWS Storage Gateway. // // Sends you notification through CloudWatch Events when all files written to -// your file share have been uploaded to Amazon S3. +// your file share have been uploaded to S3. Amazon S3. // // Storage Gateway can send a notification through Amazon CloudWatch Events // when all files written to your file share up to that point in time have been @@ -6594,9 +6592,17 @@ func (c *StorageGateway) RefreshCacheRequest(input *RefreshCacheInput) (req *req // see Getting notified about file operations (https://docs.aws.amazon.com/storagegateway/latest/userguide/monitoring-file-gateway.html#get-notification) // in the Storage Gateway User Guide. // -// If you invoke the RefreshCache API when two requests are already being processed, -// any new request will cause an InvalidGatewayRequestException error because -// too many requests were sent to the server. +// * Wait at least 60 seconds between consecutive RefreshCache API requests. +// +// * RefreshCache does not evict cache entries if invoked consecutively within +// 60 seconds of a previous RefreshCache request. +// +// * If you invoke the RefreshCache API when two requests are already being +// processed, any new request will cause an InvalidGatewayRequestException +// error because too many requests were sent to the server. +// +// The S3 bucket name does not need to be included when entering the list of +// folders in the FolderList parameter. // // For more information, see Getting notified about file operations (https://docs.aws.amazon.com/storagegateway/latest/userguide/monitoring-file-gateway.html#get-notification) // in the Storage Gateway User Guide. @@ -9505,8 +9511,6 @@ type AssignTapePoolInput struct { // is archived directly into the storage class (S3 Glacier or S3 Glacier Deep // Archive) that corresponds to the pool. // - // Valid Values: GLACIER | DEEP_ARCHIVE - // // PoolId is a required field PoolId *string `min:"1" type:"string" required:"true"` @@ -10041,8 +10045,6 @@ type AutomaticTapeCreationRule struct { // tape is archived directly into the storage class (S3 Glacier or S3 Glacier // Deep Archive) that corresponds to the pool. // - // Valid Values: GLACIER | DEEP_ARCHIVE - // // PoolId is a required field PoolId *string `min:"1" type:"string" required:"true"` @@ -10386,6 +10388,12 @@ type CachediSCSIVolume struct { // // This value is not available for volumes created prior to May 13, 2015, until // you store data on the volume. + // + // If you use a delete tool that overwrites the data on your volume with random + // data, your usage will not be reduced. This is because the random data is + // not compressible. If you want to reduce the amount of billed storage on your + // volume, we recommend overwriting your files with zeros to compress the data + // to a negligible amount of actual storage. VolumeUsedInBytes *int64 `type:"long"` // An VolumeiSCSIAttributes object that represents a collection of iSCSI attributes @@ -11037,7 +11045,7 @@ type CreateNFSFileShareInput struct { ClientToken *string `min:"5" type:"string" required:"true"` // The default storage class for objects put into an Amazon S3 bucket by the - // S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional. + // S3 File Gateway. The default value is S3_STANDARD. Optional. // // Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA DefaultStorageClass *string `min:"5" type:"string"` @@ -11477,7 +11485,7 @@ type CreateSMBFileShareInput struct { ClientToken *string `min:"5" type:"string" required:"true"` // The default storage class for objects put into an Amazon S3 bucket by the - // S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional. + // S3 File Gateway. The default value is S3_STANDARD. Optional. // // Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA DefaultStorageClass *string `min:"5" type:"string"` @@ -12621,8 +12629,6 @@ type CreateTapeWithBarcodeInput struct { // the pool. When you use your backup application to eject the tape, the tape // is archived directly into the storage class (S3 Glacier or S3 Deep Archive) // that corresponds to the pool. - // - // Valid Values: GLACIER | DEEP_ARCHIVE PoolId *string `min:"1" type:"string"` // A list of up to 50 tags that can be assigned to a virtual tape that has a @@ -12640,7 +12646,7 @@ type CreateTapeWithBarcodeInput struct { // been deleted. // // TapeBarcode is a required field - TapeBarcode *string `min:"7" type:"string" required:"true"` + TapeBarcode *string `min:"5" type:"string" required:"true"` // The size, in bytes, of the virtual tape that you want to create. // @@ -12690,8 +12696,8 @@ func (s *CreateTapeWithBarcodeInput) Validate() error { if s.TapeBarcode == nil { invalidParams.Add(request.NewErrParamRequired("TapeBarcode")) } - if s.TapeBarcode != nil && len(*s.TapeBarcode) < 7 { - invalidParams.Add(request.NewErrParamMinLen("TapeBarcode", 7)) + if s.TapeBarcode != nil && len(*s.TapeBarcode) < 5 { + invalidParams.Add(request.NewErrParamMinLen("TapeBarcode", 5)) } if s.TapeSizeInBytes == nil { invalidParams.Add(request.NewErrParamRequired("TapeSizeInBytes")) @@ -12834,8 +12840,6 @@ type CreateTapesInput struct { // the pool. When you use your backup application to eject the tape, the tape // is archived directly into the storage class (S3 Glacier or S3 Glacier Deep // Archive) that corresponds to the pool. - // - // Valid Values: GLACIER | DEEP_ARCHIVE PoolId *string `min:"1" type:"string"` // A list of up to 50 tags that can be assigned to a virtual tape. Each tag @@ -14728,7 +14732,9 @@ type DescribeGatewayInformationOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is - // used to monitor events in the gateway. + // used to monitor events in the gateway. This field only only exist and returns + // once it have been chosen and set by the SGW service, based on the OS version + // of the gateway VM CloudWatchLogGroupARN *string `type:"string"` // Date after which this gateway will not receive software updates for new features @@ -14784,7 +14790,8 @@ type DescribeGatewayInformationOutput struct { // The date on which the last software update was applied to the gateway. If // the gateway has never been updated, this field does not return a value in - // the response. + // the response. This only only exist and returns once it have been chosen and + // set by the SGW service, based on the OS version of the gateway VM LastSoftwareUpdate *string `min:"1" type:"string"` // The date on which an update to the gateway is available. This date is in @@ -19021,7 +19028,7 @@ type NFSFileShareInfo struct { ClientList []*string `min:"1" type:"list"` // The default storage class for objects put into an Amazon S3 bucket by the - // S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional. + // S3 File Gateway. The default value is S3_STANDARD. Optional. // // Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA DefaultStorageClass *string `min:"5" type:"string"` @@ -20115,7 +20122,7 @@ type SMBFileShareInfo struct { CaseSensitivity *string `type:"string" enum:"CaseSensitivity"` // The default storage class for objects put into an Amazon S3 bucket by the - // S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional. + // S3 File Gateway. The default value is S3_STANDARD. Optional. // // Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA DefaultStorageClass *string `min:"5" type:"string"` @@ -21308,8 +21315,6 @@ type Tape struct { // pool. When you use your backup application to eject the tape, the tape is // archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) // that corresponds to the pool. - // - // Valid Values: GLACIER | DEEP_ARCHIVE PoolId *string `min:"1" type:"string"` // For archiving virtual tapes, indicates how much data remains to be uploaded @@ -21325,7 +21330,7 @@ type Tape struct { TapeARN *string `min:"50" type:"string"` // The barcode that identifies a specific virtual tape. - TapeBarcode *string `min:"7" type:"string"` + TapeBarcode *string `min:"5" type:"string"` // The date the virtual tape was created. TapeCreatedDate *time.Time `type:"timestamp"` @@ -21468,8 +21473,6 @@ type TapeArchive struct { // The ID of the pool that was used to archive the tape. The tapes in this pool // are archived in the S3 storage class that is associated with the pool. - // - // Valid Values: GLACIER | DEEP_ARCHIVE PoolId *string `min:"1" type:"string"` // If the archived tape is subject to tape retention lock, the date that the @@ -21486,7 +21489,7 @@ type TapeArchive struct { TapeARN *string `min:"50" type:"string"` // The barcode that identifies the archived virtual tape. - TapeBarcode *string `min:"7" type:"string"` + TapeBarcode *string `min:"5" type:"string"` // The date the virtual tape was created. TapeCreatedDate *time.Time `type:"timestamp"` @@ -21619,8 +21622,6 @@ type TapeInfo struct { // the pool. When you use your backup application to eject the tape, the tape // is archived directly into the storage class (S3 Glacier or S3 Glacier Deep // Archive) that corresponds to the pool. - // - // Valid Values: GLACIER | DEEP_ARCHIVE PoolId *string `min:"1" type:"string"` // The date that the tape became subject to tape retention lock. @@ -21630,7 +21631,7 @@ type TapeInfo struct { TapeARN *string `min:"50" type:"string"` // The barcode that identifies a specific virtual tape. - TapeBarcode *string `min:"7" type:"string"` + TapeBarcode *string `min:"5" type:"string"` // The size, in bytes, of a virtual tape. TapeSizeInBytes *int64 `type:"long"` @@ -22780,7 +22781,7 @@ type UpdateNFSFileShareInput struct { ClientList []*string `min:"1" type:"list"` // The default storage class for objects put into an Amazon S3 bucket by the - // S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional. + // S3 File Gateway. The default value is S3_STANDARD. Optional. // // Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA DefaultStorageClass *string `min:"5" type:"string"` @@ -23077,7 +23078,7 @@ type UpdateSMBFileShareInput struct { CaseSensitivity *string `type:"string" enum:"CaseSensitivity"` // The default storage class for objects put into an Amazon S3 bucket by the - // S3 File Gateway. The default value is S3_INTELLIGENT_TIERING. Optional. + // S3 File Gateway. The default value is S3_STANDARD. Optional. // // Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA DefaultStorageClass *string `min:"5" type:"string"`