diff --git a/CHANGELOG.md b/CHANGELOG.md index 84636aaefb1..4cd9a02ab8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +Release v1.44.313 (2023-07-31) +=== + +### Service Client Updates +* `service/amplifyuibuilder`: Updates service API and documentation +* `service/autoscaling`: Updates service API, documentation, and examples + * You can now configure an instance refresh to set its status to 'failed' when it detects that a specified CloudWatch alarm has gone into the ALARM state. You can also choose to roll back the instance refresh automatically when the alarm threshold is met. +* `service/cleanrooms`: Updates service API, documentation, and paginators +* `service/codestar-connections`: Updates service API and documentation +* `service/drs`: Updates service API +* `service/inspector2`: Updates service API and documentation +* `service/lookoutequipment`: Updates service API, documentation, and paginators +* `service/omics`: Updates service API and documentation +* `service/rds`: Updates service API, documentation, waiters, paginators, and examples + * This release adds support for Aurora MySQL local write forwarding, which allows for forwarding of write operations from reader DB instances to the writer DB instance. +* `service/route53`: Updates service API and documentation + * Amazon Route 53 now supports the Israel (Tel Aviv) Region (il-central-1) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region. +* `service/scheduler`: Updates service API and documentation + Release v1.44.312 (2023-07-28) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index f8f8c55a301..8913c9cfb8e 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -10883,6 +10883,9 @@ var awsPartition = partition{ }, "emr-containers": service{ Endpoints: serviceEndpoints{ + endpointKey{ + Region: "af-south-1", + }: endpoint{}, endpointKey{ Region: "ap-east-1", }: endpoint{}, @@ -13959,6 +13962,12 @@ var awsPartition = partition{ }: endpoint{ Hostname: "internetmonitor.ca-central-1.api.aws", }, + endpointKey{ + Region: "ca-central-1", + Variant: fipsVariant, + }: endpoint{ + Hostname: "internetmonitor-fips.ca-central-1.api.aws", + }, endpointKey{ Region: "eu-central-1", }: endpoint{ @@ -14019,21 +14028,45 @@ var awsPartition = partition{ }: endpoint{ Hostname: "internetmonitor.us-east-1.api.aws", }, + endpointKey{ + Region: "us-east-1", + Variant: fipsVariant, + }: endpoint{ + Hostname: "internetmonitor-fips.us-east-1.api.aws", + }, endpointKey{ Region: "us-east-2", }: endpoint{ Hostname: "internetmonitor.us-east-2.api.aws", }, + endpointKey{ + Region: "us-east-2", + Variant: fipsVariant, + }: endpoint{ + Hostname: "internetmonitor-fips.us-east-2.api.aws", + }, endpointKey{ Region: "us-west-1", }: endpoint{ Hostname: "internetmonitor.us-west-1.api.aws", }, + endpointKey{ + Region: "us-west-1", + Variant: fipsVariant, + }: endpoint{ + Hostname: "internetmonitor-fips.us-west-1.api.aws", + }, endpointKey{ Region: "us-west-2", }: endpoint{ Hostname: "internetmonitor.us-west-2.api.aws", }, + endpointKey{ + Region: "us-west-2", + Variant: fipsVariant, + }: endpoint{ + Hostname: "internetmonitor-fips.us-west-2.api.aws", + }, }, }, "iot": service{ @@ -39734,6 +39767,15 @@ var awsisoPartition = partition{ }, Deprecated: boxedTrue, }, + endpointKey{ + Region: "fips-us-iso-west-1", + }: endpoint{ + Hostname: "rbin-fips.us-iso-west-1.c2s.ic.gov", + CredentialScope: credentialScope{ + Region: "us-iso-west-1", + }, + Deprecated: boxedTrue, + }, endpointKey{ Region: "us-iso-east-1", }: endpoint{}, @@ -39743,6 +39785,15 @@ var awsisoPartition = partition{ }: endpoint{ Hostname: "rbin-fips.us-iso-east-1.c2s.ic.gov", }, + endpointKey{ + Region: "us-iso-west-1", + }: endpoint{}, + endpointKey{ + Region: "us-iso-west-1", + Variant: fipsVariant, + }: endpoint{ + Hostname: "rbin-fips.us-iso-west-1.c2s.ic.gov", + }, }, }, "rds": service{ diff --git a/aws/version.go b/aws/version.go index 1e8012dc044..2506a58df62 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.44.312" +const SDKVersion = "1.44.313" diff --git a/models/apis/amplifyuibuilder/2021-08-11/api-2.json b/models/apis/amplifyuibuilder/2021-08-11/api-2.json index d26e5dc3b56..050462247ef 100644 --- a/models/apis/amplifyuibuilder/2021-08-11/api-2.json +++ b/models/apis/amplifyuibuilder/2021-08-11/api-2.json @@ -400,6 +400,15 @@ "state":{"shape":"MutationActionSetStateParameter"} } }, + "ApiConfiguration":{ + "type":"structure", + "members":{ + "graphQLConfig":{"shape":"GraphQLRenderConfig"}, + "dataStoreConfig":{"shape":"DataStoreRenderConfig"}, + "noApiConfig":{"shape":"NoApiRenderConfig"} + }, + "union":true + }, "AppId":{ "type":"string", "max":20, @@ -1005,6 +1014,11 @@ }, "payload":"entity" }, + "DataStoreRenderConfig":{ + "type":"structure", + "members":{ + } + }, "DeleteComponentRequest":{ "type":"structure", "required":[ @@ -1645,6 +1659,23 @@ }, "payload":"theme" }, + "GraphQLRenderConfig":{ + "type":"structure", + "required":[ + "typesFilePath", + "queriesFilePath", + "mutationsFilePath", + "subscriptionsFilePath", + "fragmentsFilePath" + ], + "members":{ + "typesFilePath":{"shape":"String"}, + "queriesFilePath":{"shape":"String"}, + "mutationsFilePath":{"shape":"String"}, + "subscriptionsFilePath":{"shape":"String"}, + "fragmentsFilePath":{"shape":"String"} + } + }, "IdentifierList":{ "type":"list", "member":{"shape":"String"} @@ -1885,6 +1916,11 @@ "set":{"shape":"ComponentProperty"} } }, + "NoApiRenderConfig":{ + "type":"structure", + "members":{ + } + }, "NumValues":{ "type":"list", "member":{"shape":"Integer"} @@ -1950,7 +1986,8 @@ "target":{"shape":"JSTarget"}, "script":{"shape":"JSScript"}, "renderTypeDeclarations":{"shape":"Boolean"}, - "inlineSourceMap":{"shape":"Boolean"} + "inlineSourceMap":{"shape":"Boolean"}, + "apiConfiguration":{"shape":"ApiConfiguration"} } }, "RefreshTokenRequest":{ diff --git a/models/apis/amplifyuibuilder/2021-08-11/docs-2.json b/models/apis/amplifyuibuilder/2021-08-11/docs-2.json index 8061a10e3b3..35ac3f54560 100644 --- a/models/apis/amplifyuibuilder/2021-08-11/docs-2.json +++ b/models/apis/amplifyuibuilder/2021-08-11/docs-2.json @@ -3,7 +3,7 @@ "service": "<p>The Amplify UI Builder API provides a programmatic interface for creating and configuring user interface (UI) component libraries and themes for use in your Amplify applications. You can then connect these UI components to an application's backend Amazon Web Services resources.</p> <p>You can also use the Amplify Studio visual designer to create UI components and model data for an app. For more information, see <a href=\"https://docs.amplify.aws/console/adminui/intro\">Introduction</a> in the <i>Amplify Docs</i>.</p> <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation for client app development. For more information, see the <a href=\"https://docs.amplify.aws/\">Amplify Framework</a>. For more information about deploying an Amplify application to Amazon Web Services, see the <a href=\"https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html\">Amplify User Guide</a>.</p>", "operations": { "CreateComponent": "<p>Creates a new component for an Amplify app.</p>", - "CreateForm": "<p>Creates a new form for an Amplify.</p>", + "CreateForm": "<p>Creates a new form for an Amplify app.</p>", "CreateTheme": "<p>Creates a theme to apply to the components in an Amplify app.</p>", "DeleteComponent": "<p>Deletes a component from an Amplify app.</p>", "DeleteForm": "<p>Deletes a form from an Amplify app.</p>", @@ -23,7 +23,7 @@ "ListThemes": "<p>Retrieves a list of themes for a specified Amplify app and backend environment.</p>", "PutMetadataFlag": "<p>Stores the metadata information about a feature on a form.</p>", "RefreshToken": "<p>Refreshes a previously issued access token that might have expired.</p>", - "StartCodegenJob": "<p>Starts a code generation job for for a specified Amplify app and backend environment.</p>", + "StartCodegenJob": "<p>Starts a code generation job for a specified Amplify app and backend environment.</p>", "UpdateComponent": "<p>Updates an existing component.</p>", "UpdateForm": "<p>Updates an existing form.</p>", "UpdateTheme": "<p>Updates an existing theme.</p>" @@ -35,6 +35,12 @@ "ComponentEvent$parameters": "<p>Describes information about the action.</p>" } }, + "ApiConfiguration": { + "base": "<p>Describes the API configuration for a code generation job.</p>", + "refs": { + "ReactStartCodegenJobData$apiConfiguration": "<p>The API configuration for the code generation job.</p>" + } + }, "AppId": { "base": null, "refs": { @@ -185,7 +191,7 @@ } }, "CodegenJobRenderConfig": { - "base": "<p>Describes the configuration information for rendering the UI component associated the code generation job.</p>", + "base": "<p>Describes the configuration information for rendering the UI component associated with the code generation job.</p>", "refs": { "CodegenJob$renderConfig": null, "StartCodegenJobData$renderConfig": "<p>The code generation configuration for the codegen job.</p>" @@ -452,6 +458,12 @@ "refs": { } }, + "DataStoreRenderConfig": { + "base": "<p>Describes the DataStore configuration for an API for a code generation job.</p>", + "refs": { + "ApiConfiguration$dataStoreConfig": "<p>The configuration for an application using DataStore APIs.</p>" + } + }, "DeleteComponentRequest": { "base": null, "refs": { @@ -777,6 +789,12 @@ "refs": { } }, + "GraphQLRenderConfig": { + "base": "<p>Describes the GraphQL configuration for an API for a code generation job.</p>", + "refs": { + "ApiConfiguration$graphQLConfig": "<p>The configuration for an application using GraphQL APIs.</p>" + } + }, "IdentifierList": { "base": null, "refs": { @@ -900,6 +918,12 @@ "ActionParameters$state": "<p>A key-value pair that specifies the state property name and its initial value.</p>" } }, + "NoApiRenderConfig": { + "base": "<p>Describes the configuration for an application with no API being used.</p>", + "refs": { + "ApiConfiguration$noApiConfig": "<p>The configuration for an application with no API being used.</p>" + } + }, "NumValues": { "base": null, "refs": { @@ -1194,6 +1218,11 @@ "GetMetadataRequest$environmentName": "<p>The name of the backend environment that is part of the Amplify app.</p>", "GetThemeRequest$appId": "<p>The unique ID of the Amplify app.</p>", "GetThemeRequest$environmentName": "<p>The name of the backend environment that is part of the Amplify app.</p>", + "GraphQLRenderConfig$typesFilePath": "<p>The path to the GraphQL types file, relative to the component output directory.</p>", + "GraphQLRenderConfig$queriesFilePath": "<p>The path to the GraphQL queries file, relative to the component output directory.</p>", + "GraphQLRenderConfig$mutationsFilePath": "<p>The path to the GraphQL mutations file, relative to the component output directory.</p>", + "GraphQLRenderConfig$subscriptionsFilePath": "<p>The path to the GraphQL subscriptions file, relative to the component output directory.</p>", + "GraphQLRenderConfig$fragmentsFilePath": "<p>The path to the GraphQL fragments file, relative to the component output directory.</p>", "IdentifierList$member": null, "InternalServerException$message": null, "InvalidParameterException$message": null, diff --git a/models/apis/amplifyuibuilder/2021-08-11/endpoint-rule-set-1.json b/models/apis/amplifyuibuilder/2021-08-11/endpoint-rule-set-1.json index 25d1543825e..24b1f786c62 100644 --- a/models/apis/amplifyuibuilder/2021-08-11/endpoint-rule-set-1.json +++ b/models/apis/amplifyuibuilder/2021-08-11/endpoint-rule-set-1.json @@ -58,52 +58,56 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, { - "conditions": [], + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "type": "tree", "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], "type": "tree", @@ -111,13 +115,22 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], "type": "tree", @@ -127,224 +140,175 @@ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, + } + ], + "type": "tree", + "rules": [ { "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "endpoint": { + "url": "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ { - "conditions": [], - "endpoint": { - "url": "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsFIPS" ] } ] - }, + } + ], + "type": "tree", + "rules": [ { "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" + "endpoint": { + "url": "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } - ] - }, - { - "conditions": [], + ], "type": "tree", "rules": [ { "conditions": [], "endpoint": { - "url": "https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" } ] + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/autoscaling/2011-01-01/api-2.json b/models/apis/autoscaling/2011-01-01/api-2.json index a30713cb472..1b5bfd5b0da 100644 --- a/models/apis/autoscaling/2011-01-01/api-2.json +++ b/models/apis/autoscaling/2011-01-01/api-2.json @@ -1091,6 +1091,16 @@ "AlarmARN":{"shape":"ResourceName"} } }, + "AlarmList":{ + "type":"list", + "member":{"shape":"XmlStringMaxLen255"} + }, + "AlarmSpecification":{ + "type":"structure", + "members":{ + "Alarms":{"shape":"AlarmList"} + } + }, "Alarms":{ "type":"list", "member":{"shape":"Alarm"} @@ -3040,7 +3050,8 @@ "SkipMatching":{"shape":"SkipMatching"}, "AutoRollback":{"shape":"AutoRollback"}, "ScaleInProtectedInstances":{"shape":"ScaleInProtectedInstances"}, - "StandbyInstances":{"shape":"StandbyInstances"} + "StandbyInstances":{"shape":"StandbyInstances"}, + "AlarmSpecification":{"shape":"AlarmSpecification"} } }, "RefreshStrategy":{ diff --git a/models/apis/autoscaling/2011-01-01/docs-2.json b/models/apis/autoscaling/2011-01-01/docs-2.json index 8dfb5cb03f3..d44ee045e2e 100644 --- a/models/apis/autoscaling/2011-01-01/docs-2.json +++ b/models/apis/autoscaling/2011-01-01/docs-2.json @@ -172,6 +172,18 @@ "Alarms$member": null } }, + "AlarmList": { + "base": null, + "refs": { + "AlarmSpecification$Alarms": "<p>The names of one or more CloudWatch alarms to monitor for the instance refresh.</p>" + } + }, + "AlarmSpecification": { + "base": "<p>Specifies the CloudWatch alarm specification to use in an instance refresh.</p>", + "refs": { + "RefreshPreferences$AlarmSpecification": "<p>(Optional) The CloudWatch alarm specification. CloudWatch alarms can be used to identify any issues and fail the operation if an alarm threshold is met.</p>" + } + }, "Alarms": { "base": null, "refs": { @@ -253,7 +265,7 @@ "AutoRollback": { "base": null, "refs": { - "RefreshPreferences$AutoRollback": "<p>(Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance refresh fails. The default is <code>false</code>.</p> <p>A rollback is not supported in the following situations: </p> <ul> <li> <p>There is no desired configuration specified for the instance refresh.</p> </li> <li> <p>The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter instead of an AMI ID for the <code>ImageId</code> property.</p> </li> <li> <p>The Auto Scaling group uses the launch template's <code>$Latest</code> or <code>$Default</code> version.</p> </li> </ul>" + "RefreshPreferences$AutoRollback": "<p>(Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance refresh fails or a CloudWatch alarm threshold is met. The default is <code>false</code>.</p> <p>A rollback is not supported in the following situations: </p> <ul> <li> <p>There is no desired configuration specified for the instance refresh.</p> </li> <li> <p>The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter instead of an AMI ID for the <code>ImageId</code> property.</p> </li> <li> <p>The Auto Scaling group uses the launch template's <code>$Latest</code> or <code>$Default</code> version.</p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/instance-refresh-rollback.html\">Undo changes with a rollback</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>" } }, "AutoScalingGroup": { @@ -1885,7 +1897,7 @@ "base": "<p>Describes the preferences for an instance refresh.</p>", "refs": { "InstanceRefresh$Preferences": "<p>The preferences for an instance refresh.</p>", - "StartInstanceRefreshType$Preferences": "<p>Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the instance warmup time, the minimum healthy percentage, and the behaviors that you want Amazon EC2 Auto Scaling to use if instances that are in <code>Standby</code> state or protected from scale in are found. You can also choose to enable additional features, such as the following:</p> <ul> <li> <p>Auto rollback</p> </li> <li> <p>Checkpoints</p> </li> <li> <p>Skip matching</p> </li> </ul>" + "StartInstanceRefreshType$Preferences": "<p>Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the instance warmup time, the minimum healthy percentage, and the behaviors that you want Amazon EC2 Auto Scaling to use if instances that are in <code>Standby</code> state or protected from scale in are found. You can also choose to enable additional features, such as the following:</p> <ul> <li> <p>Auto rollback</p> </li> <li> <p>Checkpoints</p> </li> <li> <p>CloudWatch alarms</p> </li> <li> <p>Skip matching</p> </li> </ul>" } }, "RefreshStrategy": { @@ -2439,6 +2451,7 @@ "Activity$StatusMessage": "<p>A friendly, more verbose description of the activity status.</p>", "AdjustmentType$AdjustmentType": "<p>The policy adjustment type. The valid values are <code>ChangeInCapacity</code>, <code>ExactCapacity</code>, and <code>PercentChangeInCapacity</code>.</p>", "Alarm$AlarmName": "<p>The name of the alarm.</p>", + "AlarmList$member": null, "AlreadyExistsFault$message": "<p/>", "AttachInstancesQuery$AutoScalingGroupName": "<p>The name of the Auto Scaling group.</p>", "AttachLoadBalancerTargetGroupsType$AutoScalingGroupName": "<p>The name of the Auto Scaling group.</p>", diff --git a/models/apis/autoscaling/2011-01-01/endpoint-rule-set-1.json b/models/apis/autoscaling/2011-01-01/endpoint-rule-set-1.json index ca4fa951141..37ca93e9346 100644 --- a/models/apis/autoscaling/2011-01-01/endpoint-rule-set-1.json +++ b/models/apis/autoscaling/2011-01-01/endpoint-rule-set-1.json @@ -58,52 +58,56 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, { - "conditions": [], + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "type": "tree", "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], "type": "tree", @@ -111,13 +115,22 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], "type": "tree", @@ -127,92 +140,83 @@ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, + } + ], + "type": "tree", + "rules": [ { "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "endpoint": { + "url": "https://autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] } ], @@ -221,155 +225,115 @@ { "conditions": [ { - "fn": "booleanEquals", + "fn": "stringEquals", "argv": [ - true, + "aws-us-gov", { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, - "supportsFIPS" + "name" ] } ] } ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - "aws-us-gov", - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] - } - ] - } - ], - "endpoint": { - "url": "https://autoscaling.{Region}.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [], - "endpoint": { - "url": "https://autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] + "endpoint": { + "url": "https://autoscaling.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" }, { "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" + "endpoint": { + "url": "https://autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } - ] - }, - { - "conditions": [], + ], "type": "tree", "rules": [ { "conditions": [], "endpoint": { - "url": "https://autoscaling.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://autoscaling.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" } ] + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/autoscaling/2011-01-01/examples-1.json b/models/apis/autoscaling/2011-01-01/examples-1.json index d64e8cf6662..522f19d97c7 100644 --- a/models/apis/autoscaling/2011-01-01/examples-1.json +++ b/models/apis/autoscaling/2011-01-01/examples-1.json @@ -123,9 +123,10 @@ { "input": { "AutoScalingGroupName": "my-auto-scaling-group", + "DefaultInstanceWarmup": 120, "LaunchTemplate": { "LaunchTemplateName": "my-template-for-auto-scaling", - "Version": "$Latest" + "Version": "$Default" }, "MaxInstanceLifetime": 2592000, "MaxSize": 3, @@ -149,7 +150,7 @@ "HealthCheckType": "ELB", "LaunchTemplate": { "LaunchTemplateName": "my-template-for-auto-scaling", - "Version": "$Latest" + "Version": "$Default" }, "MaxSize": 3, "MinSize": 1, @@ -178,19 +179,19 @@ "InstancesDistribution": { "OnDemandBaseCapacity": 1, "OnDemandPercentageAboveBaseCapacity": 50, - "SpotAllocationStrategy": "capacity-optimized" + "SpotAllocationStrategy": "price-capacity-optimized" }, "LaunchTemplate": { "LaunchTemplateSpecification": { "LaunchTemplateName": "my-launch-template-for-x86", - "Version": "$Latest" + "Version": "$Default" }, "Overrides": [ { "InstanceType": "c6g.large", "LaunchTemplateSpecification": { "LaunchTemplateName": "my-launch-template-for-arm", - "Version": "$Latest" + "Version": "$Default" } }, { @@ -213,6 +214,53 @@ "description": "This example creates an Auto Scaling group with a mixed instances policy. It specifies the c5.large, c5a.large, and c6g.large instance types and defines a different launch template for the c6g.large instance type.", "id": "to-create-an-auto-scaling-group-with-a-mixed-instances-policy-1617815269039", "title": "To create an Auto Scaling group with a mixed instances policy" + }, + { + "input": { + "AutoScalingGroupName": "my-asg", + "DesiredCapacity": 4, + "DesiredCapacityTypes": "units", + "MaxSize": 100, + "MinSize": 0, + "MixedInstancesPolicy": { + "InstancesDistribution": { + "OnDemandPercentageAboveBaseCapacity": 50, + "SpotAllocationStrategy": "price-capacity-optimized" + }, + "LaunchTemplate": { + "LaunchTemplateSpecification": { + "LaunchTemplateName": "my-template-for-auto-scaling", + "Version": "$Default" + }, + "Overrides": [ + { + "InstanceRequirements": { + "CpuManufacturers": [ + "intel" + ], + "MemoryMiB": { + "Min": 16384 + }, + "VCpuCount": { + "Max": 8, + "Min": 4 + } + } + } + ] + } + }, + "VPCZoneIdentifier": "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example creates an Auto Scaling group using attribute-based instance type selection. It requires the instance types to have a minimum of four vCPUs and a maximum of eight vCPUs, a minimum of 16,384 MiB of memory, and an Intel manufactured CPU.", + "id": "to-create-an-auto-scaling-group-with-a-mixed-instances-policy-1617815269039", + "title": "To create an Auto Scaling group using attribute-based instance type selection" } ], "CreateLaunchConfiguration": [ @@ -601,8 +649,13 @@ "InstancesToUpdate": 0, "PercentageComplete": 50, "Preferences": { + "AlarmSpecification": { + "Alarms": [ + "my-alarm" + ] + }, "AutoRollback": true, - "InstanceWarmup": 60, + "InstanceWarmup": 200, "MinHealthyPercentage": 90, "ScaleInProtectedInstances": "Ignore", "SkipMatching": false, @@ -619,8 +672,13 @@ "InstancesToUpdate": 0, "PercentageComplete": 100, "Preferences": { + "AlarmSpecification": { + "Alarms": [ + "my-alarm" + ] + }, "AutoRollback": true, - "InstanceWarmup": 60, + "InstanceWarmup": 200, "MinHealthyPercentage": 90, "ScaleInProtectedInstances": "Ignore", "SkipMatching": false, @@ -1551,9 +1609,14 @@ } }, "Preferences": { - "InstanceWarmup": 400, - "MinHealthyPercentage": 90, - "SkipMatching": true + "AlarmSpecification": { + "Alarms": [ + "my-alarm" + ] + }, + "AutoRollback": true, + "InstanceWarmup": 200, + "MinHealthyPercentage": 90 } }, "output": { diff --git a/models/apis/cleanrooms/2022-02-17/api-2.json b/models/apis/cleanrooms/2022-02-17/api-2.json index a4e408b28b0..88f597a48fe 100644 --- a/models/apis/cleanrooms/2022-02-17/api-2.json +++ b/models/apis/cleanrooms/2022-02-17/api-2.json @@ -12,6 +12,23 @@ "uid":"cleanrooms-2022-02-17" }, "operations":{ + "BatchGetCollaborationAnalysisTemplate":{ + "name":"BatchGetCollaborationAnalysisTemplate", + "http":{ + "method":"POST", + "requestUri":"/collaborations/{collaborationIdentifier}/batch-analysistemplates", + "responseCode":200 + }, + "input":{"shape":"BatchGetCollaborationAnalysisTemplateInput"}, + "output":{"shape":"BatchGetCollaborationAnalysisTemplateOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ] + }, "BatchGetSchema":{ "name":"BatchGetSchema", "http":{ @@ -29,6 +46,25 @@ {"shape":"AccessDeniedException"} ] }, + "CreateAnalysisTemplate":{ + "name":"CreateAnalysisTemplate", + "http":{ + "method":"POST", + "requestUri":"/memberships/{membershipIdentifier}/analysistemplates", + "responseCode":200 + }, + "input":{"shape":"CreateAnalysisTemplateInput"}, + "output":{"shape":"CreateAnalysisTemplateOutput"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ] + }, "CreateCollaboration":{ "name":"CreateCollaboration", "http":{ @@ -123,6 +159,24 @@ {"shape":"AccessDeniedException"} ] }, + "DeleteAnalysisTemplate":{ + "name":"DeleteAnalysisTemplate", + "http":{ + "method":"DELETE", + "requestUri":"/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}", + "responseCode":204 + }, + "input":{"shape":"DeleteAnalysisTemplateInput"}, + "output":{"shape":"DeleteAnalysisTemplateOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ], + "idempotent":true + }, "DeleteCollaboration":{ "name":"DeleteCollaboration", "http":{ @@ -235,6 +289,23 @@ ], "idempotent":true }, + "GetAnalysisTemplate":{ + "name":"GetAnalysisTemplate", + "http":{ + "method":"GET", + "requestUri":"/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}", + "responseCode":200 + }, + "input":{"shape":"GetAnalysisTemplateInput"}, + "output":{"shape":"GetAnalysisTemplateOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ] + }, "GetCollaboration":{ "name":"GetCollaboration", "http":{ @@ -251,6 +322,23 @@ {"shape":"AccessDeniedException"} ] }, + "GetCollaborationAnalysisTemplate":{ + "name":"GetCollaborationAnalysisTemplate", + "http":{ + "method":"GET", + "requestUri":"/collaborations/{collaborationIdentifier}/analysistemplates/{analysisTemplateArn}", + "responseCode":200 + }, + "input":{"shape":"GetCollaborationAnalysisTemplateInput"}, + "output":{"shape":"GetCollaborationAnalysisTemplateOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ] + }, "GetConfiguredTable":{ "name":"GetConfiguredTable", "http":{ @@ -370,6 +458,40 @@ {"shape":"AccessDeniedException"} ] }, + "ListAnalysisTemplates":{ + "name":"ListAnalysisTemplates", + "http":{ + "method":"GET", + "requestUri":"/memberships/{membershipIdentifier}/analysistemplates", + "responseCode":200 + }, + "input":{"shape":"ListAnalysisTemplatesInput"}, + "output":{"shape":"ListAnalysisTemplatesOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ] + }, + "ListCollaborationAnalysisTemplates":{ + "name":"ListCollaborationAnalysisTemplates", + "http":{ + "method":"GET", + "requestUri":"/collaborations/{collaborationIdentifier}/analysistemplates", + "responseCode":200 + }, + "input":{"shape":"ListCollaborationAnalysisTemplatesInput"}, + "output":{"shape":"ListCollaborationAnalysisTemplatesOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ] + }, "ListCollaborations":{ "name":"ListCollaborations", "http":{ @@ -546,6 +668,23 @@ {"shape":"ValidationException"} ] }, + "UpdateAnalysisTemplate":{ + "name":"UpdateAnalysisTemplate", + "http":{ + "method":"PATCH", + "requestUri":"/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}", + "responseCode":200 + }, + "input":{"shape":"UpdateAnalysisTemplateInput"}, + "output":{"shape":"UpdateAnalysisTemplateOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ] + }, "UpdateCollaboration":{ "name":"UpdateCollaboration", "http":{ @@ -737,10 +876,33 @@ "max":100, "min":1 }, + "AnalysisFormat":{ + "type":"string", + "enum":["SQL"] + }, "AnalysisMethod":{ "type":"string", "enum":["DIRECT_QUERY"] }, + "AnalysisParameter":{ + "type":"structure", + "required":[ + "name", + "type" + ], + "members":{ + "name":{"shape":"ParameterName"}, + "type":{"shape":"ParameterType"}, + "defaultValue":{"shape":"ParameterValue"} + }, + "sensitive":true + }, + "AnalysisParameterList":{ + "type":"list", + "member":{"shape":"AnalysisParameter"}, + "max":10, + "min":0 + }, "AnalysisRule":{ "type":"structure", "required":[ @@ -794,6 +956,24 @@ "min":1, "pattern":"[a-z0-9_](([a-z0-9_ ]+-)*([a-z0-9_ ]+))?" }, + "AnalysisRuleCustom":{ + "type":"structure", + "required":["allowedAnalyses"], + "members":{ + "allowedAnalyses":{"shape":"AnalysisRuleCustomAllowedAnalysesList"}, + "allowedAnalysisProviders":{"shape":"AnalysisRuleCustomAllowedAnalysisProvidersList"} + } + }, + "AnalysisRuleCustomAllowedAnalysesList":{ + "type":"list", + "member":{"shape":"AnalysisTemplateArnOrQueryWildcard"}, + "min":0 + }, + "AnalysisRuleCustomAllowedAnalysisProvidersList":{ + "type":"list", + "member":{"shape":"AccountId"}, + "min":0 + }, "AnalysisRuleList":{ "type":"structure", "required":[ @@ -822,7 +1002,8 @@ "type":"structure", "members":{ "list":{"shape":"AnalysisRuleList"}, - "aggregation":{"shape":"AnalysisRuleAggregation"} + "aggregation":{"shape":"AnalysisRuleAggregation"}, + "custom":{"shape":"AnalysisRuleCustom"} }, "union":true }, @@ -830,13 +1011,165 @@ "type":"string", "enum":[ "AGGREGATION", - "LIST" + "LIST", + "CUSTOM" ] }, "AnalysisRuleTypeList":{ "type":"list", "member":{"shape":"AnalysisRuleType"} }, + "AnalysisSchema":{ + "type":"structure", + "members":{ + "referencedTables":{"shape":"QueryTables"} + } + }, + "AnalysisSource":{ + "type":"structure", + "members":{ + "text":{"shape":"AnalysisTemplateText"} + }, + "sensitive":true, + "union":true + }, + "AnalysisTemplate":{ + "type":"structure", + "required":[ + "id", + "arn", + "collaborationId", + "collaborationArn", + "membershipId", + "membershipArn", + "name", + "createTime", + "updateTime", + "schema", + "format", + "source" + ], + "members":{ + "id":{"shape":"AnalysisTemplateIdentifier"}, + "arn":{"shape":"AnalysisTemplateArn"}, + "collaborationId":{"shape":"UUID"}, + "collaborationArn":{"shape":"CollaborationArn"}, + "membershipId":{"shape":"UUID"}, + "membershipArn":{"shape":"MembershipArn"}, + "description":{"shape":"ResourceDescription"}, + "name":{"shape":"ResourceAlias"}, + "createTime":{"shape":"Timestamp"}, + "updateTime":{"shape":"Timestamp"}, + "schema":{"shape":"AnalysisSchema"}, + "format":{"shape":"AnalysisFormat"}, + "source":{"shape":"AnalysisSource"}, + "analysisParameters":{"shape":"AnalysisParameterList"} + } + }, + "AnalysisTemplateArn":{ + "type":"string", + "max":200, + "min":0, + "pattern":"arn:aws:cleanrooms:[\\w]{2}-[\\w]{4,9}-[\\d]:[\\d]{12}:membership/[\\d\\w-]+/analysistemplate/[\\d\\w-]+" + }, + "AnalysisTemplateArnList":{ + "type":"list", + "member":{"shape":"AnalysisTemplateArn"}, + "max":10, + "min":1 + }, + "AnalysisTemplateArnOrQueryWildcard":{ + "type":"string", + "max":200, + "min":0, + "pattern":"(ANY_QUERY|arn:aws:cleanrooms:[\\w]{2}-[\\w]{4,9}-[\\d]:[\\d]{12}:membership/[\\d\\w-]+/analysistemplate/[\\d\\w-]+)" + }, + "AnalysisTemplateIdentifier":{ + "type":"string", + "max":36, + "min":36, + "pattern":".*[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}.*" + }, + "AnalysisTemplateSummary":{ + "type":"structure", + "required":[ + "arn", + "createTime", + "id", + "name", + "updateTime", + "membershipArn", + "membershipId", + "collaborationArn", + "collaborationId" + ], + "members":{ + "arn":{"shape":"AnalysisTemplateArn"}, + "createTime":{"shape":"Timestamp"}, + "id":{"shape":"AnalysisTemplateIdentifier"}, + "name":{"shape":"ResourceAlias"}, + "updateTime":{"shape":"Timestamp"}, + "membershipArn":{"shape":"MembershipArn"}, + "membershipId":{"shape":"UUID"}, + "collaborationArn":{"shape":"CollaborationArn"}, + "collaborationId":{"shape":"UUID"}, + "description":{"shape":"ResourceDescription"} + } + }, + "AnalysisTemplateSummaryList":{ + "type":"list", + "member":{"shape":"AnalysisTemplateSummary"} + }, + "AnalysisTemplateText":{ + "type":"string", + "max":15000, + "min":0 + }, + "BatchGetCollaborationAnalysisTemplateError":{ + "type":"structure", + "required":[ + "arn", + "code", + "message" + ], + "members":{ + "arn":{"shape":"AnalysisTemplateArn"}, + "code":{"shape":"String"}, + "message":{"shape":"String"} + } + }, + "BatchGetCollaborationAnalysisTemplateErrorList":{ + "type":"list", + "member":{"shape":"BatchGetCollaborationAnalysisTemplateError"}, + "max":10, + "min":0 + }, + "BatchGetCollaborationAnalysisTemplateInput":{ + "type":"structure", + "required":[ + "collaborationIdentifier", + "analysisTemplateArns" + ], + "members":{ + "collaborationIdentifier":{ + "shape":"CollaborationIdentifier", + "location":"uri", + "locationName":"collaborationIdentifier" + }, + "analysisTemplateArns":{"shape":"AnalysisTemplateArnList"} + } + }, + "BatchGetCollaborationAnalysisTemplateOutput":{ + "type":"structure", + "required":[ + "collaborationAnalysisTemplates", + "errors" + ], + "members":{ + "collaborationAnalysisTemplates":{"shape":"CollaborationAnalysisTemplateList"}, + "errors":{"shape":"BatchGetCollaborationAnalysisTemplateErrorList"} + } + }, "BatchGetSchemaError":{ "type":"structure", "required":[ @@ -921,6 +1254,71 @@ "queryLogStatus":{"shape":"CollaborationQueryLogStatus"} } }, + "CollaborationAnalysisTemplate":{ + "type":"structure", + "required":[ + "id", + "arn", + "collaborationId", + "collaborationArn", + "creatorAccountId", + "name", + "createTime", + "updateTime", + "schema", + "format", + "source" + ], + "members":{ + "id":{"shape":"AnalysisTemplateIdentifier"}, + "arn":{"shape":"AnalysisTemplateArn"}, + "collaborationId":{"shape":"UUID"}, + "collaborationArn":{"shape":"CollaborationArn"}, + "description":{"shape":"ResourceDescription"}, + "creatorAccountId":{"shape":"AccountId"}, + "name":{"shape":"ResourceAlias"}, + "createTime":{"shape":"Timestamp"}, + "updateTime":{"shape":"Timestamp"}, + "schema":{"shape":"AnalysisSchema"}, + "format":{"shape":"AnalysisFormat"}, + "source":{"shape":"AnalysisSource"}, + "analysisParameters":{"shape":"AnalysisParameterList"} + } + }, + "CollaborationAnalysisTemplateList":{ + "type":"list", + "member":{"shape":"CollaborationAnalysisTemplate"}, + "max":10, + "min":0 + }, + "CollaborationAnalysisTemplateSummary":{ + "type":"structure", + "required":[ + "arn", + "createTime", + "id", + "name", + "updateTime", + "collaborationArn", + "collaborationId", + "creatorAccountId" + ], + "members":{ + "arn":{"shape":"AnalysisTemplateArn"}, + "createTime":{"shape":"Timestamp"}, + "id":{"shape":"AnalysisTemplateIdentifier"}, + "name":{"shape":"ResourceAlias"}, + "updateTime":{"shape":"Timestamp"}, + "collaborationArn":{"shape":"CollaborationArn"}, + "collaborationId":{"shape":"UUID"}, + "creatorAccountId":{"shape":"AccountId"}, + "description":{"shape":"ResourceDescription"} + } + }, + "CollaborationAnalysisTemplateSummaryList":{ + "type":"list", + "member":{"shape":"CollaborationAnalysisTemplateSummary"} + }, "CollaborationArn":{ "type":"string", "max":100, @@ -1064,7 +1462,8 @@ "type":"structure", "members":{ "list":{"shape":"AnalysisRuleList"}, - "aggregation":{"shape":"AnalysisRuleAggregation"} + "aggregation":{"shape":"AnalysisRuleAggregation"}, + "custom":{"shape":"AnalysisRuleCustom"} }, "union":true }, @@ -1072,7 +1471,8 @@ "type":"string", "enum":[ "AGGREGATION", - "LIST" + "LIST", + "CUSTOM" ] }, "ConfiguredTableAnalysisRuleTypeList":{ @@ -1083,7 +1483,7 @@ "type":"string", "max":100, "min":0, - "pattern":"arn:aws:[\\w]+:[\\w]{2}-[\\w]{4,9}-[\\d]:[\\d]{12}:configuredTable/[\\d\\w-]+" + "pattern":"arn:aws:[\\w]+:[\\w]{2}-[\\w]{4,9}-[\\d]:[\\d]{12}:configuredtable/[\\d\\w-]+" }, "ConfiguredTableAssociation":{ "type":"structure", @@ -1117,7 +1517,7 @@ "type":"string", "max":100, "min":0, - "pattern":"arn:aws:[\\w]+:[\\w]{2}-[\\w]{4,9}-[\\d]:[\\d]{12}:configuredTableAssociation/[\\d\\w-]+/[\\d\\w-]+" + "pattern":"arn:aws:[\\w]+:[\\w]{2}-[\\w]{4,9}-[\\d]:[\\d]{12}:configuredtableassociation/[\\d\\w-]+/[\\d\\w-]+" }, "ConfiguredTableAssociationIdentifier":{ "type":"string", @@ -1205,6 +1605,35 @@ "INVALID_STATE" ] }, + "CreateAnalysisTemplateInput":{ + "type":"structure", + "required":[ + "membershipIdentifier", + "name", + "format", + "source" + ], + "members":{ + "description":{"shape":"ResourceDescription"}, + "membershipIdentifier":{ + "shape":"MembershipIdentifier", + "location":"uri", + "locationName":"membershipIdentifier" + }, + "name":{"shape":"TableAlias"}, + "format":{"shape":"AnalysisFormat"}, + "source":{"shape":"AnalysisSource"}, + "tags":{"shape":"TagMap"}, + "analysisParameters":{"shape":"AnalysisParameterList"} + } + }, + "CreateAnalysisTemplateOutput":{ + "type":"structure", + "required":["analysisTemplate"], + "members":{ + "analysisTemplate":{"shape":"AnalysisTemplate"} + } + }, "CreateCollaborationInput":{ "type":"structure", "required":[ @@ -1343,6 +1772,30 @@ "preserveNulls":{"shape":"Boolean"} } }, + "DeleteAnalysisTemplateInput":{ + "type":"structure", + "required":[ + "membershipIdentifier", + "analysisTemplateIdentifier" + ], + "members":{ + "membershipIdentifier":{ + "shape":"MembershipIdentifier", + "location":"uri", + "locationName":"membershipIdentifier" + }, + "analysisTemplateIdentifier":{ + "shape":"AnalysisTemplateIdentifier", + "location":"uri", + "locationName":"analysisTemplateIdentifier" + } + } + }, + "DeleteAnalysisTemplateOutput":{ + "type":"structure", + "members":{ + } + }, "DeleteCollaborationInput":{ "type":"structure", "required":["collaborationIdentifier"], @@ -1480,6 +1933,58 @@ "ACTIVE" ] }, + "GetAnalysisTemplateInput":{ + "type":"structure", + "required":[ + "membershipIdentifier", + "analysisTemplateIdentifier" + ], + "members":{ + "membershipIdentifier":{ + "shape":"MembershipIdentifier", + "location":"uri", + "locationName":"membershipIdentifier" + }, + "analysisTemplateIdentifier":{ + "shape":"AnalysisTemplateIdentifier", + "location":"uri", + "locationName":"analysisTemplateIdentifier" + } + } + }, + "GetAnalysisTemplateOutput":{ + "type":"structure", + "required":["analysisTemplate"], + "members":{ + "analysisTemplate":{"shape":"AnalysisTemplate"} + } + }, + "GetCollaborationAnalysisTemplateInput":{ + "type":"structure", + "required":[ + "collaborationIdentifier", + "analysisTemplateArn" + ], + "members":{ + "collaborationIdentifier":{ + "shape":"CollaborationIdentifier", + "location":"uri", + "locationName":"collaborationIdentifier" + }, + "analysisTemplateArn":{ + "shape":"AnalysisTemplateArn", + "location":"uri", + "locationName":"analysisTemplateArn" + } + } + }, + "GetCollaborationAnalysisTemplateOutput":{ + "type":"structure", + "required":["collaborationAnalysisTemplate"], + "members":{ + "collaborationAnalysisTemplate":{"shape":"CollaborationAnalysisTemplate"} + } + }, "GetCollaborationInput":{ "type":"structure", "required":["collaborationIdentifier"], @@ -1723,6 +2228,64 @@ "type":"string", "pattern":"[\\w!.*/-]*" }, + "ListAnalysisTemplatesInput":{ + "type":"structure", + "required":["membershipIdentifier"], + "members":{ + "membershipIdentifier":{ + "shape":"MembershipIdentifier", + "location":"uri", + "locationName":"membershipIdentifier" + }, + "nextToken":{ + "shape":"PaginationToken", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListAnalysisTemplatesOutput":{ + "type":"structure", + "required":["analysisTemplateSummaries"], + "members":{ + "nextToken":{"shape":"PaginationToken"}, + "analysisTemplateSummaries":{"shape":"AnalysisTemplateSummaryList"} + } + }, + "ListCollaborationAnalysisTemplatesInput":{ + "type":"structure", + "required":["collaborationIdentifier"], + "members":{ + "collaborationIdentifier":{ + "shape":"CollaborationIdentifier", + "location":"uri", + "locationName":"collaborationIdentifier" + }, + "nextToken":{ + "shape":"PaginationToken", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListCollaborationAnalysisTemplatesOutput":{ + "type":"structure", + "required":["collaborationAnalysisTemplateSummaries"], + "members":{ + "nextToken":{"shape":"PaginationToken"}, + "collaborationAnalysisTemplateSummaries":{"shape":"CollaborationAnalysisTemplateSummaryList"} + } + }, "ListCollaborationsInput":{ "type":"structure", "members":{ @@ -2116,6 +2679,42 @@ "max":10240, "min":0 }, + "ParameterMap":{ + "type":"map", + "key":{"shape":"ParameterName"}, + "value":{"shape":"ParameterValue"} + }, + "ParameterName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"[0-9a-zA-Z_]+" + }, + "ParameterType":{ + "type":"string", + "enum":[ + "SMALLINT", + "INTEGER", + "BIGINT", + "DECIMAL", + "REAL", + "DOUBLE_PRECISION", + "BOOLEAN", + "CHAR", + "VARCHAR", + "DATE", + "TIMESTAMP", + "TIMESTAMPTZ", + "TIME", + "TIMETZ", + "VARBYTE" + ] + }, + "ParameterValue":{ + "type":"string", + "max":250, + "min":0 + }, "ProtectedQuery":{ "type":"structure", "required":[ @@ -2213,7 +2812,9 @@ "ProtectedQuerySQLParameters":{ "type":"structure", "members":{ - "queryString":{"shape":"ProtectedQuerySQLParametersQueryStringString"} + "queryString":{"shape":"ProtectedQuerySQLParametersQueryStringString"}, + "analysisTemplateArn":{"shape":"AnalysisTemplateArn"}, + "parameters":{"shape":"ParameterMap"} }, "sensitive":true }, @@ -2265,6 +2866,22 @@ "type":"string", "enum":["SQL"] }, + "QueryTables":{ + "type":"list", + "member":{"shape":"TableAlias"} + }, + "ResourceAlias":{ + "type":"string", + "max":128, + "min":0, + "pattern":"[a-zA-Z0-9_](([a-zA-Z0-9_ ]+-)*([a-zA-Z0-9_ ]+))?" + }, + "ResourceDescription":{ + "type":"string", + "max":255, + "min":0, + "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDBFF-\\uDC00\\uDFFF\\t\\r\\n]*" + }, "ResourceNotFoundException":{ "type":"structure", "required":[ @@ -2552,6 +3169,33 @@ "members":{ } }, + "UpdateAnalysisTemplateInput":{ + "type":"structure", + "required":[ + "membershipIdentifier", + "analysisTemplateIdentifier" + ], + "members":{ + "membershipIdentifier":{ + "shape":"MembershipIdentifier", + "location":"uri", + "locationName":"membershipIdentifier" + }, + "analysisTemplateIdentifier":{ + "shape":"AnalysisTemplateIdentifier", + "location":"uri", + "locationName":"analysisTemplateIdentifier" + }, + "description":{"shape":"ResourceDescription"} + } + }, + "UpdateAnalysisTemplateOutput":{ + "type":"structure", + "required":["analysisTemplate"], + "members":{ + "analysisTemplate":{"shape":"AnalysisTemplate"} + } + }, "UpdateCollaborationInput":{ "type":"structure", "required":["collaborationIdentifier"], @@ -2728,7 +3372,8 @@ "enum":[ "FIELD_VALIDATION_FAILED", "INVALID_CONFIGURATION", - "INVALID_QUERY" + "INVALID_QUERY", + "IAM_SYNCHRONIZATION_DELAY" ] } } diff --git a/models/apis/cleanrooms/2022-02-17/docs-2.json b/models/apis/cleanrooms/2022-02-17/docs-2.json index 599d893157d..a2c996ee33a 100644 --- a/models/apis/cleanrooms/2022-02-17/docs-2.json +++ b/models/apis/cleanrooms/2022-02-17/docs-2.json @@ -2,19 +2,24 @@ "version": "2.0", "service": "<p>Welcome to the <i>Clean Rooms API Reference</i>.</p> <p>Clean Rooms is an Amazon Web Services service that helps multiple parties to join their data together in a secure collaboration workspace. In the collaboration, members who can query and receive results can get insights into the collective datasets without either party getting access to the other party's raw data.</p> <p>To learn more about Clean Rooms concepts, procedures, and best practices, see the <a href=\"https://docs.aws.amazon.com/clean-rooms/latest/userguide/what-is.html\">Clean Rooms User Guide</a>.</p>", "operations": { + "BatchGetCollaborationAnalysisTemplate": "<p>Retrieves multiple analysis templates within a collaboration by their Amazon Resource Names (ARNs).</p>", "BatchGetSchema": "<p>Retrieves multiple schemas by their identifiers.</p>", + "CreateAnalysisTemplate": "<p>Creates a new analysis template.</p>", "CreateCollaboration": "<p>Creates a new collaboration.</p>", "CreateConfiguredTable": "<p>Creates a new configured table resource.</p>", "CreateConfiguredTableAnalysisRule": "<p>Creates a new analysis rule for a configured table. Currently, only one analysis rule can be created for a given configured table.</p>", "CreateConfiguredTableAssociation": "<p>Creates a configured table association. A configured table association links a configured table with a collaboration.</p>", "CreateMembership": "<p>Creates a membership for a specific collaboration identifier and joins the collaboration.</p>", + "DeleteAnalysisTemplate": "<p>Deletes an analysis template.</p>", "DeleteCollaboration": "<p>Deletes a collaboration. It can only be called by the collaboration owner.</p>", "DeleteConfiguredTable": "<p>Deletes a configured table.</p>", "DeleteConfiguredTableAnalysisRule": "<p>Deletes a configured table analysis rule.</p>", "DeleteConfiguredTableAssociation": "<p>Deletes a configured table association.</p>", "DeleteMember": "<p>Removes the specified member from a collaboration. The removed member is placed in the Removed status and can't interact with the collaboration. The removed member's data is inaccessible to active members of the collaboration.</p>", "DeleteMembership": "<p>Deletes a specified membership. All resources under a membership must be deleted.</p>", + "GetAnalysisTemplate": "<p>Retrieves an analysis template.</p>", "GetCollaboration": "<p>Returns metadata about a collaboration.</p>", + "GetCollaborationAnalysisTemplate": "<p>Retrieves an analysis template within a collaboration.</p>", "GetConfiguredTable": "<p>Retrieves a configured table.</p>", "GetConfiguredTableAnalysisRule": "<p>Retrieves a configured table analysis rule.</p>", "GetConfiguredTableAssociation": "<p>Retrieves a configured table association.</p>", @@ -22,6 +27,8 @@ "GetProtectedQuery": "<p>Returns query processing metadata.</p>", "GetSchema": "<p>Retrieves the schema for a relation within a collaboration.</p>", "GetSchemaAnalysisRule": "<p>Retrieves a schema analysis rule.</p>", + "ListAnalysisTemplates": "<p>Lists analysis templates that the caller owns.</p>", + "ListCollaborationAnalysisTemplates": "<p>Lists analysis templates within a collaboration.</p>", "ListCollaborations": "<p>Lists collaborations the caller owns, is active in, or has been invited to.</p>", "ListConfiguredTableAssociations": "<p>Lists configured table associations for a membership.</p>", "ListConfiguredTables": "<p>Lists configured tables.</p>", @@ -33,6 +40,7 @@ "StartProtectedQuery": "<p>Creates a protected query that is started by Clean Rooms .</p>", "TagResource": "<p>Tags a resource.</p>", "UntagResource": "<p>Removes a tag or list of tags from a resource.</p>", + "UpdateAnalysisTemplate": "<p>Updates the analysis template metadata.</p>", "UpdateCollaboration": "<p>Updates collaboration metadata and can only be called by the collaboration owner.</p>", "UpdateConfiguredTable": "<p>Updates a configured table.</p>", "UpdateConfiguredTableAnalysisRule": "<p>Updates a configured table analysis rule.</p>", @@ -55,7 +63,10 @@ "AccountId": { "base": null, "refs": { + "AnalysisRuleCustomAllowedAnalysisProvidersList$member": null, "Collaboration$creatorAccountId": "<p>The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services account ID.</p>", + "CollaborationAnalysisTemplate$creatorAccountId": "<p>The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services account ID.</p>", + "CollaborationAnalysisTemplateSummary$creatorAccountId": "<p>The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services account ID.</p>", "CollaborationSummary$creatorAccountId": "<p>The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services account ID.</p>", "DeleteMemberInput$accountId": "<p>The account ID of the member to remove.</p>", "MemberSpecification$accountId": "<p>The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services account ID.</p>", @@ -115,6 +126,14 @@ "CreateConfiguredTableInput$allowedColumns": "<p>The columns of the underlying table that can be used by collaborations or analysis rules.</p>" } }, + "AnalysisFormat": { + "base": null, + "refs": { + "AnalysisTemplate$format": "<p>The format of the analysis template.</p>", + "CollaborationAnalysisTemplate$format": "<p>The format of the analysis template in the collaboration.</p>", + "CreateAnalysisTemplateInput$format": "<p>The format of the analysis template.</p>" + } + }, "AnalysisMethod": { "base": null, "refs": { @@ -125,6 +144,20 @@ "SchemaSummary$analysisMethod": "<p>The analysis method for the associated schema. The only valid value is currently `DIRECT_QUERY`.</p>" } }, + "AnalysisParameter": { + "base": "<p>Optional. The member who can query can provide this placeholder for a literal data value in an analysis template.</p>", + "refs": { + "AnalysisParameterList$member": null + } + }, + "AnalysisParameterList": { + "base": null, + "refs": { + "AnalysisTemplate$analysisParameters": "<p>The parameters of the analysis template.</p>", + "CollaborationAnalysisTemplate$analysisParameters": "<p>The analysis parameters that have been specified in the analysis template.</p>", + "CreateAnalysisTemplateInput$analysisParameters": "<p>The parameters of the analysis template.</p>" + } + }, "AnalysisRule": { "base": "<p>A specification about how data from the configured table can be used in a query.</p>", "refs": { @@ -132,7 +165,7 @@ } }, "AnalysisRuleAggregation": { - "base": "<p>Enables query structure and specified queries that produce aggregate statistics.</p>", + "base": "<p>A type of analysis rule that enables query structure and specified queries that produce aggregate statistics.</p>", "refs": { "AnalysisRulePolicyV1$aggregation": "<p>Analysis rule type that enables only aggregation queries on a configured table.</p>", "ConfiguredTableAnalysisRulePolicyV1$aggregation": "<p>Analysis rule type that enables only aggregation queries on a configured table.</p>" @@ -161,6 +194,25 @@ "AnalysisRuleListJoinColumnsList$member": null } }, + "AnalysisRuleCustom": { + "base": "<p>A type of analysis rule that enables the table owner to approve custom SQL queries on their configured tables.</p>", + "refs": { + "AnalysisRulePolicyV1$custom": "<p>Analysis rule type that enables custom SQL queries on a configured table.</p>", + "ConfiguredTableAnalysisRulePolicyV1$custom": null + } + }, + "AnalysisRuleCustomAllowedAnalysesList": { + "base": null, + "refs": { + "AnalysisRuleCustom$allowedAnalyses": "<p>The analysis templates that are allowed by the custom analysis rule.</p>" + } + }, + "AnalysisRuleCustomAllowedAnalysisProvidersList": { + "base": null, + "refs": { + "AnalysisRuleCustom$allowedAnalysisProviders": "<p>The Amazon Web Services accounts that are allowed to query by the custom analysis rule. Required when <code>allowedAnalyses</code> is <code>ANY_QUERY</code>.</p>" + } + }, "AnalysisRuleList": { "base": "<p>A type of analysis rule that enables row-level analysis.</p>", "refs": { @@ -175,21 +227,21 @@ } }, "AnalysisRulePolicy": { - "base": "<p>Controls on the query specifications that can be run on configured table..</p>", + "base": "<p>Controls on the query specifications that can be run on configured table.</p>", "refs": { "AnalysisRule$policy": "<p>A policy that describes the associated data usage limitations.</p>" } }, "AnalysisRulePolicyV1": { - "base": "<p>Controls on the query specifications that can be run on configured table..</p>", + "base": "<p>Controls on the query specifications that can be run on configured table.</p>", "refs": { - "AnalysisRulePolicy$v1": "<p>Controls on the query specifications that can be run on configured table..</p>" + "AnalysisRulePolicy$v1": "<p>Controls on the query specifications that can be run on configured table.</p>" } }, "AnalysisRuleType": { "base": null, "refs": { - "AnalysisRule$type": "<p>The type of analysis rule. Valid values are `AGGREGATION` and `LIST`.</p>", + "AnalysisRule$type": "<p>The type of analysis rule.</p>", "AnalysisRuleTypeList$member": null, "GetSchemaAnalysisRuleInput$type": "<p>The type of the schema analysis rule to retrieve. Schema analysis rules are uniquely identified by a combination of the collaboration, the schema name, and their type.</p>" } @@ -197,10 +249,110 @@ "AnalysisRuleTypeList": { "base": null, "refs": { - "Schema$analysisRuleTypes": "<p>The analysis rule types associated with the schema. Valued values are LIST and AGGREGATION. Currently, only one entry is present.</p>", + "Schema$analysisRuleTypes": "<p>The analysis rule types associated with the schema. Currently, only one entry is present.</p>", "SchemaSummary$analysisRuleTypes": "<p>The types of analysis rules that are associated with this schema object.</p>" } }, + "AnalysisSchema": { + "base": "<p>A relation within an analysis.</p>", + "refs": { + "AnalysisTemplate$schema": "<p>The entire schema object.</p>", + "CollaborationAnalysisTemplate$schema": "<p>The entire schema object.</p>" + } + }, + "AnalysisSource": { + "base": "<p>The structure that defines the body of the analysis template.</p>", + "refs": { + "AnalysisTemplate$source": "<p>The source of the analysis template.</p>", + "CollaborationAnalysisTemplate$source": "<p>The source of the analysis template within a collaboration.</p>", + "CreateAnalysisTemplateInput$source": "<p>The information in the analysis template. Currently supports <code>text</code>, the query text for the analysis template.</p>" + } + }, + "AnalysisTemplate": { + "base": "<p>The analysis template.</p>", + "refs": { + "CreateAnalysisTemplateOutput$analysisTemplate": "<p>The analysis template.</p>", + "GetAnalysisTemplateOutput$analysisTemplate": "<p>The analysis template.</p>", + "UpdateAnalysisTemplateOutput$analysisTemplate": "<p>The analysis template.</p>" + } + }, + "AnalysisTemplateArn": { + "base": null, + "refs": { + "AnalysisTemplate$arn": "<p>The Amazon Resource Name (ARN) of the analysis template.</p>", + "AnalysisTemplateArnList$member": null, + "AnalysisTemplateSummary$arn": "<p>The Amazon Resource Name (ARN) of the analysis template.</p>", + "BatchGetCollaborationAnalysisTemplateError$arn": "<p>The Amazon Resource Name (ARN) of the analysis template.</p>", + "CollaborationAnalysisTemplate$arn": "<p>The Amazon Resource Name (ARN) of the analysis template.</p>", + "CollaborationAnalysisTemplateSummary$arn": "<p>The Amazon Resource Name (ARN) of the analysis template.</p>", + "GetCollaborationAnalysisTemplateInput$analysisTemplateArn": "<p>The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.</p>", + "ProtectedQuerySQLParameters$analysisTemplateArn": "<p>The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.</p>" + } + }, + "AnalysisTemplateArnList": { + "base": null, + "refs": { + "BatchGetCollaborationAnalysisTemplateInput$analysisTemplateArns": "<p>The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.</p>" + } + }, + "AnalysisTemplateArnOrQueryWildcard": { + "base": null, + "refs": { + "AnalysisRuleCustomAllowedAnalysesList$member": null + } + }, + "AnalysisTemplateIdentifier": { + "base": null, + "refs": { + "AnalysisTemplate$id": "<p>The identifier for the analysis template.</p>", + "AnalysisTemplateSummary$id": "<p>The identifier of the analysis template.</p>", + "CollaborationAnalysisTemplate$id": "<p>The identifier of the analysis template.</p>", + "CollaborationAnalysisTemplateSummary$id": "<p>The identifier of the analysis template.</p>", + "DeleteAnalysisTemplateInput$analysisTemplateIdentifier": "<p>The identifier for the analysis template resource.</p>", + "GetAnalysisTemplateInput$analysisTemplateIdentifier": "<p>The identifier for the analysis template resource.</p>", + "UpdateAnalysisTemplateInput$analysisTemplateIdentifier": "<p>The identifier for the analysis template resource.</p>" + } + }, + "AnalysisTemplateSummary": { + "base": "<p>The metadata of the analysis template.</p>", + "refs": { + "AnalysisTemplateSummaryList$member": null + } + }, + "AnalysisTemplateSummaryList": { + "base": null, + "refs": { + "ListAnalysisTemplatesOutput$analysisTemplateSummaries": "<p>Lists analysis template metadata.</p>" + } + }, + "AnalysisTemplateText": { + "base": null, + "refs": { + "AnalysisSource$text": "<p>The query text.</p>" + } + }, + "BatchGetCollaborationAnalysisTemplateError": { + "base": "<p>Details of errors thrown by the call to retrieve multiple analysis templates within a collaboration by their identifiers.</p>", + "refs": { + "BatchGetCollaborationAnalysisTemplateErrorList$member": null + } + }, + "BatchGetCollaborationAnalysisTemplateErrorList": { + "base": null, + "refs": { + "BatchGetCollaborationAnalysisTemplateOutput$errors": "<p>Error reasons for collaboration analysis templates that could not be retrieved. One error is returned for every collaboration analysis template that could not be retrieved.</p>" + } + }, + "BatchGetCollaborationAnalysisTemplateInput": { + "base": null, + "refs": { + } + }, + "BatchGetCollaborationAnalysisTemplateOutput": { + "base": null, + "refs": { + } + }, "BatchGetSchemaError": { "base": "<p>An error describing why a schema could not be fetched.</p>", "refs": { @@ -248,10 +400,39 @@ "UpdateCollaborationOutput$collaboration": "<p>The entire collaboration that has been updated.</p>" } }, + "CollaborationAnalysisTemplate": { + "base": "<p>The analysis template within a collaboration.</p>", + "refs": { + "CollaborationAnalysisTemplateList$member": null, + "GetCollaborationAnalysisTemplateOutput$collaborationAnalysisTemplate": "<p>The analysis template within a collaboration.</p>" + } + }, + "CollaborationAnalysisTemplateList": { + "base": null, + "refs": { + "BatchGetCollaborationAnalysisTemplateOutput$collaborationAnalysisTemplates": "<p>The retrieved list of analysis templates within a collaboration.</p>" + } + }, + "CollaborationAnalysisTemplateSummary": { + "base": "<p>The metadata of the analysis template within a collaboration.</p>", + "refs": { + "CollaborationAnalysisTemplateSummaryList$member": null + } + }, + "CollaborationAnalysisTemplateSummaryList": { + "base": null, + "refs": { + "ListCollaborationAnalysisTemplatesOutput$collaborationAnalysisTemplateSummaries": "<p>The metadata of the analysis template within a collaboration.</p>" + } + }, "CollaborationArn": { "base": null, "refs": { + "AnalysisTemplate$collaborationArn": "<p>The unique ARN for the analysis template’s associated collaboration.</p>", + "AnalysisTemplateSummary$collaborationArn": "<p>The unique ARN for the analysis template summary’s associated collaboration.</p>", "Collaboration$arn": "<p>The unique ARN for the collaboration.</p>", + "CollaborationAnalysisTemplate$collaborationArn": "<p>The unique ARN for the analysis template’s associated collaboration.</p>", + "CollaborationAnalysisTemplateSummary$collaborationArn": "<p>The unique ARN for the analysis template’s associated collaboration.</p>", "CollaborationSummary$arn": "<p>The ARN of the collaboration.</p>", "Membership$collaborationArn": "<p>The unique ARN for the membership's associated collaboration.</p>", "MembershipSummary$collaborationArn": "<p>The unique ARN for the membership's associated collaboration.</p>", @@ -271,13 +452,16 @@ "base": null, "refs": { "AnalysisRule$collaborationId": "<p>The unique ID for the associated collaboration.</p>", + "BatchGetCollaborationAnalysisTemplateInput$collaborationIdentifier": "<p>A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.</p>", "BatchGetSchemaInput$collaborationIdentifier": "<p>A unique identifier for the collaboration that the schemas belong to. Currently accepts collaboration ID.</p>", "CreateMembershipInput$collaborationIdentifier": "<p>The unique ID for the associated collaboration.</p>", "DeleteCollaborationInput$collaborationIdentifier": "<p>The identifier for the collaboration.</p>", "DeleteMemberInput$collaborationIdentifier": "<p>The unique identifier for the associated collaboration.</p>", + "GetCollaborationAnalysisTemplateInput$collaborationIdentifier": "<p>A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.</p>", "GetCollaborationInput$collaborationIdentifier": "<p>The identifier for the collaboration.</p>", "GetSchemaAnalysisRuleInput$collaborationIdentifier": "<p>A unique identifier for the collaboration that the schema belongs to. Currently accepts a collaboration ID.</p>", "GetSchemaInput$collaborationIdentifier": "<p>A unique identifier for the collaboration that the schema belongs to. Currently accepts a collaboration ID.</p>", + "ListCollaborationAnalysisTemplatesInput$collaborationIdentifier": "<p>A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.</p>", "ListMembersInput$collaborationIdentifier": "<p>The identifier of the collaboration in which the members are listed.</p>", "ListSchemasInput$collaborationIdentifier": "<p>A unique identifier for the collaboration that the schema belongs to. Currently accepts a collaboration ID.</p>", "MembershipSummary$collaborationId": "<p>The unique ID for the membership's collaboration.</p>", @@ -373,9 +557,9 @@ "ConfiguredTableAnalysisRuleType": { "base": null, "refs": { - "ConfiguredTableAnalysisRule$type": "<p>The type of configured table analysis rule. Valid values are `AGGREGATION` and `LIST`.</p>", + "ConfiguredTableAnalysisRule$type": "<p>The type of configured table analysis rule.</p>", "ConfiguredTableAnalysisRuleTypeList$member": null, - "CreateConfiguredTableAnalysisRuleInput$analysisRuleType": "<p>The type of analysis rule. Valid values are AGGREGATION and LIST.</p>", + "CreateConfiguredTableAnalysisRuleInput$analysisRuleType": "<p>The type of analysis rule.</p>", "DeleteConfiguredTableAnalysisRuleInput$analysisRuleType": "<p>The analysis rule type to be deleted. Configured table analysis rules are uniquely identified by their configured table identifier and analysis rule type.</p>", "GetConfiguredTableAnalysisRuleInput$analysisRuleType": "<p>The analysis rule to be retrieved. Configured table analysis rules are uniquely identified by their configured table identifier and analysis rule type.</p>", "UpdateConfiguredTableAnalysisRuleInput$analysisRuleType": "<p>The analysis rule type to be updated. Configured table analysis rules are uniquely identified by their configured table identifier and analysis rule type.</p>" @@ -384,7 +568,7 @@ "ConfiguredTableAnalysisRuleTypeList": { "base": null, "refs": { - "ConfiguredTable$analysisRuleTypes": "<p>The types of analysis rules associated with this configured table. Valid values are `AGGREGATION` and `LIST`. Currently, only one analysis rule may be associated with a configured table.</p>", + "ConfiguredTable$analysisRuleTypes": "<p>The types of analysis rules associated with this configured table. Currently, only one analysis rule may be associated with a configured table.</p>", "ConfiguredTableSummary$analysisRuleTypes": "<p>The types of analysis rules associated with this configured table.</p>" } }, @@ -469,6 +653,16 @@ "ConflictException$reason": "<p>A reason code for the exception.</p>" } }, + "CreateAnalysisTemplateInput": { + "base": null, + "refs": { + } + }, + "CreateAnalysisTemplateOutput": { + "base": null, + "refs": { + } + }, "CreateCollaborationInput": { "base": null, "refs": { @@ -526,6 +720,16 @@ "CreateCollaborationInput$dataEncryptionMetadata": "<p>The settings for client-side encryption with Cryptographic Computing for Clean Rooms.</p>" } }, + "DeleteAnalysisTemplateInput": { + "base": null, + "refs": { + } + }, + "DeleteAnalysisTemplateOutput": { + "base": null, + "refs": { + } + }, "DeleteCollaborationInput": { "base": null, "refs": { @@ -614,6 +818,26 @@ "ListCollaborationsInput$memberStatus": "<p>The caller's status in a collaboration.</p>" } }, + "GetAnalysisTemplateInput": { + "base": null, + "refs": { + } + }, + "GetAnalysisTemplateOutput": { + "base": null, + "refs": { + } + }, + "GetCollaborationAnalysisTemplateInput": { + "base": null, + "refs": { + } + }, + "GetCollaborationAnalysisTemplateOutput": { + "base": null, + "refs": { + } + }, "GetCollaborationInput": { "base": null, "refs": { @@ -727,7 +951,7 @@ "base": null, "refs": { "AnalysisRuleAggregation$allowedJoinOperators": "<p>Which logical operators (if any) are to be used in an INNER JOIN match condition. Default is <code>AND</code>.</p>", - "AnalysisRuleList$allowedJoinOperators": "<p>Which logical operators (if any) are to be used in an INNER JOIN match condition. Default is <code>AND</code>.</p>" + "AnalysisRuleList$allowedJoinOperators": "<p>The logical operators (if any) that are to be used in an INNER JOIN match condition. Default is <code>AND</code>.</p>" } }, "JoinRequiredOption": { @@ -742,6 +966,26 @@ "ProtectedQueryS3OutputConfiguration$keyPrefix": "<p>The S3 prefix to unload the protected query results.</p>" } }, + "ListAnalysisTemplatesInput": { + "base": null, + "refs": { + } + }, + "ListAnalysisTemplatesOutput": { + "base": null, + "refs": { + } + }, + "ListCollaborationAnalysisTemplatesInput": { + "base": null, + "refs": { + } + }, + "ListCollaborationAnalysisTemplatesOutput": { + "base": null, + "refs": { + } + }, "ListCollaborationsInput": { "base": null, "refs": { @@ -831,6 +1075,8 @@ "MaxResults": { "base": null, "refs": { + "ListAnalysisTemplatesInput$maxResults": "<p>The maximum size of the results that is returned per call.</p>", + "ListCollaborationAnalysisTemplatesInput$maxResults": "<p>The maximum size of the results that is returned per call.</p>", "ListCollaborationsInput$maxResults": "<p>The maximum size of the results that is returned per call. Service chooses a default if it has not been set. Service may return a nextToken even if the maximum results has not been met.</p>", "ListConfiguredTableAssociationsInput$maxResults": "<p>The maximum size of the results that is returned per call.</p>", "ListConfiguredTablesInput$maxResults": "<p>The maximum size of the results that is returned per call.</p>", @@ -899,6 +1145,8 @@ "MembershipArn": { "base": null, "refs": { + "AnalysisTemplate$membershipArn": "<p>The Amazon Resource Name (ARN) of the member who created the analysis template.</p>", + "AnalysisTemplateSummary$membershipArn": "<p>The Amazon Resource Name (ARN) of the member who created the analysis template.</p>", "Collaboration$membershipArn": "<p>The unique ARN for your membership within the collaboration.</p>", "CollaborationSummary$membershipArn": "<p>The ARN of a member in a collaboration.</p>", "ConfiguredTableAssociation$membershipArn": "<p>The unique ARN for the membership this configured table association belongs to.</p>", @@ -914,15 +1162,20 @@ "base": null, "refs": { "ConfiguredTableAssociationSummary$membershipId": "<p>The unique ID for the membership that the configured table association belongs to.</p>", + "CreateAnalysisTemplateInput$membershipIdentifier": "<p>The identifier for a membership resource.</p>", "CreateConfiguredTableAssociationInput$membershipIdentifier": "<p>A unique identifier for one of your memberships for a collaboration. The configured table is associated to the collaboration that this membership belongs to. Currently accepts a membership ID.</p>", + "DeleteAnalysisTemplateInput$membershipIdentifier": "<p>The identifier for a membership resource.</p>", "DeleteConfiguredTableAssociationInput$membershipIdentifier": "<p>A unique identifier for the membership that the configured table association belongs to. Currently accepts the membership ID.</p>", "DeleteMembershipInput$membershipIdentifier": "<p>The identifier for a membership resource.</p>", + "GetAnalysisTemplateInput$membershipIdentifier": "<p>The identifier for a membership resource.</p>", "GetConfiguredTableAssociationInput$membershipIdentifier": "<p>A unique identifier for the membership that the configured table association belongs to. Currently accepts the membership ID.</p>", "GetMembershipInput$membershipIdentifier": "<p>The identifier for a membership resource.</p>", "GetProtectedQueryInput$membershipIdentifier": "<p>The identifier for a membership in a protected query instance.</p>", + "ListAnalysisTemplatesInput$membershipIdentifier": "<p>The identifier for a membership resource.</p>", "ListConfiguredTableAssociationsInput$membershipIdentifier": "<p>A unique identifier for the membership to list configured table associations for. Currently accepts the membership ID.</p>", "ListProtectedQueriesInput$membershipIdentifier": "<p>The identifier for the membership in the collaboration.</p>", "StartProtectedQueryInput$membershipIdentifier": "<p>A unique identifier for the membership to run this query against. Currently accepts a membership ID.</p>", + "UpdateAnalysisTemplateInput$membershipIdentifier": "<p>The identifier for a membership resource.</p>", "UpdateConfiguredTableAssociationInput$membershipIdentifier": "<p>The unique ID for the membership that the configured table association belongs to.</p>", "UpdateMembershipInput$membershipIdentifier": "<p>The unique identifier of the membership.</p>", "UpdateProtectedQueryInput$membershipIdentifier": "<p>The identifier for a member of a protected query instance.</p>" @@ -959,6 +1212,10 @@ "PaginationToken": { "base": null, "refs": { + "ListAnalysisTemplatesInput$nextToken": "<p>The token value retrieved from a previous call to access the next page of results.</p>", + "ListAnalysisTemplatesOutput$nextToken": "<p>The token value retrieved from a previous call to access the next page of results.</p>", + "ListCollaborationAnalysisTemplatesInput$nextToken": "<p>The token value retrieved from a previous call to access the next page of results.</p>", + "ListCollaborationAnalysisTemplatesOutput$nextToken": "<p>The token value retrieved from a previous call to access the next page of results.</p>", "ListCollaborationsInput$nextToken": "<p>The token value retrieved from a previous call to access the next page of results.</p>", "ListCollaborationsOutput$nextToken": "<p>The token value retrieved from a previous call to access the next page of results.</p>", "ListConfiguredTableAssociationsInput$nextToken": "<p>The token value retrieved from a previous call to access the next page of results.</p>", @@ -975,6 +1232,32 @@ "ListSchemasOutput$nextToken": "<p>The token value retrieved from a previous call to access the next page of results.</p>" } }, + "ParameterMap": { + "base": null, + "refs": { + "ProtectedQuerySQLParameters$parameters": "<p>The protected query SQL parameters.</p>" + } + }, + "ParameterName": { + "base": null, + "refs": { + "AnalysisParameter$name": "<p>The name of the parameter. The name must use only alphanumeric, underscore (_), or hyphen (-) characters but cannot start or end with a hyphen.</p>", + "ParameterMap$key": null + } + }, + "ParameterType": { + "base": null, + "refs": { + "AnalysisParameter$type": "<p>The type of parameter.</p>" + } + }, + "ParameterValue": { + "base": null, + "refs": { + "AnalysisParameter$defaultValue": "<p>Optional. The default value that is applied in the analysis template. The member who can query can override this value in the query editor.</p>", + "ParameterMap$value": null + } + }, "ProtectedQuery": { "base": "<p>The parameters for an Clean Rooms protected query.</p>", "refs": { @@ -1084,6 +1367,32 @@ "StartProtectedQueryInput$type": "<p>The type of the protected query to be started.</p>" } }, + "QueryTables": { + "base": null, + "refs": { + "AnalysisSchema$referencedTables": "<p>The tables referenced in the analysis schema.</p>" + } + }, + "ResourceAlias": { + "base": null, + "refs": { + "AnalysisTemplate$name": "<p>The name of the analysis template.</p>", + "AnalysisTemplateSummary$name": "<p>The name of the analysis template. </p>", + "CollaborationAnalysisTemplate$name": "<p>The name of the analysis template.</p>", + "CollaborationAnalysisTemplateSummary$name": "<p>The name of the analysis template.</p>" + } + }, + "ResourceDescription": { + "base": null, + "refs": { + "AnalysisTemplate$description": "<p>The description of the analysis template.</p>", + "AnalysisTemplateSummary$description": "<p>The description of the analysis template.</p>", + "CollaborationAnalysisTemplate$description": "<p>The description of the analysis template.</p>", + "CollaborationAnalysisTemplateSummary$description": "<p>The description of the analysis template.</p>", + "CreateAnalysisTemplateInput$description": "<p>The description of the analysis template.</p>", + "UpdateAnalysisTemplateInput$description": "<p>A new description for the analysis template.</p>" + } + }, "ResourceNotFoundException": { "base": "<p>Request references a resource which does not exist.</p>", "refs": { @@ -1174,6 +1483,8 @@ "base": null, "refs": { "AccessDeniedException$message": null, + "BatchGetCollaborationAnalysisTemplateError$code": "<p>An error code for the error.</p>", + "BatchGetCollaborationAnalysisTemplateError$message": "<p>A description of why the call failed.</p>", "BatchGetSchemaError$code": "<p>An error code for the error. </p>", "BatchGetSchemaError$message": "<p>An error message for the error.</p>", "ConflictException$message": null, @@ -1199,9 +1510,11 @@ "BatchGetSchemaError$name": "<p>An error name for the error.</p>", "ConfiguredTableAssociation$name": "<p>The name of the configured table association, in lowercase. The table is identified by this name when running protected queries against the underlying data.</p>", "ConfiguredTableAssociationSummary$name": "<p>The name of the configured table association. The table is identified by this name when running Protected Queries against the underlying data.</p>", + "CreateAnalysisTemplateInput$name": "<p>The name of the analysis template.</p>", "CreateConfiguredTableAssociationInput$name": "<p>The name of the configured table association. This name is used to query the underlying configured table.</p>", "GetSchemaAnalysisRuleInput$name": "<p>The name of the schema to retrieve the analysis rule for.</p>", "GetSchemaInput$name": "<p>The name of the relation to retrieve the schema for.</p>", + "QueryTables$member": null, "Schema$name": "<p>A name for the schema. The schema relation is referred to by this name when queried by a protected query.</p>", "SchemaSummary$name": "<p>The name for the schema object.</p>", "TableAliasList$member": null @@ -1248,6 +1561,7 @@ "TagMap": { "base": "<p>Map of tags assigned to a resource</p>", "refs": { + "CreateAnalysisTemplateInput$tags": "<p>An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.</p>", "CreateCollaborationInput$tags": "<p>An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.</p>", "CreateConfiguredTableAssociationInput$tags": "<p>An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.</p>", "CreateConfiguredTableInput$tags": "<p>An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.</p>", @@ -1288,8 +1602,16 @@ "refs": { "AnalysisRule$createTime": "<p>The time the analysis rule was created.</p>", "AnalysisRule$updateTime": "<p>The time the analysis rule was last updated.</p>", + "AnalysisTemplate$createTime": "<p>The time that the analysis template was created.</p>", + "AnalysisTemplate$updateTime": "<p>The time that the analysis template was last updated.</p>", + "AnalysisTemplateSummary$createTime": "<p>The time that the analysis template summary was created.</p>", + "AnalysisTemplateSummary$updateTime": "<p>The time that the analysis template summary was last updated.</p>", "Collaboration$createTime": "<p>The time when the collaboration was created.</p>", "Collaboration$updateTime": "<p>The time the collaboration metadata was last updated.</p>", + "CollaborationAnalysisTemplate$createTime": "<p>The time that the analysis template within a collaboration was created.</p>", + "CollaborationAnalysisTemplate$updateTime": "<p>The time that the analysis template in the collaboration was last updated.</p>", + "CollaborationAnalysisTemplateSummary$createTime": "<p>The time that the summary of the analysis template in a collaboration was created.</p>", + "CollaborationAnalysisTemplateSummary$updateTime": "<p>The time that the summary of the analysis template in the collaboration was last updated.</p>", "CollaborationSummary$createTime": "<p>The time when the collaboration was created.</p>", "CollaborationSummary$updateTime": "<p>The time the collaboration metadata was last updated.</p>", "ConfiguredTable$createTime": "<p>The time the configured table was created.</p>", @@ -1319,8 +1641,14 @@ "UUID": { "base": null, "refs": { + "AnalysisTemplate$collaborationId": "<p>The unique ID for the associated collaboration of the analysis template.</p>", + "AnalysisTemplate$membershipId": "<p>The identifier of a member who created the analysis template.</p>", + "AnalysisTemplateSummary$membershipId": "<p>The identifier for a membership resource.</p>", + "AnalysisTemplateSummary$collaborationId": "<p>A unique identifier for the collaboration that the analysis template summary belongs to. Currently accepts collaboration ID.</p>", "Collaboration$id": "<p>The unique ID for the collaboration.</p>", "Collaboration$membershipId": "<p>The unique ID for your membership within the collaboration.</p>", + "CollaborationAnalysisTemplate$collaborationId": "<p>A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.</p>", + "CollaborationAnalysisTemplateSummary$collaborationId": "<p>A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.</p>", "CollaborationSummary$id": "<p>The identifier for the collaboration.</p>", "CollaborationSummary$membershipId": "<p>The identifier of a member in a collaboration.</p>", "ConfiguredTable$id": "<p>The unique ID for the configured table.</p>", @@ -1352,6 +1680,16 @@ "refs": { } }, + "UpdateAnalysisTemplateInput": { + "base": null, + "refs": { + } + }, + "UpdateAnalysisTemplateOutput": { + "base": null, + "refs": { + } + }, "UpdateCollaborationInput": { "base": null, "refs": { diff --git a/models/apis/cleanrooms/2022-02-17/endpoint-tests-1.json b/models/apis/cleanrooms/2022-02-17/endpoint-tests-1.json index 256ebd8e2db..a128e3bf3db 100644 --- a/models/apis/cleanrooms/2022-02-17/endpoint-tests-1.json +++ b/models/apis/cleanrooms/2022-02-17/endpoint-tests-1.json @@ -8,9 +8,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "us-gov-east-1" + "UseDualStack": true } }, { @@ -21,9 +21,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-gov-east-1" + "UseDualStack": false } }, { @@ -34,9 +34,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "us-gov-east-1" + "UseDualStack": true } }, { @@ -47,9 +47,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-gov-east-1" + "UseDualStack": false } }, { @@ -60,9 +60,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "cn-north-1" + "UseDualStack": true } }, { @@ -73,9 +73,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "cn-north-1" + "UseDualStack": false } }, { @@ -86,9 +86,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "cn-north-1" + "UseDualStack": true } }, { @@ -99,9 +99,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "cn-north-1" + "UseDualStack": false } }, { @@ -110,9 +110,9 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { + "Region": "us-iso-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "us-iso-east-1" + "UseDualStack": true } }, { @@ -123,9 +123,9 @@ } }, "params": { + "Region": "us-iso-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-iso-east-1" + "UseDualStack": false } }, { @@ -134,9 +134,9 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { + "Region": "us-iso-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "us-iso-east-1" + "UseDualStack": true } }, { @@ -147,9 +147,9 @@ } }, "params": { + "Region": "us-iso-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-iso-east-1" + "UseDualStack": false } }, { @@ -160,9 +160,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "us-east-1" + "UseDualStack": true } }, { @@ -173,9 +173,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-east-1" + "UseDualStack": false } }, { @@ -186,9 +186,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "us-east-1" + "UseDualStack": true } }, { @@ -199,9 +199,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-east-1" + "UseDualStack": false } }, { @@ -210,9 +210,9 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { + "Region": "us-isob-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "us-isob-east-1" + "UseDualStack": true } }, { @@ -223,9 +223,9 @@ } }, "params": { + "Region": "us-isob-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-isob-east-1" + "UseDualStack": false } }, { @@ -234,9 +234,9 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { + "Region": "us-isob-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "us-isob-east-1" + "UseDualStack": true } }, { @@ -247,9 +247,9 @@ } }, "params": { + "Region": "us-isob-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-isob-east-1" + "UseDualStack": false } }, { @@ -260,9 +260,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, - "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -272,9 +272,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { + "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, - "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -284,9 +284,9 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { + "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, - "Region": "us-east-1", "Endpoint": "https://example.com" } } diff --git a/models/apis/cleanrooms/2022-02-17/paginators-1.json b/models/apis/cleanrooms/2022-02-17/paginators-1.json index 52d02290f00..62fee6a7230 100644 --- a/models/apis/cleanrooms/2022-02-17/paginators-1.json +++ b/models/apis/cleanrooms/2022-02-17/paginators-1.json @@ -1,5 +1,17 @@ { "pagination": { + "ListAnalysisTemplates": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "analysisTemplateSummaries" + }, + "ListCollaborationAnalysisTemplates": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "collaborationAnalysisTemplateSummaries" + }, "ListCollaborations": { "input_token": "nextToken", "output_token": "nextToken", diff --git a/models/apis/codestar-connections/2019-12-01/api-2.json b/models/apis/codestar-connections/2019-12-01/api-2.json index 79243a04c5f..4e25fd1a5f9 100644 --- a/models/apis/codestar-connections/2019-12-01/api-2.json +++ b/models/apis/codestar-connections/2019-12-01/api-2.json @@ -97,7 +97,10 @@ "requestUri":"/" }, "input":{"shape":"ListConnectionsInput"}, - "output":{"shape":"ListConnectionsOutput"} + "output":{"shape":"ListConnectionsOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] }, "ListHosts":{ "name":"ListHosts", @@ -415,7 +418,8 @@ "enum":[ "Bitbucket", "GitHub", - "GitHubEnterpriseServer" + "GitHubEnterpriseServer", + "GitLab" ] }, "ResourceNotFoundException":{ diff --git a/models/apis/codestar-connections/2019-12-01/docs-2.json b/models/apis/codestar-connections/2019-12-01/docs-2.json index 67f415c9c2c..152d14b8a3d 100644 --- a/models/apis/codestar-connections/2019-12-01/docs-2.json +++ b/models/apis/codestar-connections/2019-12-01/docs-2.json @@ -1,8 +1,8 @@ { "version": "2.0", - "service": "<fullname>AWS CodeStar Connections</fullname> <p>This AWS CodeStar Connections API Reference provides descriptions and usage examples of the operations and data types for the AWS CodeStar Connections API. You can use the connections API to work with connections and installations.</p> <p> <i>Connections</i> are configurations that you use to connect AWS resources to external code repositories. Each connection is a resource that can be given to services such as CodePipeline to connect to a third-party repository such as Bitbucket. For example, you can add the connection in CodePipeline so that it triggers your pipeline when a code change is made to your third-party code repository. Each connection is named and associated with a unique ARN that is used to reference the connection.</p> <p>When you create a connection, the console initiates a third-party connection handshake. <i>Installations</i> are the apps that are used to conduct this handshake. For example, the installation for the Bitbucket provider type is the Bitbucket app. When you create a connection, you can choose an existing installation or create one.</p> <p>When you want to create a connection to an installed provider type such as GitHub Enterprise Server, you create a <i>host</i> for your connections.</p> <p>You can work with connections by calling:</p> <ul> <li> <p> <a>CreateConnection</a>, which creates a uniquely named connection that can be referenced by services such as CodePipeline.</p> </li> <li> <p> <a>DeleteConnection</a>, which deletes the specified connection.</p> </li> <li> <p> <a>GetConnection</a>, which returns information about the connection, including the connection status.</p> </li> <li> <p> <a>ListConnections</a>, which lists the connections associated with your account.</p> </li> </ul> <p>You can work with hosts by calling:</p> <ul> <li> <p> <a>CreateHost</a>, which creates a host that represents the infrastructure where your provider is installed.</p> </li> <li> <p> <a>DeleteHost</a>, which deletes the specified host.</p> </li> <li> <p> <a>GetHost</a>, which returns information about the host, including the setup status.</p> </li> <li> <p> <a>ListHosts</a>, which lists the hosts associated with your account.</p> </li> </ul> <p>You can work with tags in AWS CodeStar Connections by calling the following:</p> <ul> <li> <p> <a>ListTagsForResource</a>, which gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeStar Connections.</p> </li> <li> <p> <a>TagResource</a>, which adds or updates tags for a resource in AWS CodeStar Connections.</p> </li> <li> <p> <a>UntagResource</a>, which removes tags for a resource in AWS CodeStar Connections.</p> </li> </ul> <p>For information about how to use AWS CodeStar Connections, see the <a href=\"https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html\">Developer Tools User Guide</a>.</p>", + "service": "<fullname>AWS CodeStar Connections</fullname> <p>This Amazon Web Services CodeStar Connections API Reference provides descriptions and usage examples of the operations and data types for the Amazon Web Services CodeStar Connections API. You can use the connections API to work with connections and installations.</p> <p> <i>Connections</i> are configurations that you use to connect Amazon Web Services resources to external code repositories. Each connection is a resource that can be given to services such as CodePipeline to connect to a third-party repository such as Bitbucket. For example, you can add the connection in CodePipeline so that it triggers your pipeline when a code change is made to your third-party code repository. Each connection is named and associated with a unique ARN that is used to reference the connection.</p> <p>When you create a connection, the console initiates a third-party connection handshake. <i>Installations</i> are the apps that are used to conduct this handshake. For example, the installation for the Bitbucket provider type is the Bitbucket app. When you create a connection, you can choose an existing installation or create one.</p> <p>When you want to create a connection to an installed provider type such as GitHub Enterprise Server, you create a <i>host</i> for your connections.</p> <p>You can work with connections by calling:</p> <ul> <li> <p> <a>CreateConnection</a>, which creates a uniquely named connection that can be referenced by services such as CodePipeline.</p> </li> <li> <p> <a>DeleteConnection</a>, which deletes the specified connection.</p> </li> <li> <p> <a>GetConnection</a>, which returns information about the connection, including the connection status.</p> </li> <li> <p> <a>ListConnections</a>, which lists the connections associated with your account.</p> </li> </ul> <p>You can work with hosts by calling:</p> <ul> <li> <p> <a>CreateHost</a>, which creates a host that represents the infrastructure where your provider is installed.</p> </li> <li> <p> <a>DeleteHost</a>, which deletes the specified host.</p> </li> <li> <p> <a>GetHost</a>, which returns information about the host, including the setup status.</p> </li> <li> <p> <a>ListHosts</a>, which lists the hosts associated with your account.</p> </li> </ul> <p>You can work with tags in Amazon Web Services CodeStar Connections by calling the following:</p> <ul> <li> <p> <a>ListTagsForResource</a>, which gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Amazon Web Services CodeStar Connections.</p> </li> <li> <p> <a>TagResource</a>, which adds or updates tags for a resource in Amazon Web Services CodeStar Connections.</p> </li> <li> <p> <a>UntagResource</a>, which removes tags for a resource in Amazon Web Services CodeStar Connections.</p> </li> </ul> <p>For information about how to use Amazon Web Services CodeStar Connections, see the <a href=\"https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html\">Developer Tools User Guide</a>.</p>", "operations": { - "CreateConnection": "<p>Creates a connection that can then be given to other AWS services like CodePipeline so that it can access third-party code repositories. The connection is in pending status until the third-party connection handshake is completed from the console.</p>", + "CreateConnection": "<p>Creates a connection that can then be given to other Amazon Web Services services like CodePipeline so that it can access third-party code repositories. The connection is in pending status until the third-party connection handshake is completed from the console.</p>", "CreateHost": "<p>Creates a resource that represents the infrastructure where a third-party provider is installed. The host is used when you create connections to an installed third-party provider type, such as GitHub Enterprise Server. You create one host for all connections to that provider.</p> <note> <p>A host created through the CLI or the SDK is in `PENDING` status by default. You can make its status `AVAILABLE` by setting up the host in the console.</p> </note>", "DeleteConnection": "<p>The connection to be deleted.</p>", "DeleteHost": "<p>The host to be deleted. Before you delete a host, all connections associated to the host must be deleted.</p> <note> <p>A host cannot be deleted if it is in the VPC_CONFIG_INITIALIZING or VPC_CONFIG_DELETING state.</p> </note>", @@ -12,7 +12,7 @@ "ListHosts": "<p>Lists the hosts associated with your account.</p>", "ListTagsForResource": "<p>Gets the set of key-value pairs (metadata) that are used to manage the resource.</p>", "TagResource": "<p>Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.</p>", - "UntagResource": "<p>Removes tags from an AWS resource.</p>", + "UntagResource": "<p>Removes tags from an Amazon Web Services resource.</p>", "UpdateHost": "<p>Updates a specified host with the provided configurations.</p>" }, "shapes": { @@ -36,7 +36,7 @@ } }, "Connection": { - "base": "<p>A resource that is used to connect third-party source providers with services like AWS CodePipeline.</p> <p>Note: A connection created through CloudFormation, the CLI, or the SDK is in `PENDING` status by default. You can make its status `AVAILABLE` by updating the connection in the console.</p>", + "base": "<p>A resource that is used to connect third-party source providers with services like CodePipeline.</p> <p>Note: A connection created through CloudFormation, the CLI, or the SDK is in `PENDING` status by default. You can make its status `AVAILABLE` by updating the connection in the console.</p>", "refs": { "ConnectionList$member": null, "GetConnectionOutput$Connection": "<p>The connection details, such as status, owner, and provider type.</p>" @@ -45,8 +45,8 @@ "ConnectionArn": { "base": null, "refs": { - "Connection$ConnectionArn": "<p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between AWS services.</p> <note> <p>The ARN is never reused if the connection is deleted.</p> </note>", - "CreateConnectionOutput$ConnectionArn": "<p>The Amazon Resource Name (ARN) of the connection to be created. The ARN is used as the connection reference when the connection is shared between AWS services.</p> <note> <p>The ARN is never reused if the connection is deleted.</p> </note>", + "Connection$ConnectionArn": "<p>The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between Amazon Web Services.</p> <note> <p>The ARN is never reused if the connection is deleted.</p> </note>", + "CreateConnectionOutput$ConnectionArn": "<p>The Amazon Resource Name (ARN) of the connection to be created. The ARN is used as the connection reference when the connection is shared between Amazon Web Services services.</p> <note> <p>The ARN is never reused if the connection is deleted.</p> </note>", "DeleteConnectionInput$ConnectionArn": "<p>The Amazon Resource Name (ARN) of the connection to be deleted.</p> <note> <p>The ARN is never reused if the connection is deleted.</p> </note>", "GetConnectionInput$ConnectionArn": "<p>The Amazon Resource Name (ARN) of a connection.</p>" } @@ -60,8 +60,8 @@ "ConnectionName": { "base": null, "refs": { - "Connection$ConnectionName": "<p>The name of the connection. Connection names must be unique in an AWS user account.</p>", - "CreateConnectionInput$ConnectionName": "<p>The name of the connection to be created. The name must be unique in the calling AWS account.</p>" + "Connection$ConnectionName": "<p>The name of the connection. Connection names must be unique in an Amazon Web Services account.</p>", + "CreateConnectionInput$ConnectionName": "<p>The name of the connection to be created.</p>" } }, "ConnectionStatus": { @@ -168,7 +168,7 @@ "HostName": { "base": null, "refs": { - "CreateHostInput$Name": "<p>The name of the host to be created. The name must be unique in the calling AWS account.</p>", + "CreateHostInput$Name": "<p>The name of the host to be created.</p>", "GetHostOutput$Name": "<p>The name of the requested host.</p>", "Host$Name": "<p>The name of the host.</p>" } @@ -283,7 +283,7 @@ } }, "Tag": { - "base": "<p>A tag is a key-value pair that is used to manage the resource.</p> <p>This tag is available for use by AWS services that support tags.</p>", + "base": "<p>A tag is a key-value pair that is used to manage the resource.</p> <p>This tag is available for use by Amazon Web Services services that support tags.</p>", "refs": { "TagList$member": null } diff --git a/models/apis/codestar-connections/2019-12-01/endpoint-rule-set-1.json b/models/apis/codestar-connections/2019-12-01/endpoint-rule-set-1.json new file mode 100644 index 00000000000..54683182617 --- /dev/null +++ b/models/apis/codestar-connections/2019-12-01/endpoint-rule-set-1.json @@ -0,0 +1,350 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://codestar-connections-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://codestar-connections-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://codestar-connections.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://codestar-connections.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + } + ] + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ] + } + ] +} \ No newline at end of file diff --git a/models/apis/codestar-connections/2019-12-01/endpoint-tests-1.json b/models/apis/codestar-connections/2019-12-01/endpoint-tests-1.json new file mode 100644 index 00000000000..c384373745c --- /dev/null +++ b/models/apis/codestar-connections/2019-12-01/endpoint-tests-1.json @@ -0,0 +1,509 @@ +{ + "testCases": [ + { + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.ap-northeast-1.amazonaws.com" + } + }, + "params": { + "Region": "ap-northeast-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.ap-northeast-2.amazonaws.com" + } + }, + "params": { + "Region": "ap-northeast-2", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.ap-south-1.amazonaws.com" + } + }, + "params": { + "Region": "ap-south-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.ap-southeast-1.amazonaws.com" + } + }, + "params": { + "Region": "ap-southeast-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.ap-southeast-2.amazonaws.com" + } + }, + "params": { + "Region": "ap-southeast-2", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.ca-central-1.amazonaws.com" + } + }, + "params": { + "Region": "ca-central-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.eu-central-1.amazonaws.com" + } + }, + "params": { + "Region": "eu-central-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.eu-north-1.amazonaws.com" + } + }, + "params": { + "Region": "eu-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.eu-west-1.amazonaws.com" + } + }, + "params": { + "Region": "eu-west-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.eu-west-2.amazonaws.com" + } + }, + "params": { + "Region": "eu-west-2", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.eu-west-3.amazonaws.com" + } + }, + "params": { + "Region": "eu-west-3", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.sa-east-1.amazonaws.com" + } + }, + "params": { + "Region": "sa-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.us-east-2.amazonaws.com" + } + }, + "params": { + "Region": "us-east-2", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.us-west-1.amazonaws.com" + } + }, + "params": { + "Region": "us-west-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.us-west-2.amazonaws.com" + } + }, + "params": { + "Region": "us-west-2", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections-fips.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://codestar-connections.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" +} \ No newline at end of file diff --git a/models/apis/drs/2020-02-26/api-2.json b/models/apis/drs/2020-02-26/api-2.json index 08e2dff07f2..f604d37cf20 100644 --- a/models/apis/drs/2020-02-26/api-2.json +++ b/models/apis/drs/2020-02-26/api-2.json @@ -2763,7 +2763,8 @@ "type":"string", "enum":[ "NONE", - "BASIC" + "BASIC", + "IN_AWS" ] }, "TerminateRecoveryInstancesRequest":{ diff --git a/models/apis/inspector2/2020-06-08/api-2.json b/models/apis/inspector2/2020-06-08/api-2.json index 743deb63012..50c117879c6 100644 --- a/models/apis/inspector2/2020-06-08/api-2.json +++ b/models/apis/inspector2/2020-06-08/api-2.json @@ -62,6 +62,22 @@ {"shape":"InternalServerException"} ] }, + "BatchGetFindingDetails":{ + "name":"BatchGetFindingDetails", + "http":{ + "method":"POST", + "requestUri":"/findings/details/batch/get", + "responseCode":200 + }, + "input":{"shape":"BatchGetFindingDetailsRequest"}, + "output":{"shape":"BatchGetFindingDetailsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, "BatchGetFreeTrialInfo":{ "name":"BatchGetFreeTrialInfo", "http":{ @@ -1133,6 +1149,20 @@ "errors":{"shape":"CodeSnippetErrorList"} } }, + "BatchGetFindingDetailsRequest":{ + "type":"structure", + "required":["findingArns"], + "members":{ + "findingArns":{"shape":"FindingArnList"} + } + }, + "BatchGetFindingDetailsResponse":{ + "type":"structure", + "members":{ + "errors":{"shape":"FindingDetailsErrorList"}, + "findingDetails":{"shape":"FindingDetails"} + } + }, "BatchGetFreeTrialInfoRequest":{ "type":"structure", "required":["accountIds"], @@ -1971,6 +2001,30 @@ ] }, "ErrorMessage":{"type":"string"}, + "Evidence":{ + "type":"structure", + "members":{ + "evidenceDetail":{"shape":"EvidenceDetail"}, + "evidenceRule":{"shape":"EvidenceRule"}, + "severity":{"shape":"EvidenceSeverity"} + } + }, + "EvidenceDetail":{ + "type":"string", + "min":0 + }, + "EvidenceList":{ + "type":"list", + "member":{"shape":"Evidence"} + }, + "EvidenceRule":{ + "type":"string", + "min":0 + }, + "EvidenceSeverity":{ + "type":"string", + "min":0 + }, "ExecutionRoleArn":{ "type":"string", "pattern":"^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$" @@ -2195,11 +2249,63 @@ "min":1, "pattern":"^arn:(aws[a-zA-Z-]*)?:inspector2:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:finding/[a-f0-9]{32}$" }, + "FindingArnList":{ + "type":"list", + "member":{"shape":"FindingArn"}, + "max":10, + "min":1 + }, "FindingDescription":{ "type":"string", "max":1024, "min":1 }, + "FindingDetail":{ + "type":"structure", + "members":{ + "cisaData":{"shape":"CisaData"}, + "cwes":{"shape":"Cwes"}, + "epssScore":{"shape":"Double"}, + "evidences":{"shape":"EvidenceList"}, + "exploitObserved":{"shape":"ExploitObserved"}, + "findingArn":{"shape":"FindingArn"}, + "referenceUrls":{"shape":"VulnerabilityReferenceUrls"}, + "riskScore":{"shape":"RiskScore"}, + "tools":{"shape":"Tools"}, + "ttps":{"shape":"Ttps"} + } + }, + "FindingDetails":{ + "type":"list", + "member":{"shape":"FindingDetail"}, + "min":0 + }, + "FindingDetailsError":{ + "type":"structure", + "required":[ + "errorCode", + "errorMessage", + "findingArn" + ], + "members":{ + "errorCode":{"shape":"FindingDetailsErrorCode"}, + "errorMessage":{"shape":"NonEmptyString"}, + "findingArn":{"shape":"FindingArn"} + } + }, + "FindingDetailsErrorCode":{ + "type":"string", + "enum":[ + "INTERNAL_ERROR", + "ACCESS_DENIED", + "FINDING_DETAILS_NOT_FOUND", + "INVALID_INPUT" + ] + }, + "FindingDetailsErrorList":{ + "type":"list", + "member":{"shape":"FindingDetailsError"} + }, "FindingList":{ "type":"list", "member":{"shape":"Finding"}, @@ -3475,6 +3581,10 @@ "AWS_LAMBDA_FUNCTION" ] }, + "RiskScore":{ + "type":"integer", + "box":true + }, "Runtime":{ "type":"string", "enum":[ @@ -3888,6 +3998,14 @@ "ALL" ] }, + "Tool":{ + "type":"string", + "min":0 + }, + "Tools":{ + "type":"list", + "member":{"shape":"Tool"} + }, "Ttp":{ "type":"string", "max":30, diff --git a/models/apis/inspector2/2020-06-08/docs-2.json b/models/apis/inspector2/2020-06-08/docs-2.json index db5bafd58c9..c8d53d47ec4 100644 --- a/models/apis/inspector2/2020-06-08/docs-2.json +++ b/models/apis/inspector2/2020-06-08/docs-2.json @@ -5,6 +5,7 @@ "AssociateMember": "<p>Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response indicates the association was successfully started, but doesn’t indicate whether it was completed. You can check if the association completed by using <a href=\"https://docs.aws.amazon.com/inspector/v2/APIReference/API_ListMembers.html\">ListMembers</a> for multiple accounts or <a href=\"https://docs.aws.amazon.com/inspector/v2/APIReference/API_GetMember.html\">GetMembers</a> for a single account.</p>", "BatchGetAccountStatus": "<p>Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.</p>", "BatchGetCodeSnippet": "<p>Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.</p>", + "BatchGetFindingDetails": "<p>Gets vulnerability details for findings.</p>", "BatchGetFreeTrialInfo": "<p>Gets free trial status for multiple Amazon Web Services accounts.</p>", "BatchGetMemberEc2DeepInspectionStatus": "<p>Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.</p>", "BatchUpdateMemberEc2DeepInspectionStatus": "<p>Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.</p>", @@ -327,6 +328,16 @@ "refs": { } }, + "BatchGetFindingDetailsRequest": { + "base": null, + "refs": { + } + }, + "BatchGetFindingDetailsResponse": { + "base": null, + "refs": { + } + }, "BatchGetFreeTrialInfoRequest": { "base": null, "refs": { @@ -405,6 +416,7 @@ "CisaData": { "base": "<p>The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.</p>", "refs": { + "FindingDetail$cisaData": null, "Vulnerability$cisaData": "<p>An object that contains the Cybersecurity and Infrastructure Security Agency (CISA) details for the vulnerability.</p>" } }, @@ -722,6 +734,7 @@ "Cwes": { "base": null, "refs": { + "FindingDetail$cwes": "<p>The Common Weakness Enumerations (CWEs) associated with the vulnerability.</p>", "Vulnerability$cwes": "<p>The Common Weakness Enumeration (CWE) associated with the vulnerability.</p>" } }, @@ -869,6 +882,7 @@ "CvssScore$baseScore": "<p>The base CVSS score used for the finding.</p>", "CvssScoreDetails$score": "<p>The CVSS score.</p>", "Finding$inspectorScore": "<p>The Amazon Inspector score given to the finding.</p>", + "FindingDetail$epssScore": "<p>The Exploit Prediction Scoring System (EPSS) score of the vulnerability.</p>", "NumberFilter$lowerInclusive": "<p>The lowest number to be included in the filter.</p>", "NumberFilter$upperInclusive": "<p>The highest number to be included in the filter.</p>" } @@ -1023,6 +1037,36 @@ "GetFindingsReportStatusResponse$errorMessage": "<p>The error message of the report.</p>" } }, + "Evidence": { + "base": "<p>Details of the evidence for a vulnerability identified in a finding.</p>", + "refs": { + "EvidenceList$member": null + } + }, + "EvidenceDetail": { + "base": null, + "refs": { + "Evidence$evidenceDetail": "<p>The evidence details.</p>" + } + }, + "EvidenceList": { + "base": null, + "refs": { + "FindingDetail$evidences": "<p>Information on the evidence of the vulnerability.</p>" + } + }, + "EvidenceRule": { + "base": null, + "refs": { + "Evidence$evidenceRule": "<p>The evidence rule.</p>" + } + }, + "EvidenceSeverity": { + "base": null, + "refs": { + "Evidence$severity": "<p>The evidence severity.</p>" + } + }, "ExecutionRoleArn": { "base": null, "refs": { @@ -1038,6 +1082,7 @@ "ExploitObserved": { "base": "<p>Contains information on when this exploit was observed.</p>", "refs": { + "FindingDetail$exploitObserved": null, "Vulnerability$exploitObserved": "<p>An object that contains details on when the exploit was observed.</p>" } }, @@ -1173,7 +1218,16 @@ "BatchGetCodeSnippetRequestFindingArnsList$member": null, "CodeSnippetError$findingArn": "<p>The ARN of the finding that a code snippet couldn't be retrieved for.</p>", "CodeSnippetResult$findingArn": "<p>The ARN of a finding that the code snippet is associated with.</p>", - "Finding$findingArn": "<p>The Amazon Resource Number (ARN) of the finding.</p>" + "Finding$findingArn": "<p>The Amazon Resource Number (ARN) of the finding.</p>", + "FindingArnList$member": null, + "FindingDetail$findingArn": "<p>The finding ARN that the vulnerability details are associated with.</p>", + "FindingDetailsError$findingArn": "<p>The finding ARN that returned an error.</p>" + } + }, + "FindingArnList": { + "base": null, + "refs": { + "BatchGetFindingDetailsRequest$findingArns": "<p>A list of finding ARNs.</p>" } }, "FindingDescription": { @@ -1182,6 +1236,36 @@ "Finding$description": "<p>The description of the finding.</p>" } }, + "FindingDetail": { + "base": "<p>Details of the vulnerability identified in a finding.</p>", + "refs": { + "FindingDetails$member": null + } + }, + "FindingDetails": { + "base": null, + "refs": { + "BatchGetFindingDetailsResponse$findingDetails": "<p>A finding's vulnerability details.</p>" + } + }, + "FindingDetailsError": { + "base": "<p>Details about an error encountered when trying to return vulnerability data for a finding.</p>", + "refs": { + "FindingDetailsErrorList$member": null + } + }, + "FindingDetailsErrorCode": { + "base": null, + "refs": { + "FindingDetailsError$errorCode": "<p>The error code.</p>" + } + }, + "FindingDetailsErrorList": { + "base": null, + "refs": { + "BatchGetFindingDetailsResponse$errors": "<p>Error information for findings that details could not be returned for.</p>" + } + }, "FindingList": { "base": null, "refs": { @@ -1866,6 +1950,7 @@ "Ec2InstanceAggregationResponse$instanceId": "<p>The Amazon EC2 instance ID.</p>", "FailedAccount$errorMessage": "<p>The error message received when the account failed to enable Amazon Inspector.</p>", "FailedMemberAccountEc2DeepInspectionStatusState$errorMessage": "<p>The error message explaining why the account failed to activate Amazon Inspector deep inspection.</p>", + "FindingDetailsError$errorMessage": "<p>The error message.</p>", "GetEc2DeepInspectionConfigurationResponse$errorMessage": "<p>An error message explaining why Amazon Inspector deep inspection configurations could not be retrieved for your account.</p>", "GetSbomExportResponse$errorMessage": "<p>An error message.</p>", "ImageLayerAggregationResponse$layerHash": "<p>The layer hash.</p>", @@ -2284,6 +2369,12 @@ "UpdateEncryptionKeyRequest$resourceType": "<p>The resource type for the encryption key.</p>" } }, + "RiskScore": { + "base": null, + "refs": { + "FindingDetail$riskScore": "<p>The risk score of the vulnerability.</p>" + } + }, "Runtime": { "base": null, "refs": { @@ -2470,7 +2561,7 @@ "ConflictException$resourceId": "<p>The ID of the conflicting resource.</p>", "ConflictException$resourceType": "<p>The type of the conflicting resource.</p>", "Destination$bucketName": "<p>The name of the Amazon S3 bucket to export findings to.</p>", - "Destination$keyPrefix": "<p>The prefix of the Amazon S3 bucket used to export findings.</p>", + "Destination$keyPrefix": "<p>The prefix that the findings will be written under.</p>", "Destination$kmsKeyArn": "<p>The ARN of the KMS key used to encrypt data when exporting findings.</p>", "Ec2InstanceAggregationResponse$accountId": "<p>The Amazon Web Services account for the Amazon EC2 instance.</p>", "Ec2InstanceAggregationResponse$operatingSystem": "<p>The operating system of the Amazon EC2 instance.</p>", @@ -2545,7 +2636,7 @@ "FilterCriteria$lambdaFunctionLayers": "<p>Filters the list of AWS Lambda functions by the function's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html\"> layers</a>. A Lambda function can have up to five layers.</p>", "FilterCriteria$lambdaFunctionName": "<p>Filters the list of AWS Lambda functions by the name of the function.</p>", "FilterCriteria$lambdaFunctionRuntime": "<p>Filters the list of AWS Lambda functions by the runtime environment for the Lambda function.</p>", - "FilterCriteria$networkProtocol": "<p>Details on the ingress source addresses used to filter findings.</p>", + "FilterCriteria$networkProtocol": "<p>Details on network protocol used to filter findings.</p>", "FilterCriteria$relatedVulnerabilities": "<p>Details on the related vulnerabilities used to filter findings.</p>", "FilterCriteria$resourceId": "<p>Details on the resource IDs used to filter findings.</p>", "FilterCriteria$resourceType": "<p>Details on the resource types used to filter findings.</p>", @@ -2705,6 +2796,18 @@ "TitleAggregation$sortBy": "<p>The value to sort results by.</p>" } }, + "Tool": { + "base": null, + "refs": { + "Tools$member": null + } + }, + "Tools": { + "base": null, + "refs": { + "FindingDetail$tools": "<p>The known malware tools or kits that can exploit the vulnerability.</p>" + } + }, "Ttp": { "base": null, "refs": { @@ -2714,7 +2817,8 @@ "Ttps": { "base": null, "refs": { - "AtigData$ttps": "<p>The <a href=\"https://attack.mitre.org/\">MITRE ATT&CK</a> tactics, techniques, and procedures (TTPs) associated with vulnerability.</p>" + "AtigData$ttps": "<p>The <a href=\"https://attack.mitre.org/\">MITRE ATT&CK</a> tactics, techniques, and procedures (TTPs) associated with vulnerability.</p>", + "FindingDetail$ttps": "<p>The MITRE adversary tactics, techniques, or procedures (TTPs) associated with the vulnerability.</p>" } }, "UntagResourceRequest": { @@ -2940,6 +3044,7 @@ "VulnerabilityReferenceUrls": { "base": null, "refs": { + "FindingDetail$referenceUrls": "<p>The reference URLs for the vulnerability data.</p>", "Vulnerability$referenceUrls": "<p>Links to various resources with more information on this vulnerability. </p>" } }, diff --git a/models/apis/inspector2/2020-06-08/endpoint-rule-set-1.json b/models/apis/inspector2/2020-06-08/endpoint-rule-set-1.json index 303effe98ea..a8d6cdbbc6f 100644 --- a/models/apis/inspector2/2020-06-08/endpoint-rule-set-1.json +++ b/models/apis/inspector2/2020-06-08/endpoint-rule-set-1.json @@ -58,52 +58,56 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, { - "conditions": [], + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "type": "tree", "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], "type": "tree", @@ -111,13 +115,22 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], "type": "tree", @@ -127,224 +140,175 @@ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://inspector2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, + } + ], + "type": "tree", + "rules": [ { "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "endpoint": { + "url": "https://inspector2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ { - "conditions": [], - "endpoint": { - "url": "https://inspector2-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsFIPS" ] } ] - }, + } + ], + "type": "tree", + "rules": [ { "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" + "endpoint": { + "url": "https://inspector2-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://inspector2.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } - ] - }, - { - "conditions": [], + ], "type": "tree", "rules": [ { "conditions": [], "endpoint": { - "url": "https://inspector2.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://inspector2.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://inspector2.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" } ] + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/lookoutequipment/2020-12-15/api-2.json b/models/apis/lookoutequipment/2020-12-15/api-2.json index 8da52db2f07..690a9cd6c1c 100644 --- a/models/apis/lookoutequipment/2020-12-15/api-2.json +++ b/models/apis/lookoutequipment/2020-12-15/api-2.json @@ -181,6 +181,22 @@ {"shape":"ValidationException"} ] }, + "DeleteResourcePolicy":{ + "name":"DeleteResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteResourcePolicyRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ] + }, "DescribeDataIngestionJob":{ "name":"DescribeDataIngestionJob", "http":{ @@ -277,6 +293,74 @@ {"shape":"InternalServerException"} ] }, + "DescribeModelVersion":{ + "name":"DescribeModelVersion", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeModelVersionRequest"}, + "output":{"shape":"DescribeModelVersionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ] + }, + "DescribeResourcePolicy":{ + "name":"DescribeResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeResourcePolicyRequest"}, + "output":{"shape":"DescribeResourcePolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ] + }, + "ImportDataset":{ + "name":"ImportDataset", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportDatasetRequest"}, + "output":{"shape":"ImportDatasetResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ] + }, + "ImportModelVersion":{ + "name":"ImportModelVersion", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportModelVersionRequest"}, + "output":{"shape":"ImportModelVersionResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ] + }, "ListDataIngestionJobs":{ "name":"ListDataIngestionJobs", "http":{ @@ -384,6 +468,22 @@ {"shape":"InternalServerException"} ] }, + "ListModelVersions":{ + "name":"ListModelVersions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListModelVersionsRequest"}, + "output":{"shape":"ListModelVersionsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ] + }, "ListModels":{ "name":"ListModels", "http":{ @@ -431,6 +531,24 @@ {"shape":"InternalServerException"} ] }, + "PutResourcePolicy":{ + "name":"PutResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutResourcePolicyRequest"}, + "output":{"shape":"PutResourcePolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ] + }, "StartDataIngestionJob":{ "name":"StartDataIngestionJob", "http":{ @@ -516,6 +634,23 @@ {"shape":"InternalServerException"} ] }, + "UpdateActiveModelVersion":{ + "name":"UpdateActiveModelVersion", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateActiveModelVersionRequest"}, + "output":{"shape":"UpdateActiveModelVersionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ] + }, "UpdateInferenceScheduler":{ "name":"UpdateInferenceScheduler", "http":{ @@ -849,7 +984,8 @@ "enum":[ "CREATED", "INGESTION_IN_PROGRESS", - "ACTIVE" + "ACTIVE", + "IMPORT_IN_PROGRESS" ] }, "DatasetSummaries":{ @@ -904,6 +1040,13 @@ "ModelName":{"shape":"ModelName"} } }, + "DeleteResourcePolicyRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"ResourceArn"} + } + }, "DescribeDataIngestionJobRequest":{ "type":"structure", "required":["JobId"], @@ -926,7 +1069,8 @@ "StatusDetail":{"shape":"BoundedLengthString"}, "IngestedDataSize":{"shape":"DataSizeInBytes"}, "DataStartTime":{"shape":"Timestamp"}, - "DataEndTime":{"shape":"Timestamp"} + "DataEndTime":{"shape":"Timestamp"}, + "SourceDatasetArn":{"shape":"DatasetArn"} } }, "DescribeDatasetRequest":{ @@ -954,7 +1098,8 @@ "IngestedFilesSummary":{"shape":"IngestedFilesSummary"}, "RoleArn":{"shape":"IamRoleArn"}, "DataStartTime":{"shape":"Timestamp"}, - "DataEndTime":{"shape":"Timestamp"} + "DataEndTime":{"shape":"Timestamp"}, + "SourceDatasetArn":{"shape":"DatasetArn"} } }, "DescribeInferenceSchedulerRequest":{ @@ -1062,7 +1207,76 @@ "LastUpdatedTime":{"shape":"Timestamp"}, "CreatedAt":{"shape":"Timestamp"}, "ServerSideKmsKeyId":{"shape":"KmsKeyArn"}, - "OffCondition":{"shape":"OffCondition"} + "OffCondition":{"shape":"OffCondition"}, + "SourceModelVersionArn":{"shape":"ModelVersionArn"}, + "ImportJobStartTime":{"shape":"Timestamp"}, + "ImportJobEndTime":{"shape":"Timestamp"}, + "ActiveModelVersion":{"shape":"ModelVersion"}, + "ActiveModelVersionArn":{"shape":"ModelVersionArn"}, + "ModelVersionActivatedAt":{"shape":"Timestamp"}, + "PreviousActiveModelVersion":{"shape":"ModelVersion"}, + "PreviousActiveModelVersionArn":{"shape":"ModelVersionArn"}, + "PreviousModelVersionActivatedAt":{"shape":"Timestamp"} + } + }, + "DescribeModelVersionRequest":{ + "type":"structure", + "required":[ + "ModelName", + "ModelVersion" + ], + "members":{ + "ModelName":{"shape":"ModelName"}, + "ModelVersion":{"shape":"ModelVersion"} + } + }, + "DescribeModelVersionResponse":{ + "type":"structure", + "members":{ + "ModelName":{"shape":"ModelName"}, + "ModelArn":{"shape":"ModelArn"}, + "ModelVersion":{"shape":"ModelVersion"}, + "ModelVersionArn":{"shape":"ModelVersionArn"}, + "Status":{"shape":"ModelVersionStatus"}, + "SourceType":{"shape":"ModelVersionSourceType"}, + "DatasetName":{"shape":"DatasetName"}, + "DatasetArn":{"shape":"DatasetArn"}, + "Schema":{"shape":"InlineDataSchema"}, + "LabelsInputConfiguration":{"shape":"LabelsInputConfiguration"}, + "TrainingDataStartTime":{"shape":"Timestamp"}, + "TrainingDataEndTime":{"shape":"Timestamp"}, + "EvaluationDataStartTime":{"shape":"Timestamp"}, + "EvaluationDataEndTime":{"shape":"Timestamp"}, + "RoleArn":{"shape":"IamRoleArn"}, + "DataPreProcessingConfiguration":{"shape":"DataPreProcessingConfiguration"}, + "TrainingExecutionStartTime":{"shape":"Timestamp"}, + "TrainingExecutionEndTime":{"shape":"Timestamp"}, + "FailedReason":{"shape":"BoundedLengthString"}, + "ModelMetrics":{"shape":"ModelMetrics"}, + "LastUpdatedTime":{"shape":"Timestamp"}, + "CreatedAt":{"shape":"Timestamp"}, + "ServerSideKmsKeyId":{"shape":"KmsKeyArn"}, + "OffCondition":{"shape":"OffCondition"}, + "SourceModelVersionArn":{"shape":"ModelVersionArn"}, + "ImportJobStartTime":{"shape":"Timestamp"}, + "ImportJobEndTime":{"shape":"Timestamp"}, + "ImportedDataSizeInBytes":{"shape":"DataSizeInBytes"} + } + }, + "DescribeResourcePolicyRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"ResourceArn"} + } + }, + "DescribeResourcePolicyResponse":{ + "type":"structure", + "members":{ + "PolicyRevisionId":{"shape":"PolicyRevisionId"}, + "ResourcePolicy":{"shape":"Policy"}, + "CreationTime":{"shape":"Timestamp"}, + "LastModifiedTime":{"shape":"Timestamp"} } }, "DuplicateTimestamps":{ @@ -1111,6 +1325,63 @@ "min":1, "pattern":"\\p{ASCII}{1,256}" }, + "ImportDatasetRequest":{ + "type":"structure", + "required":[ + "SourceDatasetArn", + "ClientToken" + ], + "members":{ + "SourceDatasetArn":{"shape":"DatasetArn"}, + "DatasetName":{"shape":"DatasetName"}, + "ClientToken":{ + "shape":"IdempotenceToken", + "idempotencyToken":true + }, + "ServerSideKmsKeyId":{"shape":"NameOrArn"}, + "Tags":{"shape":"TagList"} + } + }, + "ImportDatasetResponse":{ + "type":"structure", + "members":{ + "DatasetName":{"shape":"DatasetName"}, + "DatasetArn":{"shape":"DatasetArn"}, + "Status":{"shape":"DatasetStatus"}, + "JobId":{"shape":"IngestionJobId"} + } + }, + "ImportModelVersionRequest":{ + "type":"structure", + "required":[ + "SourceModelVersionArn", + "DatasetName", + "ClientToken" + ], + "members":{ + "SourceModelVersionArn":{"shape":"ModelVersionArn"}, + "ModelName":{"shape":"ModelName"}, + "DatasetName":{"shape":"DatasetIdentifier"}, + "LabelsInputConfiguration":{"shape":"LabelsInputConfiguration"}, + "ClientToken":{ + "shape":"IdempotenceToken", + "idempotencyToken":true + }, + "RoleArn":{"shape":"IamRoleArn"}, + "ServerSideKmsKeyId":{"shape":"NameOrArn"}, + "Tags":{"shape":"TagList"} + } + }, + "ImportModelVersionResponse":{ + "type":"structure", + "members":{ + "ModelName":{"shape":"ModelName"}, + "ModelArn":{"shape":"ModelArn"}, + "ModelVersionArn":{"shape":"ModelVersionArn"}, + "ModelVersion":{"shape":"ModelVersion"}, + "Status":{"shape":"ModelVersionStatus"} + } + }, "InferenceEventSummaries":{ "type":"list", "member":{"shape":"InferenceEventSummary"} @@ -1267,7 +1538,8 @@ "enum":[ "IN_PROGRESS", "SUCCESS", - "FAILED" + "FAILED", + "IMPORT_IN_PROGRESS" ] }, "IngestionS3InputConfiguration":{ @@ -1538,6 +1810,28 @@ "LabelSummaries":{"shape":"LabelSummaries"} } }, + "ListModelVersionsRequest":{ + "type":"structure", + "required":["ModelName"], + "members":{ + "ModelName":{"shape":"ModelName"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"}, + "Status":{"shape":"ModelVersionStatus"}, + "SourceType":{"shape":"ModelVersionSourceType"}, + "CreatedAtEndTime":{"shape":"Timestamp"}, + "CreatedAtStartTime":{"shape":"Timestamp"}, + "MaxModelVersion":{"shape":"ModelVersion"}, + "MinModelVersion":{"shape":"ModelVersion"} + } + }, + "ListModelVersionsResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "ModelVersionSummaries":{"shape":"ModelVersionSummaries"} + } + }, "ListModelsRequest":{ "type":"structure", "members":{ @@ -1635,7 +1929,8 @@ "enum":[ "IN_PROGRESS", "SUCCESS", - "FAILED" + "FAILED", + "IMPORT_IN_PROGRESS" ] }, "ModelSummaries":{ @@ -1650,7 +1945,53 @@ "DatasetName":{"shape":"DatasetName"}, "DatasetArn":{"shape":"DatasetArn"}, "Status":{"shape":"ModelStatus"}, - "CreatedAt":{"shape":"Timestamp"} + "CreatedAt":{"shape":"Timestamp"}, + "ActiveModelVersion":{"shape":"ModelVersion"}, + "ActiveModelVersionArn":{"shape":"ModelVersionArn"} + } + }, + "ModelVersion":{ + "type":"long", + "min":1 + }, + "ModelVersionArn":{ + "type":"string", + "max":2048, + "min":20, + "pattern":"^arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\\-]*:[0-9]{12}:model\\/.+\\/.+\\/model-version\\/[0-9]{1,}$" + }, + "ModelVersionSourceType":{ + "type":"string", + "enum":[ + "TRAINING", + "RETRAINING", + "IMPORT" + ] + }, + "ModelVersionStatus":{ + "type":"string", + "enum":[ + "IN_PROGRESS", + "SUCCESS", + "FAILED", + "IMPORT_IN_PROGRESS", + "CANCELED" + ] + }, + "ModelVersionSummaries":{ + "type":"list", + "member":{"shape":"ModelVersionSummary"} + }, + "ModelVersionSummary":{ + "type":"structure", + "members":{ + "ModelName":{"shape":"ModelName"}, + "ModelArn":{"shape":"ModelArn"}, + "ModelVersion":{"shape":"ModelVersion"}, + "ModelVersionArn":{"shape":"ModelVersionArn"}, + "CreatedAt":{"shape":"Timestamp"}, + "Status":{"shape":"ModelVersionStatus"}, + "SourceType":{"shape":"ModelVersionSourceType"} } }, "MonotonicValues":{ @@ -1692,6 +2033,47 @@ "max":2048, "min":1 }, + "Policy":{ + "type":"string", + "max":20000, + "min":1, + "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" + }, + "PolicyRevisionId":{ + "type":"string", + "max":50, + "pattern":"[0-9A-Fa-f]+" + }, + "PutResourcePolicyRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "ResourcePolicy", + "ClientToken" + ], + "members":{ + "ResourceArn":{"shape":"ResourceArn"}, + "ResourcePolicy":{"shape":"Policy"}, + "PolicyRevisionId":{"shape":"PolicyRevisionId"}, + "ClientToken":{ + "shape":"IdempotenceToken", + "idempotencyToken":true + } + } + }, + "PutResourcePolicyResponse":{ + "type":"structure", + "members":{ + "ResourceArn":{"shape":"ResourceArn"}, + "PolicyRevisionId":{"shape":"PolicyRevisionId"} + } + }, + "ResourceArn":{ + "type":"string", + "max":2048, + "min":20, + "pattern":"arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\\-]*:[0-9]{12}:.+" + }, "ResourceNotFoundException":{ "type":"structure", "required":["Message"], @@ -1941,6 +2323,28 @@ "members":{ } }, + "UpdateActiveModelVersionRequest":{ + "type":"structure", + "required":[ + "ModelName", + "ModelVersion" + ], + "members":{ + "ModelName":{"shape":"ModelName"}, + "ModelVersion":{"shape":"ModelVersion"} + } + }, + "UpdateActiveModelVersionResponse":{ + "type":"structure", + "members":{ + "ModelName":{"shape":"ModelName"}, + "ModelArn":{"shape":"ModelArn"}, + "CurrentActiveVersion":{"shape":"ModelVersion"}, + "PreviousActiveVersion":{"shape":"ModelVersion"}, + "CurrentActiveVersionArn":{"shape":"ModelVersionArn"}, + "PreviousActiveVersionArn":{"shape":"ModelVersionArn"} + } + }, "UpdateInferenceSchedulerRequest":{ "type":"structure", "required":["InferenceSchedulerName"], diff --git a/models/apis/lookoutequipment/2020-12-15/docs-2.json b/models/apis/lookoutequipment/2020-12-15/docs-2.json index 9fe9fbcfa52..2bc3e99f905 100644 --- a/models/apis/lookoutequipment/2020-12-15/docs-2.json +++ b/models/apis/lookoutequipment/2020-12-15/docs-2.json @@ -2,7 +2,7 @@ "version": "2.0", "service": "<p>Amazon Lookout for Equipment is a machine learning service that uses advanced analytics to identify anomalies in machines from sensor data for use in predictive maintenance. </p>", "operations": { - "CreateDataset": "<p>Creates a container for a collection of data being ingested for analysis. The dataset contains the metadata describing where the data is and what the data actually looks like. In other words, it contains the location of the data source, the data schema, and other information. A dataset also contains any tags associated with the ingested data. </p>", + "CreateDataset": "<p>Creates a container for a collection of data being ingested for analysis. The dataset contains the metadata describing where the data is and what the data actually looks like. For example, it contains the location of the data source, the data schema, and other information. A dataset also contains any tags associated with the ingested data. </p>", "CreateInferenceScheduler": "<p> Creates a scheduled inference. Scheduling an inference is setting up a continuous real-time inference plan to analyze new measurement data. When setting up the schedule, you provide an S3 bucket location for the input data, assign it a delimiter between separate entries in the data, set an offset delay if desired, and set the frequency of inferencing. You must also provide an S3 bucket location for the output data. </p>", "CreateLabel": "<p> Creates a label for an event. </p>", "CreateLabelGroup": "<p> Creates a group of labels. </p>", @@ -12,12 +12,17 @@ "DeleteLabel": "<p> Deletes a label. </p>", "DeleteLabelGroup": "<p> Deletes a group of labels. </p>", "DeleteModel": "<p>Deletes an ML model currently available for Amazon Lookout for Equipment. This will prevent it from being used with an inference scheduler, even one that is already set up. </p>", + "DeleteResourcePolicy": "<p>Deletes the resource policy attached to the resource.</p>", "DescribeDataIngestionJob": "<p>Provides information on a specific data ingestion job such as creation time, dataset ARN, and status.</p>", "DescribeDataset": "<p>Provides a JSON description of the data in each time series dataset, including names, column names, and data types.</p>", "DescribeInferenceScheduler": "<p> Specifies information about the inference scheduler being used, including name, model, status, and associated metadata </p>", "DescribeLabel": "<p> Returns the name of the label. </p>", "DescribeLabelGroup": "<p> Returns information about the label group. </p>", "DescribeModel": "<p>Provides a JSON containing the overall information about a specific ML model, including model name and ARN, dataset, training and evaluation information, status, and so on. </p>", + "DescribeModelVersion": "<p>Retrieves information about a specific machine learning model version.</p>", + "DescribeResourcePolicy": "<p>Provides the details of a resource policy attached to a resource.</p>", + "ImportDataset": "<p>Imports a dataset.</p>", + "ImportModelVersion": "<p>Imports a model that has been trained successfully.</p>", "ListDataIngestionJobs": "<p>Provides a list of all data ingestion jobs, including dataset name and ARN, S3 location of the input data, status, and so on. </p>", "ListDatasets": "<p>Lists all datasets currently available in your account, filtering on the dataset name. </p>", "ListInferenceEvents": "<p> Lists all inference events that have been found for the specified inference scheduler. </p>", @@ -25,14 +30,17 @@ "ListInferenceSchedulers": "<p>Retrieves a list of all inference schedulers currently available for your account. </p>", "ListLabelGroups": "<p> Returns a list of the label groups. </p>", "ListLabels": "<p> Provides a list of labels. </p>", + "ListModelVersions": "<p>Generates a list of all model versions for a given model, including the model version, model version ARN, and status. To list a subset of versions, use the <code>MaxModelVersion</code> and <code>MinModelVersion</code> fields.</p>", "ListModels": "<p>Generates a list of all models in the account, including model name and ARN, dataset, and status. </p>", "ListSensorStatistics": "<p> Lists statistics about the data collected for each of the sensors that have been successfully ingested in the particular dataset. Can also be used to retreive Sensor Statistics for a previous ingestion job. </p>", "ListTagsForResource": "<p>Lists all the tags for a specified resource, including key and value. </p>", + "PutResourcePolicy": "<p>Creates a resource control policy for a given resource.</p>", "StartDataIngestionJob": "<p>Starts a data ingestion job. Amazon Lookout for Equipment returns the job status. </p>", "StartInferenceScheduler": "<p>Starts an inference scheduler. </p>", "StopInferenceScheduler": "<p>Stops an inference scheduler. </p>", "TagResource": "<p>Associates a given tag to a resource in your account. A tag is a key-value pair which can be added to an Amazon Lookout for Equipment resource as metadata. Tags can be used for organizing your resources as well as helping you to search and filter by tag. Multiple tags can be added to a resource, either when you create it, or later. Up to 50 tags can be associated with each resource. </p>", "UntagResource": "<p>Removes a specific tag from a given resource. The tag is specified by its key. </p>", + "UpdateActiveModelVersion": "<p>Sets the active model version for a given machine learning model.</p>", "UpdateInferenceScheduler": "<p>Updates an inference scheduler. </p>", "UpdateLabelGroup": "<p> Updates the label group. </p>" }, @@ -64,6 +72,7 @@ "DescribeDataIngestionJobResponse$FailedReason": "<p>Specifies the reason for failure when a data ingestion job has failed. </p>", "DescribeDataIngestionJobResponse$StatusDetail": "<p> Provides details about status of the ingestion job that is currently in progress. </p>", "DescribeModelResponse$FailedReason": "<p>If the training of the ML model failed, this indicates the reason for that failure. </p>", + "DescribeModelVersionResponse$FailedReason": "<p>The failure message if the training of the model version failed.</p>", "InferenceExecutionSummary$FailedReason": "<p> Specifies the reason for failure when an inference execution has failed. </p>", "InternalServerException$Message": null, "ResourceNotFoundException$Message": null, @@ -186,7 +195,8 @@ "base": "<p>The configuration is the <code>TargetSamplingRate</code>, which is the sampling rate of the data after post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the <code>TargetSamplingRate</code> is 1 minute.</p> <p>When providing a value for the <code>TargetSamplingRate</code>, you must attach the prefix \"PT\" to the rate you want. The value for a 1 second rate is therefore <i>PT1S</i>, the value for a 15 minute rate is <i>PT15M</i>, and the value for a 1 hour rate is <i>PT1H</i> </p>", "refs": { "CreateModelRequest$DataPreProcessingConfiguration": "<p>The configuration is the <code>TargetSamplingRate</code>, which is the sampling rate of the data after post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the <code>TargetSamplingRate</code> is 1 minute.</p> <p>When providing a value for the <code>TargetSamplingRate</code>, you must attach the prefix \"PT\" to the rate you want. The value for a 1 second rate is therefore <i>PT1S</i>, the value for a 15 minute rate is <i>PT15M</i>, and the value for a 1 hour rate is <i>PT1H</i> </p>", - "DescribeModelResponse$DataPreProcessingConfiguration": "<p>The configuration is the <code>TargetSamplingRate</code>, which is the sampling rate of the data after post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the <code>TargetSamplingRate</code> is 1 minute.</p> <p>When providing a value for the <code>TargetSamplingRate</code>, you must attach the prefix \"PT\" to the rate you want. The value for a 1 second rate is therefore <i>PT1S</i>, the value for a 15 minute rate is <i>PT15M</i>, and the value for a 1 hour rate is <i>PT1H</i> </p>" + "DescribeModelResponse$DataPreProcessingConfiguration": "<p>The configuration is the <code>TargetSamplingRate</code>, which is the sampling rate of the data after post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the <code>TargetSamplingRate</code> is 1 minute.</p> <p>When providing a value for the <code>TargetSamplingRate</code>, you must attach the prefix \"PT\" to the rate you want. The value for a 1 second rate is therefore <i>PT1S</i>, the value for a 15 minute rate is <i>PT15M</i>, and the value for a 1 hour rate is <i>PT1H</i> </p>", + "DescribeModelVersionResponse$DataPreProcessingConfiguration": null } }, "DataQualitySummary": { @@ -199,7 +209,8 @@ "DataSizeInBytes": { "base": null, "refs": { - "DescribeDataIngestionJobResponse$IngestedDataSize": "<p> Indicates the size of the ingested dataset. </p>" + "DescribeDataIngestionJobResponse$IngestedDataSize": "<p> Indicates the size of the ingested dataset. </p>", + "DescribeModelVersionResponse$ImportedDataSizeInBytes": "<p>The size in bytes of the imported data. This field appears if the model version was imported.</p>" } }, "DataUploadFrequency": { @@ -218,8 +229,13 @@ "DataIngestionJobSummary$DatasetArn": "<p>The Amazon Resource Name (ARN) of the dataset used in the data ingestion job. </p>", "DatasetSummary$DatasetArn": "<p>The Amazon Resource Name (ARN) of the specified dataset. </p>", "DescribeDataIngestionJobResponse$DatasetArn": "<p>The Amazon Resource Name (ARN) of the dataset being used in the data ingestion job. </p>", + "DescribeDataIngestionJobResponse$SourceDatasetArn": "<p>The Amazon Resource Name (ARN) of the source dataset from which the data used for the data ingestion job was imported from.</p>", "DescribeDatasetResponse$DatasetArn": "<p>The Amazon Resource Name (ARN) of the dataset being described. </p>", + "DescribeDatasetResponse$SourceDatasetArn": "<p>The Amazon Resource Name (ARN) of the source dataset from which the current data being described was imported from.</p>", "DescribeModelResponse$DatasetArn": "<p>The Amazon Resouce Name (ARN) of the dataset used to create the ML model being described. </p>", + "DescribeModelVersionResponse$DatasetArn": "<p>The Amazon Resource Name (ARN) of the dataset used to train the model version.</p>", + "ImportDatasetRequest$SourceDatasetArn": "<p>The Amazon Resource Name (ARN) of the dataset to import.</p>", + "ImportDatasetResponse$DatasetArn": "<p>The Amazon Resource Name (ARN) of the dataset that was imported.</p>", "ModelSummary$DatasetArn": "<p> The Amazon Resource Name (ARN) of the dataset used to create the model. </p>" } }, @@ -229,6 +245,7 @@ "CreateModelRequest$DatasetName": "<p>The name of the dataset for the ML model being created. </p>", "DeleteDatasetRequest$DatasetName": "<p>The name of the dataset to be deleted. </p>", "DescribeDatasetRequest$DatasetName": "<p>The name of the dataset to be described. </p>", + "ImportModelVersionRequest$DatasetName": "<p>The name of the dataset for the machine learning model being imported. </p>", "StartDataIngestionJobRequest$DatasetName": "<p>The name of the dataset being used by the data ingestion job. </p>" } }, @@ -241,6 +258,9 @@ "DatasetSummary$DatasetName": "<p>The name of the dataset. </p>", "DescribeDatasetResponse$DatasetName": "<p>The name of the dataset being described. </p>", "DescribeModelResponse$DatasetName": "<p>The name of the dataset being used by the ML being described. </p>", + "DescribeModelVersionResponse$DatasetName": "<p>The name of the dataset used to train the model version.</p>", + "ImportDatasetRequest$DatasetName": "<p>The name of the machine learning dataset to be created. If the dataset already exists, Amazon Lookout for Equipment overwrites the existing dataset. If you don't specify this field, it is filled with the name of the source dataset.</p>", + "ImportDatasetResponse$DatasetName": "<p>The name of the created machine learning dataset.</p>", "ListDataIngestionJobsRequest$DatasetName": "<p>The name of the dataset being used for the data ingestion job. </p>", "ListDatasetsRequest$DatasetNameBeginsWith": "<p>The beginning of the name of the datasets to be listed. </p>", "ListModelsRequest$DatasetNameBeginsWith": "<p>The beginning of the name of the dataset of the ML models to be listed. </p>", @@ -260,7 +280,8 @@ "refs": { "CreateDatasetResponse$Status": "<p>Indicates the status of the <code>CreateDataset</code> operation. </p>", "DatasetSummary$Status": "<p>Indicates the status of the dataset. </p>", - "DescribeDatasetResponse$Status": "<p>Indicates the status of the dataset. </p>" + "DescribeDatasetResponse$Status": "<p>Indicates the status of the dataset. </p>", + "ImportDatasetResponse$Status": "<p>The status of the <code>ImportDataset</code> operation.</p>" } }, "DatasetSummaries": { @@ -300,6 +321,11 @@ "refs": { } }, + "DeleteResourcePolicyRequest": { + "base": null, + "refs": { + } + }, "DescribeDataIngestionJobRequest": { "base": null, "refs": { @@ -360,6 +386,26 @@ "refs": { } }, + "DescribeModelVersionRequest": { + "base": null, + "refs": { + } + }, + "DescribeModelVersionResponse": { + "base": null, + "refs": { + } + }, + "DescribeResourcePolicyRequest": { + "base": null, + "refs": { + } + }, + "DescribeResourcePolicyResponse": { + "base": null, + "refs": { + } + }, "DuplicateTimestamps": { "base": "<p> Entity that comprises information abount duplicate timestamps in the dataset. </p>", "refs": { @@ -420,6 +466,8 @@ "DescribeDatasetResponse$RoleArn": "<p> The Amazon Resource Name (ARN) of the IAM role that you are using for this the data ingestion job. </p>", "DescribeInferenceSchedulerResponse$RoleArn": "<p> The Amazon Resource Name (ARN) of a role with permission to access the data source for the inference scheduler being described. </p>", "DescribeModelResponse$RoleArn": "<p> The Amazon Resource Name (ARN) of a role with permission to access the data source for the ML model being described. </p>", + "DescribeModelVersionResponse$RoleArn": "<p>The Amazon Resource Name (ARN) of the role that was used to train the model version.</p>", + "ImportModelVersionRequest$RoleArn": "<p>The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create the machine learning model. </p>", "StartDataIngestionJobRequest$RoleArn": "<p> The Amazon Resource Name (ARN) of a role with permission to access the data source for the data ingestion job. </p>", "UpdateInferenceSchedulerRequest$RoleArn": "<p> The Amazon Resource Name (ARN) of a role with permission to access the data source for the inference scheduler. </p>" } @@ -432,9 +480,32 @@ "CreateLabelGroupRequest$ClientToken": "<p> A unique identifier for the request to create a label group. If you do not set the client request token, Lookout for Equipment generates one. </p>", "CreateLabelRequest$ClientToken": "<p> A unique identifier for the request to create a label. If you do not set the client request token, Lookout for Equipment generates one. </p>", "CreateModelRequest$ClientToken": "<p>A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one. </p>", + "ImportDatasetRequest$ClientToken": "<p>A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one. </p>", + "ImportModelVersionRequest$ClientToken": "<p>A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one. </p>", + "PutResourcePolicyRequest$ClientToken": "<p>A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one. </p>", "StartDataIngestionJobRequest$ClientToken": "<p> A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one. </p>" } }, + "ImportDatasetRequest": { + "base": null, + "refs": { + } + }, + "ImportDatasetResponse": { + "base": null, + "refs": { + } + }, + "ImportModelVersionRequest": { + "base": null, + "refs": { + } + }, + "ImportModelVersionResponse": { + "base": null, + "refs": { + } + }, "InferenceEventSummaries": { "base": null, "refs": { @@ -546,7 +617,7 @@ "CreateInferenceSchedulerResponse$Status": "<p>Indicates the status of the <code>CreateInferenceScheduler</code> operation. </p>", "DescribeInferenceSchedulerResponse$Status": "<p>Indicates the status of the inference scheduler. </p>", "InferenceSchedulerSummary$Status": "<p>Indicates the status of the inference scheduler. </p>", - "ListInferenceSchedulersRequest$Status": "<p>Specifies the current status of the inference schedulers to list.</p>", + "ListInferenceSchedulersRequest$Status": "<p>Specifies the current status of the inference schedulers.</p>", "StartInferenceSchedulerResponse$Status": "<p>Indicates the status of the inference scheduler. </p>", "StopInferenceSchedulerResponse$Status": "<p>Indicates the status of the inference scheduler. </p>" } @@ -585,6 +656,7 @@ "DataIngestionJobSummary$JobId": "<p>Indicates the job ID of the data ingestion job. </p>", "DescribeDataIngestionJobRequest$JobId": "<p>The job ID of the data ingestion job. </p>", "DescribeDataIngestionJobResponse$JobId": "<p>Indicates the job ID of the data ingestion job. </p>", + "ImportDatasetResponse$JobId": "<p>A unique identifier for the job of importing the dataset.</p>", "ListSensorStatisticsRequest$IngestionJobId": "<p> The ingestion job id associated with the list of Sensor Statistics. To get sensor statistics for a particular ingestion job id, both dataset name and ingestion job id must be submitted as inputs. </p>", "StartDataIngestionJobResponse$JobId": "<p>Indicates the job ID of the data ingestion job. </p>" } @@ -609,7 +681,8 @@ "refs": { "DatasetSchema$InlineDataSchema": "<p> </p>", "DescribeDatasetResponse$Schema": "<p>A JSON description of the data that is in each time series dataset, including names, column names, and data types. </p>", - "DescribeModelResponse$Schema": "<p>A JSON description of the data that is in each time series dataset, including names, column names, and data types. </p>" + "DescribeModelResponse$Schema": "<p>A JSON description of the data that is in each time series dataset, including names, column names, and data types. </p>", + "DescribeModelVersionResponse$Schema": "<p>The schema of the data used to train the model version.</p>" } }, "InsufficientSensorData": { @@ -651,7 +724,7 @@ "KeyPattern": { "base": null, "refs": { - "IngestionS3InputConfiguration$KeyPattern": "<p> Pattern for matching the Amazon S3 files which will be used for ingestion. If no KeyPattern is provided, we will use the default hierarchy file structure, which is same as KeyPattern {prefix}/{component_name}/* </p>" + "IngestionS3InputConfiguration$KeyPattern": "<p> The pattern for matching the Amazon S3 files that will be used for ingestion. If the schema was created previously without any KeyPattern, then the default KeyPattern {prefix}/{component_name}/* is used to download files from Amazon S3 according to the schema. This field is required when ingestion is being done for the first time.</p> <p>Valid Values: {prefix}/{component_name}_* | {prefix}/{component_name}/* | {prefix}/{component_name}[DELIMITER]* (Allowed delimiters : space, dot, underscore, hyphen)</p>" } }, "KmsKeyArn": { @@ -659,17 +732,18 @@ "refs": { "DescribeDatasetResponse$ServerSideKmsKeyId": "<p>Provides the identifier of the KMS key used to encrypt dataset data by Amazon Lookout for Equipment. </p>", "DescribeInferenceSchedulerResponse$ServerSideKmsKeyId": "<p>Provides the identifier of the KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment. </p>", - "DescribeModelResponse$ServerSideKmsKeyId": "<p>Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment. </p>" + "DescribeModelResponse$ServerSideKmsKeyId": "<p>Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment. </p>", + "DescribeModelVersionResponse$ServerSideKmsKeyId": "<p>The identifier of the KMS key key used to encrypt model version data by Amazon Lookout for Equipment.</p>" } }, "LabelGroupArn": { "base": null, "refs": { - "CreateLabelGroupResponse$LabelGroupArn": "<p> The ARN of the label group that you have created. </p>", - "DescribeLabelGroupResponse$LabelGroupArn": "<p> The ARN of the label group. </p>", - "DescribeLabelResponse$LabelGroupArn": "<p> The ARN of the requested label group. </p>", - "LabelGroupSummary$LabelGroupArn": "<p> The ARN of the label group. </p>", - "LabelSummary$LabelGroupArn": "<p> The ARN of the label group. </p>" + "CreateLabelGroupResponse$LabelGroupArn": "<p> The Amazon Resource Name (ARN) of the label group that you have created. </p>", + "DescribeLabelGroupResponse$LabelGroupArn": "<p> The Amazon Resource Name (ARN) of the label group. </p>", + "DescribeLabelResponse$LabelGroupArn": "<p> The Amazon Resource Name (ARN) of the requested label group. </p>", + "LabelGroupSummary$LabelGroupArn": "<p> The Amazon Resource Name (ARN) of the label group. </p>", + "LabelSummary$LabelGroupArn": "<p> The Amazon Resource Name (ARN) of the label group. </p>" } }, "LabelGroupName": { @@ -738,7 +812,9 @@ "base": "<p>Contains the configuration information for the S3 location being used to hold label data. </p>", "refs": { "CreateModelRequest$LabelsInputConfiguration": "<p>The input configuration for the labels being used for the ML model that's being created. </p>", - "DescribeModelResponse$LabelsInputConfiguration": "<p>Specifies configuration information about the labels input, including its S3 location. </p>" + "DescribeModelResponse$LabelsInputConfiguration": "<p>Specifies configuration information about the labels input, including its S3 location. </p>", + "DescribeModelVersionResponse$LabelsInputConfiguration": null, + "ImportModelVersionRequest$LabelsInputConfiguration": null } }, "LabelsS3InputConfiguration": { @@ -830,6 +906,16 @@ "refs": { } }, + "ListModelVersionsRequest": { + "base": null, + "refs": { + } + }, + "ListModelVersionsResponse": { + "base": null, + "refs": { + } + }, "ListModelsRequest": { "base": null, "refs": { @@ -876,6 +962,7 @@ "ListInferenceSchedulersRequest$MaxResults": "<p> Specifies the maximum number of inference schedulers to list. </p>", "ListLabelGroupsRequest$MaxResults": "<p> Specifies the maximum number of label groups to list. </p>", "ListLabelsRequest$MaxResults": "<p> Specifies the maximum number of labels to list. </p>", + "ListModelVersionsRequest$MaxResults": "<p>Specifies the maximum number of machine learning model versions to list.</p>", "ListModelsRequest$MaxResults": "<p> Specifies the maximum number of ML models to list. </p>", "ListSensorStatisticsRequest$MaxResults": "<p>Specifies the maximum number of sensors for which to retrieve statistics. </p>" } @@ -898,17 +985,22 @@ "CreateModelResponse$ModelArn": "<p>The Amazon Resource Name (ARN) of the model being created. </p>", "DescribeInferenceSchedulerResponse$ModelArn": "<p>The Amazon Resource Name (ARN) of the ML model of the inference scheduler being described. </p>", "DescribeModelResponse$ModelArn": "<p>The Amazon Resource Name (ARN) of the ML model being described. </p>", + "DescribeModelVersionResponse$ModelArn": "<p>The Amazon Resource Name (ARN) of the parent machine learning model that this version belong to.</p>", + "ImportModelVersionResponse$ModelArn": "<p>The Amazon Resource Name (ARN) of the model being created. </p>", "InferenceExecutionSummary$ModelArn": "<p>The Amazon Resource Name (ARN) of the ML model used for the inference execution. </p>", "InferenceSchedulerSummary$ModelArn": "<p> The Amazon Resource Name (ARN) of the ML model used by the inference scheduler. </p>", "ModelSummary$ModelArn": "<p> The Amazon Resource Name (ARN) of the ML model. </p>", + "ModelVersionSummary$ModelArn": "<p>The Amazon Resource Name (ARN) of the model that this model version is a version of.</p>", "StartInferenceSchedulerResponse$ModelArn": "<p>The Amazon Resource Name (ARN) of the ML model being used by the inference scheduler. </p>", - "StopInferenceSchedulerResponse$ModelArn": "<p>The Amazon Resource Name (ARN) of the ML model used by the inference scheduler being stopped. </p>" + "StopInferenceSchedulerResponse$ModelArn": "<p>The Amazon Resource Name (ARN) of the ML model used by the inference scheduler being stopped. </p>", + "UpdateActiveModelVersionResponse$ModelArn": "<p>The Amazon Resource Name (ARN) of the machine learning model for which the active model version was set.</p>" } }, "ModelMetrics": { "base": null, "refs": { "DescribeModelResponse$ModelMetrics": "<p>The Model Metrics show an aggregated summary of the model's performance within the evaluation time range. This is the JSON content of the metrics created when evaluating the model. </p>", + "DescribeModelVersionResponse$ModelMetrics": "<p>Shows an aggregated summary, in JSON format, of the model's performance within the evaluation time range. These metrics are created when evaluating the model.</p>", "InferenceEventSummary$Diagnostics": "<p> An array which specifies the names and values of all sensors contributing to an inference event.</p>" } }, @@ -921,13 +1013,21 @@ "DescribeInferenceSchedulerResponse$ModelName": "<p>The name of the ML model of the inference scheduler being described. </p>", "DescribeModelRequest$ModelName": "<p>The name of the ML model to be described. </p>", "DescribeModelResponse$ModelName": "<p>The name of the ML model being described. </p>", + "DescribeModelVersionRequest$ModelName": "<p>The name of the machine learning model that this version belongs to.</p>", + "DescribeModelVersionResponse$ModelName": "<p>The name of the machine learning model that this version belongs to.</p>", + "ImportModelVersionRequest$ModelName": "<p>The name for the machine learning model to be created. If the model already exists, Amazon Lookout for Equipment creates a new version. If you do not specify this field, it is filled with the name of the source model.</p>", + "ImportModelVersionResponse$ModelName": "<p>The name for the machine learning model.</p>", "InferenceExecutionSummary$ModelName": "<p>The name of the ML model being used for the inference execution. </p>", "InferenceSchedulerSummary$ModelName": "<p>The name of the ML model used for the inference scheduler. </p>", "ListInferenceSchedulersRequest$ModelName": "<p>The name of the ML model used by the inference scheduler to be listed. </p>", + "ListModelVersionsRequest$ModelName": "<p>Then name of the machine learning model for which the model versions are to be listed.</p>", "ListModelsRequest$ModelNameBeginsWith": "<p>The beginning of the name of the ML models being listed. </p>", "ModelSummary$ModelName": "<p>The name of the ML model. </p>", + "ModelVersionSummary$ModelName": "<p>The name of the model that this model version is a version of.</p>", "StartInferenceSchedulerResponse$ModelName": "<p>The name of the ML model being used by the inference scheduler. </p>", - "StopInferenceSchedulerResponse$ModelName": "<p>The name of the ML model used by the inference scheduler being stopped. </p>" + "StopInferenceSchedulerResponse$ModelName": "<p>The name of the ML model used by the inference scheduler being stopped. </p>", + "UpdateActiveModelVersionRequest$ModelName": "<p>The name of the machine learning model for which the active model version is being set.</p>", + "UpdateActiveModelVersionResponse$ModelName": "<p>The name of the machine learning model for which the active model version was set.</p>" } }, "ModelStatus": { @@ -951,6 +1051,68 @@ "ModelSummaries$member": null } }, + "ModelVersion": { + "base": null, + "refs": { + "DescribeModelResponse$ActiveModelVersion": "<p>The name of the model version used by the inference schedular when running a scheduled inference execution.</p>", + "DescribeModelResponse$PreviousActiveModelVersion": "<p>The model version that was set as the active model version prior to the current active model version.</p>", + "DescribeModelVersionRequest$ModelVersion": "<p>The version of the machine learning model.</p>", + "DescribeModelVersionResponse$ModelVersion": "<p>The version of the machine learning model.</p>", + "ImportModelVersionResponse$ModelVersion": "<p>The version of the model being created.</p>", + "ListModelVersionsRequest$MaxModelVersion": "<p>Specifies the highest version of the model to return in the list.</p>", + "ListModelVersionsRequest$MinModelVersion": "<p>Specifies the lowest version of the model to return in the list.</p>", + "ModelSummary$ActiveModelVersion": "<p>The model version that the inference scheduler uses to run an inference execution.</p>", + "ModelVersionSummary$ModelVersion": "<p>The version of the model.</p>", + "UpdateActiveModelVersionRequest$ModelVersion": "<p>The version of the machine learning model for which the active model version is being set.</p>", + "UpdateActiveModelVersionResponse$CurrentActiveVersion": "<p>The version that is currently active of the machine learning model for which the active model version was set.</p>", + "UpdateActiveModelVersionResponse$PreviousActiveVersion": "<p>The previous version that was active of the machine learning model for which the active model version was set.</p>" + } + }, + "ModelVersionArn": { + "base": null, + "refs": { + "DescribeModelResponse$SourceModelVersionArn": "<p>The Amazon Resource Name (ARN) of the source model version. This field appears if the active model version was imported.</p>", + "DescribeModelResponse$ActiveModelVersionArn": "<p>The Amazon Resource Name (ARN) of the model version used by the inference scheduler when running a scheduled inference execution.</p>", + "DescribeModelResponse$PreviousActiveModelVersionArn": "<p>The ARN of the model version that was set as the active model version prior to the current active model version.</p>", + "DescribeModelVersionResponse$ModelVersionArn": "<p>The Amazon Resource Name (ARN) of the model version.</p>", + "DescribeModelVersionResponse$SourceModelVersionArn": "<p>If model version was imported, then this field is the arn of the source model version.</p>", + "ImportModelVersionRequest$SourceModelVersionArn": "<p>The Amazon Resource Name (ARN) of the model version to import.</p>", + "ImportModelVersionResponse$ModelVersionArn": "<p>The Amazon Resource Name (ARN) of the model version being created. </p>", + "ModelSummary$ActiveModelVersionArn": "<p>The Amazon Resource Name (ARN) of the model version that is set as active. The active model version is the model version that the inference scheduler uses to run an inference execution.</p>", + "ModelVersionSummary$ModelVersionArn": "<p>The Amazon Resource Name (ARN) of the model version.</p>", + "UpdateActiveModelVersionResponse$CurrentActiveVersionArn": "<p>The Amazon Resource Name (ARN) of the machine learning model version that is the current active model version.</p>", + "UpdateActiveModelVersionResponse$PreviousActiveVersionArn": "<p>The Amazon Resource Name (ARN) of the machine learning model version that was the previous active model version.</p>" + } + }, + "ModelVersionSourceType": { + "base": null, + "refs": { + "DescribeModelVersionResponse$SourceType": "<p>Indicates whether this model version was created by training or by importing.</p>", + "ListModelVersionsRequest$SourceType": "<p>Filter the results based on the way the model version was generated.</p>", + "ModelVersionSummary$SourceType": "<p>Indicates how this model version was generated.</p>" + } + }, + "ModelVersionStatus": { + "base": null, + "refs": { + "DescribeModelVersionResponse$Status": "<p>The current status of the model version.</p>", + "ImportModelVersionResponse$Status": "<p>The status of the <code>ImportModelVersion</code> operation. </p>", + "ListModelVersionsRequest$Status": "<p>Filter the results based on the current status of the model version.</p>", + "ModelVersionSummary$Status": "<p>The current status of the model version.</p>" + } + }, + "ModelVersionSummaries": { + "base": null, + "refs": { + "ListModelVersionsResponse$ModelVersionSummaries": "<p>Provides information on the specified model version, including the created time, model and dataset ARNs, and status.</p>" + } + }, + "ModelVersionSummary": { + "base": "<p>Contains information about the specific model version.</p>", + "refs": { + "ModelVersionSummaries$member": null + } + }, "MonotonicValues": { "base": "<p> Entity that comprises information on monotonic values in the data. </p>", "refs": { @@ -975,7 +1137,9 @@ "CreateDatasetRequest$ServerSideKmsKeyId": "<p>Provides the identifier of the KMS key used to encrypt dataset data by Amazon Lookout for Equipment. </p>", "CreateInferenceSchedulerRequest$ServerSideKmsKeyId": "<p>Provides the identifier of the KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment. </p>", "CreateModelRequest$ServerSideKmsKeyId": "<p>Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment. </p>", - "InferenceOutputConfiguration$KmsKeyId": "<p>The ID number for the AWS KMS key used to encrypt the inference output. </p>" + "ImportDatasetRequest$ServerSideKmsKeyId": "<p>Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment. </p>", + "ImportModelVersionRequest$ServerSideKmsKeyId": "<p>Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment. </p>", + "InferenceOutputConfiguration$KmsKeyId": "<p>The ID number for the KMS key key used to encrypt the inference output. </p>" } }, "NextToken": { @@ -995,6 +1159,8 @@ "ListLabelGroupsResponse$NextToken": "<p> An opaque pagination token indicating where to continue the listing of label groups. </p>", "ListLabelsRequest$NextToken": "<p> An opaque pagination token indicating where to continue the listing of label groups. </p>", "ListLabelsResponse$NextToken": "<p> An opaque pagination token indicating where to continue the listing of datasets. </p>", + "ListModelVersionsRequest$NextToken": "<p>If the total number of results exceeds the limit that the response can display, the response returns an opaque pagination token indicating where to continue the listing of machine learning model versions. Use this token in the <code>NextToken</code> field in the request to list the next page of results.</p>", + "ListModelVersionsResponse$NextToken": "<p>If the total number of results exceeds the limit that the response can display, the response returns an opaque pagination token indicating where to continue the listing of machine learning model versions. Use this token in the <code>NextToken</code> field in the request to list the next page of results.</p>", "ListModelsRequest$NextToken": "<p> An opaque pagination token indicating where to continue the listing of ML models. </p>", "ListModelsResponse$NextToken": "<p> An opaque pagination token indicating where to continue the listing of ML models. </p>", "ListSensorStatisticsRequest$NextToken": "<p>An opaque pagination token indicating where to continue the listing of sensor statistics. </p>", @@ -1005,7 +1171,42 @@ "base": null, "refs": { "CreateModelRequest$OffCondition": "<p>Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, Lookout for Equipment will not use data from this asset for training, evaluation, or inference.</p>", - "DescribeModelResponse$OffCondition": "<p>Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, Lookout for Equipment will not use data from this asset for training, evaluation, or inference.</p>" + "DescribeModelResponse$OffCondition": "<p>Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, Lookout for Equipment will not use data from this asset for training, evaluation, or inference.</p>", + "DescribeModelVersionResponse$OffCondition": "<p>Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, Lookout for Equipment will not use data from this asset for training, evaluation, or inference.</p>" + } + }, + "Policy": { + "base": null, + "refs": { + "DescribeResourcePolicyResponse$ResourcePolicy": "<p>The resource policy in a JSON-formatted string.</p>", + "PutResourcePolicyRequest$ResourcePolicy": "<p>The JSON-formatted resource policy to create.</p>" + } + }, + "PolicyRevisionId": { + "base": null, + "refs": { + "DescribeResourcePolicyResponse$PolicyRevisionId": "<p>A unique identifier for a revision of the resource policy.</p>", + "PutResourcePolicyRequest$PolicyRevisionId": "<p>A unique identifier for a revision of the resource policy.</p>", + "PutResourcePolicyResponse$PolicyRevisionId": "<p>A unique identifier for a revision of the resource policy.</p>" + } + }, + "PutResourcePolicyRequest": { + "base": null, + "refs": { + } + }, + "PutResourcePolicyResponse": { + "base": null, + "refs": { + } + }, + "ResourceArn": { + "base": null, + "refs": { + "DeleteResourcePolicyRequest$ResourceArn": "<p>The Amazon Resource Name (ARN) of the resource for which the resource policy should be deleted.</p>", + "DescribeResourcePolicyRequest$ResourceArn": "<p>The Amazon Resource Name (ARN) of the resource that is associated with the resource policy.</p>", + "PutResourcePolicyRequest$ResourceArn": "<p>The Amazon Resource Name (ARN) of the resource for which the policy is being created.</p>", + "PutResourcePolicyResponse$ResourceArn": "<p>The Amazon Resource Name (ARN) of the resource for which the policy was created.</p>" } }, "ResourceNotFoundException": { @@ -1026,7 +1227,7 @@ "S3Key": { "base": null, "refs": { - "S3Object$Key": "<p>The AWS Key Management Service (AWS KMS) key being used to encrypt the S3 object. Without this key, data in the bucket is not accessible. </p>" + "S3Object$Key": "<p>The Amazon Web Services Key Management Service (KMS key) key being used to encrypt the S3 object. Without this key, data in the bucket is not accessible. </p>" } }, "S3Object": { @@ -1139,6 +1340,8 @@ "CreateInferenceSchedulerRequest$Tags": "<p>Any tags associated with the inference scheduler. </p>", "CreateLabelGroupRequest$Tags": "<p> Tags that provide metadata about the label group you are creating. </p> <p>Data in this field will be retained for service usage. Follow best practices for the security of your data.</p>", "CreateModelRequest$Tags": "<p> Any tags associated with the ML model being created. </p>", + "ImportDatasetRequest$Tags": "<p>Any tags associated with the dataset to be created.</p>", + "ImportModelVersionRequest$Tags": "<p>The tags associated with the machine learning model to be created. </p>", "ListTagsForResourceResponse$Tags": "<p> Any tags associated with the resource. </p>", "TagResourceRequest$Tags": "<p>The tag or tags to be associated with a specific resource. Both the tag key and value are specified. </p>" } @@ -1208,6 +1411,22 @@ "DescribeModelResponse$TrainingExecutionEndTime": "<p>Indicates the time at which the training of the ML model was completed. </p>", "DescribeModelResponse$LastUpdatedTime": "<p>Indicates the last time the ML model was updated. The type of update is not specified. </p>", "DescribeModelResponse$CreatedAt": "<p>Indicates the time and date at which the ML model was created. </p>", + "DescribeModelResponse$ImportJobStartTime": "<p>The date and time when the import job was started. This field appears if the active model version was imported.</p>", + "DescribeModelResponse$ImportJobEndTime": "<p>The date and time when the import job was completed. This field appears if the active model version was imported.</p>", + "DescribeModelResponse$ModelVersionActivatedAt": "<p>The date the active model version was activated.</p>", + "DescribeModelResponse$PreviousModelVersionActivatedAt": "<p>The date and time when the previous active model version was activated.</p>", + "DescribeModelVersionResponse$TrainingDataStartTime": "<p>The date on which the training data began being gathered. If you imported the version, this is the date that the training data in the source version began being gathered.</p>", + "DescribeModelVersionResponse$TrainingDataEndTime": "<p>The date on which the training data finished being gathered. If you imported the version, this is the date that the training data in the source version finished being gathered.</p>", + "DescribeModelVersionResponse$EvaluationDataStartTime": "<p>The date on which the data in the evaluation set began being gathered. If you imported the version, this is the date that the evaluation set data in the source version began being gathered.</p>", + "DescribeModelVersionResponse$EvaluationDataEndTime": "<p>The date on which the data in the evaluation set began being gathered. If you imported the version, this is the date that the evaluation set data in the source version finished being gathered.</p>", + "DescribeModelVersionResponse$TrainingExecutionStartTime": "<p>The time when the training of the version began.</p>", + "DescribeModelVersionResponse$TrainingExecutionEndTime": "<p>The time when the training of the version completed.</p>", + "DescribeModelVersionResponse$LastUpdatedTime": "<p>Indicates the last time the machine learning model version was updated.</p>", + "DescribeModelVersionResponse$CreatedAt": "<p>Indicates the time and date at which the machine learning model version was created.</p>", + "DescribeModelVersionResponse$ImportJobStartTime": "<p>The date and time when the import job began. This field appears if the model version was imported.</p>", + "DescribeModelVersionResponse$ImportJobEndTime": "<p>The date and time when the import job completed. This field appears if the model version was imported.</p>", + "DescribeResourcePolicyResponse$CreationTime": "<p>The time when the resource policy was created.</p>", + "DescribeResourcePolicyResponse$LastModifiedTime": "<p>The time when the resource policy was last modified.</p>", "InferenceEventSummary$EventStartTime": "<p>Indicates the starting time of an inference event. </p>", "InferenceEventSummary$EventEndTime": "<p>Indicates the ending time of an inference event. </p>", "InferenceExecutionSummary$ScheduledStartTime": "<p>Indicates the start time at which the inference scheduler began the specific inference execution. </p>", @@ -1219,12 +1438,15 @@ "LabelSummary$EndTime": "<p> The timestamp indicating the end of the label. </p>", "LabelSummary$CreatedAt": "<p> The time at which the label was created. </p>", "ListInferenceEventsRequest$IntervalStartTime": "<p> Lookout for Equipment will return all the inference events with an end time equal to or greater than the start time given.</p>", - "ListInferenceEventsRequest$IntervalEndTime": "<p>Returns all the inference events with an end start time equal to or greater than less than the end time given</p>", + "ListInferenceEventsRequest$IntervalEndTime": "<p>Returns all the inference events with an end start time equal to or greater than less than the end time given.</p>", "ListInferenceExecutionsRequest$DataStartTimeAfter": "<p>The time reference in the inferenced dataset after which Amazon Lookout for Equipment started the inference execution. </p>", "ListInferenceExecutionsRequest$DataEndTimeBefore": "<p>The time reference in the inferenced dataset before which Amazon Lookout for Equipment stopped the inference execution. </p>", "ListLabelsRequest$IntervalStartTime": "<p> Returns all the labels with a end time equal to or later than the start time given. </p>", "ListLabelsRequest$IntervalEndTime": "<p> Returns all labels with a start time earlier than the end time given. </p>", + "ListModelVersionsRequest$CreatedAtEndTime": "<p>Filter results to return all the model versions created before this time.</p>", + "ListModelVersionsRequest$CreatedAtStartTime": "<p>Filter results to return all the model versions created after this time.</p>", "ModelSummary$CreatedAt": "<p>The time at which the specific model was created. </p>", + "ModelVersionSummary$CreatedAt": "<p>The time when this model version was created.</p>", "SensorStatisticsSummary$DataStartTime": "<p> Indicates the time reference to indicate the beginning of valid data associated with the sensor that the statistics belong to. </p>", "SensorStatisticsSummary$DataEndTime": "<p> Indicates the time reference to indicate the end of valid data associated with the sensor that the statistics belong to. </p>" } @@ -1245,6 +1467,16 @@ "refs": { } }, + "UpdateActiveModelVersionRequest": { + "base": null, + "refs": { + } + }, + "UpdateActiveModelVersionResponse": { + "base": null, + "refs": { + } + }, "UpdateInferenceSchedulerRequest": { "base": null, "refs": { @@ -1256,7 +1488,7 @@ } }, "ValidationException": { - "base": "<p> The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related AWS service that's being utilized. </p>", + "base": "<p> The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related Amazon Web Services service that's being utilized. </p>", "refs": { } } diff --git a/models/apis/lookoutequipment/2020-12-15/endpoint-rule-set-1.json b/models/apis/lookoutequipment/2020-12-15/endpoint-rule-set-1.json index 11910d47fac..00e0ece3871 100644 --- a/models/apis/lookoutequipment/2020-12-15/endpoint-rule-set-1.json +++ b/models/apis/lookoutequipment/2020-12-15/endpoint-rule-set-1.json @@ -3,7 +3,7 @@ "parameters": { "Region": { "builtIn": "AWS::Region", - "required": true, + "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "String" }, @@ -32,13 +32,12 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "isSet", "argv": [ { - "ref": "Region" + "ref": "Endpoint" } - ], - "assign": "PartitionResult" + ] } ], "type": "tree", @@ -46,64 +45,17 @@ { "conditions": [ { - "fn": "isSet", + "fn": "booleanEquals", "argv": [ { - "ref": "Endpoint" - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" + "ref": "UseFIPS" }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + true ] } - ] + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" }, { "conditions": [ @@ -111,19 +63,51 @@ "fn": "booleanEquals", "argv": [ { - "ref": "UseFIPS" + "ref": "UseDualStack" }, true ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [ + { + "fn": "isSet", + "argv": [ { - "fn": "booleanEquals", + "ref": "Region" + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", "argv": [ { - "ref": "UseDualStack" - }, - true - ] + "ref": "Region" + } + ], + "assign": "PartitionResult" } ], "type": "tree", @@ -133,90 +117,109 @@ { "fn": "booleanEquals", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } + "ref": "UseFIPS" + }, + true ] }, { "fn": "booleanEquals", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } + "ref": "UseDualStack" + }, + true ] } ], "type": "tree", "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://lookoutequipment-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, { "conditions": [], - "endpoint": { - "url": "https://lookoutequipment-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" } ] }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } + "ref": "UseFIPS" + }, + true ] } ], "type": "tree", "rules": [ { - "conditions": [], + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], "type": "tree", "rules": [ { @@ -229,78 +232,83 @@ "type": "endpoint" } ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" } ] }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } + "ref": "UseDualStack" + }, + true ] } ], "type": "tree", "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://lookoutequipment.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, { "conditions": [], - "endpoint": { - "url": "https://lookoutequipment.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } ] }, { "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" + "endpoint": { + "url": "https://lookoutequipment.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, - { - "conditions": [], - "endpoint": { - "url": "https://lookoutequipment.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" } ] + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/lookoutequipment/2020-12-15/endpoint-tests-1.json b/models/apis/lookoutequipment/2020-12-15/endpoint-tests-1.json index 6128fb14740..4cc41e239d7 100644 --- a/models/apis/lookoutequipment/2020-12-15/endpoint-tests-1.json +++ b/models/apis/lookoutequipment/2020-12-15/endpoint-tests-1.json @@ -1,163 +1,299 @@ { "testCases": [ { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://lookoutequipment.ap-northeast-2.amazonaws.com" + } + }, + "params": { + "Region": "ap-northeast-2", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://lookoutequipment.eu-west-1.amazonaws.com" + } + }, + "params": { + "Region": "eu-west-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://lookoutequipment.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://lookoutequipment-fips.eu-west-1.api.aws" + "url": "https://lookoutequipment-fips.us-east-1.api.aws" } }, "params": { + "Region": "us-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "eu-west-1" + "UseDualStack": true } }, { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://lookoutequipment-fips.eu-west-1.amazonaws.com" + "url": "https://lookoutequipment-fips.us-east-1.amazonaws.com" } }, "params": { + "Region": "us-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "eu-west-1" + "UseDualStack": false } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://lookoutequipment.eu-west-1.api.aws" + "url": "https://lookoutequipment.us-east-1.api.aws" } }, "params": { + "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "eu-west-1" + "UseDualStack": true } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://lookoutequipment.eu-west-1.amazonaws.com" + "url": "https://lookoutequipment-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://lookoutequipment-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://lookoutequipment.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-west-1" + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://lookoutequipment.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://lookoutequipment-fips.ap-northeast-2.api.aws" + "url": "https://lookoutequipment-fips.us-gov-east-1.api.aws" } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "ap-northeast-2" + "UseDualStack": true } }, { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://lookoutequipment-fips.ap-northeast-2.amazonaws.com" + "url": "https://lookoutequipment-fips.us-gov-east-1.amazonaws.com" } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "ap-northeast-2" + "UseDualStack": false } }, { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://lookoutequipment.ap-northeast-2.api.aws" + "url": "https://lookoutequipment.us-gov-east-1.api.aws" } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "ap-northeast-2" + "UseDualStack": true } }, { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://lookoutequipment.ap-northeast-2.amazonaws.com" + "url": "https://lookoutequipment.us-gov-east-1.amazonaws.com" } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "ap-northeast-2" + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://lookoutequipment-fips.us-east-1.api.aws" + "url": "https://lookoutequipment-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { + "Region": "us-iso-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "us-east-1" + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://lookoutequipment-fips.us-east-1.amazonaws.com" + "url": "https://lookoutequipment.us-iso-east-1.c2s.ic.gov" } }, "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-east-1" + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://lookoutequipment.us-east-1.api.aws" + "url": "https://lookoutequipment-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "us-east-1" + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://lookoutequipment.us-east-1.amazonaws.com" + "url": "https://lookoutequipment.us-isob-east-1.sc2s.sgov.gov" } }, "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, - "Region": "us-east-1" + "Endpoint": "https://example.com" } }, { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" @@ -166,7 +302,6 @@ "params": { "UseFIPS": false, "UseDualStack": false, - "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -176,9 +311,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { + "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, - "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -188,11 +323,17 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { + "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, - "Region": "us-east-1", "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" diff --git a/models/apis/lookoutequipment/2020-12-15/paginators-1.json b/models/apis/lookoutequipment/2020-12-15/paginators-1.json index 25be4169143..18e13f7d3a9 100644 --- a/models/apis/lookoutequipment/2020-12-15/paginators-1.json +++ b/models/apis/lookoutequipment/2020-12-15/paginators-1.json @@ -35,6 +35,11 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListModelVersions": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListModels": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/omics/2022-11-28/api-2.json b/models/apis/omics/2022-11-28/api-2.json index bb18a06b830..f9a4142d952 100644 --- a/models/apis/omics/2022-11-28/api-2.json +++ b/models/apis/omics/2022-11-28/api-2.json @@ -3831,6 +3831,13 @@ "timestampFormat": "iso8601", "type": "timestamp" }, + "CreationType": { + "enum": [ + "IMPORT", + "UPLOAD" + ], + "type": "string" + }, "DeleteAnnotationStoreRequest": { "members": { "force": { @@ -4508,6 +4515,9 @@ "creationTime": { "shape": "SyntheticTimestamp_date_time" }, + "creationType": { + "shape": "CreationType" + }, "description": { "shape": "ReadSetDescription" }, @@ -6682,6 +6692,9 @@ "createdBefore": { "shape": "SyntheticTimestamp_date_time" }, + "creationType": { + "shape": "CreationType" + }, "generatedFrom": { "shape": "GeneratedFrom" }, @@ -6752,6 +6765,9 @@ "creationTime": { "shape": "SyntheticTimestamp_date_time" }, + "creationType": { + "shape": "CreationType" + }, "description": { "shape": "ReadSetDescription" }, diff --git a/models/apis/omics/2022-11-28/docs-2.json b/models/apis/omics/2022-11-28/docs-2.json index bb9dfa1fb29..a8105ca14bb 100644 --- a/models/apis/omics/2022-11-28/docs-2.json +++ b/models/apis/omics/2022-11-28/docs-2.json @@ -468,6 +468,14 @@ "VariantStoreItem$creationTime": "<p>When the store was created.</p>" } }, + "CreationType": { + "base": null, + "refs": { + "GetReadSetMetadataResponse$creationType": "<p> The creation type of the read set. </p>", + "ReadSetFilter$creationType": "<p> The creation type of the read set. </p>", + "ReadSetListItem$creationType": "<p> The creation type of the read set. </p>" + } + }, "DeleteAnnotationStoreRequest": { "base": null, "refs": { diff --git a/models/apis/omics/2022-11-28/endpoint-tests-1.json b/models/apis/omics/2022-11-28/endpoint-tests-1.json index de9c6b65001..ce988072093 100644 --- a/models/apis/omics/2022-11-28/endpoint-tests-1.json +++ b/models/apis/omics/2022-11-28/endpoint-tests-1.json @@ -1,55 +1,55 @@ { "testCases": [ { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://omics-fips.us-gov-east-1.api.aws" + "url": "https://omics-fips.us-east-1.api.aws" } }, "params": { - "UseDualStack": true, - "Region": "us-gov-east-1", - "UseFIPS": true + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://omics-fips.us-gov-east-1.amazonaws.com" + "url": "https://omics-fips.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, - "Region": "us-gov-east-1", - "UseFIPS": true + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://omics.us-gov-east-1.api.aws" + "url": "https://omics.us-east-1.api.aws" } }, "params": { - "UseDualStack": true, - "Region": "us-gov-east-1", - "UseFIPS": false + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://omics.us-gov-east-1.amazonaws.com" + "url": "https://omics.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, - "Region": "us-gov-east-1", - "UseFIPS": false + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { @@ -60,9 +60,9 @@ } }, "params": { - "UseDualStack": true, "Region": "cn-north-1", - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -73,9 +73,9 @@ } }, "params": { - "UseDualStack": false, "Region": "cn-north-1", - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -86,9 +86,9 @@ } }, "params": { - "UseDualStack": true, "Region": "cn-north-1", - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -99,109 +99,109 @@ } }, "params": { - "UseDualStack": false, "Region": "cn-north-1", - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + "endpoint": { + "url": "https://omics-fips.us-gov-east-1.api.aws" + } }, "params": { - "UseDualStack": true, - "Region": "us-iso-east-1", - "UseFIPS": true + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://omics-fips.us-iso-east-1.c2s.ic.gov" + "url": "https://omics-fips.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, - "Region": "us-iso-east-1", - "UseFIPS": true + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" + "endpoint": { + "url": "https://omics.us-gov-east-1.api.aws" + } }, "params": { - "UseDualStack": true, - "Region": "us-iso-east-1", - "UseFIPS": false + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://omics.us-iso-east-1.c2s.ic.gov" + "url": "https://omics.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, - "Region": "us-iso-east-1", - "UseFIPS": false + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://omics-fips.us-east-1.api.aws" - } + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "UseDualStack": true, - "Region": "us-east-1", - "UseFIPS": true + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://omics-fips.us-east-1.amazonaws.com" + "url": "https://omics-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": false, - "Region": "us-east-1", - "UseFIPS": true + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://omics.us-east-1.api.aws" - } + "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "UseDualStack": true, - "Region": "us-east-1", - "UseFIPS": false + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://omics.us-east-1.amazonaws.com" + "url": "https://omics.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": false, - "Region": "us-east-1", - "UseFIPS": false + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { @@ -210,9 +210,9 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "UseDualStack": true, "Region": "us-isob-east-1", - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -223,9 +223,9 @@ } }, "params": { - "UseDualStack": false, "Region": "us-isob-east-1", - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -234,9 +234,9 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "UseDualStack": true, "Region": "us-isob-east-1", - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -247,22 +247,35 @@ } }, "params": { - "UseDualStack": false, "Region": "us-isob-east-1", - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { - "UseDualStack": false, "Region": "us-east-1", "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -272,9 +285,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseDualStack": false, "Region": "us-east-1", "UseFIPS": true, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -284,11 +297,17 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseDualStack": true, "Region": "us-east-1", "UseFIPS": false, + "UseDualStack": true, "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" diff --git a/models/apis/rds/2014-10-31/api-2.json b/models/apis/rds/2014-10-31/api-2.json index 0f60386ff84..90026ecd68b 100644 --- a/models/apis/rds/2014-10-31/api-2.json +++ b/models/apis/rds/2014-10-31/api-2.json @@ -3190,7 +3190,8 @@ "NetworkType":{"shape":"String"}, "DBSystemId":{"shape":"String"}, "ManageMasterUserPassword":{"shape":"BooleanOptional"}, - "MasterUserSecretKmsKeyId":{"shape":"String"} + "MasterUserSecretKmsKeyId":{"shape":"String"}, + "EnableLocalWriteForwarding":{"shape":"BooleanOptional"} } }, "CreateDBClusterParameterGroupMessage":{ @@ -3706,7 +3707,8 @@ "NetworkType":{"shape":"String"}, "DBSystemId":{"shape":"String"}, "MasterUserSecret":{"shape":"MasterUserSecret"}, - "IOOptimizedNextAllowedModificationTime":{"shape":"TStamp"} + "IOOptimizedNextAllowedModificationTime":{"shape":"TStamp"}, + "LocalWriteForwardingStatus":{"shape":"LocalWriteForwardingStatus"} }, "wrapper":true }, @@ -4119,7 +4121,8 @@ "SupportsBabelfish":{"shape":"Boolean"}, "CustomDBEngineVersionManifest":{"shape":"CustomDBEngineVersionManifest"}, "SupportsCertificateRotationWithoutRestart":{"shape":"BooleanOptional"}, - "SupportedCACertificateIdentifiers":{"shape":"CACertificateIdentifiersList"} + "SupportedCACertificateIdentifiers":{"shape":"CACertificateIdentifiersList"}, + "SupportsLocalWriteForwarding":{"shape":"BooleanOptional"} } }, "DBEngineVersionList":{ @@ -6578,6 +6581,16 @@ "Filters":{"shape":"FilterList"} } }, + "LocalWriteForwardingStatus":{ + "type":"string", + "enum":[ + "enabled", + "disabled", + "enabling", + "disabling", + "requested" + ] + }, "LogTypeList":{ "type":"list", "member":{"shape":"String"} @@ -6719,7 +6732,8 @@ "RotateMasterUserPassword":{"shape":"BooleanOptional"}, "MasterUserSecretKmsKeyId":{"shape":"String"}, "EngineMode":{"shape":"String"}, - "AllowEngineModeChange":{"shape":"Boolean"} + "AllowEngineModeChange":{"shape":"Boolean"}, + "EnableLocalWriteForwarding":{"shape":"BooleanOptional"} } }, "ModifyDBClusterParameterGroupMessage":{ @@ -8711,7 +8725,8 @@ "SupportedEngineModes":{"shape":"EngineModeList"}, "SupportsParallelQuery":{"shape":"BooleanOptional"}, "SupportsGlobalDatabases":{"shape":"BooleanOptional"}, - "SupportsBabelfish":{"shape":"BooleanOptional"} + "SupportsBabelfish":{"shape":"BooleanOptional"}, + "SupportsLocalWriteForwarding":{"shape":"BooleanOptional"} } }, "UserAuthConfig":{ diff --git a/models/apis/rds/2014-10-31/docs-2.json b/models/apis/rds/2014-10-31/docs-2.json index 63fea1a58f5..9f8f0fae144 100644 --- a/models/apis/rds/2014-10-31/docs-2.json +++ b/models/apis/rds/2014-10-31/docs-2.json @@ -529,6 +529,7 @@ "CreateDBClusterMessage$AutoMinorVersionUpgrade": "<p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p> <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>", "CreateDBClusterMessage$EnablePerformanceInsights": "<p>Specifies whether to turn on Performance Insights for the DB cluster.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html\"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p> <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>", "CreateDBClusterMessage$ManageMasterUserPassword": "<p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html\">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html\">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i> </p> <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p> <p>Constraints:</p> <ul> <li> <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p> </li> </ul>", + "CreateDBClusterMessage$EnableLocalWriteForwarding": "<p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p> <p>Valid for: Aurora DB clusters only</p>", "CreateDBInstanceMessage$MultiAZ": "<p>Specifies whether the DB instance is a Multi-AZ deployment. You can't set the <code>AvailabilityZone</code> parameter if the DB instance is a Multi-AZ deployment.</p> <p>This setting doesn't apply to the following DB instances:</p> <ul> <li> <p>Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.)</p> </li> <li> <p>RDS Custom</p> </li> </ul>", "CreateDBInstanceMessage$AutoMinorVersionUpgrade": "<p>Specifies whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.</p> <p>If you create an RDS Custom DB instance, you must set <code>AutoMinorVersionUpgrade</code> to <code>false</code>.</p>", "CreateDBInstanceMessage$PubliclyAccessible": "<p>Specifies whether the DB instance is publicly accessible.</p> <p>When the DB instance is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB instance's virtual private cloud (VPC). It resolves to the public IP address from outside of the DB instance's VPC. Access to the DB instance is ultimately controlled by the security group it uses. That public access is not permitted if the security group assigned to the DB instance doesn't permit it.</p> <p>When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.</p> <p>Default: The default behavior varies depending on whether <code>DBSubnetGroupName</code> is specified.</p> <p>If <code>DBSubnetGroupName</code> isn't specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p> <ul> <li> <p>If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB instance is private.</p> </li> <li> <p>If the default VPC in the target Region has an internet gateway attached to it, the DB instance is public.</p> </li> </ul> <p>If <code>DBSubnetGroupName</code> is specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p> <ul> <li> <p>If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB instance is private.</p> </li> <li> <p>If the subnets are part of a VPC that has an internet gateway attached to it, the DB instance is public.</p> </li> </ul>", @@ -561,6 +562,7 @@ "DBCluster$PubliclyAccessible": "<p>Indicates whether the DB cluster is publicly accessible.</p> <p>When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.</p> <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p> <p>For more information, see <a>CreateDBCluster</a>.</p> <p>This setting is only for non-Aurora Multi-AZ DB clusters.</p>", "DBCluster$PerformanceInsightsEnabled": "<p>Indicates whether Performance Insights is enabled for the DB cluster.</p> <p>This setting is only for non-Aurora Multi-AZ DB clusters.</p>", "DBEngineVersion$SupportsCertificateRotationWithoutRestart": "<p>A value that indicates whether the engine version supports rotating the server certificate without rebooting the DB instance.</p>", + "DBEngineVersion$SupportsLocalWriteForwarding": "<p>A value that indicates whether the DB engine version supports forwarding write operations from reader DB instances to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p> <p>Valid for: Aurora DB clusters only</p>", "DBInstance$PerformanceInsightsEnabled": "<p>Indicates whether Performance Insights is enabled for the DB instance.</p>", "DBInstance$CustomerOwnedIpEnabled": "<p>Indicates whether a customer-owned IP address (CoIP) is enabled for an RDS on Outposts DB instance.</p> <p>A <i>CoIP </i>provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance from outside of its virtual private cloud (VPC) on your local network.</p> <p>For more information about RDS on Outposts, see <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html\">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p> <p>For more information about CoIPs, see <a href=\"https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing\">Customer-owned IP addresses</a> in the <i>Amazon Web Services Outposts User Guide</i>.</p>", "DBInstance$ActivityStreamEngineNativeAuditFieldsIncluded": "<p>Indicates whether engine-native audit fields are included in the database activity stream.</p>", @@ -585,6 +587,7 @@ "ModifyDBClusterMessage$EnablePerformanceInsights": "<p>Specifies whether to turn on Performance Insights for the DB cluster.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html\"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p> <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>", "ModifyDBClusterMessage$ManageMasterUserPassword": "<p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p> <p>If the DB cluster doesn't manage the master user password with Amazon Web Services Secrets Manager, you can turn on this management. In this case, you can't specify <code>MasterUserPassword</code>.</p> <p>If the DB cluster already manages the master user password with Amazon Web Services Secrets Manager, and you specify that the master user password is not managed with Amazon Web Services Secrets Manager, then you must specify <code>MasterUserPassword</code>. In this case, RDS deletes the secret and uses the new password for the master user specified by <code>MasterUserPassword</code>.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html\">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html\">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i> </p> <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>", "ModifyDBClusterMessage$RotateMasterUserPassword": "<p>Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.</p> <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster. The secret value contains the updated password.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html\">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html\">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i> </p> <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p> <p>Constraints:</p> <ul> <li> <p>You must apply the change immediately when rotating the master user password.</p> </li> </ul>", + "ModifyDBClusterMessage$EnableLocalWriteForwarding": "<p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p> <p>Valid for: Aurora DB clusters only</p>", "ModifyDBInstanceMessage$MultiAZ": "<p>Specifies whether the DB instance is a Multi-AZ deployment. Changing this parameter doesn't result in an outage. The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p> <p>This setting doesn't apply to RDS Custom DB instances.</p>", "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": "<p>Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance window. An outage occurs when all the following conditions are met:</p> <ul> <li> <p>The automatic upgrade is enabled for the maintenance window.</p> </li> <li> <p>A newer minor version is available.</p> </li> <li> <p>RDS has enabled automatic patching for the engine version.</p> </li> </ul> <p>If any of the preceding conditions isn't met, Amazon RDS applies the change as soon as possible and doesn't cause an outage.</p> <p>For an RDS Custom DB instance, don't enable this setting. Otherwise, the operation returns an error.</p>", "ModifyDBInstanceMessage$CopyTagsToSnapshot": "<p>Specifies whether to copy all tags from the DB instance to snapshots of the DB instance. By default, tags aren't copied.</p> <p>This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting. For more information, see <code>ModifyDBCluster</code>.</p>", @@ -657,7 +660,8 @@ "StopActivityStreamRequest$ApplyImmediately": "<p>Specifies whether or not the database activity stream is to stop as soon as possible, regardless of the maintenance window for the database.</p>", "UpgradeTarget$SupportsParallelQuery": "<p>A value that indicates whether you can use Aurora parallel query with the target engine version.</p>", "UpgradeTarget$SupportsGlobalDatabases": "<p>A value that indicates whether you can use Aurora global databases with the target engine version.</p>", - "UpgradeTarget$SupportsBabelfish": "<p>A value that indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version.</p>" + "UpgradeTarget$SupportsBabelfish": "<p>A value that indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version.</p>", + "UpgradeTarget$SupportsLocalWriteForwarding": "<p>A value that indicates whether the target engine version supports forwarding write operations from reader DB instances to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p> <p>Valid for: Aurora DB clusters only</p>" } }, "BucketName": { @@ -2924,6 +2928,12 @@ "refs": { } }, + "LocalWriteForwardingStatus": { + "base": null, + "refs": { + "DBCluster$LocalWriteForwardingStatus": "<p>Specifies whether an Aurora DB cluster has in-cluster write forwarding enabled, not enabled, requested, or is in the process of enabling it.</p>" + } + }, "LogTypeList": { "base": null, "refs": { diff --git a/models/apis/route53/2013-04-01/api-2.json b/models/apis/route53/2013-04-01/api-2.json index 65cc6b3e405..3584c228db8 100644 --- a/models/apis/route53/2013-04-01/api-2.json +++ b/models/apis/route53/2013-04-01/api-2.json @@ -1551,7 +1551,8 @@ "us-iso-east-1", "us-iso-west-1", "us-isob-east-1", - "ap-southeast-4" + "ap-southeast-4", + "il-central-1" ], "max":64, "min":1 @@ -4149,7 +4150,8 @@ "af-south-1", "eu-south-1", "eu-south-2", - "ap-southeast-4" + "ap-southeast-4", + "il-central-1" ], "max":64, "min":1 @@ -4768,7 +4770,8 @@ "af-south-1", "eu-south-1", "eu-south-2", - "ap-southeast-4" + "ap-southeast-4", + "il-central-1" ], "max":64, "min":1 diff --git a/models/apis/route53/2013-04-01/docs-2.json b/models/apis/route53/2013-04-01/docs-2.json index 8a048a2234e..03882669b99 100644 --- a/models/apis/route53/2013-04-01/docs-2.json +++ b/models/apis/route53/2013-04-01/docs-2.json @@ -14,7 +14,7 @@ "CreateQueryLoggingConfig": "<p>Creates a configuration for DNS query logging. After you create a query logging configuration, Amazon Route 53 begins to publish log data to an Amazon CloudWatch Logs log group.</p> <p>DNS query logs contain information about the queries that Route 53 receives for a specified public hosted zone, such as the following:</p> <ul> <li> <p>Route 53 edge location that responded to the DNS query</p> </li> <li> <p>Domain or subdomain that was requested</p> </li> <li> <p>DNS record type, such as A or AAAA</p> </li> <li> <p>DNS response code, such as <code>NoError</code> or <code>ServFail</code> </p> </li> </ul> <dl> <dt>Log Group and Resource Policy</dt> <dd> <p>Before you create a query logging configuration, perform the following operations.</p> <note> <p>If you create a query logging configuration using the Route 53 console, Route 53 performs these operations automatically.</p> </note> <ol> <li> <p>Create a CloudWatch Logs log group, and make note of the ARN, which you specify when you create a query logging configuration. Note the following:</p> <ul> <li> <p>You must create the log group in the us-east-1 region.</p> </li> <li> <p>You must use the same Amazon Web Services account to create the log group and the hosted zone that you want to configure query logging for.</p> </li> <li> <p>When you create log groups for query logging, we recommend that you use a consistent prefix, for example:</p> <p> <code>/aws/route53/<i>hosted zone name</i> </code> </p> <p>In the next step, you'll create a resource policy, which controls access to one or more log groups and the associated Amazon Web Services resources, such as Route 53 hosted zones. There's a limit on the number of resource policies that you can create, so we recommend that you use a consistent prefix so you can use the same resource policy for all the log groups that you create for query logging.</p> </li> </ul> </li> <li> <p>Create a CloudWatch Logs resource policy, and give it the permissions that Route 53 needs to create log streams and to send query logs to log streams. For the value of <code>Resource</code>, specify the ARN for the log group that you created in the previous step. To use the same resource policy for all the CloudWatch Logs log groups that you created for query logging configurations, replace the hosted zone name with <code>*</code>, for example:</p> <p> <code>arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/*</code> </p> <p>To avoid the confused deputy problem, a security issue where an entity without a permission for an action can coerce a more-privileged entity to perform it, you can optionally limit the permissions that a service has to a resource in a resource-based policy by supplying the following values:</p> <ul> <li> <p>For <code>aws:SourceArn</code>, supply the hosted zone ARN used in creating the query logging configuration. For example, <code>aws:SourceArn: arn:aws:route53:::hostedzone/hosted zone ID</code>.</p> </li> <li> <p>For <code>aws:SourceAccount</code>, supply the account ID for the account that creates the query logging configuration. For example, <code>aws:SourceAccount:111111111111</code>.</p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html\">The confused deputy problem</a> in the <i>Amazon Web Services IAM User Guide</i>.</p> <note> <p>You can't use the CloudWatch console to create or edit a resource policy. You must use the CloudWatch API, one of the Amazon Web Services SDKs, or the CLI.</p> </note> </li> </ol> </dd> <dt>Log Streams and Edge Locations</dt> <dd> <p>When Route 53 finishes creating the configuration for DNS query logging, it does the following:</p> <ul> <li> <p>Creates a log stream for an edge location the first time that the edge location responds to DNS queries for the specified hosted zone. That log stream is used to log all queries that Route 53 responds to for that edge location.</p> </li> <li> <p>Begins to send query logs to the applicable log stream.</p> </li> </ul> <p>The name of each log stream is in the following format:</p> <p> <code> <i>hosted zone ID</i>/<i>edge location code</i> </code> </p> <p>The edge location code is a three-letter code and an arbitrarily assigned number, for example, DFW3. The three-letter code typically corresponds with the International Air Transport Association airport code for an airport near the edge location. (These abbreviations might change in the future.) For a list of edge locations, see \"The Route 53 Global Network\" on the <a href=\"http://aws.amazon.com/route53/details/\">Route 53 Product Details</a> page.</p> </dd> <dt>Queries That Are Logged</dt> <dd> <p>Query logs contain only the queries that DNS resolvers forward to Route 53. If a DNS resolver has already cached the response to a query (such as the IP address for a load balancer for example.com), the resolver will continue to return the cached response. It doesn't forward another query to Route 53 until the TTL for the corresponding resource record set expires. Depending on how many DNS queries are submitted for a resource record set, and depending on the TTL for that resource record set, query logs might contain information about only one query out of every several thousand queries that are submitted to DNS. For more information about how DNS works, see <a href=\"https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/welcome-dns-service.html\">Routing Internet Traffic to Your Website or Web Application</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </dd> <dt>Log File Format</dt> <dd> <p>For a list of the values in each query log and the format of each value, see <a href=\"https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/query-logs.html\">Logging DNS Queries</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </dd> <dt>Pricing</dt> <dd> <p>For information about charges for query logs, see <a href=\"http://aws.amazon.com/cloudwatch/pricing/\">Amazon CloudWatch Pricing</a>.</p> </dd> <dt>How to Stop Logging</dt> <dd> <p>If you want Route 53 to stop sending query logs to CloudWatch Logs, delete the query logging configuration. For more information, see <a href=\"https://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteQueryLoggingConfig.html\">DeleteQueryLoggingConfig</a>.</p> </dd> </dl>", "CreateReusableDelegationSet": "<p>Creates a delegation set (a group of four name servers) that can be reused by multiple hosted zones that were created by the same Amazon Web Services account. </p> <p>You can also create a reusable delegation set that uses the four name servers that are associated with an existing hosted zone. Specify the hosted zone ID in the <code>CreateReusableDelegationSet</code> request.</p> <note> <p>You can't associate a reusable delegation set with a private hosted zone.</p> </note> <p>For information about using a reusable delegation set to configure white label name servers, see <a href=\"https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/white-label-name-servers.html\">Configuring White Label Name Servers</a>.</p> <p>The process for migrating existing hosted zones to use a reusable delegation set is comparable to the process for configuring white label name servers. You need to perform the following steps:</p> <ol> <li> <p>Create a reusable delegation set.</p> </li> <li> <p>Recreate hosted zones, and reduce the TTL to 60 seconds or less.</p> </li> <li> <p>Recreate resource record sets in the new hosted zones.</p> </li> <li> <p>Change the registrar's name servers to use the name servers for the new hosted zones.</p> </li> <li> <p>Monitor traffic for the website or application.</p> </li> <li> <p>Change TTLs back to their original values.</p> </li> </ol> <p>If you want to migrate existing hosted zones to use a reusable delegation set, the existing hosted zones can't use any of the name servers that are assigned to the reusable delegation set. If one or more hosted zones do use one or more name servers that are assigned to the reusable delegation set, you can do one of the following:</p> <ul> <li> <p>For small numbers of hosted zones—up to a few hundred—it's relatively easy to create reusable delegation sets until you get one that has four name servers that don't overlap with any of the name servers in your hosted zones.</p> </li> <li> <p>For larger numbers of hosted zones, the easiest solution is to use more than one reusable delegation set.</p> </li> <li> <p>For larger numbers of hosted zones, you can also migrate hosted zones that have overlapping name servers to hosted zones that don't have overlapping name servers, then migrate the hosted zones again to use the reusable delegation set.</p> </li> </ul>", "CreateTrafficPolicy": "<p>Creates a traffic policy, which you use to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com).</p>", - "CreateTrafficPolicyInstance": "<p>Creates resource record sets in a specified hosted zone based on the settings in a specified traffic policy version. In addition, <code>CreateTrafficPolicyInstance</code> associates the resource record sets with a specified domain name (such as example.com) or subdomain name (such as www.example.com). Amazon Route 53 responds to DNS queries for the domain or subdomain name by using the resource record sets that <code>CreateTrafficPolicyInstance</code> created.</p> <note> <p>After you submit an <code>CreateTrafficPolicyInstance</code> request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. Use <code>GetTrafficPolicyInstance</code> with the <code>id</code> of new traffic policy instance to confirm that the <code>CreateTrafficPolicyInstance</code> request completed successfully. For more information, see the <code>State</code> response element.</p> </note>", + "CreateTrafficPolicyInstance": "<p>Creates resource record sets in a specified hosted zone based on the settings in a specified traffic policy version. In addition, <code>CreateTrafficPolicyInstance</code> associates the resource record sets with a specified domain name (such as example.com) or subdomain name (such as www.example.com). Amazon Route 53 responds to DNS queries for the domain or subdomain name by using the resource record sets that <code>CreateTrafficPolicyInstance</code> created.</p>", "CreateTrafficPolicyVersion": "<p>Creates a new version of an existing traffic policy. When you create a new version of a traffic policy, you specify the ID of the traffic policy that you want to update and a JSON-formatted document that describes the new version. You use traffic policies to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com). You can create a maximum of 1000 versions of a traffic policy. If you reach the limit and need to create another version, you'll need to start a new traffic policy.</p>", "CreateVPCAssociationAuthorization": "<p>Authorizes the Amazon Web Services account that created a specified VPC to submit an <code>AssociateVPCWithHostedZone</code> request to associate the VPC with a specified hosted zone that was created by a different account. To submit a <code>CreateVPCAssociationAuthorization</code> request, you must use the account that created the hosted zone. After you authorize the association, use the account that created the VPC to submit an <code>AssociateVPCWithHostedZone</code> request.</p> <note> <p>If you want to associate multiple VPCs that you created by using one account with a hosted zone that you created by using a different account, you must submit one authorization request for each VPC.</p> </note>", "DeactivateKeySigningKey": "<p>Deactivates a key-signing key (KSK) so that it will not be used for signing by DNSSEC. This operation changes the KSK status to <code>INACTIVE</code>.</p>", @@ -46,7 +46,7 @@ "GetReusableDelegationSet": "<p>Retrieves information about a specified reusable delegation set, including the four name servers that are assigned to the delegation set.</p>", "GetReusableDelegationSetLimit": "<p>Gets the maximum number of hosted zones that you can associate with the specified reusable delegation set.</p> <p>For the default limit, see <a href=\"https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html\">Limits</a> in the <i>Amazon Route 53 Developer Guide</i>. To request a higher limit, <a href=\"https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-route53\">open a case</a>.</p>", "GetTrafficPolicy": "<p>Gets information about a specific traffic policy version.</p> <p>For information about how of deleting a traffic policy affects the response from <code>GetTrafficPolicy</code>, see <a href=\"https://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteTrafficPolicy.html\">DeleteTrafficPolicy</a>. </p>", - "GetTrafficPolicyInstance": "<p>Gets information about a specified traffic policy instance.</p> <note> <p> Use <code>GetTrafficPolicyInstance</code> with the <code>id</code> of new traffic policy instance to confirm that the <code>CreateTrafficPolicyInstance</code> or an <code>UpdateTrafficPolicyInstance</code> request completed successfully. For more information, see the <code>State</code> response element.</p> </note> <note> <p>In the Route 53 console, traffic policy instances are known as policy records.</p> </note>", + "GetTrafficPolicyInstance": "<p>Gets information about a specified traffic policy instance.</p> <note> <p>After you submit a <code>CreateTrafficPolicyInstance</code> or an <code>UpdateTrafficPolicyInstance</code> request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the <code>State</code> response element.</p> </note> <note> <p>In the Route 53 console, traffic policy instances are known as policy records.</p> </note>", "GetTrafficPolicyInstanceCount": "<p>Gets the number of traffic policy instances that are associated with the current Amazon Web Services account.</p>", "ListCidrBlocks": "<p>Returns a paginated list of location objects and their CIDR blocks.</p>", "ListCidrCollections": "<p>Returns a paginated list of CIDR collections in the Amazon Web Services account (metadata only).</p>", @@ -71,7 +71,7 @@ "UpdateHealthCheck": "<p>Updates an existing health check. Note that some values can't be updated. </p> <p>For more information about updating health checks, see <a href=\"https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html\">Creating, Updating, and Deleting Health Checks</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>", "UpdateHostedZoneComment": "<p>Updates the comment for a specified hosted zone.</p>", "UpdateTrafficPolicyComment": "<p>Updates the comment for a specified traffic policy version.</p>", - "UpdateTrafficPolicyInstance": "<note> <p>After you submit a <code>UpdateTrafficPolicyInstance</code> request, there's a brief delay while Route 53 creates the resource record sets that are specified in the traffic policy definition. Use <code>GetTrafficPolicyInstance</code> with the <code>id</code> of updated traffic policy instance confirm that the <code>UpdateTrafficPolicyInstance</code> request completed successfully. For more information, see the <code>State</code> response element.</p> </note> <p>Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.</p> <p>When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS queries for the root resource record set name (such as example.com) while it replaces one group of resource record sets with another. Route 53 performs the following operations:</p> <ol> <li> <p>Route 53 creates a new group of resource record sets based on the specified traffic policy. This is true regardless of how significant the differences are between the existing resource record sets and the new resource record sets. </p> </li> <li> <p>When all of the new resource record sets have been created, Route 53 starts to respond to DNS queries for the root resource record set name (such as example.com) by using the new resource record sets.</p> </li> <li> <p>Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.</p> </li> </ol>" + "UpdateTrafficPolicyInstance": "<p>Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.</p> <p>When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS queries for the root resource record set name (such as example.com) while it replaces one group of resource record sets with another. Route 53 performs the following operations:</p> <ol> <li> <p>Route 53 creates a new group of resource record sets based on the specified traffic policy. This is true regardless of how significant the differences are between the existing resource record sets and the new resource record sets. </p> </li> <li> <p>When all of the new resource record sets have been created, Route 53 starts to respond to DNS queries for the root resource record set name (such as example.com) by using the new resource record sets.</p> </li> <li> <p>Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.</p> </li> </ol>" }, "shapes": { "ARN": { diff --git a/models/apis/scheduler/2021-06-30/api-2.json b/models/apis/scheduler/2021-06-30/api-2.json index c527b47de57..71623ae74ec 100644 --- a/models/apis/scheduler/2021-06-30/api-2.json +++ b/models/apis/scheduler/2021-06-30/api-2.json @@ -219,6 +219,13 @@ } }, "shapes":{ + "ActionAfterCompletion":{ + "type":"string", + "enum":[ + "NONE", + "DELETE" + ] + }, "AssignPublicIp":{ "type":"string", "enum":[ @@ -315,6 +322,7 @@ "Target" ], "members":{ + "ActionAfterCompletion":{"shape":"ActionAfterCompletion"}, "ClientToken":{ "shape":"ClientToken", "idempotencyToken":true @@ -510,6 +518,7 @@ "GetScheduleOutput":{ "type":"structure", "members":{ + "ActionAfterCompletion":{"shape":"ActionAfterCompletion"}, "Arn":{"shape":"ScheduleArn"}, "CreationDate":{"shape":"CreationDate"}, "Description":{"shape":"Description"}, @@ -1114,6 +1123,7 @@ "Target" ], "members":{ + "ActionAfterCompletion":{"shape":"ActionAfterCompletion"}, "ClientToken":{ "shape":"ClientToken", "idempotencyToken":true diff --git a/models/apis/scheduler/2021-06-30/docs-2.json b/models/apis/scheduler/2021-06-30/docs-2.json index c369e3b3627..2fb68756bc8 100644 --- a/models/apis/scheduler/2021-06-30/docs-2.json +++ b/models/apis/scheduler/2021-06-30/docs-2.json @@ -16,6 +16,14 @@ "UpdateSchedule": "<p> Updates the specified schedule. When you call <code>UpdateSchedule</code>, EventBridge Scheduler uses all values, including empty values, specified in the request and overrides the existing schedule. This is by design. This means that if you do not set an optional field in your request, that field will be set to its system-default value after the update. </p> <p> Before calling this operation, we recommend that you call the <code>GetSchedule</code> API operation and make a note of all optional parameters for your <code>UpdateSchedule</code> call. </p>" }, "shapes": { + "ActionAfterCompletion": { + "base": null, + "refs": { + "CreateScheduleInput$ActionAfterCompletion": "<p>Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.</p>", + "GetScheduleOutput$ActionAfterCompletion": "<p>Indicates the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.</p>", + "UpdateScheduleInput$ActionAfterCompletion": "<p>Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.</p>" + } + }, "AssignPublicIp": { "base": null, "refs": { @@ -472,9 +480,9 @@ "ScheduleExpression": { "base": null, "refs": { - "CreateScheduleInput$ScheduleExpression": "<p> The expression that defines when the schedule runs. The following formats are supported. </p> <ul> <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li> <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li> <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li> </ul> <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p> <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p> <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p> <p> For more information and examples, see <a href=\"https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html\">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>", - "GetScheduleOutput$ScheduleExpression": "<p> The expression that defines when the schedule runs. The following formats are supported. </p> <ul> <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li> <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li> <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li> </ul> <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p> <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p> <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p> <p> For more information and examples, see <a href=\"https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html\">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>", - "UpdateScheduleInput$ScheduleExpression": "<p> The expression that defines when the schedule runs. The following formats are supported. </p> <ul> <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li> <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li> <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li> </ul> <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p> <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p> <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p> <p> For more information and examples, see <a href=\"https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html\">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>" + "CreateScheduleInput$ScheduleExpression": "<p> The expression that defines when the schedule runs. The following formats are supported. </p> <ul> <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li> <li> <p> <code>rate</code> expression - <code>rate(value unit)</code> </p> </li> <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li> </ul> <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p> <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p> <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p> <p> For more information and examples, see <a href=\"https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html\">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>", + "GetScheduleOutput$ScheduleExpression": "<p> The expression that defines when the schedule runs. The following formats are supported. </p> <ul> <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li> <li> <p> <code>rate</code> expression - <code>rate(value unit)</code> </p> </li> <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li> </ul> <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p> <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p> <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p> <p> For more information and examples, see <a href=\"https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html\">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>", + "UpdateScheduleInput$ScheduleExpression": "<p> The expression that defines when the schedule runs. The following formats are supported. </p> <ul> <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li> <li> <p> <code>rate</code> expression - <code>rate(value unit)</code> </p> </li> <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li> </ul> <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p> <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p> <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p> <p> For more information and examples, see <a href=\"https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html\">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>" } }, "ScheduleExpressionTimezone": { diff --git a/models/apis/scheduler/2021-06-30/endpoint-rule-set-1.json b/models/apis/scheduler/2021-06-30/endpoint-rule-set-1.json index 35335693868..4913426138f 100644 --- a/models/apis/scheduler/2021-06-30/endpoint-rule-set-1.json +++ b/models/apis/scheduler/2021-06-30/endpoint-rule-set-1.json @@ -3,7 +3,7 @@ "parameters": { "Region": { "builtIn": "AWS::Region", - "required": true, + "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "String" }, @@ -32,13 +32,12 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "isSet", "argv": [ { - "ref": "Region" + "ref": "Endpoint" } - ], - "assign": "PartitionResult" + ] } ], "type": "tree", @@ -46,14 +45,20 @@ { "conditions": [ { - "fn": "isSet", + "fn": "booleanEquals", "argv": [ { - "ref": "Endpoint" - } + "ref": "UseFIPS" + }, + true ] } ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], "type": "tree", "rules": [ { @@ -62,67 +67,42 @@ "fn": "booleanEquals", "argv": [ { - "ref": "UseFIPS" + "ref": "UseDualStack" }, true ] } ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" + "endpoint": { + "url": { + "ref": "Endpoint" }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ { "conditions": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", + "fn": "isSet", "argv": [ { - "ref": "UseDualStack" - }, - true + "ref": "Region" + } ] } ], @@ -131,168 +111,238 @@ { "conditions": [ { - "fn": "booleanEquals", + "fn": "aws.partition", "argv": [ - true, { - "fn": "getAttr", + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseFIPS" }, - "supportsFIPS" + true ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, + }, { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseDualStack" }, - "supportsDualStack" + true ] } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://scheduler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://scheduler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseFIPS" }, - "supportsFIPS" + true ] } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://scheduler-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://scheduler-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseDualStack" }, - "supportsDualStack" + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://scheduler.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } ] - } - ], - "type": "tree", - "rules": [ + }, { "conditions": [], - "endpoint": { - "url": "https://scheduler.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://scheduler.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } ] }, { "conditions": [], - "endpoint": { - "url": "https://scheduler.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 2f81ba3db98..aa5b95cb3f9 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -6152,6 +6152,7 @@ }, "emr-containers" : { "endpoints" : { + "af-south-1" : { }, "ap-east-1" : { }, "ap-northeast-1" : { }, "ap-northeast-2" : { }, @@ -7985,7 +7986,11 @@ "hostname" : "internetmonitor.ap-southeast-4.api.aws" }, "ca-central-1" : { - "hostname" : "internetmonitor.ca-central-1.api.aws" + "hostname" : "internetmonitor.ca-central-1.api.aws", + "variants" : [ { + "hostname" : "internetmonitor-fips.ca-central-1.api.aws", + "tags" : [ "fips" ] + } ] }, "eu-central-1" : { "hostname" : "internetmonitor.eu-central-1.api.aws" @@ -8021,16 +8026,32 @@ "hostname" : "internetmonitor.sa-east-1.api.aws" }, "us-east-1" : { - "hostname" : "internetmonitor.us-east-1.api.aws" + "hostname" : "internetmonitor.us-east-1.api.aws", + "variants" : [ { + "hostname" : "internetmonitor-fips.us-east-1.api.aws", + "tags" : [ "fips" ] + } ] }, "us-east-2" : { - "hostname" : "internetmonitor.us-east-2.api.aws" + "hostname" : "internetmonitor.us-east-2.api.aws", + "variants" : [ { + "hostname" : "internetmonitor-fips.us-east-2.api.aws", + "tags" : [ "fips" ] + } ] }, "us-west-1" : { - "hostname" : "internetmonitor.us-west-1.api.aws" + "hostname" : "internetmonitor.us-west-1.api.aws", + "variants" : [ { + "hostname" : "internetmonitor-fips.us-west-1.api.aws", + "tags" : [ "fips" ] + } ] }, "us-west-2" : { - "hostname" : "internetmonitor.us-west-2.api.aws" + "hostname" : "internetmonitor.us-west-2.api.aws", + "variants" : [ { + "hostname" : "internetmonitor-fips.us-west-2.api.aws", + "tags" : [ "fips" ] + } ] } } }, @@ -24040,11 +24061,24 @@ "deprecated" : true, "hostname" : "rbin-fips.us-iso-east-1.c2s.ic.gov" }, + "fips-us-iso-west-1" : { + "credentialScope" : { + "region" : "us-iso-west-1" + }, + "deprecated" : true, + "hostname" : "rbin-fips.us-iso-west-1.c2s.ic.gov" + }, "us-iso-east-1" : { "variants" : [ { "hostname" : "rbin-fips.us-iso-east-1.c2s.ic.gov", "tags" : [ "fips" ] } ] + }, + "us-iso-west-1" : { + "variants" : [ { + "hostname" : "rbin-fips.us-iso-west-1.c2s.ic.gov", + "tags" : [ "fips" ] + } ] } } }, diff --git a/service/amplifyuibuilder/api.go b/service/amplifyuibuilder/api.go index 865b2807d24..e1fe04bc4a8 100644 --- a/service/amplifyuibuilder/api.go +++ b/service/amplifyuibuilder/api.go @@ -146,7 +146,7 @@ func (c *AmplifyUIBuilder) CreateFormRequest(input *CreateFormInput) (req *reque // CreateForm API operation for AWS Amplify UI Builder. // -// Creates a new form for an Amplify. +// Creates a new form for an Amplify app. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2228,8 +2228,7 @@ func (c *AmplifyUIBuilder) StartCodegenJobRequest(input *StartCodegenJobInput) ( // StartCodegenJob API operation for AWS Amplify UI Builder. // -// Starts a code generation job for for a specified Amplify app and backend -// environment. +// Starts a code generation job for a specified Amplify app and backend environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2694,6 +2693,71 @@ func (s *ActionParameters) SetUrl(v *ComponentProperty) *ActionParameters { return s } +// Describes the API configuration for a code generation job. +type ApiConfiguration struct { + _ struct{} `type:"structure"` + + // The configuration for an application using DataStore APIs. + DataStoreConfig *DataStoreRenderConfig `locationName:"dataStoreConfig" type:"structure"` + + // The configuration for an application using GraphQL APIs. + GraphQLConfig *GraphQLRenderConfig `locationName:"graphQLConfig" type:"structure"` + + // The configuration for an application with no API being used. + NoApiConfig *NoApiRenderConfig `locationName:"noApiConfig" 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 ApiConfiguration) 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 ApiConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApiConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApiConfiguration"} + if s.GraphQLConfig != nil { + if err := s.GraphQLConfig.Validate(); err != nil { + invalidParams.AddNested("GraphQLConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataStoreConfig sets the DataStoreConfig field's value. +func (s *ApiConfiguration) SetDataStoreConfig(v *DataStoreRenderConfig) *ApiConfiguration { + s.DataStoreConfig = v + return s +} + +// SetGraphQLConfig sets the GraphQLConfig field's value. +func (s *ApiConfiguration) SetGraphQLConfig(v *GraphQLRenderConfig) *ApiConfiguration { + s.GraphQLConfig = v + return s +} + +// SetNoApiConfig sets the NoApiConfig field's value. +func (s *ApiConfiguration) SetNoApiConfig(v *NoApiRenderConfig) *ApiConfiguration { + s.NoApiConfig = v + return s +} + // Describes the feature flags that you can specify for a code generation job. type CodegenFeatureFlags struct { _ struct{} `type:"structure"` @@ -3199,7 +3263,7 @@ type CodegenJob struct { ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"` // Describes the configuration information for rendering the UI component associated - // the code generation job. + // with the code generation job. RenderConfig *CodegenJobRenderConfig `locationName:"renderConfig" type:"structure"` // The status of the code generation job. @@ -3461,7 +3525,7 @@ func (s *CodegenJobGenericDataSchema) SetNonModels(v map[string]*CodegenGenericD } // Describes the configuration information for rendering the UI component associated -// the code generation job. +// with the code generation job. type CodegenJobRenderConfig struct { _ struct{} `type:"structure"` @@ -3487,6 +3551,21 @@ func (s CodegenJobRenderConfig) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *CodegenJobRenderConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CodegenJobRenderConfig"} + if s.React != nil { + if err := s.React.Validate(); err != nil { + invalidParams.AddNested("React", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetReact sets the React field's value. func (s *CodegenJobRenderConfig) SetReact(v *ReactStartCodegenJobData) *CodegenJobRenderConfig { s.React = v @@ -5579,6 +5658,29 @@ func (s *CreateThemeOutput) SetEntity(v *Theme) *CreateThemeOutput { return s } +// Describes the DataStore configuration for an API for a code generation job. +type DataStoreRenderConfig 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 DataStoreRenderConfig) 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 DataStoreRenderConfig) GoString() string { + return s.String() +} + type DeleteComponentInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -8324,6 +8426,112 @@ func (s *GetThemeOutput) SetTheme(v *Theme) *GetThemeOutput { return s } +// Describes the GraphQL configuration for an API for a code generation job. +type GraphQLRenderConfig struct { + _ struct{} `type:"structure"` + + // The path to the GraphQL fragments file, relative to the component output + // directory. + // + // FragmentsFilePath is a required field + FragmentsFilePath *string `locationName:"fragmentsFilePath" type:"string" required:"true"` + + // The path to the GraphQL mutations file, relative to the component output + // directory. + // + // MutationsFilePath is a required field + MutationsFilePath *string `locationName:"mutationsFilePath" type:"string" required:"true"` + + // The path to the GraphQL queries file, relative to the component output directory. + // + // QueriesFilePath is a required field + QueriesFilePath *string `locationName:"queriesFilePath" type:"string" required:"true"` + + // The path to the GraphQL subscriptions file, relative to the component output + // directory. + // + // SubscriptionsFilePath is a required field + SubscriptionsFilePath *string `locationName:"subscriptionsFilePath" type:"string" required:"true"` + + // The path to the GraphQL types file, relative to the component output directory. + // + // TypesFilePath is a required field + TypesFilePath *string `locationName:"typesFilePath" 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 GraphQLRenderConfig) 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 GraphQLRenderConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GraphQLRenderConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GraphQLRenderConfig"} + if s.FragmentsFilePath == nil { + invalidParams.Add(request.NewErrParamRequired("FragmentsFilePath")) + } + if s.MutationsFilePath == nil { + invalidParams.Add(request.NewErrParamRequired("MutationsFilePath")) + } + if s.QueriesFilePath == nil { + invalidParams.Add(request.NewErrParamRequired("QueriesFilePath")) + } + if s.SubscriptionsFilePath == nil { + invalidParams.Add(request.NewErrParamRequired("SubscriptionsFilePath")) + } + if s.TypesFilePath == nil { + invalidParams.Add(request.NewErrParamRequired("TypesFilePath")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFragmentsFilePath sets the FragmentsFilePath field's value. +func (s *GraphQLRenderConfig) SetFragmentsFilePath(v string) *GraphQLRenderConfig { + s.FragmentsFilePath = &v + return s +} + +// SetMutationsFilePath sets the MutationsFilePath field's value. +func (s *GraphQLRenderConfig) SetMutationsFilePath(v string) *GraphQLRenderConfig { + s.MutationsFilePath = &v + return s +} + +// SetQueriesFilePath sets the QueriesFilePath field's value. +func (s *GraphQLRenderConfig) SetQueriesFilePath(v string) *GraphQLRenderConfig { + s.QueriesFilePath = &v + return s +} + +// SetSubscriptionsFilePath sets the SubscriptionsFilePath field's value. +func (s *GraphQLRenderConfig) SetSubscriptionsFilePath(v string) *GraphQLRenderConfig { + s.SubscriptionsFilePath = &v + return s +} + +// SetTypesFilePath sets the TypesFilePath field's value. +func (s *GraphQLRenderConfig) SetTypesFilePath(v string) *GraphQLRenderConfig { + s.TypesFilePath = &v + return s +} + // An internal error has occurred. Please retry your request. type InternalServerException struct { _ struct{} `type:"structure"` @@ -9049,6 +9257,29 @@ func (s *MutationActionSetStateParameter) SetSet(v *ComponentProperty) *Mutation return s } +// Describes the configuration for an application with no API being used. +type NoApiRenderConfig 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 NoApiRenderConfig) 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 NoApiRenderConfig) GoString() string { + return s.String() +} + // Stores information for generating Amplify DataStore queries. Use a Predicate // to retrieve a subset of the data in a collection. type Predicate struct { @@ -9302,6 +9533,9 @@ func (s PutMetadataFlagOutput) GoString() string { type ReactStartCodegenJobData struct { _ struct{} `type:"structure"` + // The API configuration for the code generation job. + ApiConfiguration *ApiConfiguration `locationName:"apiConfiguration" type:"structure"` + // Specifies whether the code generation job should render inline source maps. InlineSourceMap *bool `locationName:"inlineSourceMap" type:"boolean"` @@ -9337,6 +9571,27 @@ func (s ReactStartCodegenJobData) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReactStartCodegenJobData) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReactStartCodegenJobData"} + if s.ApiConfiguration != nil { + if err := s.ApiConfiguration.Validate(); err != nil { + invalidParams.AddNested("ApiConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApiConfiguration sets the ApiConfiguration field's value. +func (s *ReactStartCodegenJobData) SetApiConfiguration(v *ApiConfiguration) *ReactStartCodegenJobData { + s.ApiConfiguration = v + return s +} + // SetInlineSourceMap sets the InlineSourceMap field's value. func (s *ReactStartCodegenJobData) SetInlineSourceMap(v bool) *ReactStartCodegenJobData { s.InlineSourceMap = &v @@ -9951,6 +10206,11 @@ func (s *StartCodegenJobData) Validate() error { invalidParams.AddNested("GenericDataSchema", err.(request.ErrInvalidParams)) } } + if s.RenderConfig != nil { + if err := s.RenderConfig.Validate(); err != nil { + invalidParams.AddNested("RenderConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/autoscaling/api.go b/service/autoscaling/api.go index bfb77cd326b..9fda71468dd 100644 --- a/service/autoscaling/api.go +++ b/service/autoscaling/api.go @@ -7038,6 +7038,38 @@ func (s *Alarm) SetAlarmName(v string) *Alarm { return s } +// Specifies the CloudWatch alarm specification to use in an instance refresh. +type AlarmSpecification struct { + _ struct{} `type:"structure"` + + // The names of one or more CloudWatch alarms to monitor for the instance refresh. + Alarms []*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 AlarmSpecification) 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 AlarmSpecification) GoString() string { + return s.String() +} + +// SetAlarms sets the Alarms field's value. +func (s *AlarmSpecification) SetAlarms(v []*string) *AlarmSpecification { + s.Alarms = v + return s +} + type AttachInstancesInput struct { _ struct{} `type:"structure"` @@ -18744,8 +18776,13 @@ func (s RecordLifecycleActionHeartbeatOutput) GoString() string { type RefreshPreferences struct { _ struct{} `type:"structure"` + // (Optional) The CloudWatch alarm specification. CloudWatch alarms can be used + // to identify any issues and fail the operation if an alarm threshold is met. + AlarmSpecification *AlarmSpecification `type:"structure"` + // (Optional) Indicates whether to roll back the Auto Scaling group to its previous - // configuration if the instance refresh fails. The default is false. + // configuration if the instance refresh fails or a CloudWatch alarm threshold + // is met. The default is false. // // A rollback is not supported in the following situations: // @@ -18757,6 +18794,9 @@ type RefreshPreferences struct { // // * The Auto Scaling group uses the launch template's $Latest or $Default // version. + // + // For more information, see Undo changes with a rollback (https://docs.aws.amazon.com/autoscaling/ec2/userguide/instance-refresh-rollback.html) + // in the Amazon EC2 Auto Scaling User Guide. AutoRollback *bool `type:"boolean"` // (Optional) The amount of time, in seconds, to wait after a checkpoint before @@ -18869,6 +18909,12 @@ func (s RefreshPreferences) GoString() string { return s.String() } +// SetAlarmSpecification sets the AlarmSpecification field's value. +func (s *RefreshPreferences) SetAlarmSpecification(v *AlarmSpecification) *RefreshPreferences { + s.AlarmSpecification = v + return s +} + // SetAutoRollback sets the AutoRollback field's value. func (s *RefreshPreferences) SetAutoRollback(v bool) *RefreshPreferences { s.AutoRollback = &v @@ -19961,6 +20007,8 @@ type StartInstanceRefreshInput struct { // // * Checkpoints // + // * CloudWatch alarms + // // * Skip matching Preferences *RefreshPreferences `type:"structure"` diff --git a/service/autoscaling/examples_test.go b/service/autoscaling/examples_test.go index 9736f51068d..7cac4c0f7ae 100644 --- a/service/autoscaling/examples_test.go +++ b/service/autoscaling/examples_test.go @@ -228,10 +228,11 @@ func ExampleAutoScaling_CompleteLifecycleAction_shared00() { func ExampleAutoScaling_CreateAutoScalingGroup_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.CreateAutoScalingGroupInput{ - AutoScalingGroupName: aws.String("my-auto-scaling-group"), + AutoScalingGroupName: aws.String("my-auto-scaling-group"), + DefaultInstanceWarmup: aws.Int64(120), LaunchTemplate: &autoscaling.LaunchTemplateSpecification{ LaunchTemplateName: aws.String("my-template-for-auto-scaling"), - Version: aws.String("$Latest"), + Version: aws.String("$Default"), }, MaxInstanceLifetime: aws.Int64(2592000), MaxSize: aws.Int64(3), @@ -275,7 +276,7 @@ func ExampleAutoScaling_CreateAutoScalingGroup_shared01() { HealthCheckType: aws.String("ELB"), LaunchTemplate: &autoscaling.LaunchTemplateSpecification{ LaunchTemplateName: aws.String("my-template-for-auto-scaling"), - Version: aws.String("$Latest"), + Version: aws.String("$Default"), }, MaxSize: aws.Int64(3), MinSize: aws.Int64(1), @@ -326,19 +327,19 @@ func ExampleAutoScaling_CreateAutoScalingGroup_shared02() { InstancesDistribution: &autoscaling.InstancesDistribution{ OnDemandBaseCapacity: aws.Int64(1), OnDemandPercentageAboveBaseCapacity: aws.Int64(50), - SpotAllocationStrategy: aws.String("capacity-optimized"), + SpotAllocationStrategy: aws.String("price-capacity-optimized"), }, LaunchTemplate: &autoscaling.LaunchTemplate{ LaunchTemplateSpecification: &autoscaling.LaunchTemplateSpecification{ LaunchTemplateName: aws.String("my-launch-template-for-x86"), - Version: aws.String("$Latest"), + Version: aws.String("$Default"), }, Overrides: []*autoscaling.LaunchTemplateOverrides{ { InstanceType: aws.String("c6g.large"), LaunchTemplateSpecification: &autoscaling.LaunchTemplateSpecification{ LaunchTemplateName: aws.String("my-launch-template-for-arm"), - Version: aws.String("$Latest"), + Version: aws.String("$Default"), }, }, { @@ -379,6 +380,74 @@ func ExampleAutoScaling_CreateAutoScalingGroup_shared02() { fmt.Println(result) } +// To create an Auto Scaling group using attribute-based instance type selection +// This example creates an Auto Scaling group using attribute-based instance type selection. +// It requires the instance types to have a minimum of four vCPUs and a maximum of eight +// vCPUs, a minimum of 16,384 MiB of memory, and an Intel manufactured CPU. +func ExampleAutoScaling_CreateAutoScalingGroup_shared03() { + svc := autoscaling.New(session.New()) + input := &autoscaling.CreateAutoScalingGroupInput{ + AutoScalingGroupName: aws.String("my-asg"), + DesiredCapacity: aws.Int64(4), + MaxSize: aws.Int64(100), + MinSize: aws.Int64(0), + MixedInstancesPolicy: &autoscaling.MixedInstancesPolicy{ + InstancesDistribution: &autoscaling.InstancesDistribution{ + OnDemandPercentageAboveBaseCapacity: aws.Int64(50), + SpotAllocationStrategy: aws.String("price-capacity-optimized"), + }, + LaunchTemplate: &autoscaling.LaunchTemplate{ + LaunchTemplateSpecification: &autoscaling.LaunchTemplateSpecification{ + LaunchTemplateName: aws.String("my-template-for-auto-scaling"), + Version: aws.String("$Default"), + }, + Overrides: []*autoscaling.LaunchTemplateOverrides{ + { + InstanceRequirements: &autoscaling.InstanceRequirements{ + CpuManufacturers: []*string{ + aws.String("intel"), + }, + MemoryMiB: &autoscaling.MemoryMiBRequest{ + Min: aws.Int64(16384), + }, + VCpuCount: &autoscaling.VCpuCountRequest{ + Max: aws.Int64(8), + Min: aws.Int64(4), + }, + }, + }, + }, + }, + }, + VPCZoneIdentifier: aws.String("subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE"), + } + + result, err := svc.CreateAutoScalingGroup(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case autoscaling.ErrCodeAlreadyExistsFault: + fmt.Println(autoscaling.ErrCodeAlreadyExistsFault, aerr.Error()) + case autoscaling.ErrCodeLimitExceededFault: + fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) + case autoscaling.ErrCodeResourceContentionFault: + fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) + case autoscaling.ErrCodeServiceLinkedRoleFailure: + fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + // To create a launch configuration // This example creates a launch configuration. func ExampleAutoScaling_CreateLaunchConfiguration_shared00() { @@ -1984,9 +2053,14 @@ func ExampleAutoScaling_StartInstanceRefresh_shared00() { }, }, Preferences: &autoscaling.RefreshPreferences{ - InstanceWarmup: aws.Int64(400), + AlarmSpecification: &autoscaling.AlarmSpecification{ + Alarms: []*string{ + aws.String("my-alarm"), + }, + }, + AutoRollback: aws.Bool(true), + InstanceWarmup: aws.Int64(200), MinHealthyPercentage: aws.Int64(90), - SkipMatching: aws.Bool(true), }, } diff --git a/service/cleanrooms/api.go b/service/cleanrooms/api.go index e125d61c279..efd7ab0e598 100644 --- a/service/cleanrooms/api.go +++ b/service/cleanrooms/api.go @@ -13,6 +13,98 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restjson" ) +const opBatchGetCollaborationAnalysisTemplate = "BatchGetCollaborationAnalysisTemplate" + +// BatchGetCollaborationAnalysisTemplateRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetCollaborationAnalysisTemplate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchGetCollaborationAnalysisTemplate for more information on using the BatchGetCollaborationAnalysisTemplate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the BatchGetCollaborationAnalysisTemplateRequest method. +// req, resp := client.BatchGetCollaborationAnalysisTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/BatchGetCollaborationAnalysisTemplate +func (c *CleanRooms) BatchGetCollaborationAnalysisTemplateRequest(input *BatchGetCollaborationAnalysisTemplateInput) (req *request.Request, output *BatchGetCollaborationAnalysisTemplateOutput) { + op := &request.Operation{ + Name: opBatchGetCollaborationAnalysisTemplate, + HTTPMethod: "POST", + HTTPPath: "/collaborations/{collaborationIdentifier}/batch-analysistemplates", + } + + if input == nil { + input = &BatchGetCollaborationAnalysisTemplateInput{} + } + + output = &BatchGetCollaborationAnalysisTemplateOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetCollaborationAnalysisTemplate API operation for AWS Clean Rooms Service. +// +// Retrieves multiple analysis templates within a collaboration by their Amazon +// Resource Names (ARNs). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Clean Rooms Service's +// API operation BatchGetCollaborationAnalysisTemplate for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Request references a resource which does not exist. +// +// - InternalServerException +// Unexpected error during processing of request. +// +// - ValidationException +// The input fails to satisfy the specified constraints. +// +// - ThrottlingException +// Request was denied due to request throttling. +// +// - AccessDeniedException +// Caller does not have sufficient access to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/BatchGetCollaborationAnalysisTemplate +func (c *CleanRooms) BatchGetCollaborationAnalysisTemplate(input *BatchGetCollaborationAnalysisTemplateInput) (*BatchGetCollaborationAnalysisTemplateOutput, error) { + req, out := c.BatchGetCollaborationAnalysisTemplateRequest(input) + return out, req.Send() +} + +// BatchGetCollaborationAnalysisTemplateWithContext is the same as BatchGetCollaborationAnalysisTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See BatchGetCollaborationAnalysisTemplate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CleanRooms) BatchGetCollaborationAnalysisTemplateWithContext(ctx aws.Context, input *BatchGetCollaborationAnalysisTemplateInput, opts ...request.Option) (*BatchGetCollaborationAnalysisTemplateOutput, error) { + req, out := c.BatchGetCollaborationAnalysisTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opBatchGetSchema = "BatchGetSchema" // BatchGetSchemaRequest generates a "aws/request.Request" representing the @@ -104,6 +196,103 @@ func (c *CleanRooms) BatchGetSchemaWithContext(ctx aws.Context, input *BatchGetS return out, req.Send() } +const opCreateAnalysisTemplate = "CreateAnalysisTemplate" + +// CreateAnalysisTemplateRequest generates a "aws/request.Request" representing the +// client's request for the CreateAnalysisTemplate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateAnalysisTemplate for more information on using the CreateAnalysisTemplate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateAnalysisTemplateRequest method. +// req, resp := client.CreateAnalysisTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/CreateAnalysisTemplate +func (c *CleanRooms) CreateAnalysisTemplateRequest(input *CreateAnalysisTemplateInput) (req *request.Request, output *CreateAnalysisTemplateOutput) { + op := &request.Operation{ + Name: opCreateAnalysisTemplate, + HTTPMethod: "POST", + HTTPPath: "/memberships/{membershipIdentifier}/analysistemplates", + } + + if input == nil { + input = &CreateAnalysisTemplateInput{} + } + + output = &CreateAnalysisTemplateOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateAnalysisTemplate API operation for AWS Clean Rooms Service. +// +// Creates a new analysis template. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Clean Rooms Service's +// API operation CreateAnalysisTemplate for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Updating or deleting a resource can cause an inconsistent state. +// +// - ServiceQuotaExceededException +// Request denied because service quota has been exceeded. +// +// - ResourceNotFoundException +// Request references a resource which does not exist. +// +// - InternalServerException +// Unexpected error during processing of request. +// +// - ValidationException +// The input fails to satisfy the specified constraints. +// +// - ThrottlingException +// Request was denied due to request throttling. +// +// - AccessDeniedException +// Caller does not have sufficient access to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/CreateAnalysisTemplate +func (c *CleanRooms) CreateAnalysisTemplate(input *CreateAnalysisTemplateInput) (*CreateAnalysisTemplateOutput, error) { + req, out := c.CreateAnalysisTemplateRequest(input) + return out, req.Send() +} + +// CreateAnalysisTemplateWithContext is the same as CreateAnalysisTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See CreateAnalysisTemplate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CleanRooms) CreateAnalysisTemplateWithContext(ctx aws.Context, input *CreateAnalysisTemplateInput, opts ...request.Option) (*CreateAnalysisTemplateOutput, error) { + req, out := c.CreateAnalysisTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateCollaboration = "CreateCollaboration" // CreateCollaborationRequest generates a "aws/request.Request" representing the @@ -583,6 +772,98 @@ func (c *CleanRooms) CreateMembershipWithContext(ctx aws.Context, input *CreateM return out, req.Send() } +const opDeleteAnalysisTemplate = "DeleteAnalysisTemplate" + +// DeleteAnalysisTemplateRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAnalysisTemplate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteAnalysisTemplate for more information on using the DeleteAnalysisTemplate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteAnalysisTemplateRequest method. +// req, resp := client.DeleteAnalysisTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/DeleteAnalysisTemplate +func (c *CleanRooms) DeleteAnalysisTemplateRequest(input *DeleteAnalysisTemplateInput) (req *request.Request, output *DeleteAnalysisTemplateOutput) { + op := &request.Operation{ + Name: opDeleteAnalysisTemplate, + HTTPMethod: "DELETE", + HTTPPath: "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}", + } + + if input == nil { + input = &DeleteAnalysisTemplateInput{} + } + + output = &DeleteAnalysisTemplateOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteAnalysisTemplate API operation for AWS Clean Rooms Service. +// +// Deletes an analysis template. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Clean Rooms Service's +// API operation DeleteAnalysisTemplate for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Request references a resource which does not exist. +// +// - InternalServerException +// Unexpected error during processing of request. +// +// - ValidationException +// The input fails to satisfy the specified constraints. +// +// - ThrottlingException +// Request was denied due to request throttling. +// +// - AccessDeniedException +// Caller does not have sufficient access to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/DeleteAnalysisTemplate +func (c *CleanRooms) DeleteAnalysisTemplate(input *DeleteAnalysisTemplateInput) (*DeleteAnalysisTemplateOutput, error) { + req, out := c.DeleteAnalysisTemplateRequest(input) + return out, req.Send() +} + +// DeleteAnalysisTemplateWithContext is the same as DeleteAnalysisTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteAnalysisTemplate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CleanRooms) DeleteAnalysisTemplateWithContext(ctx aws.Context, input *DeleteAnalysisTemplateInput, opts ...request.Option) (*DeleteAnalysisTemplateOutput, error) { + req, out := c.DeleteAnalysisTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteCollaboration = "DeleteCollaboration" // DeleteCollaborationRequest generates a "aws/request.Request" representing the @@ -1150,60 +1431,63 @@ func (c *CleanRooms) DeleteMembershipWithContext(ctx aws.Context, input *DeleteM return out, req.Send() } -const opGetCollaboration = "GetCollaboration" +const opGetAnalysisTemplate = "GetAnalysisTemplate" -// GetCollaborationRequest generates a "aws/request.Request" representing the -// client's request for the GetCollaboration operation. The "output" return +// GetAnalysisTemplateRequest generates a "aws/request.Request" representing the +// client's request for the GetAnalysisTemplate operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetCollaboration for more information on using the GetCollaboration +// See GetAnalysisTemplate for more information on using the GetAnalysisTemplate // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetCollaborationRequest method. -// req, resp := client.GetCollaborationRequest(params) +// // Example sending a request using the GetAnalysisTemplateRequest method. +// req, resp := client.GetAnalysisTemplateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/GetCollaboration -func (c *CleanRooms) GetCollaborationRequest(input *GetCollaborationInput) (req *request.Request, output *GetCollaborationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/GetAnalysisTemplate +func (c *CleanRooms) GetAnalysisTemplateRequest(input *GetAnalysisTemplateInput) (req *request.Request, output *GetAnalysisTemplateOutput) { op := &request.Operation{ - Name: opGetCollaboration, + Name: opGetAnalysisTemplate, HTTPMethod: "GET", - HTTPPath: "/collaborations/{collaborationIdentifier}", + HTTPPath: "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}", } if input == nil { - input = &GetCollaborationInput{} + input = &GetAnalysisTemplateInput{} } - output = &GetCollaborationOutput{} + output = &GetAnalysisTemplateOutput{} req = c.newRequest(op, input, output) return } -// GetCollaboration API operation for AWS Clean Rooms Service. +// GetAnalysisTemplate API operation for AWS Clean Rooms Service. // -// Returns metadata about a collaboration. +// Retrieves an analysis template. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation GetCollaboration for usage and error information. +// API operation GetAnalysisTemplate for usage and error information. // // Returned Error Types: // +// - ResourceNotFoundException +// Request references a resource which does not exist. +// // - InternalServerException // Unexpected error during processing of request. // @@ -1216,56 +1500,235 @@ func (c *CleanRooms) GetCollaborationRequest(input *GetCollaborationInput) (req // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/GetCollaboration -func (c *CleanRooms) GetCollaboration(input *GetCollaborationInput) (*GetCollaborationOutput, error) { - req, out := c.GetCollaborationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/GetAnalysisTemplate +func (c *CleanRooms) GetAnalysisTemplate(input *GetAnalysisTemplateInput) (*GetAnalysisTemplateOutput, error) { + req, out := c.GetAnalysisTemplateRequest(input) return out, req.Send() } -// GetCollaborationWithContext is the same as GetCollaboration with the addition of +// GetAnalysisTemplateWithContext is the same as GetAnalysisTemplate with the addition of // the ability to pass a context and additional request options. // -// See GetCollaboration for details on how to use this API operation. +// See GetAnalysisTemplate for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) GetCollaborationWithContext(ctx aws.Context, input *GetCollaborationInput, opts ...request.Option) (*GetCollaborationOutput, error) { - req, out := c.GetCollaborationRequest(input) +func (c *CleanRooms) GetAnalysisTemplateWithContext(ctx aws.Context, input *GetAnalysisTemplateInput, opts ...request.Option) (*GetAnalysisTemplateOutput, error) { + req, out := c.GetAnalysisTemplateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetConfiguredTable = "GetConfiguredTable" +const opGetCollaboration = "GetCollaboration" -// GetConfiguredTableRequest generates a "aws/request.Request" representing the -// client's request for the GetConfiguredTable operation. The "output" return +// GetCollaborationRequest generates a "aws/request.Request" representing the +// client's request for the GetCollaboration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetConfiguredTable for more information on using the GetConfiguredTable +// See GetCollaboration for more information on using the GetCollaboration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetConfiguredTableRequest method. -// req, resp := client.GetConfiguredTableRequest(params) +// // Example sending a request using the GetCollaborationRequest method. +// req, resp := client.GetCollaborationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/GetConfiguredTable -func (c *CleanRooms) GetConfiguredTableRequest(input *GetConfiguredTableInput) (req *request.Request, output *GetConfiguredTableOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/GetCollaboration +func (c *CleanRooms) GetCollaborationRequest(input *GetCollaborationInput) (req *request.Request, output *GetCollaborationOutput) { op := &request.Operation{ - Name: opGetConfiguredTable, + Name: opGetCollaboration, + HTTPMethod: "GET", + HTTPPath: "/collaborations/{collaborationIdentifier}", + } + + if input == nil { + input = &GetCollaborationInput{} + } + + output = &GetCollaborationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCollaboration API operation for AWS Clean Rooms Service. +// +// Returns metadata about a collaboration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Clean Rooms Service's +// API operation GetCollaboration for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// Unexpected error during processing of request. +// +// - ValidationException +// The input fails to satisfy the specified constraints. +// +// - ThrottlingException +// Request was denied due to request throttling. +// +// - AccessDeniedException +// Caller does not have sufficient access to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/GetCollaboration +func (c *CleanRooms) GetCollaboration(input *GetCollaborationInput) (*GetCollaborationOutput, error) { + req, out := c.GetCollaborationRequest(input) + return out, req.Send() +} + +// GetCollaborationWithContext is the same as GetCollaboration with the addition of +// the ability to pass a context and additional request options. +// +// See GetCollaboration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CleanRooms) GetCollaborationWithContext(ctx aws.Context, input *GetCollaborationInput, opts ...request.Option) (*GetCollaborationOutput, error) { + req, out := c.GetCollaborationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetCollaborationAnalysisTemplate = "GetCollaborationAnalysisTemplate" + +// GetCollaborationAnalysisTemplateRequest generates a "aws/request.Request" representing the +// client's request for the GetCollaborationAnalysisTemplate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetCollaborationAnalysisTemplate for more information on using the GetCollaborationAnalysisTemplate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetCollaborationAnalysisTemplateRequest method. +// req, resp := client.GetCollaborationAnalysisTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/GetCollaborationAnalysisTemplate +func (c *CleanRooms) GetCollaborationAnalysisTemplateRequest(input *GetCollaborationAnalysisTemplateInput) (req *request.Request, output *GetCollaborationAnalysisTemplateOutput) { + op := &request.Operation{ + Name: opGetCollaborationAnalysisTemplate, + HTTPMethod: "GET", + HTTPPath: "/collaborations/{collaborationIdentifier}/analysistemplates/{analysisTemplateArn}", + } + + if input == nil { + input = &GetCollaborationAnalysisTemplateInput{} + } + + output = &GetCollaborationAnalysisTemplateOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCollaborationAnalysisTemplate API operation for AWS Clean Rooms Service. +// +// Retrieves an analysis template within a collaboration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Clean Rooms Service's +// API operation GetCollaborationAnalysisTemplate for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Request references a resource which does not exist. +// +// - InternalServerException +// Unexpected error during processing of request. +// +// - ValidationException +// The input fails to satisfy the specified constraints. +// +// - ThrottlingException +// Request was denied due to request throttling. +// +// - AccessDeniedException +// Caller does not have sufficient access to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/GetCollaborationAnalysisTemplate +func (c *CleanRooms) GetCollaborationAnalysisTemplate(input *GetCollaborationAnalysisTemplateInput) (*GetCollaborationAnalysisTemplateOutput, error) { + req, out := c.GetCollaborationAnalysisTemplateRequest(input) + return out, req.Send() +} + +// GetCollaborationAnalysisTemplateWithContext is the same as GetCollaborationAnalysisTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See GetCollaborationAnalysisTemplate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CleanRooms) GetCollaborationAnalysisTemplateWithContext(ctx aws.Context, input *GetCollaborationAnalysisTemplateInput, opts ...request.Option) (*GetCollaborationAnalysisTemplateOutput, error) { + req, out := c.GetCollaborationAnalysisTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetConfiguredTable = "GetConfiguredTable" + +// GetConfiguredTableRequest generates a "aws/request.Request" representing the +// client's request for the GetConfiguredTable operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetConfiguredTable for more information on using the GetConfiguredTable +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetConfiguredTableRequest method. +// req, resp := client.GetConfiguredTableRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/GetConfiguredTable +func (c *CleanRooms) GetConfiguredTableRequest(input *GetConfiguredTableInput) (req *request.Request, output *GetConfiguredTableOutput) { + op := &request.Operation{ + Name: opGetConfiguredTable, HTTPMethod: "GET", HTTPPath: "/configuredTables/{configuredTableIdentifier}", } @@ -1875,36 +2338,36 @@ func (c *CleanRooms) GetSchemaAnalysisRuleWithContext(ctx aws.Context, input *Ge return out, req.Send() } -const opListCollaborations = "ListCollaborations" +const opListAnalysisTemplates = "ListAnalysisTemplates" -// ListCollaborationsRequest generates a "aws/request.Request" representing the -// client's request for the ListCollaborations operation. The "output" return +// ListAnalysisTemplatesRequest generates a "aws/request.Request" representing the +// client's request for the ListAnalysisTemplates operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListCollaborations for more information on using the ListCollaborations +// See ListAnalysisTemplates for more information on using the ListAnalysisTemplates // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListCollaborationsRequest method. -// req, resp := client.ListCollaborationsRequest(params) +// // Example sending a request using the ListAnalysisTemplatesRequest method. +// req, resp := client.ListAnalysisTemplatesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListCollaborations -func (c *CleanRooms) ListCollaborationsRequest(input *ListCollaborationsInput) (req *request.Request, output *ListCollaborationsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListAnalysisTemplates +func (c *CleanRooms) ListAnalysisTemplatesRequest(input *ListAnalysisTemplatesInput) (req *request.Request, output *ListAnalysisTemplatesOutput) { op := &request.Operation{ - Name: opListCollaborations, + Name: opListAnalysisTemplates, HTTPMethod: "GET", - HTTPPath: "/collaborations", + HTTPPath: "/memberships/{membershipIdentifier}/analysistemplates", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -1914,27 +2377,30 @@ func (c *CleanRooms) ListCollaborationsRequest(input *ListCollaborationsInput) ( } if input == nil { - input = &ListCollaborationsInput{} + input = &ListAnalysisTemplatesInput{} } - output = &ListCollaborationsOutput{} + output = &ListAnalysisTemplatesOutput{} req = c.newRequest(op, input, output) return } -// ListCollaborations API operation for AWS Clean Rooms Service. +// ListAnalysisTemplates API operation for AWS Clean Rooms Service. // -// Lists collaborations the caller owns, is active in, or has been invited to. +// Lists analysis templates that the caller owns. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation ListCollaborations for usage and error information. +// API operation ListAnalysisTemplates for usage and error information. // // Returned Error Types: // +// - ResourceNotFoundException +// Request references a resource which does not exist. +// // - InternalServerException // Unexpected error during processing of request. // @@ -1947,64 +2413,64 @@ func (c *CleanRooms) ListCollaborationsRequest(input *ListCollaborationsInput) ( // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListCollaborations -func (c *CleanRooms) ListCollaborations(input *ListCollaborationsInput) (*ListCollaborationsOutput, error) { - req, out := c.ListCollaborationsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListAnalysisTemplates +func (c *CleanRooms) ListAnalysisTemplates(input *ListAnalysisTemplatesInput) (*ListAnalysisTemplatesOutput, error) { + req, out := c.ListAnalysisTemplatesRequest(input) return out, req.Send() } -// ListCollaborationsWithContext is the same as ListCollaborations with the addition of +// ListAnalysisTemplatesWithContext is the same as ListAnalysisTemplates with the addition of // the ability to pass a context and additional request options. // -// See ListCollaborations for details on how to use this API operation. +// See ListAnalysisTemplates for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) ListCollaborationsWithContext(ctx aws.Context, input *ListCollaborationsInput, opts ...request.Option) (*ListCollaborationsOutput, error) { - req, out := c.ListCollaborationsRequest(input) +func (c *CleanRooms) ListAnalysisTemplatesWithContext(ctx aws.Context, input *ListAnalysisTemplatesInput, opts ...request.Option) (*ListAnalysisTemplatesOutput, error) { + req, out := c.ListAnalysisTemplatesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListCollaborationsPages iterates over the pages of a ListCollaborations operation, +// ListAnalysisTemplatesPages iterates over the pages of a ListAnalysisTemplates operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListCollaborations method for more information on how to use this operation. +// See ListAnalysisTemplates 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 ListCollaborations operation. +// // Example iterating over at most 3 pages of a ListAnalysisTemplates operation. // pageNum := 0 -// err := client.ListCollaborationsPages(params, -// func(page *cleanrooms.ListCollaborationsOutput, lastPage bool) bool { +// err := client.ListAnalysisTemplatesPages(params, +// func(page *cleanrooms.ListAnalysisTemplatesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *CleanRooms) ListCollaborationsPages(input *ListCollaborationsInput, fn func(*ListCollaborationsOutput, bool) bool) error { - return c.ListCollaborationsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *CleanRooms) ListAnalysisTemplatesPages(input *ListAnalysisTemplatesInput, fn func(*ListAnalysisTemplatesOutput, bool) bool) error { + return c.ListAnalysisTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListCollaborationsPagesWithContext same as ListCollaborationsPages except +// ListAnalysisTemplatesPagesWithContext same as ListAnalysisTemplatesPages 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 *CleanRooms) ListCollaborationsPagesWithContext(ctx aws.Context, input *ListCollaborationsInput, fn func(*ListCollaborationsOutput, bool) bool, opts ...request.Option) error { +func (c *CleanRooms) ListAnalysisTemplatesPagesWithContext(ctx aws.Context, input *ListAnalysisTemplatesInput, fn func(*ListAnalysisTemplatesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListCollaborationsInput + var inCpy *ListAnalysisTemplatesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListCollaborationsRequest(inCpy) + req, _ := c.ListAnalysisTemplatesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2012,7 +2478,7 @@ func (c *CleanRooms) ListCollaborationsPagesWithContext(ctx aws.Context, input * } for p.Next() { - if !fn(p.Page().(*ListCollaborationsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListAnalysisTemplatesOutput), !p.HasNextPage()) { break } } @@ -2020,36 +2486,36 @@ func (c *CleanRooms) ListCollaborationsPagesWithContext(ctx aws.Context, input * return p.Err() } -const opListConfiguredTableAssociations = "ListConfiguredTableAssociations" +const opListCollaborationAnalysisTemplates = "ListCollaborationAnalysisTemplates" -// ListConfiguredTableAssociationsRequest generates a "aws/request.Request" representing the -// client's request for the ListConfiguredTableAssociations operation. The "output" return +// ListCollaborationAnalysisTemplatesRequest generates a "aws/request.Request" representing the +// client's request for the ListCollaborationAnalysisTemplates operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListConfiguredTableAssociations for more information on using the ListConfiguredTableAssociations +// See ListCollaborationAnalysisTemplates for more information on using the ListCollaborationAnalysisTemplates // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListConfiguredTableAssociationsRequest method. -// req, resp := client.ListConfiguredTableAssociationsRequest(params) +// // Example sending a request using the ListCollaborationAnalysisTemplatesRequest method. +// req, resp := client.ListCollaborationAnalysisTemplatesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListConfiguredTableAssociations -func (c *CleanRooms) ListConfiguredTableAssociationsRequest(input *ListConfiguredTableAssociationsInput) (req *request.Request, output *ListConfiguredTableAssociationsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListCollaborationAnalysisTemplates +func (c *CleanRooms) ListCollaborationAnalysisTemplatesRequest(input *ListCollaborationAnalysisTemplatesInput) (req *request.Request, output *ListCollaborationAnalysisTemplatesOutput) { op := &request.Operation{ - Name: opListConfiguredTableAssociations, + Name: opListCollaborationAnalysisTemplates, HTTPMethod: "GET", - HTTPPath: "/memberships/{membershipIdentifier}/configuredTableAssociations", + HTTPPath: "/collaborations/{collaborationIdentifier}/analysistemplates", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -2059,24 +2525,24 @@ func (c *CleanRooms) ListConfiguredTableAssociationsRequest(input *ListConfigure } if input == nil { - input = &ListConfiguredTableAssociationsInput{} + input = &ListCollaborationAnalysisTemplatesInput{} } - output = &ListConfiguredTableAssociationsOutput{} + output = &ListCollaborationAnalysisTemplatesOutput{} req = c.newRequest(op, input, output) return } -// ListConfiguredTableAssociations API operation for AWS Clean Rooms Service. +// ListCollaborationAnalysisTemplates API operation for AWS Clean Rooms Service. // -// Lists configured table associations for a membership. +// Lists analysis templates within a collaboration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation ListConfiguredTableAssociations for usage and error information. +// API operation ListCollaborationAnalysisTemplates for usage and error information. // // Returned Error Types: // @@ -2095,64 +2561,64 @@ func (c *CleanRooms) ListConfiguredTableAssociationsRequest(input *ListConfigure // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListConfiguredTableAssociations -func (c *CleanRooms) ListConfiguredTableAssociations(input *ListConfiguredTableAssociationsInput) (*ListConfiguredTableAssociationsOutput, error) { - req, out := c.ListConfiguredTableAssociationsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListCollaborationAnalysisTemplates +func (c *CleanRooms) ListCollaborationAnalysisTemplates(input *ListCollaborationAnalysisTemplatesInput) (*ListCollaborationAnalysisTemplatesOutput, error) { + req, out := c.ListCollaborationAnalysisTemplatesRequest(input) return out, req.Send() } -// ListConfiguredTableAssociationsWithContext is the same as ListConfiguredTableAssociations with the addition of +// ListCollaborationAnalysisTemplatesWithContext is the same as ListCollaborationAnalysisTemplates with the addition of // the ability to pass a context and additional request options. // -// See ListConfiguredTableAssociations for details on how to use this API operation. +// See ListCollaborationAnalysisTemplates for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) ListConfiguredTableAssociationsWithContext(ctx aws.Context, input *ListConfiguredTableAssociationsInput, opts ...request.Option) (*ListConfiguredTableAssociationsOutput, error) { - req, out := c.ListConfiguredTableAssociationsRequest(input) +func (c *CleanRooms) ListCollaborationAnalysisTemplatesWithContext(ctx aws.Context, input *ListCollaborationAnalysisTemplatesInput, opts ...request.Option) (*ListCollaborationAnalysisTemplatesOutput, error) { + req, out := c.ListCollaborationAnalysisTemplatesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListConfiguredTableAssociationsPages iterates over the pages of a ListConfiguredTableAssociations operation, +// ListCollaborationAnalysisTemplatesPages iterates over the pages of a ListCollaborationAnalysisTemplates operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListConfiguredTableAssociations method for more information on how to use this operation. +// See ListCollaborationAnalysisTemplates 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 ListConfiguredTableAssociations operation. +// // Example iterating over at most 3 pages of a ListCollaborationAnalysisTemplates operation. // pageNum := 0 -// err := client.ListConfiguredTableAssociationsPages(params, -// func(page *cleanrooms.ListConfiguredTableAssociationsOutput, lastPage bool) bool { +// err := client.ListCollaborationAnalysisTemplatesPages(params, +// func(page *cleanrooms.ListCollaborationAnalysisTemplatesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *CleanRooms) ListConfiguredTableAssociationsPages(input *ListConfiguredTableAssociationsInput, fn func(*ListConfiguredTableAssociationsOutput, bool) bool) error { - return c.ListConfiguredTableAssociationsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *CleanRooms) ListCollaborationAnalysisTemplatesPages(input *ListCollaborationAnalysisTemplatesInput, fn func(*ListCollaborationAnalysisTemplatesOutput, bool) bool) error { + return c.ListCollaborationAnalysisTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListConfiguredTableAssociationsPagesWithContext same as ListConfiguredTableAssociationsPages except +// ListCollaborationAnalysisTemplatesPagesWithContext same as ListCollaborationAnalysisTemplatesPages 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 *CleanRooms) ListConfiguredTableAssociationsPagesWithContext(ctx aws.Context, input *ListConfiguredTableAssociationsInput, fn func(*ListConfiguredTableAssociationsOutput, bool) bool, opts ...request.Option) error { +func (c *CleanRooms) ListCollaborationAnalysisTemplatesPagesWithContext(ctx aws.Context, input *ListCollaborationAnalysisTemplatesInput, fn func(*ListCollaborationAnalysisTemplatesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListConfiguredTableAssociationsInput + var inCpy *ListCollaborationAnalysisTemplatesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListConfiguredTableAssociationsRequest(inCpy) + req, _ := c.ListCollaborationAnalysisTemplatesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2160,7 +2626,7 @@ func (c *CleanRooms) ListConfiguredTableAssociationsPagesWithContext(ctx aws.Con } for p.Next() { - if !fn(p.Page().(*ListConfiguredTableAssociationsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListCollaborationAnalysisTemplatesOutput), !p.HasNextPage()) { break } } @@ -2168,36 +2634,36 @@ func (c *CleanRooms) ListConfiguredTableAssociationsPagesWithContext(ctx aws.Con return p.Err() } -const opListConfiguredTables = "ListConfiguredTables" +const opListCollaborations = "ListCollaborations" -// ListConfiguredTablesRequest generates a "aws/request.Request" representing the -// client's request for the ListConfiguredTables operation. The "output" return +// ListCollaborationsRequest generates a "aws/request.Request" representing the +// client's request for the ListCollaborations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListConfiguredTables for more information on using the ListConfiguredTables +// See ListCollaborations for more information on using the ListCollaborations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListConfiguredTablesRequest method. -// req, resp := client.ListConfiguredTablesRequest(params) +// // Example sending a request using the ListCollaborationsRequest method. +// req, resp := client.ListCollaborationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListConfiguredTables -func (c *CleanRooms) ListConfiguredTablesRequest(input *ListConfiguredTablesInput) (req *request.Request, output *ListConfiguredTablesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListCollaborations +func (c *CleanRooms) ListCollaborationsRequest(input *ListCollaborationsInput) (req *request.Request, output *ListCollaborationsOutput) { op := &request.Operation{ - Name: opListConfiguredTables, + Name: opListCollaborations, HTTPMethod: "GET", - HTTPPath: "/configuredTables", + HTTPPath: "/collaborations", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -2207,24 +2673,24 @@ func (c *CleanRooms) ListConfiguredTablesRequest(input *ListConfiguredTablesInpu } if input == nil { - input = &ListConfiguredTablesInput{} + input = &ListCollaborationsInput{} } - output = &ListConfiguredTablesOutput{} + output = &ListCollaborationsOutput{} req = c.newRequest(op, input, output) return } -// ListConfiguredTables API operation for AWS Clean Rooms Service. +// ListCollaborations API operation for AWS Clean Rooms Service. // -// Lists configured tables. +// Lists collaborations the caller owns, is active in, or has been invited to. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation ListConfiguredTables for usage and error information. +// API operation ListCollaborations for usage and error information. // // Returned Error Types: // @@ -2240,64 +2706,64 @@ func (c *CleanRooms) ListConfiguredTablesRequest(input *ListConfiguredTablesInpu // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListConfiguredTables -func (c *CleanRooms) ListConfiguredTables(input *ListConfiguredTablesInput) (*ListConfiguredTablesOutput, error) { - req, out := c.ListConfiguredTablesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListCollaborations +func (c *CleanRooms) ListCollaborations(input *ListCollaborationsInput) (*ListCollaborationsOutput, error) { + req, out := c.ListCollaborationsRequest(input) return out, req.Send() } -// ListConfiguredTablesWithContext is the same as ListConfiguredTables with the addition of +// ListCollaborationsWithContext is the same as ListCollaborations with the addition of // the ability to pass a context and additional request options. // -// See ListConfiguredTables for details on how to use this API operation. +// See ListCollaborations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) ListConfiguredTablesWithContext(ctx aws.Context, input *ListConfiguredTablesInput, opts ...request.Option) (*ListConfiguredTablesOutput, error) { - req, out := c.ListConfiguredTablesRequest(input) +func (c *CleanRooms) ListCollaborationsWithContext(ctx aws.Context, input *ListCollaborationsInput, opts ...request.Option) (*ListCollaborationsOutput, error) { + req, out := c.ListCollaborationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListConfiguredTablesPages iterates over the pages of a ListConfiguredTables operation, +// ListCollaborationsPages iterates over the pages of a ListCollaborations operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListConfiguredTables method for more information on how to use this operation. +// See ListCollaborations 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 ListConfiguredTables operation. +// // Example iterating over at most 3 pages of a ListCollaborations operation. // pageNum := 0 -// err := client.ListConfiguredTablesPages(params, -// func(page *cleanrooms.ListConfiguredTablesOutput, lastPage bool) bool { +// err := client.ListCollaborationsPages(params, +// func(page *cleanrooms.ListCollaborationsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *CleanRooms) ListConfiguredTablesPages(input *ListConfiguredTablesInput, fn func(*ListConfiguredTablesOutput, bool) bool) error { - return c.ListConfiguredTablesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *CleanRooms) ListCollaborationsPages(input *ListCollaborationsInput, fn func(*ListCollaborationsOutput, bool) bool) error { + return c.ListCollaborationsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListConfiguredTablesPagesWithContext same as ListConfiguredTablesPages except +// ListCollaborationsPagesWithContext same as ListCollaborationsPages 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 *CleanRooms) ListConfiguredTablesPagesWithContext(ctx aws.Context, input *ListConfiguredTablesInput, fn func(*ListConfiguredTablesOutput, bool) bool, opts ...request.Option) error { +func (c *CleanRooms) ListCollaborationsPagesWithContext(ctx aws.Context, input *ListCollaborationsInput, fn func(*ListCollaborationsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListConfiguredTablesInput + var inCpy *ListCollaborationsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListConfiguredTablesRequest(inCpy) + req, _ := c.ListCollaborationsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2305,7 +2771,7 @@ func (c *CleanRooms) ListConfiguredTablesPagesWithContext(ctx aws.Context, input } for p.Next() { - if !fn(p.Page().(*ListConfiguredTablesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListCollaborationsOutput), !p.HasNextPage()) { break } } @@ -2313,36 +2779,36 @@ func (c *CleanRooms) ListConfiguredTablesPagesWithContext(ctx aws.Context, input return p.Err() } -const opListMembers = "ListMembers" +const opListConfiguredTableAssociations = "ListConfiguredTableAssociations" -// ListMembersRequest generates a "aws/request.Request" representing the -// client's request for the ListMembers operation. The "output" return +// ListConfiguredTableAssociationsRequest generates a "aws/request.Request" representing the +// client's request for the ListConfiguredTableAssociations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListMembers for more information on using the ListMembers +// See ListConfiguredTableAssociations for more information on using the ListConfiguredTableAssociations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListMembersRequest method. -// req, resp := client.ListMembersRequest(params) +// // Example sending a request using the ListConfiguredTableAssociationsRequest method. +// req, resp := client.ListConfiguredTableAssociationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListMembers -func (c *CleanRooms) ListMembersRequest(input *ListMembersInput) (req *request.Request, output *ListMembersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListConfiguredTableAssociations +func (c *CleanRooms) ListConfiguredTableAssociationsRequest(input *ListConfiguredTableAssociationsInput) (req *request.Request, output *ListConfiguredTableAssociationsOutput) { op := &request.Operation{ - Name: opListMembers, + Name: opListConfiguredTableAssociations, HTTPMethod: "GET", - HTTPPath: "/collaborations/{collaborationIdentifier}/members", + HTTPPath: "/memberships/{membershipIdentifier}/configuredTableAssociations", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -2352,24 +2818,24 @@ func (c *CleanRooms) ListMembersRequest(input *ListMembersInput) (req *request.R } if input == nil { - input = &ListMembersInput{} + input = &ListConfiguredTableAssociationsInput{} } - output = &ListMembersOutput{} + output = &ListConfiguredTableAssociationsOutput{} req = c.newRequest(op, input, output) return } -// ListMembers API operation for AWS Clean Rooms Service. +// ListConfiguredTableAssociations API operation for AWS Clean Rooms Service. // -// Lists all members within a collaboration. +// Lists configured table associations for a membership. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation ListMembers for usage and error information. +// API operation ListConfiguredTableAssociations for usage and error information. // // Returned Error Types: // @@ -2388,64 +2854,64 @@ func (c *CleanRooms) ListMembersRequest(input *ListMembersInput) (req *request.R // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListMembers -func (c *CleanRooms) ListMembers(input *ListMembersInput) (*ListMembersOutput, error) { - req, out := c.ListMembersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListConfiguredTableAssociations +func (c *CleanRooms) ListConfiguredTableAssociations(input *ListConfiguredTableAssociationsInput) (*ListConfiguredTableAssociationsOutput, error) { + req, out := c.ListConfiguredTableAssociationsRequest(input) return out, req.Send() } -// ListMembersWithContext is the same as ListMembers with the addition of +// ListConfiguredTableAssociationsWithContext is the same as ListConfiguredTableAssociations with the addition of // the ability to pass a context and additional request options. // -// See ListMembers for details on how to use this API operation. +// See ListConfiguredTableAssociations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) ListMembersWithContext(ctx aws.Context, input *ListMembersInput, opts ...request.Option) (*ListMembersOutput, error) { - req, out := c.ListMembersRequest(input) +func (c *CleanRooms) ListConfiguredTableAssociationsWithContext(ctx aws.Context, input *ListConfiguredTableAssociationsInput, opts ...request.Option) (*ListConfiguredTableAssociationsOutput, error) { + req, out := c.ListConfiguredTableAssociationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListMembersPages iterates over the pages of a ListMembers operation, +// ListConfiguredTableAssociationsPages iterates over the pages of a ListConfiguredTableAssociations operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListMembers method for more information on how to use this operation. +// See ListConfiguredTableAssociations 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 ListMembers operation. +// // Example iterating over at most 3 pages of a ListConfiguredTableAssociations operation. // pageNum := 0 -// err := client.ListMembersPages(params, -// func(page *cleanrooms.ListMembersOutput, lastPage bool) bool { +// err := client.ListConfiguredTableAssociationsPages(params, +// func(page *cleanrooms.ListConfiguredTableAssociationsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *CleanRooms) ListMembersPages(input *ListMembersInput, fn func(*ListMembersOutput, bool) bool) error { - return c.ListMembersPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *CleanRooms) ListConfiguredTableAssociationsPages(input *ListConfiguredTableAssociationsInput, fn func(*ListConfiguredTableAssociationsOutput, bool) bool) error { + return c.ListConfiguredTableAssociationsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListMembersPagesWithContext same as ListMembersPages except +// ListConfiguredTableAssociationsPagesWithContext same as ListConfiguredTableAssociationsPages 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 *CleanRooms) ListMembersPagesWithContext(ctx aws.Context, input *ListMembersInput, fn func(*ListMembersOutput, bool) bool, opts ...request.Option) error { +func (c *CleanRooms) ListConfiguredTableAssociationsPagesWithContext(ctx aws.Context, input *ListConfiguredTableAssociationsInput, fn func(*ListConfiguredTableAssociationsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListMembersInput + var inCpy *ListConfiguredTableAssociationsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListMembersRequest(inCpy) + req, _ := c.ListConfiguredTableAssociationsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2453,7 +2919,7 @@ func (c *CleanRooms) ListMembersPagesWithContext(ctx aws.Context, input *ListMem } for p.Next() { - if !fn(p.Page().(*ListMembersOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListConfiguredTableAssociationsOutput), !p.HasNextPage()) { break } } @@ -2461,36 +2927,36 @@ func (c *CleanRooms) ListMembersPagesWithContext(ctx aws.Context, input *ListMem return p.Err() } -const opListMemberships = "ListMemberships" +const opListConfiguredTables = "ListConfiguredTables" -// ListMembershipsRequest generates a "aws/request.Request" representing the -// client's request for the ListMemberships operation. The "output" return +// ListConfiguredTablesRequest generates a "aws/request.Request" representing the +// client's request for the ListConfiguredTables operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListMemberships for more information on using the ListMemberships +// See ListConfiguredTables for more information on using the ListConfiguredTables // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListMembershipsRequest method. -// req, resp := client.ListMembershipsRequest(params) +// // Example sending a request using the ListConfiguredTablesRequest method. +// req, resp := client.ListConfiguredTablesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListMemberships -func (c *CleanRooms) ListMembershipsRequest(input *ListMembershipsInput) (req *request.Request, output *ListMembershipsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListConfiguredTables +func (c *CleanRooms) ListConfiguredTablesRequest(input *ListConfiguredTablesInput) (req *request.Request, output *ListConfiguredTablesOutput) { op := &request.Operation{ - Name: opListMemberships, + Name: opListConfiguredTables, HTTPMethod: "GET", - HTTPPath: "/memberships", + HTTPPath: "/configuredTables", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -2500,24 +2966,24 @@ func (c *CleanRooms) ListMembershipsRequest(input *ListMembershipsInput) (req *r } if input == nil { - input = &ListMembershipsInput{} + input = &ListConfiguredTablesInput{} } - output = &ListMembershipsOutput{} + output = &ListConfiguredTablesOutput{} req = c.newRequest(op, input, output) return } -// ListMemberships API operation for AWS Clean Rooms Service. +// ListConfiguredTables API operation for AWS Clean Rooms Service. // -// Lists all memberships resources within the caller's account. +// Lists configured tables. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation ListMemberships for usage and error information. +// API operation ListConfiguredTables for usage and error information. // // Returned Error Types: // @@ -2533,64 +2999,64 @@ func (c *CleanRooms) ListMembershipsRequest(input *ListMembershipsInput) (req *r // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListMemberships -func (c *CleanRooms) ListMemberships(input *ListMembershipsInput) (*ListMembershipsOutput, error) { - req, out := c.ListMembershipsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListConfiguredTables +func (c *CleanRooms) ListConfiguredTables(input *ListConfiguredTablesInput) (*ListConfiguredTablesOutput, error) { + req, out := c.ListConfiguredTablesRequest(input) return out, req.Send() } -// ListMembershipsWithContext is the same as ListMemberships with the addition of +// ListConfiguredTablesWithContext is the same as ListConfiguredTables with the addition of // the ability to pass a context and additional request options. // -// See ListMemberships for details on how to use this API operation. +// See ListConfiguredTables for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) ListMembershipsWithContext(ctx aws.Context, input *ListMembershipsInput, opts ...request.Option) (*ListMembershipsOutput, error) { - req, out := c.ListMembershipsRequest(input) +func (c *CleanRooms) ListConfiguredTablesWithContext(ctx aws.Context, input *ListConfiguredTablesInput, opts ...request.Option) (*ListConfiguredTablesOutput, error) { + req, out := c.ListConfiguredTablesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListMembershipsPages iterates over the pages of a ListMemberships operation, +// ListConfiguredTablesPages iterates over the pages of a ListConfiguredTables operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListMemberships method for more information on how to use this operation. +// See ListConfiguredTables 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 ListMemberships operation. +// // Example iterating over at most 3 pages of a ListConfiguredTables operation. // pageNum := 0 -// err := client.ListMembershipsPages(params, -// func(page *cleanrooms.ListMembershipsOutput, lastPage bool) bool { +// err := client.ListConfiguredTablesPages(params, +// func(page *cleanrooms.ListConfiguredTablesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *CleanRooms) ListMembershipsPages(input *ListMembershipsInput, fn func(*ListMembershipsOutput, bool) bool) error { - return c.ListMembershipsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *CleanRooms) ListConfiguredTablesPages(input *ListConfiguredTablesInput, fn func(*ListConfiguredTablesOutput, bool) bool) error { + return c.ListConfiguredTablesPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListMembershipsPagesWithContext same as ListMembershipsPages except +// ListConfiguredTablesPagesWithContext same as ListConfiguredTablesPages 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 *CleanRooms) ListMembershipsPagesWithContext(ctx aws.Context, input *ListMembershipsInput, fn func(*ListMembershipsOutput, bool) bool, opts ...request.Option) error { +func (c *CleanRooms) ListConfiguredTablesPagesWithContext(ctx aws.Context, input *ListConfiguredTablesInput, fn func(*ListConfiguredTablesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListMembershipsInput + var inCpy *ListConfiguredTablesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListMembershipsRequest(inCpy) + req, _ := c.ListConfiguredTablesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2598,7 +3064,7 @@ func (c *CleanRooms) ListMembershipsPagesWithContext(ctx aws.Context, input *Lis } for p.Next() { - if !fn(p.Page().(*ListMembershipsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListConfiguredTablesOutput), !p.HasNextPage()) { break } } @@ -2606,36 +3072,36 @@ func (c *CleanRooms) ListMembershipsPagesWithContext(ctx aws.Context, input *Lis return p.Err() } -const opListProtectedQueries = "ListProtectedQueries" +const opListMembers = "ListMembers" -// ListProtectedQueriesRequest generates a "aws/request.Request" representing the -// client's request for the ListProtectedQueries operation. The "output" return +// ListMembersRequest generates a "aws/request.Request" representing the +// client's request for the ListMembers operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListProtectedQueries for more information on using the ListProtectedQueries +// See ListMembers for more information on using the ListMembers // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListProtectedQueriesRequest method. -// req, resp := client.ListProtectedQueriesRequest(params) +// // Example sending a request using the ListMembersRequest method. +// req, resp := client.ListMembersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListProtectedQueries -func (c *CleanRooms) ListProtectedQueriesRequest(input *ListProtectedQueriesInput) (req *request.Request, output *ListProtectedQueriesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListMembers +func (c *CleanRooms) ListMembersRequest(input *ListMembersInput) (req *request.Request, output *ListMembersOutput) { op := &request.Operation{ - Name: opListProtectedQueries, + Name: opListMembers, HTTPMethod: "GET", - HTTPPath: "/memberships/{membershipIdentifier}/protectedQueries", + HTTPPath: "/collaborations/{collaborationIdentifier}/members", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -2645,24 +3111,24 @@ func (c *CleanRooms) ListProtectedQueriesRequest(input *ListProtectedQueriesInpu } if input == nil { - input = &ListProtectedQueriesInput{} + input = &ListMembersInput{} } - output = &ListProtectedQueriesOutput{} + output = &ListMembersOutput{} req = c.newRequest(op, input, output) return } -// ListProtectedQueries API operation for AWS Clean Rooms Service. +// ListMembers API operation for AWS Clean Rooms Service. // -// Lists protected queries, sorted by the most recent query. +// Lists all members within a collaboration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation ListProtectedQueries for usage and error information. +// API operation ListMembers for usage and error information. // // Returned Error Types: // @@ -2681,64 +3147,64 @@ func (c *CleanRooms) ListProtectedQueriesRequest(input *ListProtectedQueriesInpu // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListProtectedQueries -func (c *CleanRooms) ListProtectedQueries(input *ListProtectedQueriesInput) (*ListProtectedQueriesOutput, error) { - req, out := c.ListProtectedQueriesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListMembers +func (c *CleanRooms) ListMembers(input *ListMembersInput) (*ListMembersOutput, error) { + req, out := c.ListMembersRequest(input) return out, req.Send() } -// ListProtectedQueriesWithContext is the same as ListProtectedQueries with the addition of +// ListMembersWithContext is the same as ListMembers with the addition of // the ability to pass a context and additional request options. // -// See ListProtectedQueries for details on how to use this API operation. +// See ListMembers for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) ListProtectedQueriesWithContext(ctx aws.Context, input *ListProtectedQueriesInput, opts ...request.Option) (*ListProtectedQueriesOutput, error) { - req, out := c.ListProtectedQueriesRequest(input) +func (c *CleanRooms) ListMembersWithContext(ctx aws.Context, input *ListMembersInput, opts ...request.Option) (*ListMembersOutput, error) { + req, out := c.ListMembersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListProtectedQueriesPages iterates over the pages of a ListProtectedQueries operation, +// ListMembersPages iterates over the pages of a ListMembers operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListProtectedQueries method for more information on how to use this operation. +// See ListMembers 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 ListProtectedQueries operation. +// // Example iterating over at most 3 pages of a ListMembers operation. // pageNum := 0 -// err := client.ListProtectedQueriesPages(params, -// func(page *cleanrooms.ListProtectedQueriesOutput, lastPage bool) bool { +// err := client.ListMembersPages(params, +// func(page *cleanrooms.ListMembersOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *CleanRooms) ListProtectedQueriesPages(input *ListProtectedQueriesInput, fn func(*ListProtectedQueriesOutput, bool) bool) error { - return c.ListProtectedQueriesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *CleanRooms) ListMembersPages(input *ListMembersInput, fn func(*ListMembersOutput, bool) bool) error { + return c.ListMembersPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListProtectedQueriesPagesWithContext same as ListProtectedQueriesPages except +// ListMembersPagesWithContext same as ListMembersPages 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 *CleanRooms) ListProtectedQueriesPagesWithContext(ctx aws.Context, input *ListProtectedQueriesInput, fn func(*ListProtectedQueriesOutput, bool) bool, opts ...request.Option) error { +func (c *CleanRooms) ListMembersPagesWithContext(ctx aws.Context, input *ListMembersInput, fn func(*ListMembersOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListProtectedQueriesInput + var inCpy *ListMembersInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListProtectedQueriesRequest(inCpy) + req, _ := c.ListMembersRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2746,7 +3212,7 @@ func (c *CleanRooms) ListProtectedQueriesPagesWithContext(ctx aws.Context, input } for p.Next() { - if !fn(p.Page().(*ListProtectedQueriesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListMembersOutput), !p.HasNextPage()) { break } } @@ -2754,36 +3220,36 @@ func (c *CleanRooms) ListProtectedQueriesPagesWithContext(ctx aws.Context, input return p.Err() } -const opListSchemas = "ListSchemas" +const opListMemberships = "ListMemberships" -// ListSchemasRequest generates a "aws/request.Request" representing the -// client's request for the ListSchemas operation. The "output" return +// ListMembershipsRequest generates a "aws/request.Request" representing the +// client's request for the ListMemberships operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListSchemas for more information on using the ListSchemas +// See ListMemberships for more information on using the ListMemberships // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListSchemasRequest method. -// req, resp := client.ListSchemasRequest(params) -// +// // Example sending a request using the ListMembershipsRequest method. +// req, resp := client.ListMembershipsRequest(params) +// // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListSchemas -func (c *CleanRooms) ListSchemasRequest(input *ListSchemasInput) (req *request.Request, output *ListSchemasOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListMemberships +func (c *CleanRooms) ListMembershipsRequest(input *ListMembershipsInput) (req *request.Request, output *ListMembershipsOutput) { op := &request.Operation{ - Name: opListSchemas, + Name: opListMemberships, HTTPMethod: "GET", - HTTPPath: "/collaborations/{collaborationIdentifier}/schemas", + HTTPPath: "/memberships", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -2793,30 +3259,27 @@ func (c *CleanRooms) ListSchemasRequest(input *ListSchemasInput) (req *request.R } if input == nil { - input = &ListSchemasInput{} + input = &ListMembershipsInput{} } - output = &ListSchemasOutput{} + output = &ListMembershipsOutput{} req = c.newRequest(op, input, output) return } -// ListSchemas API operation for AWS Clean Rooms Service. +// ListMemberships API operation for AWS Clean Rooms Service. // -// Lists the schemas for relations within a collaboration. +// Lists all memberships resources within the caller's account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation ListSchemas for usage and error information. +// API operation ListMemberships for usage and error information. // // Returned Error Types: // -// - ResourceNotFoundException -// Request references a resource which does not exist. -// // - InternalServerException // Unexpected error during processing of request. // @@ -2829,64 +3292,64 @@ func (c *CleanRooms) ListSchemasRequest(input *ListSchemasInput) (req *request.R // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListSchemas -func (c *CleanRooms) ListSchemas(input *ListSchemasInput) (*ListSchemasOutput, error) { - req, out := c.ListSchemasRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListMemberships +func (c *CleanRooms) ListMemberships(input *ListMembershipsInput) (*ListMembershipsOutput, error) { + req, out := c.ListMembershipsRequest(input) return out, req.Send() } -// ListSchemasWithContext is the same as ListSchemas with the addition of +// ListMembershipsWithContext is the same as ListMemberships with the addition of // the ability to pass a context and additional request options. // -// See ListSchemas for details on how to use this API operation. +// See ListMemberships for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) ListSchemasWithContext(ctx aws.Context, input *ListSchemasInput, opts ...request.Option) (*ListSchemasOutput, error) { - req, out := c.ListSchemasRequest(input) +func (c *CleanRooms) ListMembershipsWithContext(ctx aws.Context, input *ListMembershipsInput, opts ...request.Option) (*ListMembershipsOutput, error) { + req, out := c.ListMembershipsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListSchemasPages iterates over the pages of a ListSchemas operation, +// ListMembershipsPages iterates over the pages of a ListMemberships operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListSchemas method for more information on how to use this operation. +// See ListMemberships 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 ListSchemas operation. +// // Example iterating over at most 3 pages of a ListMemberships operation. // pageNum := 0 -// err := client.ListSchemasPages(params, -// func(page *cleanrooms.ListSchemasOutput, lastPage bool) bool { +// err := client.ListMembershipsPages(params, +// func(page *cleanrooms.ListMembershipsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *CleanRooms) ListSchemasPages(input *ListSchemasInput, fn func(*ListSchemasOutput, bool) bool) error { - return c.ListSchemasPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *CleanRooms) ListMembershipsPages(input *ListMembershipsInput, fn func(*ListMembershipsOutput, bool) bool) error { + return c.ListMembershipsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListSchemasPagesWithContext same as ListSchemasPages except +// ListMembershipsPagesWithContext same as ListMembershipsPages 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 *CleanRooms) ListSchemasPagesWithContext(ctx aws.Context, input *ListSchemasInput, fn func(*ListSchemasOutput, bool) bool, opts ...request.Option) error { +func (c *CleanRooms) ListMembershipsPagesWithContext(ctx aws.Context, input *ListMembershipsInput, fn func(*ListMembershipsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListSchemasInput + var inCpy *ListMembershipsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListSchemasRequest(inCpy) + req, _ := c.ListMembershipsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2894,7 +3357,7 @@ func (c *CleanRooms) ListSchemasPagesWithContext(ctx aws.Context, input *ListSch } for p.Next() { - if !fn(p.Page().(*ListSchemasOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListMembershipsOutput), !p.HasNextPage()) { break } } @@ -2902,145 +3365,214 @@ func (c *CleanRooms) ListSchemasPagesWithContext(ctx aws.Context, input *ListSch return p.Err() } -const opListTagsForResource = "ListTagsForResource" +const opListProtectedQueries = "ListProtectedQueries" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// ListProtectedQueriesRequest generates a "aws/request.Request" representing the +// client's request for the ListProtectedQueries operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the 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 ListProtectedQueries for more information on using the ListProtectedQueries // API call, and error handling. // // This method is useful when you want to 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 ListProtectedQueriesRequest method. +// req, resp := client.ListProtectedQueriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListTagsForResource -func (c *CleanRooms) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListProtectedQueries +func (c *CleanRooms) ListProtectedQueriesRequest(input *ListProtectedQueriesInput) (req *request.Request, output *ListProtectedQueriesOutput) { op := &request.Operation{ - Name: opListTagsForResource, + Name: opListProtectedQueries, HTTPMethod: "GET", - HTTPPath: "/tags/{resourceArn}", + HTTPPath: "/memberships/{membershipIdentifier}/protectedQueries", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &ListTagsForResourceInput{} + input = &ListProtectedQueriesInput{} } - output = &ListTagsForResourceOutput{} + output = &ListProtectedQueriesOutput{} req = c.newRequest(op, input, output) return } -// ListTagsForResource API operation for AWS Clean Rooms Service. +// ListProtectedQueries API operation for AWS Clean Rooms Service. // -// Lists all of the tags that have been added to a resource. +// Lists protected queries, sorted by the most recent query. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation ListTagsForResource for usage and error information. +// API operation ListProtectedQueries for usage and error information. // // Returned Error Types: // // - ResourceNotFoundException // Request references a resource which does not exist. // +// - InternalServerException +// Unexpected error during processing of request. +// // - ValidationException // The input fails to satisfy the specified constraints. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListTagsForResource -func (c *CleanRooms) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// - ThrottlingException +// Request was denied due to request throttling. +// +// - AccessDeniedException +// Caller does not have sufficient access to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListProtectedQueries +func (c *CleanRooms) ListProtectedQueries(input *ListProtectedQueriesInput) (*ListProtectedQueriesOutput, error) { + req, out := c.ListProtectedQueriesRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// ListProtectedQueriesWithContext is the same as ListProtectedQueries 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 ListProtectedQueries for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *CleanRooms) ListProtectedQueriesWithContext(ctx aws.Context, input *ListProtectedQueriesInput, opts ...request.Option) (*ListProtectedQueriesOutput, error) { + req, out := c.ListProtectedQueriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartProtectedQuery = "StartProtectedQuery" +// ListProtectedQueriesPages iterates over the pages of a ListProtectedQueries operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListProtectedQueries 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 ListProtectedQueries operation. +// pageNum := 0 +// err := client.ListProtectedQueriesPages(params, +// func(page *cleanrooms.ListProtectedQueriesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *CleanRooms) ListProtectedQueriesPages(input *ListProtectedQueriesInput, fn func(*ListProtectedQueriesOutput, bool) bool) error { + return c.ListProtectedQueriesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// StartProtectedQueryRequest generates a "aws/request.Request" representing the -// client's request for the StartProtectedQuery operation. The "output" return +// ListProtectedQueriesPagesWithContext same as ListProtectedQueriesPages 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 *CleanRooms) ListProtectedQueriesPagesWithContext(ctx aws.Context, input *ListProtectedQueriesInput, fn func(*ListProtectedQueriesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListProtectedQueriesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListProtectedQueriesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListProtectedQueriesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSchemas = "ListSchemas" + +// ListSchemasRequest generates a "aws/request.Request" representing the +// client's request for the ListSchemas operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartProtectedQuery for more information on using the StartProtectedQuery +// See ListSchemas for more information on using the ListSchemas // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the StartProtectedQueryRequest method. -// req, resp := client.StartProtectedQueryRequest(params) +// // Example sending a request using the ListSchemasRequest method. +// req, resp := client.ListSchemasRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/StartProtectedQuery -func (c *CleanRooms) StartProtectedQueryRequest(input *StartProtectedQueryInput) (req *request.Request, output *StartProtectedQueryOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListSchemas +func (c *CleanRooms) ListSchemasRequest(input *ListSchemasInput) (req *request.Request, output *ListSchemasOutput) { op := &request.Operation{ - Name: opStartProtectedQuery, - HTTPMethod: "POST", - HTTPPath: "/memberships/{membershipIdentifier}/protectedQueries", + Name: opListSchemas, + HTTPMethod: "GET", + HTTPPath: "/collaborations/{collaborationIdentifier}/schemas", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &StartProtectedQueryInput{} + input = &ListSchemasInput{} } - output = &StartProtectedQueryOutput{} + output = &ListSchemasOutput{} req = c.newRequest(op, input, output) return } -// StartProtectedQuery API operation for AWS Clean Rooms Service. +// ListSchemas API operation for AWS Clean Rooms Service. // -// Creates a protected query that is started by Clean Rooms . +// Lists the schemas for relations within a collaboration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation StartProtectedQuery for usage and error information. +// API operation ListSchemas for usage and error information. // // Returned Error Types: // -// - ServiceQuotaExceededException -// Request denied because service quota has been exceeded. -// // - ResourceNotFoundException // Request references a resource which does not exist. // @@ -3056,163 +3588,130 @@ func (c *CleanRooms) StartProtectedQueryRequest(input *StartProtectedQueryInput) // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/StartProtectedQuery -func (c *CleanRooms) StartProtectedQuery(input *StartProtectedQueryInput) (*StartProtectedQueryOutput, error) { - req, out := c.StartProtectedQueryRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListSchemas +func (c *CleanRooms) ListSchemas(input *ListSchemasInput) (*ListSchemasOutput, error) { + req, out := c.ListSchemasRequest(input) return out, req.Send() } -// StartProtectedQueryWithContext is the same as StartProtectedQuery with the addition of +// ListSchemasWithContext is the same as ListSchemas with the addition of // the ability to pass a context and additional request options. // -// See StartProtectedQuery for details on how to use this API operation. +// See ListSchemas for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) StartProtectedQueryWithContext(ctx aws.Context, input *StartProtectedQueryInput, opts ...request.Option) (*StartProtectedQueryOutput, error) { - req, out := c.StartProtectedQueryRequest(input) +func (c *CleanRooms) ListSchemasWithContext(ctx aws.Context, input *ListSchemasInput, opts ...request.Option) (*ListSchemasOutput, error) { + req, out := c.ListSchemasRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagResource = "TagResource" - -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See TagResource for more information on using the TagResource -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// ListSchemasPages iterates over the pages of a ListSchemas operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// // Example sending a request using the TagResourceRequest method. -// req, resp := client.TagResourceRequest(params) +// See ListSchemas method for more information on how to use this operation. // -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } +// Note: This operation can generate multiple requests to a service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/TagResource -func (c *CleanRooms) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { - op := &request.Operation{ - Name: opTagResource, - HTTPMethod: "POST", - HTTPPath: "/tags/{resourceArn}", - } - - if input == nil { - input = &TagResourceInput{} - } - - output = &TagResourceOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// TagResource API operation for AWS Clean Rooms Service. -// -// Tags a resource. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS Clean Rooms Service's -// API operation TagResource for usage and error information. -// -// Returned Error Types: -// -// - ResourceNotFoundException -// Request references a resource which does not exist. -// -// - ValidationException -// The input fails to satisfy the specified constraints. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/TagResource -func (c *CleanRooms) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) - return out, req.Send() +// // Example iterating over at most 3 pages of a ListSchemas operation. +// pageNum := 0 +// err := client.ListSchemasPages(params, +// func(page *cleanrooms.ListSchemasOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *CleanRooms) ListSchemasPages(input *ListSchemasInput, fn func(*ListSchemasOutput, bool) bool) error { + return c.ListSchemasPagesWithContext(aws.BackgroundContext(), input, fn) } -// TagResourceWithContext is the same as TagResource with the addition of -// the ability to pass a context and additional request options. -// -// See TagResource for details on how to use this API operation. +// ListSchemasPagesWithContext same as ListSchemasPages 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 *CleanRooms) 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() +func (c *CleanRooms) ListSchemasPagesWithContext(ctx aws.Context, input *ListSchemasInput, fn func(*ListSchemasOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSchemasInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSchemasRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSchemasOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() } -const opUntagResource = "UntagResource" +const opListTagsForResource = "ListTagsForResource" -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// 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 UntagResource for more information on using the UntagResource +// 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 UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(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/cleanrooms-2022-02-17/UntagResource -func (c *CleanRooms) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListTagsForResource +func (c *CleanRooms) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "DELETE", + Name: opListTagsForResource, + HTTPMethod: "GET", HTTPPath: "/tags/{resourceArn}", } if input == nil { - input = &UntagResourceInput{} + input = &ListTagsForResourceInput{} } - output = &UntagResourceOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UntagResource API operation for AWS Clean Rooms Service. +// ListTagsForResource API operation for AWS Clean Rooms Service. // -// Removes a tag or list of tags from a resource. +// Lists all of the tags that have been added to a resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation UntagResource for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: // @@ -3222,83 +3721,88 @@ func (c *CleanRooms) UntagResourceRequest(input *UntagResourceInput) (req *reque // - ValidationException // The input fails to satisfy the specified constraints. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UntagResource -func (c *CleanRooms) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/ListTagsForResource +func (c *CleanRooms) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource 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 UntagResource 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 *CleanRooms) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *CleanRooms) 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 opUpdateCollaboration = "UpdateCollaboration" +const opStartProtectedQuery = "StartProtectedQuery" -// UpdateCollaborationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateCollaboration operation. The "output" return +// StartProtectedQueryRequest generates a "aws/request.Request" representing the +// client's request for the StartProtectedQuery operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateCollaboration for more information on using the UpdateCollaboration +// See StartProtectedQuery for more information on using the StartProtectedQuery // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateCollaborationRequest method. -// req, resp := client.UpdateCollaborationRequest(params) +// // Example sending a request using the StartProtectedQueryRequest method. +// req, resp := client.StartProtectedQueryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateCollaboration -func (c *CleanRooms) UpdateCollaborationRequest(input *UpdateCollaborationInput) (req *request.Request, output *UpdateCollaborationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/StartProtectedQuery +func (c *CleanRooms) StartProtectedQueryRequest(input *StartProtectedQueryInput) (req *request.Request, output *StartProtectedQueryOutput) { op := &request.Operation{ - Name: opUpdateCollaboration, - HTTPMethod: "PATCH", - HTTPPath: "/collaborations/{collaborationIdentifier}", + Name: opStartProtectedQuery, + HTTPMethod: "POST", + HTTPPath: "/memberships/{membershipIdentifier}/protectedQueries", } if input == nil { - input = &UpdateCollaborationInput{} + input = &StartProtectedQueryInput{} } - output = &UpdateCollaborationOutput{} + output = &StartProtectedQueryOutput{} req = c.newRequest(op, input, output) return } -// UpdateCollaboration API operation for AWS Clean Rooms Service. +// StartProtectedQuery API operation for AWS Clean Rooms Service. // -// Updates collaboration metadata and can only be called by the collaboration -// owner. +// Creates a protected query that is started by Clean Rooms . // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation UpdateCollaboration for usage and error information. +// API operation StartProtectedQuery for usage and error information. // // Returned Error Types: // +// - ServiceQuotaExceededException +// Request denied because service quota has been exceeded. +// +// - ResourceNotFoundException +// Request references a resource which does not exist. +// // - InternalServerException // Unexpected error during processing of request. // @@ -3311,178 +3815,247 @@ func (c *CleanRooms) UpdateCollaborationRequest(input *UpdateCollaborationInput) // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateCollaboration -func (c *CleanRooms) UpdateCollaboration(input *UpdateCollaborationInput) (*UpdateCollaborationOutput, error) { - req, out := c.UpdateCollaborationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/StartProtectedQuery +func (c *CleanRooms) StartProtectedQuery(input *StartProtectedQueryInput) (*StartProtectedQueryOutput, error) { + req, out := c.StartProtectedQueryRequest(input) return out, req.Send() } -// UpdateCollaborationWithContext is the same as UpdateCollaboration with the addition of +// StartProtectedQueryWithContext is the same as StartProtectedQuery with the addition of // the ability to pass a context and additional request options. // -// See UpdateCollaboration for details on how to use this API operation. +// See StartProtectedQuery for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) UpdateCollaborationWithContext(ctx aws.Context, input *UpdateCollaborationInput, opts ...request.Option) (*UpdateCollaborationOutput, error) { - req, out := c.UpdateCollaborationRequest(input) +func (c *CleanRooms) StartProtectedQueryWithContext(ctx aws.Context, input *StartProtectedQueryInput, opts ...request.Option) (*StartProtectedQueryOutput, error) { + req, out := c.StartProtectedQueryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateConfiguredTable = "UpdateConfiguredTable" +const opTagResource = "TagResource" -// UpdateConfiguredTableRequest generates a "aws/request.Request" representing the -// client's request for the UpdateConfiguredTable 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 UpdateConfiguredTable for more information on using the UpdateConfiguredTable +// 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 UpdateConfiguredTableRequest method. -// req, resp := client.UpdateConfiguredTableRequest(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/cleanrooms-2022-02-17/UpdateConfiguredTable -func (c *CleanRooms) UpdateConfiguredTableRequest(input *UpdateConfiguredTableInput) (req *request.Request, output *UpdateConfiguredTableOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/TagResource +func (c *CleanRooms) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ - Name: opUpdateConfiguredTable, - HTTPMethod: "PATCH", - HTTPPath: "/configuredTables/{configuredTableIdentifier}", + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{resourceArn}", } if input == nil { - input = &UpdateConfiguredTableInput{} + input = &TagResourceInput{} } - output = &UpdateConfiguredTableOutput{} + output = &TagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateConfiguredTable API operation for AWS Clean Rooms Service. +// TagResource API operation for AWS Clean Rooms Service. // -// Updates a configured table. +// Tags a resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation UpdateConfiguredTable for usage and error information. +// API operation TagResource for usage and error information. // // Returned Error Types: // -// - ConflictException -// Updating or deleting a resource can cause an inconsistent state. -// // - ResourceNotFoundException // Request references a resource which does not exist. // -// - InternalServerException -// Unexpected error during processing of request. -// // - ValidationException // The input fails to satisfy the specified constraints. // -// - ThrottlingException -// Request was denied due to request throttling. -// -// - AccessDeniedException -// Caller does not have sufficient access to perform this action. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateConfiguredTable -func (c *CleanRooms) UpdateConfiguredTable(input *UpdateConfiguredTableInput) (*UpdateConfiguredTableOutput, error) { - req, out := c.UpdateConfiguredTableRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/TagResource +func (c *CleanRooms) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) return out, req.Send() } -// UpdateConfiguredTableWithContext is the same as UpdateConfiguredTable 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 UpdateConfiguredTable 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 *CleanRooms) UpdateConfiguredTableWithContext(ctx aws.Context, input *UpdateConfiguredTableInput, opts ...request.Option) (*UpdateConfiguredTableOutput, error) { - req, out := c.UpdateConfiguredTableRequest(input) +func (c *CleanRooms) 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 opUpdateConfiguredTableAnalysisRule = "UpdateConfiguredTableAnalysisRule" +const opUntagResource = "UntagResource" -// UpdateConfiguredTableAnalysisRuleRequest generates a "aws/request.Request" representing the -// client's request for the UpdateConfiguredTableAnalysisRule 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 UpdateConfiguredTableAnalysisRule for more information on using the UpdateConfiguredTableAnalysisRule +// 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 UpdateConfiguredTableAnalysisRuleRequest method. -// req, resp := client.UpdateConfiguredTableAnalysisRuleRequest(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/cleanrooms-2022-02-17/UpdateConfiguredTableAnalysisRule -func (c *CleanRooms) UpdateConfiguredTableAnalysisRuleRequest(input *UpdateConfiguredTableAnalysisRuleInput) (req *request.Request, output *UpdateConfiguredTableAnalysisRuleOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UntagResource +func (c *CleanRooms) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ - Name: opUpdateConfiguredTableAnalysisRule, - HTTPMethod: "PATCH", - HTTPPath: "/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}", + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{resourceArn}", } if input == nil { - input = &UpdateConfiguredTableAnalysisRuleInput{} + input = &UntagResourceInput{} } - output = &UpdateConfiguredTableAnalysisRuleOutput{} + output = &UntagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateConfiguredTableAnalysisRule API operation for AWS Clean Rooms Service. +// UntagResource API operation for AWS Clean Rooms Service. // -// Updates a configured table analysis rule. +// Removes a tag or list of tags from a resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation UpdateConfiguredTableAnalysisRule for usage and error information. +// API operation UntagResource for usage and error information. // // Returned Error Types: // -// - ConflictException -// Updating or deleting a resource can cause an inconsistent state. +// - ResourceNotFoundException +// Request references a resource which does not exist. +// +// - ValidationException +// The input fails to satisfy the specified constraints. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UntagResource +func (c *CleanRooms) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CleanRooms) 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 opUpdateAnalysisTemplate = "UpdateAnalysisTemplate" + +// UpdateAnalysisTemplateRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAnalysisTemplate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAnalysisTemplate for more information on using the UpdateAnalysisTemplate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateAnalysisTemplateRequest method. +// req, resp := client.UpdateAnalysisTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateAnalysisTemplate +func (c *CleanRooms) UpdateAnalysisTemplateRequest(input *UpdateAnalysisTemplateInput) (req *request.Request, output *UpdateAnalysisTemplateOutput) { + op := &request.Operation{ + Name: opUpdateAnalysisTemplate, + HTTPMethod: "PATCH", + HTTPPath: "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}", + } + + if input == nil { + input = &UpdateAnalysisTemplateInput{} + } + + output = &UpdateAnalysisTemplateOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAnalysisTemplate API operation for AWS Clean Rooms Service. +// +// Updates the analysis template metadata. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Clean Rooms Service's +// API operation UpdateAnalysisTemplate for usage and error information. +// +// Returned Error Types: // // - ResourceNotFoundException // Request references a resource which does not exist. @@ -3499,88 +4072,83 @@ func (c *CleanRooms) UpdateConfiguredTableAnalysisRuleRequest(input *UpdateConfi // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateConfiguredTableAnalysisRule -func (c *CleanRooms) UpdateConfiguredTableAnalysisRule(input *UpdateConfiguredTableAnalysisRuleInput) (*UpdateConfiguredTableAnalysisRuleOutput, error) { - req, out := c.UpdateConfiguredTableAnalysisRuleRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateAnalysisTemplate +func (c *CleanRooms) UpdateAnalysisTemplate(input *UpdateAnalysisTemplateInput) (*UpdateAnalysisTemplateOutput, error) { + req, out := c.UpdateAnalysisTemplateRequest(input) return out, req.Send() } -// UpdateConfiguredTableAnalysisRuleWithContext is the same as UpdateConfiguredTableAnalysisRule with the addition of +// UpdateAnalysisTemplateWithContext is the same as UpdateAnalysisTemplate with the addition of // the ability to pass a context and additional request options. // -// See UpdateConfiguredTableAnalysisRule for details on how to use this API operation. +// See UpdateAnalysisTemplate for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) UpdateConfiguredTableAnalysisRuleWithContext(ctx aws.Context, input *UpdateConfiguredTableAnalysisRuleInput, opts ...request.Option) (*UpdateConfiguredTableAnalysisRuleOutput, error) { - req, out := c.UpdateConfiguredTableAnalysisRuleRequest(input) +func (c *CleanRooms) UpdateAnalysisTemplateWithContext(ctx aws.Context, input *UpdateAnalysisTemplateInput, opts ...request.Option) (*UpdateAnalysisTemplateOutput, error) { + req, out := c.UpdateAnalysisTemplateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateConfiguredTableAssociation = "UpdateConfiguredTableAssociation" +const opUpdateCollaboration = "UpdateCollaboration" -// UpdateConfiguredTableAssociationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateConfiguredTableAssociation operation. The "output" return +// UpdateCollaborationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateCollaboration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateConfiguredTableAssociation for more information on using the UpdateConfiguredTableAssociation +// See UpdateCollaboration for more information on using the UpdateCollaboration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateConfiguredTableAssociationRequest method. -// req, resp := client.UpdateConfiguredTableAssociationRequest(params) +// // Example sending a request using the UpdateCollaborationRequest method. +// req, resp := client.UpdateCollaborationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateConfiguredTableAssociation -func (c *CleanRooms) UpdateConfiguredTableAssociationRequest(input *UpdateConfiguredTableAssociationInput) (req *request.Request, output *UpdateConfiguredTableAssociationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateCollaboration +func (c *CleanRooms) UpdateCollaborationRequest(input *UpdateCollaborationInput) (req *request.Request, output *UpdateCollaborationOutput) { op := &request.Operation{ - Name: opUpdateConfiguredTableAssociation, + Name: opUpdateCollaboration, HTTPMethod: "PATCH", - HTTPPath: "/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}", + HTTPPath: "/collaborations/{collaborationIdentifier}", } if input == nil { - input = &UpdateConfiguredTableAssociationInput{} + input = &UpdateCollaborationInput{} } - output = &UpdateConfiguredTableAssociationOutput{} + output = &UpdateCollaborationOutput{} req = c.newRequest(op, input, output) return } -// UpdateConfiguredTableAssociation API operation for AWS Clean Rooms Service. +// UpdateCollaboration API operation for AWS Clean Rooms Service. // -// Updates a configured table association. +// Updates collaboration metadata and can only be called by the collaboration +// owner. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation UpdateConfiguredTableAssociation for usage and error information. +// API operation UpdateCollaboration for usage and error information. // // Returned Error Types: // -// - ConflictException -// Updating or deleting a resource can cause an inconsistent state. -// -// - ResourceNotFoundException -// Request references a resource which does not exist. -// // - InternalServerException // Unexpected error during processing of request. // @@ -3593,79 +4161,79 @@ func (c *CleanRooms) UpdateConfiguredTableAssociationRequest(input *UpdateConfig // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateConfiguredTableAssociation -func (c *CleanRooms) UpdateConfiguredTableAssociation(input *UpdateConfiguredTableAssociationInput) (*UpdateConfiguredTableAssociationOutput, error) { - req, out := c.UpdateConfiguredTableAssociationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateCollaboration +func (c *CleanRooms) UpdateCollaboration(input *UpdateCollaborationInput) (*UpdateCollaborationOutput, error) { + req, out := c.UpdateCollaborationRequest(input) return out, req.Send() } -// UpdateConfiguredTableAssociationWithContext is the same as UpdateConfiguredTableAssociation with the addition of +// UpdateCollaborationWithContext is the same as UpdateCollaboration with the addition of // the ability to pass a context and additional request options. // -// See UpdateConfiguredTableAssociation for details on how to use this API operation. +// See UpdateCollaboration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) UpdateConfiguredTableAssociationWithContext(ctx aws.Context, input *UpdateConfiguredTableAssociationInput, opts ...request.Option) (*UpdateConfiguredTableAssociationOutput, error) { - req, out := c.UpdateConfiguredTableAssociationRequest(input) +func (c *CleanRooms) UpdateCollaborationWithContext(ctx aws.Context, input *UpdateCollaborationInput, opts ...request.Option) (*UpdateCollaborationOutput, error) { + req, out := c.UpdateCollaborationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateMembership = "UpdateMembership" +const opUpdateConfiguredTable = "UpdateConfiguredTable" -// UpdateMembershipRequest generates a "aws/request.Request" representing the -// client's request for the UpdateMembership operation. The "output" return +// UpdateConfiguredTableRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConfiguredTable operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateMembership for more information on using the UpdateMembership +// See UpdateConfiguredTable for more information on using the UpdateConfiguredTable // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateMembershipRequest method. -// req, resp := client.UpdateMembershipRequest(params) +// // Example sending a request using the UpdateConfiguredTableRequest method. +// req, resp := client.UpdateConfiguredTableRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateMembership -func (c *CleanRooms) UpdateMembershipRequest(input *UpdateMembershipInput) (req *request.Request, output *UpdateMembershipOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateConfiguredTable +func (c *CleanRooms) UpdateConfiguredTableRequest(input *UpdateConfiguredTableInput) (req *request.Request, output *UpdateConfiguredTableOutput) { op := &request.Operation{ - Name: opUpdateMembership, + Name: opUpdateConfiguredTable, HTTPMethod: "PATCH", - HTTPPath: "/memberships/{membershipIdentifier}", + HTTPPath: "/configuredTables/{configuredTableIdentifier}", } if input == nil { - input = &UpdateMembershipInput{} + input = &UpdateConfiguredTableInput{} } - output = &UpdateMembershipOutput{} + output = &UpdateConfiguredTableOutput{} req = c.newRequest(op, input, output) return } -// UpdateMembership API operation for AWS Clean Rooms Service. +// UpdateConfiguredTable API operation for AWS Clean Rooms Service. // -// Updates a membership. +// Updates a configured table. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation UpdateMembership for usage and error information. +// API operation UpdateConfiguredTable for usage and error information. // // Returned Error Types: // @@ -3687,79 +4255,79 @@ func (c *CleanRooms) UpdateMembershipRequest(input *UpdateMembershipInput) (req // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateMembership -func (c *CleanRooms) UpdateMembership(input *UpdateMembershipInput) (*UpdateMembershipOutput, error) { - req, out := c.UpdateMembershipRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateConfiguredTable +func (c *CleanRooms) UpdateConfiguredTable(input *UpdateConfiguredTableInput) (*UpdateConfiguredTableOutput, error) { + req, out := c.UpdateConfiguredTableRequest(input) return out, req.Send() } -// UpdateMembershipWithContext is the same as UpdateMembership with the addition of +// UpdateConfiguredTableWithContext is the same as UpdateConfiguredTable with the addition of // the ability to pass a context and additional request options. // -// See UpdateMembership for details on how to use this API operation. +// See UpdateConfiguredTable for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) UpdateMembershipWithContext(ctx aws.Context, input *UpdateMembershipInput, opts ...request.Option) (*UpdateMembershipOutput, error) { - req, out := c.UpdateMembershipRequest(input) +func (c *CleanRooms) UpdateConfiguredTableWithContext(ctx aws.Context, input *UpdateConfiguredTableInput, opts ...request.Option) (*UpdateConfiguredTableOutput, error) { + req, out := c.UpdateConfiguredTableRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateProtectedQuery = "UpdateProtectedQuery" +const opUpdateConfiguredTableAnalysisRule = "UpdateConfiguredTableAnalysisRule" -// UpdateProtectedQueryRequest generates a "aws/request.Request" representing the -// client's request for the UpdateProtectedQuery operation. The "output" return +// UpdateConfiguredTableAnalysisRuleRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConfiguredTableAnalysisRule operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateProtectedQuery for more information on using the UpdateProtectedQuery +// See UpdateConfiguredTableAnalysisRule for more information on using the UpdateConfiguredTableAnalysisRule // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateProtectedQueryRequest method. -// req, resp := client.UpdateProtectedQueryRequest(params) +// // Example sending a request using the UpdateConfiguredTableAnalysisRuleRequest method. +// req, resp := client.UpdateConfiguredTableAnalysisRuleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateProtectedQuery -func (c *CleanRooms) UpdateProtectedQueryRequest(input *UpdateProtectedQueryInput) (req *request.Request, output *UpdateProtectedQueryOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateConfiguredTableAnalysisRule +func (c *CleanRooms) UpdateConfiguredTableAnalysisRuleRequest(input *UpdateConfiguredTableAnalysisRuleInput) (req *request.Request, output *UpdateConfiguredTableAnalysisRuleOutput) { op := &request.Operation{ - Name: opUpdateProtectedQuery, + Name: opUpdateConfiguredTableAnalysisRule, HTTPMethod: "PATCH", - HTTPPath: "/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}", + HTTPPath: "/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}", } if input == nil { - input = &UpdateProtectedQueryInput{} + input = &UpdateConfiguredTableAnalysisRuleInput{} } - output = &UpdateProtectedQueryOutput{} + output = &UpdateConfiguredTableAnalysisRuleOutput{} req = c.newRequest(op, input, output) return } -// UpdateProtectedQuery API operation for AWS Clean Rooms Service. +// UpdateConfiguredTableAnalysisRule API operation for AWS Clean Rooms Service. // -// Updates the processing of a currently running query. +// Updates a configured table analysis rule. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Clean Rooms Service's -// API operation UpdateProtectedQuery for usage and error information. +// API operation UpdateConfiguredTableAnalysisRule for usage and error information. // // Returned Error Types: // @@ -3781,108 +4349,1069 @@ func (c *CleanRooms) UpdateProtectedQueryRequest(input *UpdateProtectedQueryInpu // - AccessDeniedException // Caller does not have sufficient access to perform this action. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateProtectedQuery -func (c *CleanRooms) UpdateProtectedQuery(input *UpdateProtectedQueryInput) (*UpdateProtectedQueryOutput, error) { - req, out := c.UpdateProtectedQueryRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateConfiguredTableAnalysisRule +func (c *CleanRooms) UpdateConfiguredTableAnalysisRule(input *UpdateConfiguredTableAnalysisRuleInput) (*UpdateConfiguredTableAnalysisRuleOutput, error) { + req, out := c.UpdateConfiguredTableAnalysisRuleRequest(input) return out, req.Send() } -// UpdateProtectedQueryWithContext is the same as UpdateProtectedQuery with the addition of +// UpdateConfiguredTableAnalysisRuleWithContext is the same as UpdateConfiguredTableAnalysisRule with the addition of // the ability to pass a context and additional request options. // -// See UpdateProtectedQuery for details on how to use this API operation. +// See UpdateConfiguredTableAnalysisRule for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CleanRooms) UpdateProtectedQueryWithContext(ctx aws.Context, input *UpdateProtectedQueryInput, opts ...request.Option) (*UpdateProtectedQueryOutput, error) { - req, out := c.UpdateProtectedQueryRequest(input) +func (c *CleanRooms) UpdateConfiguredTableAnalysisRuleWithContext(ctx aws.Context, input *UpdateConfiguredTableAnalysisRuleInput, opts ...request.Option) (*UpdateConfiguredTableAnalysisRuleOutput, error) { + req, out := c.UpdateConfiguredTableAnalysisRuleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// Caller does not have sufficient access to perform this action. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` - - // A reason code for the exception. - Reason *string `locationName:"reason" type:"string" enum:"AccessDeniedExceptionReason"` -} +const opUpdateConfiguredTableAssociation = "UpdateConfiguredTableAssociation" -// String returns the string representation. +// UpdateConfiguredTableAssociationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConfiguredTableAssociation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// API parameter values that are decorated as "sensitive" in the API will not +// See UpdateConfiguredTableAssociation for more information on using the UpdateConfiguredTableAssociation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateConfiguredTableAssociationRequest method. +// req, resp := client.UpdateConfiguredTableAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateConfiguredTableAssociation +func (c *CleanRooms) UpdateConfiguredTableAssociationRequest(input *UpdateConfiguredTableAssociationInput) (req *request.Request, output *UpdateConfiguredTableAssociationOutput) { + op := &request.Operation{ + Name: opUpdateConfiguredTableAssociation, + HTTPMethod: "PATCH", + HTTPPath: "/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}", + } + + if input == nil { + input = &UpdateConfiguredTableAssociationInput{} + } + + output = &UpdateConfiguredTableAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateConfiguredTableAssociation API operation for AWS Clean Rooms Service. +// +// Updates a configured table association. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Clean Rooms Service's +// API operation UpdateConfiguredTableAssociation for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Updating or deleting a resource can cause an inconsistent state. +// +// - ResourceNotFoundException +// Request references a resource which does not exist. +// +// - InternalServerException +// Unexpected error during processing of request. +// +// - ValidationException +// The input fails to satisfy the specified constraints. +// +// - ThrottlingException +// Request was denied due to request throttling. +// +// - AccessDeniedException +// Caller does not have sufficient access to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateConfiguredTableAssociation +func (c *CleanRooms) UpdateConfiguredTableAssociation(input *UpdateConfiguredTableAssociationInput) (*UpdateConfiguredTableAssociationOutput, error) { + req, out := c.UpdateConfiguredTableAssociationRequest(input) + return out, req.Send() +} + +// UpdateConfiguredTableAssociationWithContext is the same as UpdateConfiguredTableAssociation with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateConfiguredTableAssociation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CleanRooms) UpdateConfiguredTableAssociationWithContext(ctx aws.Context, input *UpdateConfiguredTableAssociationInput, opts ...request.Option) (*UpdateConfiguredTableAssociationOutput, error) { + req, out := c.UpdateConfiguredTableAssociationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateMembership = "UpdateMembership" + +// UpdateMembershipRequest generates a "aws/request.Request" representing the +// client's request for the UpdateMembership operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateMembership for more information on using the UpdateMembership +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateMembershipRequest method. +// req, resp := client.UpdateMembershipRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateMembership +func (c *CleanRooms) UpdateMembershipRequest(input *UpdateMembershipInput) (req *request.Request, output *UpdateMembershipOutput) { + op := &request.Operation{ + Name: opUpdateMembership, + HTTPMethod: "PATCH", + HTTPPath: "/memberships/{membershipIdentifier}", + } + + if input == nil { + input = &UpdateMembershipInput{} + } + + output = &UpdateMembershipOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateMembership API operation for AWS Clean Rooms Service. +// +// Updates a membership. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Clean Rooms Service's +// API operation UpdateMembership for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Updating or deleting a resource can cause an inconsistent state. +// +// - ResourceNotFoundException +// Request references a resource which does not exist. +// +// - InternalServerException +// Unexpected error during processing of request. +// +// - ValidationException +// The input fails to satisfy the specified constraints. +// +// - ThrottlingException +// Request was denied due to request throttling. +// +// - AccessDeniedException +// Caller does not have sufficient access to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateMembership +func (c *CleanRooms) UpdateMembership(input *UpdateMembershipInput) (*UpdateMembershipOutput, error) { + req, out := c.UpdateMembershipRequest(input) + return out, req.Send() +} + +// UpdateMembershipWithContext is the same as UpdateMembership with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateMembership for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CleanRooms) UpdateMembershipWithContext(ctx aws.Context, input *UpdateMembershipInput, opts ...request.Option) (*UpdateMembershipOutput, error) { + req, out := c.UpdateMembershipRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateProtectedQuery = "UpdateProtectedQuery" + +// UpdateProtectedQueryRequest generates a "aws/request.Request" representing the +// client's request for the UpdateProtectedQuery operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateProtectedQuery for more information on using the UpdateProtectedQuery +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateProtectedQueryRequest method. +// req, resp := client.UpdateProtectedQueryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateProtectedQuery +func (c *CleanRooms) UpdateProtectedQueryRequest(input *UpdateProtectedQueryInput) (req *request.Request, output *UpdateProtectedQueryOutput) { + op := &request.Operation{ + Name: opUpdateProtectedQuery, + HTTPMethod: "PATCH", + HTTPPath: "/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}", + } + + if input == nil { + input = &UpdateProtectedQueryInput{} + } + + output = &UpdateProtectedQueryOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateProtectedQuery API operation for AWS Clean Rooms Service. +// +// Updates the processing of a currently running query. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Clean Rooms Service's +// API operation UpdateProtectedQuery for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Updating or deleting a resource can cause an inconsistent state. +// +// - ResourceNotFoundException +// Request references a resource which does not exist. +// +// - InternalServerException +// Unexpected error during processing of request. +// +// - ValidationException +// The input fails to satisfy the specified constraints. +// +// - ThrottlingException +// Request was denied due to request throttling. +// +// - AccessDeniedException +// Caller does not have sufficient access to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/UpdateProtectedQuery +func (c *CleanRooms) UpdateProtectedQuery(input *UpdateProtectedQueryInput) (*UpdateProtectedQueryOutput, error) { + req, out := c.UpdateProtectedQueryRequest(input) + return out, req.Send() +} + +// UpdateProtectedQueryWithContext is the same as UpdateProtectedQuery with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateProtectedQuery for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CleanRooms) UpdateProtectedQueryWithContext(ctx aws.Context, input *UpdateProtectedQueryInput, opts ...request.Option) (*UpdateProtectedQueryOutput, error) { + req, out := c.UpdateProtectedQueryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Caller does not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` + + // A reason code for the exception. + Reason *string `locationName:"reason" type:"string" enum:"AccessDeniedExceptionReason"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Column in configured table that can be used in aggregate function in query. +type AggregateColumn struct { + _ struct{} `type:"structure"` + + // Column names in configured table of aggregate columns. + // + // ColumnNames is a required field + ColumnNames []*string `locationName:"columnNames" min:"1" type:"list" required:"true"` + + // Aggregation function that can be applied to aggregate column in query. + // + // Function is a required field + Function *string `locationName:"function" type:"string" required:"true" enum:"AggregateFunctionName"` +} + +// 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 AggregateColumn) 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 AggregateColumn) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AggregateColumn) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AggregateColumn"} + if s.ColumnNames == nil { + invalidParams.Add(request.NewErrParamRequired("ColumnNames")) + } + if s.ColumnNames != nil && len(s.ColumnNames) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ColumnNames", 1)) + } + if s.Function == nil { + invalidParams.Add(request.NewErrParamRequired("Function")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetColumnNames sets the ColumnNames field's value. +func (s *AggregateColumn) SetColumnNames(v []*string) *AggregateColumn { + s.ColumnNames = v + return s +} + +// SetFunction sets the Function field's value. +func (s *AggregateColumn) SetFunction(v string) *AggregateColumn { + s.Function = &v + return s +} + +// Constraint on query output removing output rows that do not meet a minimum +// number of distinct values of a specified column. +type AggregationConstraint struct { + _ struct{} `type:"structure"` + + // Column in aggregation constraint for which there must be a minimum number + // of distinct values in an output row for it to be in the query output. + // + // ColumnName is a required field + ColumnName *string `locationName:"columnName" min:"1" type:"string" required:"true"` + + // The minimum number of distinct values that an output row must be an aggregation + // of. Minimum threshold of distinct values for a specified column that must + // exist in an output row for it to be in the query output. + // + // Minimum is a required field + Minimum *int64 `locationName:"minimum" min:"2" type:"integer" required:"true"` + + // The type of aggregation the constraint allows. The only valid value is currently + // `COUNT_DISTINCT`. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"AggregationType"` +} + +// 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 AggregationConstraint) 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 AggregationConstraint) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AggregationConstraint) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AggregationConstraint"} + if s.ColumnName == nil { + invalidParams.Add(request.NewErrParamRequired("ColumnName")) + } + if s.ColumnName != nil && len(*s.ColumnName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ColumnName", 1)) + } + if s.Minimum == nil { + invalidParams.Add(request.NewErrParamRequired("Minimum")) + } + if s.Minimum != nil && *s.Minimum < 2 { + invalidParams.Add(request.NewErrParamMinValue("Minimum", 2)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetColumnName sets the ColumnName field's value. +func (s *AggregationConstraint) SetColumnName(v string) *AggregationConstraint { + s.ColumnName = &v + return s +} + +// SetMinimum sets the Minimum field's value. +func (s *AggregationConstraint) SetMinimum(v int64) *AggregationConstraint { + s.Minimum = &v + return s +} + +// SetType sets the Type field's value. +func (s *AggregationConstraint) SetType(v string) *AggregationConstraint { + s.Type = &v + return s +} + +// Optional. The member who can query can provide this placeholder for a literal +// data value in an analysis template. +type AnalysisParameter struct { + _ struct{} `type:"structure" sensitive:"true"` + + // Optional. The default value that is applied in the analysis template. The + // member who can query can override this value in the query editor. + DefaultValue *string `locationName:"defaultValue" type:"string"` + + // The name of the parameter. The name must use only alphanumeric, underscore + // (_), or hyphen (-) characters but cannot start or end with a hyphen. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The type of parameter. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"ParameterType"` +} + +// 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 AnalysisParameter) 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 AnalysisParameter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnalysisParameter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnalysisParameter"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *AnalysisParameter) SetDefaultValue(v string) *AnalysisParameter { + s.DefaultValue = &v + return s +} + +// SetName sets the Name field's value. +func (s *AnalysisParameter) SetName(v string) *AnalysisParameter { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *AnalysisParameter) SetType(v string) *AnalysisParameter { + s.Type = &v + return s +} + +// A specification about how data from the configured table can be used in a +// query. +type AnalysisRule struct { + _ struct{} `type:"structure"` + + // The unique ID for the associated collaboration. + // + // CollaborationId is a required field + CollaborationId *string `locationName:"collaborationId" min:"36" type:"string" required:"true"` + + // The time the analysis rule was created. + // + // CreateTime is a required field + CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"` + + // The name for the analysis rule. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // A policy that describes the associated data usage limitations. + // + // Policy is a required field + Policy *AnalysisRulePolicy `locationName:"policy" type:"structure" required:"true"` + + // The type of analysis rule. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"AnalysisRuleType"` + + // The time the analysis rule was last updated. + // + // UpdateTime is a required field + UpdateTime *time.Time `locationName:"updateTime" 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 AnalysisRule) 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 AnalysisRule) GoString() string { + return s.String() +} + +// SetCollaborationId sets the CollaborationId field's value. +func (s *AnalysisRule) SetCollaborationId(v string) *AnalysisRule { + s.CollaborationId = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *AnalysisRule) SetCreateTime(v time.Time) *AnalysisRule { + s.CreateTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *AnalysisRule) SetName(v string) *AnalysisRule { + s.Name = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *AnalysisRule) SetPolicy(v *AnalysisRulePolicy) *AnalysisRule { + s.Policy = v + return s +} + +// SetType sets the Type field's value. +func (s *AnalysisRule) SetType(v string) *AnalysisRule { + s.Type = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *AnalysisRule) SetUpdateTime(v time.Time) *AnalysisRule { + s.UpdateTime = &v + return s +} + +// A type of analysis rule that enables query structure and specified queries +// that produce aggregate statistics. +type AnalysisRuleAggregation struct { + _ struct{} `type:"structure"` + + // The columns that query runners are allowed to use in aggregation queries. + // + // AggregateColumns is a required field + AggregateColumns []*AggregateColumn `locationName:"aggregateColumns" min:"1" type:"list" required:"true"` + + // Which logical operators (if any) are to be used in an INNER JOIN match condition. + // Default is AND. + AllowedJoinOperators []*string `locationName:"allowedJoinOperators" type:"list" enum:"JoinOperator"` + + // The columns that query runners are allowed to select, group by, or filter + // by. + // + // DimensionColumns is a required field + DimensionColumns []*string `locationName:"dimensionColumns" type:"list" required:"true"` + + // Columns in configured table that can be used in join statements and/or as + // aggregate columns. They can never be outputted directly. + // + // JoinColumns is a required field + JoinColumns []*string `locationName:"joinColumns" type:"list" required:"true"` + + // Control that requires member who runs query to do a join with their configured + // table and/or other configured table in query. + JoinRequired *string `locationName:"joinRequired" type:"string" enum:"JoinRequiredOption"` + + // Columns that must meet a specific threshold value (after an aggregation function + // is applied to it) for each output row to be returned. + // + // OutputConstraints is a required field + OutputConstraints []*AggregationConstraint `locationName:"outputConstraints" min:"1" type:"list" required:"true"` + + // Set of scalar functions that are allowed to be used on dimension columns + // and the output of aggregation of metrics. + // + // ScalarFunctions is a required field + ScalarFunctions []*string `locationName:"scalarFunctions" type:"list" required:"true" enum:"ScalarFunctions"` +} + +// 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 AnalysisRuleAggregation) 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 AnalysisRuleAggregation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnalysisRuleAggregation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnalysisRuleAggregation"} + if s.AggregateColumns == nil { + invalidParams.Add(request.NewErrParamRequired("AggregateColumns")) + } + if s.AggregateColumns != nil && len(s.AggregateColumns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AggregateColumns", 1)) + } + if s.DimensionColumns == nil { + invalidParams.Add(request.NewErrParamRequired("DimensionColumns")) + } + if s.JoinColumns == nil { + invalidParams.Add(request.NewErrParamRequired("JoinColumns")) + } + if s.OutputConstraints == nil { + invalidParams.Add(request.NewErrParamRequired("OutputConstraints")) + } + if s.OutputConstraints != nil && len(s.OutputConstraints) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutputConstraints", 1)) + } + if s.ScalarFunctions == nil { + invalidParams.Add(request.NewErrParamRequired("ScalarFunctions")) + } + if s.AggregateColumns != nil { + for i, v := range s.AggregateColumns { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AggregateColumns", i), err.(request.ErrInvalidParams)) + } + } + } + if s.OutputConstraints != nil { + for i, v := range s.OutputConstraints { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputConstraints", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAggregateColumns sets the AggregateColumns field's value. +func (s *AnalysisRuleAggregation) SetAggregateColumns(v []*AggregateColumn) *AnalysisRuleAggregation { + s.AggregateColumns = v + return s +} + +// SetAllowedJoinOperators sets the AllowedJoinOperators field's value. +func (s *AnalysisRuleAggregation) SetAllowedJoinOperators(v []*string) *AnalysisRuleAggregation { + s.AllowedJoinOperators = v + return s +} + +// SetDimensionColumns sets the DimensionColumns field's value. +func (s *AnalysisRuleAggregation) SetDimensionColumns(v []*string) *AnalysisRuleAggregation { + s.DimensionColumns = v + return s +} + +// SetJoinColumns sets the JoinColumns field's value. +func (s *AnalysisRuleAggregation) SetJoinColumns(v []*string) *AnalysisRuleAggregation { + s.JoinColumns = v + return s +} + +// SetJoinRequired sets the JoinRequired field's value. +func (s *AnalysisRuleAggregation) SetJoinRequired(v string) *AnalysisRuleAggregation { + s.JoinRequired = &v + return s +} + +// SetOutputConstraints sets the OutputConstraints field's value. +func (s *AnalysisRuleAggregation) SetOutputConstraints(v []*AggregationConstraint) *AnalysisRuleAggregation { + s.OutputConstraints = v + return s +} + +// SetScalarFunctions sets the ScalarFunctions field's value. +func (s *AnalysisRuleAggregation) SetScalarFunctions(v []*string) *AnalysisRuleAggregation { + s.ScalarFunctions = v + return s +} + +// A type of analysis rule that enables the table owner to approve custom SQL +// queries on their configured tables. +type AnalysisRuleCustom struct { + _ struct{} `type:"structure"` + + // The analysis templates that are allowed by the custom analysis rule. + // + // AllowedAnalyses is a required field + AllowedAnalyses []*string `locationName:"allowedAnalyses" type:"list" required:"true"` + + // The Amazon Web Services accounts that are allowed to query by the custom + // analysis rule. Required when allowedAnalyses is ANY_QUERY. + AllowedAnalysisProviders []*string `locationName:"allowedAnalysisProviders" 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 AnalysisRuleCustom) 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 AnalysisRuleCustom) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnalysisRuleCustom) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnalysisRuleCustom"} + if s.AllowedAnalyses == nil { + invalidParams.Add(request.NewErrParamRequired("AllowedAnalyses")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAllowedAnalyses sets the AllowedAnalyses field's value. +func (s *AnalysisRuleCustom) SetAllowedAnalyses(v []*string) *AnalysisRuleCustom { + s.AllowedAnalyses = v + return s +} + +// SetAllowedAnalysisProviders sets the AllowedAnalysisProviders field's value. +func (s *AnalysisRuleCustom) SetAllowedAnalysisProviders(v []*string) *AnalysisRuleCustom { + s.AllowedAnalysisProviders = v + return s +} + +// A type of analysis rule that enables row-level analysis. +type AnalysisRuleList struct { + _ struct{} `type:"structure"` + + // The logical operators (if any) that are to be used in an INNER JOIN match + // condition. Default is AND. + AllowedJoinOperators []*string `locationName:"allowedJoinOperators" type:"list" enum:"JoinOperator"` + + // Columns that can be used to join a configured table with the table of the + // member who can query and other members' configured tables. + // + // JoinColumns is a required field + JoinColumns []*string `locationName:"joinColumns" min:"1" type:"list" required:"true"` + + // Columns that can be listed in the output. + // + // ListColumns is a required field + ListColumns []*string `locationName:"listColumns" 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 AnalysisRuleList) 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 AnalysisRuleList) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnalysisRuleList) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnalysisRuleList"} + if s.JoinColumns == nil { + invalidParams.Add(request.NewErrParamRequired("JoinColumns")) + } + if s.JoinColumns != nil && len(s.JoinColumns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JoinColumns", 1)) + } + if s.ListColumns == nil { + invalidParams.Add(request.NewErrParamRequired("ListColumns")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAllowedJoinOperators sets the AllowedJoinOperators field's value. +func (s *AnalysisRuleList) SetAllowedJoinOperators(v []*string) *AnalysisRuleList { + s.AllowedJoinOperators = v + return s +} + +// SetJoinColumns sets the JoinColumns field's value. +func (s *AnalysisRuleList) SetJoinColumns(v []*string) *AnalysisRuleList { + s.JoinColumns = v + return s +} + +// SetListColumns sets the ListColumns field's value. +func (s *AnalysisRuleList) SetListColumns(v []*string) *AnalysisRuleList { + s.ListColumns = v + return s +} + +// Controls on the query specifications that can be run on configured table. +type AnalysisRulePolicy struct { + _ struct{} `type:"structure"` + + // Controls on the query specifications that can be run on configured table. + V1 *AnalysisRulePolicyV1 `locationName:"v1" 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 AccessDeniedException) GoString() string { +func (s AnalysisRulePolicy) 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 AnalysisRulePolicy) GoString() string { return s.String() } -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, - } +// SetV1 sets the V1 field's value. +func (s *AnalysisRulePolicy) SetV1(v *AnalysisRulePolicyV1) *AnalysisRulePolicy { + s.V1 = v + return s } -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" +// Controls on the query specifications that can be run on configured table. +type AnalysisRulePolicyV1 struct { + _ struct{} `type:"structure"` + + // Analysis rule type that enables only aggregation queries on a configured + // table. + Aggregation *AnalysisRuleAggregation `locationName:"aggregation" type:"structure"` + + // Analysis rule type that enables custom SQL queries on a configured table. + Custom *AnalysisRuleCustom `locationName:"custom" type:"structure"` + + // Analysis rule type that enables only list queries on a configured table. + List *AnalysisRuleList `locationName:"list" type:"structure"` } -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// 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 AnalysisRulePolicyV1) String() string { + return awsutil.Prettify(s) } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil +// 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 AnalysisRulePolicyV1) GoString() string { + return s.String() } -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// SetAggregation sets the Aggregation field's value. +func (s *AnalysisRulePolicyV1) SetAggregation(v *AnalysisRuleAggregation) *AnalysisRulePolicyV1 { + s.Aggregation = v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetCustom sets the Custom field's value. +func (s *AnalysisRulePolicyV1) SetCustom(v *AnalysisRuleCustom) *AnalysisRulePolicyV1 { + s.Custom = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID +// SetList sets the List field's value. +func (s *AnalysisRulePolicyV1) SetList(v *AnalysisRuleList) *AnalysisRulePolicyV1 { + s.List = v + return s } -// Column in configured table that can be used in aggregate function in query. -type AggregateColumn struct { +// A relation within an analysis. +type AnalysisSchema struct { _ struct{} `type:"structure"` - // Column names in configured table of aggregate columns. - // - // ColumnNames is a required field - ColumnNames []*string `locationName:"columnNames" min:"1" type:"list" required:"true"` - - // Aggregation function that can be applied to aggregate column in query. - // - // Function is a required field - Function *string `locationName:"function" type:"string" required:"true" enum:"AggregateFunctionName"` + // The tables referenced in the analysis schema. + ReferencedTables []*string `locationName:"referencedTables" type:"list"` } // String returns the string representation. @@ -3890,7 +5419,7 @@ type AggregateColumn 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 AggregateColumn) String() string { +func (s AnalysisSchema) String() string { return awsutil.Prettify(s) } @@ -3899,158 +5428,274 @@ func (s AggregateColumn) 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 AggregateColumn) GoString() string { +func (s AnalysisSchema) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AggregateColumn) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AggregateColumn"} - if s.ColumnNames == nil { - invalidParams.Add(request.NewErrParamRequired("ColumnNames")) - } - if s.ColumnNames != nil && len(s.ColumnNames) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ColumnNames", 1)) - } - if s.Function == nil { - invalidParams.Add(request.NewErrParamRequired("Function")) - } +// SetReferencedTables sets the ReferencedTables field's value. +func (s *AnalysisSchema) SetReferencedTables(v []*string) *AnalysisSchema { + s.ReferencedTables = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// The structure that defines the body of the analysis template. +type AnalysisSource struct { + _ struct{} `type:"structure" sensitive:"true"` + + // The query text. + Text *string `locationName:"text" type:"string"` } -// SetColumnNames sets the ColumnNames field's value. -func (s *AggregateColumn) SetColumnNames(v []*string) *AggregateColumn { - s.ColumnNames = 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 AnalysisSource) String() string { + return awsutil.Prettify(s) } -// SetFunction sets the Function field's value. -func (s *AggregateColumn) SetFunction(v string) *AggregateColumn { - s.Function = &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 AnalysisSource) GoString() string { + return s.String() +} + +// SetText sets the Text field's value. +func (s *AnalysisSource) SetText(v string) *AnalysisSource { + s.Text = &v return s } -// Constraint on query output removing output rows that do not meet a minimum -// number of distinct values of a specified column. -type AggregationConstraint struct { +// The analysis template. +type AnalysisTemplate struct { _ struct{} `type:"structure"` - // Column in aggregation constraint for which there must be a minimum number - // of distinct values in an output row for it to be in the query output. + // The parameters of the analysis template. + AnalysisParameters []*AnalysisParameter `locationName:"analysisParameters" type:"list"` + + // The Amazon Resource Name (ARN) of the analysis template. // - // ColumnName is a required field - ColumnName *string `locationName:"columnName" min:"1" type:"string" required:"true"` + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` - // The minimum number of distinct values that an output row must be an aggregation - // of. Minimum threshold of distinct values for a specified column that must - // exist in an output row for it to be in the query output. + // The unique ARN for the analysis template’s associated collaboration. // - // Minimum is a required field - Minimum *int64 `locationName:"minimum" min:"2" type:"integer" required:"true"` + // CollaborationArn is a required field + CollaborationArn *string `locationName:"collaborationArn" type:"string" required:"true"` + + // The unique ID for the associated collaboration of the analysis template. + // + // CollaborationId is a required field + CollaborationId *string `locationName:"collaborationId" min:"36" type:"string" required:"true"` + + // The time that the analysis template was created. + // + // CreateTime is a required field + CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"` + + // The description of the analysis template. + Description *string `locationName:"description" type:"string"` + + // The format of the analysis template. + // + // Format is a required field + Format *string `locationName:"format" type:"string" required:"true" enum:"AnalysisFormat"` + + // The identifier for the analysis template. + // + // Id is a required field + Id *string `locationName:"id" min:"36" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the member who created the analysis template. + // + // MembershipArn is a required field + MembershipArn *string `locationName:"membershipArn" type:"string" required:"true"` + + // The identifier of a member who created the analysis template. + // + // MembershipId is a required field + MembershipId *string `locationName:"membershipId" min:"36" type:"string" required:"true"` + + // The name of the analysis template. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The entire schema object. + // + // Schema is a required field + Schema *AnalysisSchema `locationName:"schema" type:"structure" required:"true"` + + // The source of the analysis template. + // + // Source is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by AnalysisTemplate's + // String and GoString methods. + // + // Source is a required field + Source *AnalysisSource `locationName:"source" type:"structure" required:"true" sensitive:"true"` + + // The time that the analysis template was last updated. + // + // UpdateTime is a required field + UpdateTime *time.Time `locationName:"updateTime" 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 AnalysisTemplate) 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 AnalysisTemplate) GoString() string { + return s.String() +} + +// SetAnalysisParameters sets the AnalysisParameters field's value. +func (s *AnalysisTemplate) SetAnalysisParameters(v []*AnalysisParameter) *AnalysisTemplate { + s.AnalysisParameters = v + return s +} + +// SetArn sets the Arn field's value. +func (s *AnalysisTemplate) SetArn(v string) *AnalysisTemplate { + s.Arn = &v + return s +} + +// SetCollaborationArn sets the CollaborationArn field's value. +func (s *AnalysisTemplate) SetCollaborationArn(v string) *AnalysisTemplate { + s.CollaborationArn = &v + return s +} + +// SetCollaborationId sets the CollaborationId field's value. +func (s *AnalysisTemplate) SetCollaborationId(v string) *AnalysisTemplate { + s.CollaborationId = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *AnalysisTemplate) SetCreateTime(v time.Time) *AnalysisTemplate { + s.CreateTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *AnalysisTemplate) SetDescription(v string) *AnalysisTemplate { + s.Description = &v + return s +} - // The type of aggregation the constraint allows. The only valid value is currently - // `COUNT_DISTINCT`. - // - // Type is a required field - Type *string `locationName:"type" type:"string" required:"true" enum:"AggregationType"` +// SetFormat sets the Format field's value. +func (s *AnalysisTemplate) SetFormat(v string) *AnalysisTemplate { + s.Format = &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 AggregationConstraint) String() string { - return awsutil.Prettify(s) +// SetId sets the Id field's value. +func (s *AnalysisTemplate) SetId(v string) *AnalysisTemplate { + 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 AggregationConstraint) GoString() string { - return s.String() +// SetMembershipArn sets the MembershipArn field's value. +func (s *AnalysisTemplate) SetMembershipArn(v string) *AnalysisTemplate { + s.MembershipArn = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AggregationConstraint) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AggregationConstraint"} - if s.ColumnName == nil { - invalidParams.Add(request.NewErrParamRequired("ColumnName")) - } - if s.ColumnName != nil && len(*s.ColumnName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ColumnName", 1)) - } - if s.Minimum == nil { - invalidParams.Add(request.NewErrParamRequired("Minimum")) - } - if s.Minimum != nil && *s.Minimum < 2 { - invalidParams.Add(request.NewErrParamMinValue("Minimum", 2)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } +// SetMembershipId sets the MembershipId field's value. +func (s *AnalysisTemplate) SetMembershipId(v string) *AnalysisTemplate { + s.MembershipId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetName sets the Name field's value. +func (s *AnalysisTemplate) SetName(v string) *AnalysisTemplate { + s.Name = &v + return s } -// SetColumnName sets the ColumnName field's value. -func (s *AggregationConstraint) SetColumnName(v string) *AggregationConstraint { - s.ColumnName = &v +// SetSchema sets the Schema field's value. +func (s *AnalysisTemplate) SetSchema(v *AnalysisSchema) *AnalysisTemplate { + s.Schema = v return s } -// SetMinimum sets the Minimum field's value. -func (s *AggregationConstraint) SetMinimum(v int64) *AggregationConstraint { - s.Minimum = &v +// SetSource sets the Source field's value. +func (s *AnalysisTemplate) SetSource(v *AnalysisSource) *AnalysisTemplate { + s.Source = v return s } -// SetType sets the Type field's value. -func (s *AggregationConstraint) SetType(v string) *AggregationConstraint { - s.Type = &v +// SetUpdateTime sets the UpdateTime field's value. +func (s *AnalysisTemplate) SetUpdateTime(v time.Time) *AnalysisTemplate { + s.UpdateTime = &v return s } -// A specification about how data from the configured table can be used in a -// query. -type AnalysisRule struct { +// The metadata of the analysis template. +type AnalysisTemplateSummary struct { _ struct{} `type:"structure"` - // The unique ID for the associated collaboration. + // The Amazon Resource Name (ARN) of the analysis template. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` + + // The unique ARN for the analysis template summary’s associated collaboration. + // + // CollaborationArn is a required field + CollaborationArn *string `locationName:"collaborationArn" type:"string" required:"true"` + + // A unique identifier for the collaboration that the analysis template summary + // belongs to. Currently accepts collaboration ID. // // CollaborationId is a required field CollaborationId *string `locationName:"collaborationId" min:"36" type:"string" required:"true"` - // The time the analysis rule was created. + // The time that the analysis template summary was created. // // CreateTime is a required field CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"` - // The name for the analysis rule. + // The description of the analysis template. + Description *string `locationName:"description" type:"string"` + + // The identifier of the analysis template. // - // Name is a required field - Name *string `locationName:"name" type:"string" required:"true"` + // Id is a required field + Id *string `locationName:"id" min:"36" type:"string" required:"true"` - // A policy that describes the associated data usage limitations. + // The Amazon Resource Name (ARN) of the member who created the analysis template. // - // Policy is a required field - Policy *AnalysisRulePolicy `locationName:"policy" type:"structure" required:"true"` + // MembershipArn is a required field + MembershipArn *string `locationName:"membershipArn" type:"string" required:"true"` + + // The identifier for a membership resource. + // + // MembershipId is a required field + MembershipId *string `locationName:"membershipId" min:"36" type:"string" required:"true"` - // The type of analysis rule. Valid values are `AGGREGATION` and `LIST`. + // The name of the analysis template. // - // Type is a required field - Type *string `locationName:"type" type:"string" required:"true" enum:"AnalysisRuleType"` + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` - // The time the analysis rule was last updated. + // The time that the analysis template summary was last updated. // // UpdateTime is a required field UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"` @@ -4061,7 +5706,7 @@ type AnalysisRule 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 AnalysisRule) String() string { +func (s AnalysisTemplateSummary) String() string { return awsutil.Prettify(s) } @@ -4070,86 +5715,141 @@ func (s AnalysisRule) 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 AnalysisRule) GoString() string { +func (s AnalysisTemplateSummary) GoString() string { return s.String() } +// SetArn sets the Arn field's value. +func (s *AnalysisTemplateSummary) SetArn(v string) *AnalysisTemplateSummary { + s.Arn = &v + return s +} + +// SetCollaborationArn sets the CollaborationArn field's value. +func (s *AnalysisTemplateSummary) SetCollaborationArn(v string) *AnalysisTemplateSummary { + s.CollaborationArn = &v + return s +} + // SetCollaborationId sets the CollaborationId field's value. -func (s *AnalysisRule) SetCollaborationId(v string) *AnalysisRule { +func (s *AnalysisTemplateSummary) SetCollaborationId(v string) *AnalysisTemplateSummary { s.CollaborationId = &v return s } // SetCreateTime sets the CreateTime field's value. -func (s *AnalysisRule) SetCreateTime(v time.Time) *AnalysisRule { +func (s *AnalysisTemplateSummary) SetCreateTime(v time.Time) *AnalysisTemplateSummary { s.CreateTime = &v return s } -// SetName sets the Name field's value. -func (s *AnalysisRule) SetName(v string) *AnalysisRule { - s.Name = &v +// SetDescription sets the Description field's value. +func (s *AnalysisTemplateSummary) SetDescription(v string) *AnalysisTemplateSummary { + s.Description = &v return s } -// SetPolicy sets the Policy field's value. -func (s *AnalysisRule) SetPolicy(v *AnalysisRulePolicy) *AnalysisRule { - s.Policy = v +// SetId sets the Id field's value. +func (s *AnalysisTemplateSummary) SetId(v string) *AnalysisTemplateSummary { + s.Id = &v return s } -// SetType sets the Type field's value. -func (s *AnalysisRule) SetType(v string) *AnalysisRule { - s.Type = &v +// SetMembershipArn sets the MembershipArn field's value. +func (s *AnalysisTemplateSummary) SetMembershipArn(v string) *AnalysisTemplateSummary { + s.MembershipArn = &v + return s +} + +// SetMembershipId sets the MembershipId field's value. +func (s *AnalysisTemplateSummary) SetMembershipId(v string) *AnalysisTemplateSummary { + s.MembershipId = &v + return s +} + +// SetName sets the Name field's value. +func (s *AnalysisTemplateSummary) SetName(v string) *AnalysisTemplateSummary { + s.Name = &v return s } // SetUpdateTime sets the UpdateTime field's value. -func (s *AnalysisRule) SetUpdateTime(v time.Time) *AnalysisRule { +func (s *AnalysisTemplateSummary) SetUpdateTime(v time.Time) *AnalysisTemplateSummary { s.UpdateTime = &v return s } -// Enables query structure and specified queries that produce aggregate statistics. -type AnalysisRuleAggregation struct { +// Details of errors thrown by the call to retrieve multiple analysis templates +// within a collaboration by their identifiers. +type BatchGetCollaborationAnalysisTemplateError struct { _ struct{} `type:"structure"` - // The columns that query runners are allowed to use in aggregation queries. + // The Amazon Resource Name (ARN) of the analysis template. // - // AggregateColumns is a required field - AggregateColumns []*AggregateColumn `locationName:"aggregateColumns" min:"1" type:"list" required:"true"` - - // Which logical operators (if any) are to be used in an INNER JOIN match condition. - // Default is AND. - AllowedJoinOperators []*string `locationName:"allowedJoinOperators" type:"list" enum:"JoinOperator"` + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` - // The columns that query runners are allowed to select, group by, or filter - // by. + // An error code for the error. // - // DimensionColumns is a required field - DimensionColumns []*string `locationName:"dimensionColumns" type:"list" required:"true"` + // Code is a required field + Code *string `locationName:"code" type:"string" required:"true"` - // Columns in configured table that can be used in join statements and/or as - // aggregate columns. They can never be outputted directly. + // A description of why the call failed. // - // JoinColumns is a required field - JoinColumns []*string `locationName:"joinColumns" type:"list" required:"true"` + // Message is a required field + Message *string `locationName:"message" type:"string" required:"true"` +} - // Control that requires member who runs query to do a join with their configured - // table and/or other configured table in query. - JoinRequired *string `locationName:"joinRequired" type:"string" enum:"JoinRequiredOption"` +// 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 BatchGetCollaborationAnalysisTemplateError) String() string { + return awsutil.Prettify(s) +} - // Columns that must meet a specific threshold value (after an aggregation function - // is applied to it) for each output row to be returned. +// 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 BatchGetCollaborationAnalysisTemplateError) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *BatchGetCollaborationAnalysisTemplateError) SetArn(v string) *BatchGetCollaborationAnalysisTemplateError { + s.Arn = &v + return s +} + +// SetCode sets the Code field's value. +func (s *BatchGetCollaborationAnalysisTemplateError) SetCode(v string) *BatchGetCollaborationAnalysisTemplateError { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *BatchGetCollaborationAnalysisTemplateError) SetMessage(v string) *BatchGetCollaborationAnalysisTemplateError { + s.Message = &v + return s +} + +type BatchGetCollaborationAnalysisTemplateInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) associated with the analysis template within + // a collaboration. // - // OutputConstraints is a required field - OutputConstraints []*AggregationConstraint `locationName:"outputConstraints" min:"1" type:"list" required:"true"` + // AnalysisTemplateArns is a required field + AnalysisTemplateArns []*string `locationName:"analysisTemplateArns" min:"1" type:"list" required:"true"` - // Set of scalar functions that are allowed to be used on dimension columns - // and the output of aggregation of metrics. + // A unique identifier for the collaboration that the analysis templates belong + // to. Currently accepts collaboration ID. // - // ScalarFunctions is a required field - ScalarFunctions []*string `locationName:"scalarFunctions" type:"list" required:"true" enum:"ScalarFunctions"` + // CollaborationIdentifier is a required field + CollaborationIdentifier *string `location:"uri" locationName:"collaborationIdentifier" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -4157,7 +5857,7 @@ type AnalysisRuleAggregation 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 AnalysisRuleAggregation) String() string { +func (s BatchGetCollaborationAnalysisTemplateInput) String() string { return awsutil.Prettify(s) } @@ -4166,53 +5866,24 @@ func (s AnalysisRuleAggregation) 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 AnalysisRuleAggregation) GoString() string { +func (s BatchGetCollaborationAnalysisTemplateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AnalysisRuleAggregation) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AnalysisRuleAggregation"} - if s.AggregateColumns == nil { - invalidParams.Add(request.NewErrParamRequired("AggregateColumns")) - } - if s.AggregateColumns != nil && len(s.AggregateColumns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AggregateColumns", 1)) - } - if s.DimensionColumns == nil { - invalidParams.Add(request.NewErrParamRequired("DimensionColumns")) - } - if s.JoinColumns == nil { - invalidParams.Add(request.NewErrParamRequired("JoinColumns")) - } - if s.OutputConstraints == nil { - invalidParams.Add(request.NewErrParamRequired("OutputConstraints")) +func (s *BatchGetCollaborationAnalysisTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetCollaborationAnalysisTemplateInput"} + if s.AnalysisTemplateArns == nil { + invalidParams.Add(request.NewErrParamRequired("AnalysisTemplateArns")) } - if s.OutputConstraints != nil && len(s.OutputConstraints) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OutputConstraints", 1)) - } - if s.ScalarFunctions == nil { - invalidParams.Add(request.NewErrParamRequired("ScalarFunctions")) - } - if s.AggregateColumns != nil { - for i, v := range s.AggregateColumns { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AggregateColumns", i), err.(request.ErrInvalidParams)) - } - } + if s.AnalysisTemplateArns != nil && len(s.AnalysisTemplateArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AnalysisTemplateArns", 1)) } - if s.OutputConstraints != nil { - for i, v := range s.OutputConstraints { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputConstraints", i), err.(request.ErrInvalidParams)) - } - } + if s.CollaborationIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("CollaborationIdentifier")) + } + if s.CollaborationIdentifier != nil && len(*s.CollaborationIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("CollaborationIdentifier", 36)) } if invalidParams.Len() > 0 { @@ -4221,66 +5892,133 @@ func (s *AnalysisRuleAggregation) Validate() error { return nil } -// SetAggregateColumns sets the AggregateColumns field's value. -func (s *AnalysisRuleAggregation) SetAggregateColumns(v []*AggregateColumn) *AnalysisRuleAggregation { - s.AggregateColumns = v +// SetAnalysisTemplateArns sets the AnalysisTemplateArns field's value. +func (s *BatchGetCollaborationAnalysisTemplateInput) SetAnalysisTemplateArns(v []*string) *BatchGetCollaborationAnalysisTemplateInput { + s.AnalysisTemplateArns = v return s } -// SetAllowedJoinOperators sets the AllowedJoinOperators field's value. -func (s *AnalysisRuleAggregation) SetAllowedJoinOperators(v []*string) *AnalysisRuleAggregation { - s.AllowedJoinOperators = v +// SetCollaborationIdentifier sets the CollaborationIdentifier field's value. +func (s *BatchGetCollaborationAnalysisTemplateInput) SetCollaborationIdentifier(v string) *BatchGetCollaborationAnalysisTemplateInput { + s.CollaborationIdentifier = &v return s } -// SetDimensionColumns sets the DimensionColumns field's value. -func (s *AnalysisRuleAggregation) SetDimensionColumns(v []*string) *AnalysisRuleAggregation { - s.DimensionColumns = v +type BatchGetCollaborationAnalysisTemplateOutput struct { + _ struct{} `type:"structure"` + + // The retrieved list of analysis templates within a collaboration. + // + // CollaborationAnalysisTemplates is a required field + CollaborationAnalysisTemplates []*CollaborationAnalysisTemplate `locationName:"collaborationAnalysisTemplates" type:"list" required:"true"` + + // Error reasons for collaboration analysis templates that could not be retrieved. + // One error is returned for every collaboration analysis template that could + // not be retrieved. + // + // Errors is a required field + Errors []*BatchGetCollaborationAnalysisTemplateError `locationName:"errors" 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 BatchGetCollaborationAnalysisTemplateOutput) 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 BatchGetCollaborationAnalysisTemplateOutput) GoString() string { + return s.String() +} + +// SetCollaborationAnalysisTemplates sets the CollaborationAnalysisTemplates field's value. +func (s *BatchGetCollaborationAnalysisTemplateOutput) SetCollaborationAnalysisTemplates(v []*CollaborationAnalysisTemplate) *BatchGetCollaborationAnalysisTemplateOutput { + s.CollaborationAnalysisTemplates = v return s } -// SetJoinColumns sets the JoinColumns field's value. -func (s *AnalysisRuleAggregation) SetJoinColumns(v []*string) *AnalysisRuleAggregation { - s.JoinColumns = v +// SetErrors sets the Errors field's value. +func (s *BatchGetCollaborationAnalysisTemplateOutput) SetErrors(v []*BatchGetCollaborationAnalysisTemplateError) *BatchGetCollaborationAnalysisTemplateOutput { + s.Errors = v return s } -// SetJoinRequired sets the JoinRequired field's value. -func (s *AnalysisRuleAggregation) SetJoinRequired(v string) *AnalysisRuleAggregation { - s.JoinRequired = &v +// An error describing why a schema could not be fetched. +type BatchGetSchemaError struct { + _ struct{} `type:"structure"` + + // An error code for the error. + // + // Code is a required field + Code *string `locationName:"code" type:"string" required:"true"` + + // An error message for the error. + // + // Message is a required field + Message *string `locationName:"message" type:"string" required:"true"` + + // An error name for the error. + // + // Name is a required field + Name *string `locationName:"name" 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 BatchGetSchemaError) 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 BatchGetSchemaError) GoString() string { + return s.String() +} + +// SetCode sets the Code field's value. +func (s *BatchGetSchemaError) SetCode(v string) *BatchGetSchemaError { + s.Code = &v return s } -// SetOutputConstraints sets the OutputConstraints field's value. -func (s *AnalysisRuleAggregation) SetOutputConstraints(v []*AggregationConstraint) *AnalysisRuleAggregation { - s.OutputConstraints = v +// SetMessage sets the Message field's value. +func (s *BatchGetSchemaError) SetMessage(v string) *BatchGetSchemaError { + s.Message = &v return s } -// SetScalarFunctions sets the ScalarFunctions field's value. -func (s *AnalysisRuleAggregation) SetScalarFunctions(v []*string) *AnalysisRuleAggregation { - s.ScalarFunctions = v +// SetName sets the Name field's value. +func (s *BatchGetSchemaError) SetName(v string) *BatchGetSchemaError { + s.Name = &v return s } -// A type of analysis rule that enables row-level analysis. -type AnalysisRuleList struct { +type BatchGetSchemaInput struct { _ struct{} `type:"structure"` - // Which logical operators (if any) are to be used in an INNER JOIN match condition. - // Default is AND. - AllowedJoinOperators []*string `locationName:"allowedJoinOperators" type:"list" enum:"JoinOperator"` - - // Columns that can be used to join a configured table with the table of the - // member who can query and other members' configured tables. + // A unique identifier for the collaboration that the schemas belong to. Currently + // accepts collaboration ID. // - // JoinColumns is a required field - JoinColumns []*string `locationName:"joinColumns" min:"1" type:"list" required:"true"` + // CollaborationIdentifier is a required field + CollaborationIdentifier *string `location:"uri" locationName:"collaborationIdentifier" min:"36" type:"string" required:"true"` - // Columns that can be listed in the output. + // The names for the schema objects to retrieve.> // - // ListColumns is a required field - ListColumns []*string `locationName:"listColumns" type:"list" required:"true"` + // Names is a required field + Names []*string `locationName:"names" min:"1" type:"list" required:"true"` } // String returns the string representation. @@ -4288,7 +6026,7 @@ type AnalysisRuleList 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 AnalysisRuleList) String() string { +func (s BatchGetSchemaInput) String() string { return awsutil.Prettify(s) } @@ -4297,21 +6035,24 @@ func (s AnalysisRuleList) 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 AnalysisRuleList) GoString() string { +func (s BatchGetSchemaInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AnalysisRuleList) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AnalysisRuleList"} - if s.JoinColumns == nil { - invalidParams.Add(request.NewErrParamRequired("JoinColumns")) +func (s *BatchGetSchemaInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetSchemaInput"} + if s.CollaborationIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("CollaborationIdentifier")) } - if s.JoinColumns != nil && len(s.JoinColumns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JoinColumns", 1)) + if s.CollaborationIdentifier != nil && len(*s.CollaborationIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("CollaborationIdentifier", 36)) } - if s.ListColumns == nil { - invalidParams.Add(request.NewErrParamRequired("ListColumns")) + 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 { @@ -4320,30 +6061,31 @@ func (s *AnalysisRuleList) Validate() error { return nil } -// SetAllowedJoinOperators sets the AllowedJoinOperators field's value. -func (s *AnalysisRuleList) SetAllowedJoinOperators(v []*string) *AnalysisRuleList { - s.AllowedJoinOperators = v - return s -} - -// SetJoinColumns sets the JoinColumns field's value. -func (s *AnalysisRuleList) SetJoinColumns(v []*string) *AnalysisRuleList { - s.JoinColumns = v +// SetCollaborationIdentifier sets the CollaborationIdentifier field's value. +func (s *BatchGetSchemaInput) SetCollaborationIdentifier(v string) *BatchGetSchemaInput { + s.CollaborationIdentifier = &v return s } -// SetListColumns sets the ListColumns field's value. -func (s *AnalysisRuleList) SetListColumns(v []*string) *AnalysisRuleList { - s.ListColumns = v +// SetNames sets the Names field's value. +func (s *BatchGetSchemaInput) SetNames(v []*string) *BatchGetSchemaInput { + s.Names = v return s } -// Controls on the query specifications that can be run on configured table.. -type AnalysisRulePolicy struct { +type BatchGetSchemaOutput struct { _ struct{} `type:"structure"` - // Controls on the query specifications that can be run on configured table.. - V1 *AnalysisRulePolicyV1 `locationName:"v1" type:"structure"` + // Error reasons for schemas that could not be retrieved. One error is returned + // for every schema that could not be retrieved. + // + // Errors is a required field + Errors []*BatchGetSchemaError `locationName:"errors" type:"list" required:"true"` + + // The retrieved list of schemas. + // + // Schemas is a required field + Schemas []*Schema `locationName:"schemas" type:"list" required:"true"` } // String returns the string representation. @@ -4351,7 +6093,7 @@ type AnalysisRulePolicy 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 AnalysisRulePolicy) String() string { +func (s BatchGetSchemaOutput) String() string { return awsutil.Prettify(s) } @@ -4360,26 +6102,86 @@ func (s AnalysisRulePolicy) 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 AnalysisRulePolicy) GoString() string { +func (s BatchGetSchemaOutput) GoString() string { return s.String() } -// SetV1 sets the V1 field's value. -func (s *AnalysisRulePolicy) SetV1(v *AnalysisRulePolicyV1) *AnalysisRulePolicy { - s.V1 = v +// SetErrors sets the Errors field's value. +func (s *BatchGetSchemaOutput) SetErrors(v []*BatchGetSchemaError) *BatchGetSchemaOutput { + s.Errors = v return s } -// Controls on the query specifications that can be run on configured table.. -type AnalysisRulePolicyV1 struct { +// SetSchemas sets the Schemas field's value. +func (s *BatchGetSchemaOutput) SetSchemas(v []*Schema) *BatchGetSchemaOutput { + s.Schemas = v + return s +} + +// The multi-party data share environment. The collaboration contains metadata +// about its purpose and participants. +type Collaboration struct { _ struct{} `type:"structure"` - // Analysis rule type that enables only aggregation queries on a configured - // table. - Aggregation *AnalysisRuleAggregation `locationName:"aggregation" type:"structure"` + // The unique ARN for the collaboration. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` - // Analysis rule type that enables only list queries on a configured table. - List *AnalysisRuleList `locationName:"list" type:"structure"` + // The time when the collaboration was created. + // + // CreateTime is a required field + CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"` + + // The identifier used to reference members of the collaboration. Currently + // only supports Amazon Web Services account ID. + // + // CreatorAccountId is a required field + CreatorAccountId *string `locationName:"creatorAccountId" min:"12" type:"string" required:"true"` + + // A display name of the collaboration creator. + // + // CreatorDisplayName is a required field + CreatorDisplayName *string `locationName:"creatorDisplayName" min:"1" type:"string" required:"true"` + + // The settings for client-side encryption for cryptographic computing. + DataEncryptionMetadata *DataEncryptionMetadata `locationName:"dataEncryptionMetadata" type:"structure"` + + // A description of the collaboration provided by the collaboration owner. + Description *string `locationName:"description" min:"1" type:"string"` + + // The unique ID for the collaboration. + // + // Id is a required field + Id *string `locationName:"id" min:"36" type:"string" required:"true"` + + // The status of a member in a collaboration. + // + // MemberStatus is a required field + MemberStatus *string `locationName:"memberStatus" type:"string" required:"true" enum:"MemberStatus"` + + // The unique ARN for your membership within the collaboration. + MembershipArn *string `locationName:"membershipArn" type:"string"` + + // The unique ID for your membership within the collaboration. + MembershipId *string `locationName:"membershipId" min:"36" type:"string"` + + // A human-readable identifier provided by the collaboration owner. Display + // names are not unique. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // An indicator as to whether query logging has been enabled or disabled for + // the collaboration. + // + // QueryLogStatus is a required field + QueryLogStatus *string `locationName:"queryLogStatus" type:"string" required:"true" enum:"CollaborationQueryLogStatus"` + + // The time the collaboration metadata was last updated. + // + // UpdateTime is a required field + UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"` } // String returns the string representation. @@ -4387,7 +6189,7 @@ type AnalysisRulePolicyV1 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 AnalysisRulePolicyV1) String() string { +func (s Collaboration) String() string { return awsutil.Prettify(s) } @@ -4396,91 +6198,158 @@ func (s AnalysisRulePolicyV1) 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 AnalysisRulePolicyV1) GoString() string { +func (s Collaboration) GoString() string { return s.String() } -// SetAggregation sets the Aggregation field's value. -func (s *AnalysisRulePolicyV1) SetAggregation(v *AnalysisRuleAggregation) *AnalysisRulePolicyV1 { - s.Aggregation = v +// SetArn sets the Arn field's value. +func (s *Collaboration) SetArn(v string) *Collaboration { + s.Arn = &v return s } -// SetList sets the List field's value. -func (s *AnalysisRulePolicyV1) SetList(v *AnalysisRuleList) *AnalysisRulePolicyV1 { - s.List = v +// SetCreateTime sets the CreateTime field's value. +func (s *Collaboration) SetCreateTime(v time.Time) *Collaboration { + s.CreateTime = &v return s } -// An error describing why a schema could not be fetched. -type BatchGetSchemaError struct { - _ struct{} `type:"structure"` +// SetCreatorAccountId sets the CreatorAccountId field's value. +func (s *Collaboration) SetCreatorAccountId(v string) *Collaboration { + s.CreatorAccountId = &v + return s +} - // An error code for the error. - // - // Code is a required field - Code *string `locationName:"code" type:"string" required:"true"` +// SetCreatorDisplayName sets the CreatorDisplayName field's value. +func (s *Collaboration) SetCreatorDisplayName(v string) *Collaboration { + s.CreatorDisplayName = &v + return s +} - // An error message for the error. - // - // Message is a required field - Message *string `locationName:"message" type:"string" required:"true"` +// SetDataEncryptionMetadata sets the DataEncryptionMetadata field's value. +func (s *Collaboration) SetDataEncryptionMetadata(v *DataEncryptionMetadata) *Collaboration { + s.DataEncryptionMetadata = v + return s +} - // An error name for the error. - // - // Name is a required field - Name *string `locationName:"name" type:"string" required:"true"` +// SetDescription sets the Description field's value. +func (s *Collaboration) SetDescription(v string) *Collaboration { + s.Description = &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 BatchGetSchemaError) String() string { - return awsutil.Prettify(s) +// SetId sets the Id field's value. +func (s *Collaboration) SetId(v string) *Collaboration { + 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 BatchGetSchemaError) GoString() string { - return s.String() +// SetMemberStatus sets the MemberStatus field's value. +func (s *Collaboration) SetMemberStatus(v string) *Collaboration { + s.MemberStatus = &v + return s } -// SetCode sets the Code field's value. -func (s *BatchGetSchemaError) SetCode(v string) *BatchGetSchemaError { - s.Code = &v +// SetMembershipArn sets the MembershipArn field's value. +func (s *Collaboration) SetMembershipArn(v string) *Collaboration { + s.MembershipArn = &v return s } -// SetMessage sets the Message field's value. -func (s *BatchGetSchemaError) SetMessage(v string) *BatchGetSchemaError { - s.Message = &v +// SetMembershipId sets the MembershipId field's value. +func (s *Collaboration) SetMembershipId(v string) *Collaboration { + s.MembershipId = &v return s } // SetName sets the Name field's value. -func (s *BatchGetSchemaError) SetName(v string) *BatchGetSchemaError { +func (s *Collaboration) SetName(v string) *Collaboration { s.Name = &v return s } -type BatchGetSchemaInput struct { +// SetQueryLogStatus sets the QueryLogStatus field's value. +func (s *Collaboration) SetQueryLogStatus(v string) *Collaboration { + s.QueryLogStatus = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *Collaboration) SetUpdateTime(v time.Time) *Collaboration { + s.UpdateTime = &v + return s +} + +// The analysis template within a collaboration. +type CollaborationAnalysisTemplate struct { _ struct{} `type:"structure"` - // A unique identifier for the collaboration that the schemas belong to. Currently - // accepts collaboration ID. + // The analysis parameters that have been specified in the analysis template. + AnalysisParameters []*AnalysisParameter `locationName:"analysisParameters" type:"list"` + + // The Amazon Resource Name (ARN) of the analysis template. // - // CollaborationIdentifier is a required field - CollaborationIdentifier *string `location:"uri" locationName:"collaborationIdentifier" min:"36" type:"string" required:"true"` + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` - // The names for the schema objects to retrieve.> + // The unique ARN for the analysis template’s associated collaboration. // - // Names is a required field - Names []*string `locationName:"names" min:"1" type:"list" required:"true"` + // CollaborationArn is a required field + CollaborationArn *string `locationName:"collaborationArn" type:"string" required:"true"` + + // A unique identifier for the collaboration that the analysis templates belong + // to. Currently accepts collaboration ID. + // + // CollaborationId is a required field + CollaborationId *string `locationName:"collaborationId" min:"36" type:"string" required:"true"` + + // The time that the analysis template within a collaboration was created. + // + // CreateTime is a required field + CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"` + + // The identifier used to reference members of the collaboration. Currently + // only supports Amazon Web Services account ID. + // + // CreatorAccountId is a required field + CreatorAccountId *string `locationName:"creatorAccountId" min:"12" type:"string" required:"true"` + + // The description of the analysis template. + Description *string `locationName:"description" type:"string"` + + // The format of the analysis template in the collaboration. + // + // Format is a required field + Format *string `locationName:"format" type:"string" required:"true" enum:"AnalysisFormat"` + + // The identifier of the analysis template. + // + // Id is a required field + Id *string `locationName:"id" min:"36" type:"string" required:"true"` + + // The name of the analysis template. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The entire schema object. + // + // Schema is a required field + Schema *AnalysisSchema `locationName:"schema" type:"structure" required:"true"` + + // The source of the analysis template within a collaboration. + // + // Source is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CollaborationAnalysisTemplate's + // String and GoString methods. + // + // Source is a required field + Source *AnalysisSource `locationName:"source" type:"structure" required:"true" sensitive:"true"` + + // The time that the analysis template in the collaboration was last updated. + // + // UpdateTime is a required field + UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"` } // String returns the string representation. @@ -4488,7 +6357,7 @@ type BatchGetSchemaInput 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 BatchGetSchemaInput) String() string { +func (s CollaborationAnalysisTemplate) String() string { return awsutil.Prettify(s) } @@ -4497,100 +6366,110 @@ func (s BatchGetSchemaInput) 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 BatchGetSchemaInput) GoString() string { +func (s CollaborationAnalysisTemplate) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchGetSchemaInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchGetSchemaInput"} - if s.CollaborationIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("CollaborationIdentifier")) - } - if s.CollaborationIdentifier != nil && len(*s.CollaborationIdentifier) < 36 { - invalidParams.Add(request.NewErrParamMinLen("CollaborationIdentifier", 36)) - } - if s.Names == nil { - invalidParams.Add(request.NewErrParamRequired("Names")) - } - if s.Names != nil && len(s.Names) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Names", 1)) - } +// SetAnalysisParameters sets the AnalysisParameters field's value. +func (s *CollaborationAnalysisTemplate) SetAnalysisParameters(v []*AnalysisParameter) *CollaborationAnalysisTemplate { + s.AnalysisParameters = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetArn sets the Arn field's value. +func (s *CollaborationAnalysisTemplate) SetArn(v string) *CollaborationAnalysisTemplate { + s.Arn = &v + return s } -// SetCollaborationIdentifier sets the CollaborationIdentifier field's value. -func (s *BatchGetSchemaInput) SetCollaborationIdentifier(v string) *BatchGetSchemaInput { - s.CollaborationIdentifier = &v +// SetCollaborationArn sets the CollaborationArn field's value. +func (s *CollaborationAnalysisTemplate) SetCollaborationArn(v string) *CollaborationAnalysisTemplate { + s.CollaborationArn = &v return s } -// SetNames sets the Names field's value. -func (s *BatchGetSchemaInput) SetNames(v []*string) *BatchGetSchemaInput { - s.Names = v +// SetCollaborationId sets the CollaborationId field's value. +func (s *CollaborationAnalysisTemplate) SetCollaborationId(v string) *CollaborationAnalysisTemplate { + s.CollaborationId = &v return s } -type BatchGetSchemaOutput struct { - _ struct{} `type:"structure"` +// SetCreateTime sets the CreateTime field's value. +func (s *CollaborationAnalysisTemplate) SetCreateTime(v time.Time) *CollaborationAnalysisTemplate { + s.CreateTime = &v + return s +} - // Error reasons for schemas that could not be retrieved. One error is returned - // for every schema that could not be retrieved. - // - // Errors is a required field - Errors []*BatchGetSchemaError `locationName:"errors" type:"list" required:"true"` +// SetCreatorAccountId sets the CreatorAccountId field's value. +func (s *CollaborationAnalysisTemplate) SetCreatorAccountId(v string) *CollaborationAnalysisTemplate { + s.CreatorAccountId = &v + return s +} - // The retrieved list of schemas. - // - // Schemas is a required field - Schemas []*Schema `locationName:"schemas" type:"list" required:"true"` +// SetDescription sets the Description field's value. +func (s *CollaborationAnalysisTemplate) SetDescription(v string) *CollaborationAnalysisTemplate { + s.Description = &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 BatchGetSchemaOutput) String() string { - return awsutil.Prettify(s) +// SetFormat sets the Format field's value. +func (s *CollaborationAnalysisTemplate) SetFormat(v string) *CollaborationAnalysisTemplate { + s.Format = &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 BatchGetSchemaOutput) GoString() string { - return s.String() +// SetId sets the Id field's value. +func (s *CollaborationAnalysisTemplate) SetId(v string) *CollaborationAnalysisTemplate { + s.Id = &v + return s } -// SetErrors sets the Errors field's value. -func (s *BatchGetSchemaOutput) SetErrors(v []*BatchGetSchemaError) *BatchGetSchemaOutput { - s.Errors = v +// SetName sets the Name field's value. +func (s *CollaborationAnalysisTemplate) SetName(v string) *CollaborationAnalysisTemplate { + s.Name = &v return s } -// SetSchemas sets the Schemas field's value. -func (s *BatchGetSchemaOutput) SetSchemas(v []*Schema) *BatchGetSchemaOutput { - s.Schemas = v +// SetSchema sets the Schema field's value. +func (s *CollaborationAnalysisTemplate) SetSchema(v *AnalysisSchema) *CollaborationAnalysisTemplate { + s.Schema = v return s } -// The multi-party data share environment. The collaboration contains metadata -// about its purpose and participants. -type Collaboration struct { +// SetSource sets the Source field's value. +func (s *CollaborationAnalysisTemplate) SetSource(v *AnalysisSource) *CollaborationAnalysisTemplate { + s.Source = v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *CollaborationAnalysisTemplate) SetUpdateTime(v time.Time) *CollaborationAnalysisTemplate { + s.UpdateTime = &v + return s +} + +// The metadata of the analysis template within a collaboration. +type CollaborationAnalysisTemplateSummary struct { _ struct{} `type:"structure"` - // The unique ARN for the collaboration. + // The Amazon Resource Name (ARN) of the analysis template. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` + + // The unique ARN for the analysis template’s associated collaboration. + // + // CollaborationArn is a required field + CollaborationArn *string `locationName:"collaborationArn" type:"string" required:"true"` + + // A unique identifier for the collaboration that the analysis templates belong + // to. Currently accepts collaboration ID. // - // Arn is a required field - Arn *string `locationName:"arn" type:"string" required:"true"` + // CollaborationId is a required field + CollaborationId *string `locationName:"collaborationId" min:"36" type:"string" required:"true"` - // The time when the collaboration was created. + // The time that the summary of the analysis template in a collaboration was + // created. // // CreateTime is a required field CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"` @@ -4601,46 +6480,21 @@ type Collaboration struct { // CreatorAccountId is a required field CreatorAccountId *string `locationName:"creatorAccountId" min:"12" type:"string" required:"true"` - // A display name of the collaboration creator. - // - // CreatorDisplayName is a required field - CreatorDisplayName *string `locationName:"creatorDisplayName" min:"1" type:"string" required:"true"` - - // The settings for client-side encryption for cryptographic computing. - DataEncryptionMetadata *DataEncryptionMetadata `locationName:"dataEncryptionMetadata" type:"structure"` - - // A description of the collaboration provided by the collaboration owner. - Description *string `locationName:"description" min:"1" type:"string"` + // The description of the analysis template. + Description *string `locationName:"description" type:"string"` - // The unique ID for the collaboration. + // The identifier of the analysis template. // // Id is a required field Id *string `locationName:"id" min:"36" type:"string" required:"true"` - // The status of a member in a collaboration. - // - // MemberStatus is a required field - MemberStatus *string `locationName:"memberStatus" type:"string" required:"true" enum:"MemberStatus"` - - // The unique ARN for your membership within the collaboration. - MembershipArn *string `locationName:"membershipArn" type:"string"` - - // The unique ID for your membership within the collaboration. - MembershipId *string `locationName:"membershipId" min:"36" type:"string"` - - // A human-readable identifier provided by the collaboration owner. Display - // names are not unique. + // The name of the analysis template. // // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // An indicator as to whether query logging has been enabled or disabled for - // the collaboration. - // - // QueryLogStatus is a required field - QueryLogStatus *string `locationName:"queryLogStatus" type:"string" required:"true" enum:"CollaborationQueryLogStatus"` + Name *string `locationName:"name" type:"string" required:"true"` - // The time the collaboration metadata was last updated. + // The time that the summary of the analysis template in the collaboration was + // last updated. // // UpdateTime is a required field UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"` @@ -4651,7 +6505,7 @@ type Collaboration 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 Collaboration) String() string { +func (s CollaborationAnalysisTemplateSummary) String() string { return awsutil.Prettify(s) } @@ -4660,84 +6514,60 @@ func (s Collaboration) 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 Collaboration) GoString() string { +func (s CollaborationAnalysisTemplateSummary) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *Collaboration) SetArn(v string) *Collaboration { +func (s *CollaborationAnalysisTemplateSummary) SetArn(v string) *CollaborationAnalysisTemplateSummary { s.Arn = &v return s } -// SetCreateTime sets the CreateTime field's value. -func (s *Collaboration) SetCreateTime(v time.Time) *Collaboration { - s.CreateTime = &v +// SetCollaborationArn sets the CollaborationArn field's value. +func (s *CollaborationAnalysisTemplateSummary) SetCollaborationArn(v string) *CollaborationAnalysisTemplateSummary { + s.CollaborationArn = &v return s } -// SetCreatorAccountId sets the CreatorAccountId field's value. -func (s *Collaboration) SetCreatorAccountId(v string) *Collaboration { - s.CreatorAccountId = &v +// SetCollaborationId sets the CollaborationId field's value. +func (s *CollaborationAnalysisTemplateSummary) SetCollaborationId(v string) *CollaborationAnalysisTemplateSummary { + s.CollaborationId = &v return s } -// SetCreatorDisplayName sets the CreatorDisplayName field's value. -func (s *Collaboration) SetCreatorDisplayName(v string) *Collaboration { - s.CreatorDisplayName = &v +// SetCreateTime sets the CreateTime field's value. +func (s *CollaborationAnalysisTemplateSummary) SetCreateTime(v time.Time) *CollaborationAnalysisTemplateSummary { + s.CreateTime = &v return s } -// SetDataEncryptionMetadata sets the DataEncryptionMetadata field's value. -func (s *Collaboration) SetDataEncryptionMetadata(v *DataEncryptionMetadata) *Collaboration { - s.DataEncryptionMetadata = v +// SetCreatorAccountId sets the CreatorAccountId field's value. +func (s *CollaborationAnalysisTemplateSummary) SetCreatorAccountId(v string) *CollaborationAnalysisTemplateSummary { + s.CreatorAccountId = &v return s } // SetDescription sets the Description field's value. -func (s *Collaboration) SetDescription(v string) *Collaboration { +func (s *CollaborationAnalysisTemplateSummary) SetDescription(v string) *CollaborationAnalysisTemplateSummary { s.Description = &v return s } // SetId sets the Id field's value. -func (s *Collaboration) SetId(v string) *Collaboration { +func (s *CollaborationAnalysisTemplateSummary) SetId(v string) *CollaborationAnalysisTemplateSummary { s.Id = &v return s } -// SetMemberStatus sets the MemberStatus field's value. -func (s *Collaboration) SetMemberStatus(v string) *Collaboration { - s.MemberStatus = &v - return s -} - -// SetMembershipArn sets the MembershipArn field's value. -func (s *Collaboration) SetMembershipArn(v string) *Collaboration { - s.MembershipArn = &v - return s -} - -// SetMembershipId sets the MembershipId field's value. -func (s *Collaboration) SetMembershipId(v string) *Collaboration { - s.MembershipId = &v - return s -} - // SetName sets the Name field's value. -func (s *Collaboration) SetName(v string) *Collaboration { +func (s *CollaborationAnalysisTemplateSummary) SetName(v string) *CollaborationAnalysisTemplateSummary { s.Name = &v return s } -// SetQueryLogStatus sets the QueryLogStatus field's value. -func (s *Collaboration) SetQueryLogStatus(v string) *Collaboration { - s.QueryLogStatus = &v - return s -} - // SetUpdateTime sets the UpdateTime field's value. -func (s *Collaboration) SetUpdateTime(v time.Time) *Collaboration { +func (s *CollaborationAnalysisTemplateSummary) SetUpdateTime(v time.Time) *CollaborationAnalysisTemplateSummary { s.UpdateTime = &v return s } @@ -4934,9 +6764,8 @@ type ConfiguredTable struct { // AnalysisMethod is a required field AnalysisMethod *string `locationName:"analysisMethod" type:"string" required:"true" enum:"AnalysisMethod"` - // The types of analysis rules associated with this configured table. Valid - // values are `AGGREGATION` and `LIST`. Currently, only one analysis rule may - // be associated with a configured table. + // The types of analysis rules associated with this configured table. Currently, + // only one analysis rule may be associated with a configured table. // // AnalysisRuleTypes is a required field AnalysisRuleTypes []*string `locationName:"analysisRuleTypes" type:"list" required:"true" enum:"ConfiguredTableAnalysisRuleType"` @@ -5078,8 +6907,7 @@ type ConfiguredTableAnalysisRule struct { // Policy is a required field Policy *ConfiguredTableAnalysisRulePolicy `locationName:"policy" type:"structure" required:"true"` - // The type of configured table analysis rule. Valid values are `AGGREGATION` - // and `LIST`. + // The type of configured table analysis rule. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"ConfiguredTableAnalysisRuleType"` @@ -5199,6 +7027,10 @@ type ConfiguredTableAnalysisRulePolicyV1 struct { // table. Aggregation *AnalysisRuleAggregation `locationName:"aggregation" type:"structure"` + // A type of analysis rule that enables the table owner to approve custom SQL + // queries on their configured tables. + Custom *AnalysisRuleCustom `locationName:"custom" type:"structure"` + // Analysis rule type that enables only list queries on a configured table. List *AnalysisRuleList `locationName:"list" type:"structure"` } @@ -5229,6 +7061,11 @@ func (s *ConfiguredTableAnalysisRulePolicyV1) Validate() error { invalidParams.AddNested("Aggregation", err.(request.ErrInvalidParams)) } } + if s.Custom != nil { + if err := s.Custom.Validate(); err != nil { + invalidParams.AddNested("Custom", err.(request.ErrInvalidParams)) + } + } if s.List != nil { if err := s.List.Validate(); err != nil { invalidParams.AddNested("List", err.(request.ErrInvalidParams)) @@ -5247,6 +7084,12 @@ func (s *ConfiguredTableAnalysisRulePolicyV1) SetAggregation(v *AnalysisRuleAggr return s } +// SetCustom sets the Custom field's value. +func (s *ConfiguredTableAnalysisRulePolicyV1) SetCustom(v *AnalysisRuleCustom) *ConfiguredTableAnalysisRulePolicyV1 { + s.Custom = v + return s +} + // SetList sets the List field's value. func (s *ConfiguredTableAnalysisRulePolicyV1) SetList(v *AnalysisRuleList) *ConfiguredTableAnalysisRulePolicyV1 { s.List = v @@ -5629,8 +7472,209 @@ type ConflictException struct { // The ID of the conflicting resource. ResourceId *string `locationName:"resourceId" type:"string"` - // The type of the conflicting resource. - ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + // The type of the conflicting resource. + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +type CreateAnalysisTemplateInput struct { + _ struct{} `type:"structure"` + + // The parameters of the analysis template. + AnalysisParameters []*AnalysisParameter `locationName:"analysisParameters" type:"list"` + + // The description of the analysis template. + Description *string `locationName:"description" type:"string"` + + // The format of the analysis template. + // + // Format is a required field + Format *string `locationName:"format" type:"string" required:"true" enum:"AnalysisFormat"` + + // The identifier for a membership resource. + // + // MembershipIdentifier is a required field + MembershipIdentifier *string `location:"uri" locationName:"membershipIdentifier" min:"36" type:"string" required:"true"` + + // The name of the analysis template. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The information in the analysis template. Currently supports text, the query + // text for the analysis template. + // + // Source is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateAnalysisTemplateInput's + // String and GoString methods. + // + // Source is a required field + Source *AnalysisSource `locationName:"source" type:"structure" required:"true" sensitive:"true"` + + // An optional label that you can assign to a resource when you create it. Each + // tag consists of a key and an optional value, both of which you define. When + // you use tagging, you can also use tag-based access control in IAM policies + // to control access to this resource. + 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 CreateAnalysisTemplateInput) 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 CreateAnalysisTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAnalysisTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAnalysisTemplateInput"} + if s.Format == nil { + invalidParams.Add(request.NewErrParamRequired("Format")) + } + if s.MembershipIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("MembershipIdentifier")) + } + if s.MembershipIdentifier != nil && len(*s.MembershipIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MembershipIdentifier", 36)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Source == nil { + invalidParams.Add(request.NewErrParamRequired("Source")) + } + if s.AnalysisParameters != nil { + for i, v := range s.AnalysisParameters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AnalysisParameters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnalysisParameters sets the AnalysisParameters field's value. +func (s *CreateAnalysisTemplateInput) SetAnalysisParameters(v []*AnalysisParameter) *CreateAnalysisTemplateInput { + s.AnalysisParameters = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateAnalysisTemplateInput) SetDescription(v string) *CreateAnalysisTemplateInput { + s.Description = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *CreateAnalysisTemplateInput) SetFormat(v string) *CreateAnalysisTemplateInput { + s.Format = &v + return s +} + +// SetMembershipIdentifier sets the MembershipIdentifier field's value. +func (s *CreateAnalysisTemplateInput) SetMembershipIdentifier(v string) *CreateAnalysisTemplateInput { + s.MembershipIdentifier = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAnalysisTemplateInput) SetName(v string) *CreateAnalysisTemplateInput { + s.Name = &v + return s +} + +// SetSource sets the Source field's value. +func (s *CreateAnalysisTemplateInput) SetSource(v *AnalysisSource) *CreateAnalysisTemplateInput { + s.Source = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAnalysisTemplateInput) SetTags(v map[string]*string) *CreateAnalysisTemplateInput { + s.Tags = v + return s +} + +type CreateAnalysisTemplateOutput struct { + _ struct{} `type:"structure"` + + // The analysis template. + // + // AnalysisTemplate is a required field + AnalysisTemplate *AnalysisTemplate `locationName:"analysisTemplate" type:"structure" required:"true"` } // String returns the string representation. @@ -5638,7 +7682,7 @@ type ConflictException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConflictException) String() string { +func (s CreateAnalysisTemplateOutput) String() string { return awsutil.Prettify(s) } @@ -5647,46 +7691,14 @@ func (s ConflictException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConflictException) GoString() string { +func (s CreateAnalysisTemplateOutput) GoString() string { return s.String() } -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" -} - -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil -} - -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID +// SetAnalysisTemplate sets the AnalysisTemplate field's value. +func (s *CreateAnalysisTemplateOutput) SetAnalysisTemplate(v *AnalysisTemplate) *CreateAnalysisTemplateOutput { + s.AnalysisTemplate = v + return s } type CreateCollaborationInput struct { @@ -5893,7 +7905,7 @@ type CreateConfiguredTableAnalysisRuleInput struct { // AnalysisRulePolicy is a required field AnalysisRulePolicy *ConfiguredTableAnalysisRulePolicy `locationName:"analysisRulePolicy" type:"structure" required:"true"` - // The type of analysis rule. Valid values are AGGREGATION and LIST. + // The type of analysis rule. // // AnalysisRuleType is a required field AnalysisRuleType *string `locationName:"analysisRuleType" type:"string" required:"true" enum:"ConfiguredTableAnalysisRuleType"` @@ -6515,6 +8527,94 @@ func (s *DataEncryptionMetadata) SetPreserveNulls(v bool) *DataEncryptionMetadat return s } +type DeleteAnalysisTemplateInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier for the analysis template resource. + // + // AnalysisTemplateIdentifier is a required field + AnalysisTemplateIdentifier *string `location:"uri" locationName:"analysisTemplateIdentifier" min:"36" type:"string" required:"true"` + + // The identifier for a membership resource. + // + // MembershipIdentifier is a required field + MembershipIdentifier *string `location:"uri" locationName:"membershipIdentifier" min:"36" 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 DeleteAnalysisTemplateInput) 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 DeleteAnalysisTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAnalysisTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAnalysisTemplateInput"} + if s.AnalysisTemplateIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("AnalysisTemplateIdentifier")) + } + if s.AnalysisTemplateIdentifier != nil && len(*s.AnalysisTemplateIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AnalysisTemplateIdentifier", 36)) + } + if s.MembershipIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("MembershipIdentifier")) + } + if s.MembershipIdentifier != nil && len(*s.MembershipIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MembershipIdentifier", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnalysisTemplateIdentifier sets the AnalysisTemplateIdentifier field's value. +func (s *DeleteAnalysisTemplateInput) SetAnalysisTemplateIdentifier(v string) *DeleteAnalysisTemplateInput { + s.AnalysisTemplateIdentifier = &v + return s +} + +// SetMembershipIdentifier sets the MembershipIdentifier field's value. +func (s *DeleteAnalysisTemplateInput) SetMembershipIdentifier(v string) *DeleteAnalysisTemplateInput { + s.MembershipIdentifier = &v + return s +} + +type DeleteAnalysisTemplateOutput 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 DeleteAnalysisTemplateOutput) 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 DeleteAnalysisTemplateOutput) GoString() string { + return s.String() +} + type DeleteCollaborationInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -6928,13 +9028,190 @@ func (s DeleteMemberOutput) GoString() string { return s.String() } -type DeleteMembershipInput struct { +type DeleteMembershipInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier for a membership resource. + // + // MembershipIdentifier is a required field + MembershipIdentifier *string `location:"uri" locationName:"membershipIdentifier" min:"36" 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 DeleteMembershipInput) 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 DeleteMembershipInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMembershipInput"} + if s.MembershipIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("MembershipIdentifier")) + } + if s.MembershipIdentifier != nil && len(*s.MembershipIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MembershipIdentifier", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMembershipIdentifier sets the MembershipIdentifier field's value. +func (s *DeleteMembershipInput) SetMembershipIdentifier(v string) *DeleteMembershipInput { + s.MembershipIdentifier = &v + return s +} + +type DeleteMembershipOutput 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 DeleteMembershipOutput) 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 DeleteMembershipOutput) GoString() string { + return s.String() +} + +type GetAnalysisTemplateInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier for the analysis template resource. + // + // AnalysisTemplateIdentifier is a required field + AnalysisTemplateIdentifier *string `location:"uri" locationName:"analysisTemplateIdentifier" min:"36" type:"string" required:"true"` + + // The identifier for a membership resource. + // + // MembershipIdentifier is a required field + MembershipIdentifier *string `location:"uri" locationName:"membershipIdentifier" min:"36" 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 GetAnalysisTemplateInput) 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 GetAnalysisTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAnalysisTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAnalysisTemplateInput"} + if s.AnalysisTemplateIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("AnalysisTemplateIdentifier")) + } + if s.AnalysisTemplateIdentifier != nil && len(*s.AnalysisTemplateIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AnalysisTemplateIdentifier", 36)) + } + if s.MembershipIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("MembershipIdentifier")) + } + if s.MembershipIdentifier != nil && len(*s.MembershipIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MembershipIdentifier", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnalysisTemplateIdentifier sets the AnalysisTemplateIdentifier field's value. +func (s *GetAnalysisTemplateInput) SetAnalysisTemplateIdentifier(v string) *GetAnalysisTemplateInput { + s.AnalysisTemplateIdentifier = &v + return s +} + +// SetMembershipIdentifier sets the MembershipIdentifier field's value. +func (s *GetAnalysisTemplateInput) SetMembershipIdentifier(v string) *GetAnalysisTemplateInput { + s.MembershipIdentifier = &v + return s +} + +type GetAnalysisTemplateOutput struct { + _ struct{} `type:"structure"` + + // The analysis template. + // + // AnalysisTemplate is a required field + AnalysisTemplate *AnalysisTemplate `locationName:"analysisTemplate" 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 GetAnalysisTemplateOutput) 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 GetAnalysisTemplateOutput) GoString() string { + return s.String() +} + +// SetAnalysisTemplate sets the AnalysisTemplate field's value. +func (s *GetAnalysisTemplateOutput) SetAnalysisTemplate(v *AnalysisTemplate) *GetAnalysisTemplateOutput { + s.AnalysisTemplate = v + return s +} + +type GetCollaborationAnalysisTemplateInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier for a membership resource. + // The Amazon Resource Name (ARN) associated with the analysis template within + // a collaboration. // - // MembershipIdentifier is a required field - MembershipIdentifier *string `location:"uri" locationName:"membershipIdentifier" min:"36" type:"string" required:"true"` + // AnalysisTemplateArn is a required field + AnalysisTemplateArn *string `location:"uri" locationName:"analysisTemplateArn" type:"string" required:"true"` + + // A unique identifier for the collaboration that the analysis templates belong + // to. Currently accepts collaboration ID. + // + // CollaborationIdentifier is a required field + CollaborationIdentifier *string `location:"uri" locationName:"collaborationIdentifier" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -6942,7 +9219,7 @@ type DeleteMembershipInput 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 DeleteMembershipInput) String() string { +func (s GetCollaborationAnalysisTemplateInput) String() string { return awsutil.Prettify(s) } @@ -6951,18 +9228,24 @@ func (s DeleteMembershipInput) 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 DeleteMembershipInput) GoString() string { +func (s GetCollaborationAnalysisTemplateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMembershipInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMembershipInput"} - if s.MembershipIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("MembershipIdentifier")) +func (s *GetCollaborationAnalysisTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCollaborationAnalysisTemplateInput"} + if s.AnalysisTemplateArn == nil { + invalidParams.Add(request.NewErrParamRequired("AnalysisTemplateArn")) } - if s.MembershipIdentifier != nil && len(*s.MembershipIdentifier) < 36 { - invalidParams.Add(request.NewErrParamMinLen("MembershipIdentifier", 36)) + if s.AnalysisTemplateArn != nil && len(*s.AnalysisTemplateArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AnalysisTemplateArn", 1)) + } + if s.CollaborationIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("CollaborationIdentifier")) + } + if s.CollaborationIdentifier != nil && len(*s.CollaborationIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("CollaborationIdentifier", 36)) } if invalidParams.Len() > 0 { @@ -6971,14 +9254,25 @@ func (s *DeleteMembershipInput) Validate() error { return nil } -// SetMembershipIdentifier sets the MembershipIdentifier field's value. -func (s *DeleteMembershipInput) SetMembershipIdentifier(v string) *DeleteMembershipInput { - s.MembershipIdentifier = &v +// SetAnalysisTemplateArn sets the AnalysisTemplateArn field's value. +func (s *GetCollaborationAnalysisTemplateInput) SetAnalysisTemplateArn(v string) *GetCollaborationAnalysisTemplateInput { + s.AnalysisTemplateArn = &v return s } -type DeleteMembershipOutput struct { +// SetCollaborationIdentifier sets the CollaborationIdentifier field's value. +func (s *GetCollaborationAnalysisTemplateInput) SetCollaborationIdentifier(v string) *GetCollaborationAnalysisTemplateInput { + s.CollaborationIdentifier = &v + return s +} + +type GetCollaborationAnalysisTemplateOutput struct { _ struct{} `type:"structure"` + + // The analysis template within a collaboration. + // + // CollaborationAnalysisTemplate is a required field + CollaborationAnalysisTemplate *CollaborationAnalysisTemplate `locationName:"collaborationAnalysisTemplate" type:"structure" required:"true"` } // String returns the string representation. @@ -6986,7 +9280,7 @@ type DeleteMembershipOutput 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 DeleteMembershipOutput) String() string { +func (s GetCollaborationAnalysisTemplateOutput) String() string { return awsutil.Prettify(s) } @@ -6995,10 +9289,16 @@ func (s DeleteMembershipOutput) 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 DeleteMembershipOutput) GoString() string { +func (s GetCollaborationAnalysisTemplateOutput) GoString() string { return s.String() } +// SetCollaborationAnalysisTemplate sets the CollaborationAnalysisTemplate field's value. +func (s *GetCollaborationAnalysisTemplateOutput) SetCollaborationAnalysisTemplate(v *CollaborationAnalysisTemplate) *GetCollaborationAnalysisTemplateOutput { + s.CollaborationAnalysisTemplate = v + return s +} + type GetCollaborationInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -7720,25 +10020,258 @@ func (s *GetSchemaInput) Validate() error { return nil } -// SetCollaborationIdentifier sets the CollaborationIdentifier field's value. -func (s *GetSchemaInput) SetCollaborationIdentifier(v string) *GetSchemaInput { - s.CollaborationIdentifier = &v +// SetCollaborationIdentifier sets the CollaborationIdentifier field's value. +func (s *GetSchemaInput) SetCollaborationIdentifier(v string) *GetSchemaInput { + s.CollaborationIdentifier = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetSchemaInput) SetName(v string) *GetSchemaInput { + s.Name = &v + return s +} + +type GetSchemaOutput struct { + _ struct{} `type:"structure"` + + // The entire schema object. + // + // Schema is a required field + Schema *Schema `locationName:"schema" 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 GetSchemaOutput) 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 GetSchemaOutput) GoString() string { + return s.String() +} + +// SetSchema sets the Schema field's value. +func (s *GetSchemaOutput) SetSchema(v *Schema) *GetSchemaOutput { + s.Schema = v + return s +} + +// A reference to a table within an Glue data catalog. +type GlueTableReference struct { + _ struct{} `type:"structure"` + + // The name of the database the Glue table belongs to. + // + // DatabaseName is a required field + DatabaseName *string `locationName:"databaseName" type:"string" required:"true"` + + // The name of the Glue table. + // + // TableName is a required field + TableName *string `locationName:"tableName" 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 GlueTableReference) 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 GlueTableReference) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GlueTableReference) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GlueTableReference"} + if s.DatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("DatabaseName")) + } + if s.TableName == nil { + invalidParams.Add(request.NewErrParamRequired("TableName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *GlueTableReference) SetDatabaseName(v string) *GlueTableReference { + s.DatabaseName = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *GlueTableReference) SetTableName(v string) *GlueTableReference { + s.TableName = &v + return s +} + +// Unexpected error during processing of request. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) 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 InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListAnalysisTemplatesInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The maximum size of the results that is returned per call. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The identifier for a membership resource. + // + // MembershipIdentifier is a required field + MembershipIdentifier *string `location:"uri" locationName:"membershipIdentifier" min:"36" type:"string" required:"true"` + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string `location:"querystring" locationName:"nextToken" 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 ListAnalysisTemplatesInput) 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 ListAnalysisTemplatesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAnalysisTemplatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAnalysisTemplatesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.MembershipIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("MembershipIdentifier")) + } + if s.MembershipIdentifier != nil && len(*s.MembershipIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MembershipIdentifier", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAnalysisTemplatesInput) SetMaxResults(v int64) *ListAnalysisTemplatesInput { + s.MaxResults = &v return s } -// SetName sets the Name field's value. -func (s *GetSchemaInput) SetName(v string) *GetSchemaInput { - s.Name = &v +// SetMembershipIdentifier sets the MembershipIdentifier field's value. +func (s *ListAnalysisTemplatesInput) SetMembershipIdentifier(v string) *ListAnalysisTemplatesInput { + s.MembershipIdentifier = &v return s } -type GetSchemaOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListAnalysisTemplatesInput) SetNextToken(v string) *ListAnalysisTemplatesInput { + s.NextToken = &v + return s +} + +type ListAnalysisTemplatesOutput struct { _ struct{} `type:"structure"` - // The entire schema object. + // Lists analysis template metadata. // - // Schema is a required field - Schema *Schema `locationName:"schema" type:"structure" required:"true"` + // AnalysisTemplateSummaries is a required field + AnalysisTemplateSummaries []*AnalysisTemplateSummary `locationName:"analysisTemplateSummaries" type:"list" required:"true"` + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -7746,7 +10279,7 @@ type GetSchemaOutput 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 GetSchemaOutput) String() string { +func (s ListAnalysisTemplatesOutput) String() string { return awsutil.Prettify(s) } @@ -7755,29 +10288,37 @@ func (s GetSchemaOutput) 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 GetSchemaOutput) GoString() string { +func (s ListAnalysisTemplatesOutput) GoString() string { return s.String() } -// SetSchema sets the Schema field's value. -func (s *GetSchemaOutput) SetSchema(v *Schema) *GetSchemaOutput { - s.Schema = v +// SetAnalysisTemplateSummaries sets the AnalysisTemplateSummaries field's value. +func (s *ListAnalysisTemplatesOutput) SetAnalysisTemplateSummaries(v []*AnalysisTemplateSummary) *ListAnalysisTemplatesOutput { + s.AnalysisTemplateSummaries = v return s } -// A reference to a table within an Glue data catalog. -type GlueTableReference struct { - _ struct{} `type:"structure"` +// SetNextToken sets the NextToken field's value. +func (s *ListAnalysisTemplatesOutput) SetNextToken(v string) *ListAnalysisTemplatesOutput { + s.NextToken = &v + return s +} - // The name of the database the Glue table belongs to. - // - // DatabaseName is a required field - DatabaseName *string `locationName:"databaseName" type:"string" required:"true"` +type ListCollaborationAnalysisTemplatesInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The name of the Glue table. + // A unique identifier for the collaboration that the analysis templates belong + // to. Currently accepts collaboration ID. // - // TableName is a required field - TableName *string `locationName:"tableName" type:"string" required:"true"` + // CollaborationIdentifier is a required field + CollaborationIdentifier *string `location:"uri" locationName:"collaborationIdentifier" min:"36" type:"string" required:"true"` + + // The maximum size of the results that is returned per call. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -7785,7 +10326,7 @@ type GlueTableReference 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 GlueTableReference) String() string { +func (s ListCollaborationAnalysisTemplatesInput) String() string { return awsutil.Prettify(s) } @@ -7794,18 +10335,21 @@ func (s GlueTableReference) 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 GlueTableReference) GoString() string { +func (s ListCollaborationAnalysisTemplatesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GlueTableReference) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GlueTableReference"} - if s.DatabaseName == nil { - invalidParams.Add(request.NewErrParamRequired("DatabaseName")) +func (s *ListCollaborationAnalysisTemplatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCollaborationAnalysisTemplatesInput"} + if s.CollaborationIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("CollaborationIdentifier")) } - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) + if s.CollaborationIdentifier != nil && len(*s.CollaborationIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("CollaborationIdentifier", 36)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -7814,24 +10358,35 @@ func (s *GlueTableReference) Validate() error { return nil } -// SetDatabaseName sets the DatabaseName field's value. -func (s *GlueTableReference) SetDatabaseName(v string) *GlueTableReference { - s.DatabaseName = &v +// SetCollaborationIdentifier sets the CollaborationIdentifier field's value. +func (s *ListCollaborationAnalysisTemplatesInput) SetCollaborationIdentifier(v string) *ListCollaborationAnalysisTemplatesInput { + s.CollaborationIdentifier = &v return s } -// SetTableName sets the TableName field's value. -func (s *GlueTableReference) SetTableName(v string) *GlueTableReference { - s.TableName = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListCollaborationAnalysisTemplatesInput) SetMaxResults(v int64) *ListCollaborationAnalysisTemplatesInput { + s.MaxResults = &v return s } -// Unexpected error during processing of request. -type InternalServerException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetNextToken sets the NextToken field's value. +func (s *ListCollaborationAnalysisTemplatesInput) SetNextToken(v string) *ListCollaborationAnalysisTemplatesInput { + s.NextToken = &v + return s +} - Message_ *string `locationName:"message" type:"string"` +type ListCollaborationAnalysisTemplatesOutput struct { + _ struct{} `type:"structure"` + + // The metadata of the analysis template within a collaboration. + // + // CollaborationAnalysisTemplateSummaries is a required field + CollaborationAnalysisTemplateSummaries []*CollaborationAnalysisTemplateSummary `locationName:"collaborationAnalysisTemplateSummaries" type:"list" required:"true"` + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -7839,7 +10394,7 @@ type InternalServerException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InternalServerException) String() string { +func (s ListCollaborationAnalysisTemplatesOutput) String() string { return awsutil.Prettify(s) } @@ -7848,46 +10403,20 @@ func (s InternalServerException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InternalServerException) GoString() string { +func (s ListCollaborationAnalysisTemplatesOutput) GoString() string { return s.String() } -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" -} - -// Message returns the exception's message. -func (s *InternalServerException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { - return nil -} - -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetCollaborationAnalysisTemplateSummaries sets the CollaborationAnalysisTemplateSummaries field's value. +func (s *ListCollaborationAnalysisTemplatesOutput) SetCollaborationAnalysisTemplateSummaries(v []*CollaborationAnalysisTemplateSummary) *ListCollaborationAnalysisTemplatesOutput { + s.CollaborationAnalysisTemplateSummaries = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID +// SetNextToken sets the NextToken field's value. +func (s *ListCollaborationAnalysisTemplatesOutput) SetNextToken(v string) *ListCollaborationAnalysisTemplatesOutput { + s.NextToken = &v + return s } type ListCollaborationsInput struct { @@ -9708,6 +12237,13 @@ func (s *ProtectedQueryS3Output_) SetLocation(v string) *ProtectedQueryS3Output_ type ProtectedQuerySQLParameters struct { _ struct{} `type:"structure" sensitive:"true"` + // The Amazon Resource Name (ARN) associated with the analysis template within + // a collaboration. + AnalysisTemplateArn *string `locationName:"analysisTemplateArn" type:"string"` + + // The protected query SQL parameters. + Parameters map[string]*string `locationName:"parameters" type:"map"` + // The query string to be submitted. QueryString *string `locationName:"queryString" type:"string"` } @@ -9730,6 +12266,18 @@ func (s ProtectedQuerySQLParameters) GoString() string { return s.String() } +// SetAnalysisTemplateArn sets the AnalysisTemplateArn field's value. +func (s *ProtectedQuerySQLParameters) SetAnalysisTemplateArn(v string) *ProtectedQuerySQLParameters { + s.AnalysisTemplateArn = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *ProtectedQuerySQLParameters) SetParameters(v map[string]*string) *ProtectedQuerySQLParameters { + s.Parameters = v + return s +} + // SetQueryString sets the QueryString field's value. func (s *ProtectedQuerySQLParameters) SetQueryString(v string) *ProtectedQuerySQLParameters { s.QueryString = &v @@ -9928,8 +12476,8 @@ type Schema struct { // The analysis method for the schema. The only valid value is currently DIRECT_QUERY. AnalysisMethod *string `locationName:"analysisMethod" type:"string" enum:"AnalysisMethod"` - // The analysis rule types associated with the schema. Valued values are LIST - // and AGGREGATION. Currently, only one entry is present. + // The analysis rule types associated with the schema. Currently, only one entry + // is present. // // AnalysisRuleTypes is a required field AnalysisRuleTypes []*string `locationName:"analysisRuleTypes" type:"list" required:"true" enum:"AnalysisRuleType"` @@ -10688,6 +13236,114 @@ func (s UntagResourceOutput) GoString() string { return s.String() } +type UpdateAnalysisTemplateInput struct { + _ struct{} `type:"structure"` + + // The identifier for the analysis template resource. + // + // AnalysisTemplateIdentifier is a required field + AnalysisTemplateIdentifier *string `location:"uri" locationName:"analysisTemplateIdentifier" min:"36" type:"string" required:"true"` + + // A new description for the analysis template. + Description *string `locationName:"description" type:"string"` + + // The identifier for a membership resource. + // + // MembershipIdentifier is a required field + MembershipIdentifier *string `location:"uri" locationName:"membershipIdentifier" min:"36" 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 UpdateAnalysisTemplateInput) 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 UpdateAnalysisTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAnalysisTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAnalysisTemplateInput"} + if s.AnalysisTemplateIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("AnalysisTemplateIdentifier")) + } + if s.AnalysisTemplateIdentifier != nil && len(*s.AnalysisTemplateIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AnalysisTemplateIdentifier", 36)) + } + if s.MembershipIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("MembershipIdentifier")) + } + if s.MembershipIdentifier != nil && len(*s.MembershipIdentifier) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MembershipIdentifier", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnalysisTemplateIdentifier sets the AnalysisTemplateIdentifier field's value. +func (s *UpdateAnalysisTemplateInput) SetAnalysisTemplateIdentifier(v string) *UpdateAnalysisTemplateInput { + s.AnalysisTemplateIdentifier = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateAnalysisTemplateInput) SetDescription(v string) *UpdateAnalysisTemplateInput { + s.Description = &v + return s +} + +// SetMembershipIdentifier sets the MembershipIdentifier field's value. +func (s *UpdateAnalysisTemplateInput) SetMembershipIdentifier(v string) *UpdateAnalysisTemplateInput { + s.MembershipIdentifier = &v + return s +} + +type UpdateAnalysisTemplateOutput struct { + _ struct{} `type:"structure"` + + // The analysis template. + // + // AnalysisTemplate is a required field + AnalysisTemplate *AnalysisTemplate `locationName:"analysisTemplate" 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 UpdateAnalysisTemplateOutput) 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 UpdateAnalysisTemplateOutput) GoString() string { + return s.String() +} + +// SetAnalysisTemplate sets the AnalysisTemplate field's value. +func (s *UpdateAnalysisTemplateOutput) SetAnalysisTemplate(v *AnalysisTemplate) *UpdateAnalysisTemplateOutput { + s.AnalysisTemplate = v + return s +} + type UpdateCollaborationInput struct { _ struct{} `type:"structure"` @@ -11516,6 +14172,18 @@ func AggregationType_Values() []string { } } +const ( + // AnalysisFormatSql is a AnalysisFormat enum value + AnalysisFormatSql = "SQL" +) + +// AnalysisFormat_Values returns all elements of the AnalysisFormat enum +func AnalysisFormat_Values() []string { + return []string{ + AnalysisFormatSql, + } +} + const ( // AnalysisMethodDirectQuery is a AnalysisMethod enum value AnalysisMethodDirectQuery = "DIRECT_QUERY" @@ -11534,6 +14202,9 @@ const ( // AnalysisRuleTypeList is a AnalysisRuleType enum value AnalysisRuleTypeList = "LIST" + + // AnalysisRuleTypeCustom is a AnalysisRuleType enum value + AnalysisRuleTypeCustom = "CUSTOM" ) // AnalysisRuleType_Values returns all elements of the AnalysisRuleType enum @@ -11541,6 +14212,7 @@ func AnalysisRuleType_Values() []string { return []string{ AnalysisRuleTypeAggregation, AnalysisRuleTypeList, + AnalysisRuleTypeCustom, } } @@ -11566,6 +14238,9 @@ const ( // ConfiguredTableAnalysisRuleTypeList is a ConfiguredTableAnalysisRuleType enum value ConfiguredTableAnalysisRuleTypeList = "LIST" + + // ConfiguredTableAnalysisRuleTypeCustom is a ConfiguredTableAnalysisRuleType enum value + ConfiguredTableAnalysisRuleTypeCustom = "CUSTOM" ) // ConfiguredTableAnalysisRuleType_Values returns all elements of the ConfiguredTableAnalysisRuleType enum @@ -11573,6 +14248,7 @@ func ConfiguredTableAnalysisRuleType_Values() []string { return []string{ ConfiguredTableAnalysisRuleTypeAggregation, ConfiguredTableAnalysisRuleTypeList, + ConfiguredTableAnalysisRuleTypeCustom, } } @@ -11716,6 +14392,74 @@ func MembershipStatus_Values() []string { } } +const ( + // ParameterTypeSmallint is a ParameterType enum value + ParameterTypeSmallint = "SMALLINT" + + // ParameterTypeInteger is a ParameterType enum value + ParameterTypeInteger = "INTEGER" + + // ParameterTypeBigint is a ParameterType enum value + ParameterTypeBigint = "BIGINT" + + // ParameterTypeDecimal is a ParameterType enum value + ParameterTypeDecimal = "DECIMAL" + + // ParameterTypeReal is a ParameterType enum value + ParameterTypeReal = "REAL" + + // ParameterTypeDoublePrecision is a ParameterType enum value + ParameterTypeDoublePrecision = "DOUBLE_PRECISION" + + // ParameterTypeBoolean is a ParameterType enum value + ParameterTypeBoolean = "BOOLEAN" + + // ParameterTypeChar is a ParameterType enum value + ParameterTypeChar = "CHAR" + + // ParameterTypeVarchar is a ParameterType enum value + ParameterTypeVarchar = "VARCHAR" + + // ParameterTypeDate is a ParameterType enum value + ParameterTypeDate = "DATE" + + // ParameterTypeTimestamp is a ParameterType enum value + ParameterTypeTimestamp = "TIMESTAMP" + + // ParameterTypeTimestamptz is a ParameterType enum value + ParameterTypeTimestamptz = "TIMESTAMPTZ" + + // ParameterTypeTime is a ParameterType enum value + ParameterTypeTime = "TIME" + + // ParameterTypeTimetz is a ParameterType enum value + ParameterTypeTimetz = "TIMETZ" + + // ParameterTypeVarbyte is a ParameterType enum value + ParameterTypeVarbyte = "VARBYTE" +) + +// ParameterType_Values returns all elements of the ParameterType enum +func ParameterType_Values() []string { + return []string{ + ParameterTypeSmallint, + ParameterTypeInteger, + ParameterTypeBigint, + ParameterTypeDecimal, + ParameterTypeReal, + ParameterTypeDoublePrecision, + ParameterTypeBoolean, + ParameterTypeChar, + ParameterTypeVarchar, + ParameterTypeDate, + ParameterTypeTimestamp, + ParameterTypeTimestamptz, + ParameterTypeTime, + ParameterTypeTimetz, + ParameterTypeVarbyte, + } +} + const ( // ProtectedQueryStatusSubmitted is a ProtectedQueryStatus enum value ProtectedQueryStatusSubmitted = "SUBMITTED" @@ -11897,6 +14641,9 @@ const ( // ValidationExceptionReasonInvalidQuery is a ValidationExceptionReason enum value ValidationExceptionReasonInvalidQuery = "INVALID_QUERY" + + // ValidationExceptionReasonIamSynchronizationDelay is a ValidationExceptionReason enum value + ValidationExceptionReasonIamSynchronizationDelay = "IAM_SYNCHRONIZATION_DELAY" ) // ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum @@ -11905,5 +14652,6 @@ func ValidationExceptionReason_Values() []string { ValidationExceptionReasonFieldValidationFailed, ValidationExceptionReasonInvalidConfiguration, ValidationExceptionReasonInvalidQuery, + ValidationExceptionReasonIamSynchronizationDelay, } } diff --git a/service/cleanrooms/cleanroomsiface/interface.go b/service/cleanrooms/cleanroomsiface/interface.go index d3c115cdeed..81e6192712c 100644 --- a/service/cleanrooms/cleanroomsiface/interface.go +++ b/service/cleanrooms/cleanroomsiface/interface.go @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWS Clean Rooms Service. // func myFunc(svc cleanroomsiface.CleanRoomsAPI) bool { -// // Make svc.BatchGetSchema request +// // Make svc.BatchGetCollaborationAnalysisTemplate request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockCleanRoomsClient struct { // cleanroomsiface.CleanRoomsAPI // } -// func (m *mockCleanRoomsClient) BatchGetSchema(input *cleanrooms.BatchGetSchemaInput) (*cleanrooms.BatchGetSchemaOutput, error) { +// func (m *mockCleanRoomsClient) BatchGetCollaborationAnalysisTemplate(input *cleanrooms.BatchGetCollaborationAnalysisTemplateInput) (*cleanrooms.BatchGetCollaborationAnalysisTemplateOutput, error) { // // mock response/functionality // } // @@ -60,10 +60,18 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type CleanRoomsAPI interface { + BatchGetCollaborationAnalysisTemplate(*cleanrooms.BatchGetCollaborationAnalysisTemplateInput) (*cleanrooms.BatchGetCollaborationAnalysisTemplateOutput, error) + BatchGetCollaborationAnalysisTemplateWithContext(aws.Context, *cleanrooms.BatchGetCollaborationAnalysisTemplateInput, ...request.Option) (*cleanrooms.BatchGetCollaborationAnalysisTemplateOutput, error) + BatchGetCollaborationAnalysisTemplateRequest(*cleanrooms.BatchGetCollaborationAnalysisTemplateInput) (*request.Request, *cleanrooms.BatchGetCollaborationAnalysisTemplateOutput) + BatchGetSchema(*cleanrooms.BatchGetSchemaInput) (*cleanrooms.BatchGetSchemaOutput, error) BatchGetSchemaWithContext(aws.Context, *cleanrooms.BatchGetSchemaInput, ...request.Option) (*cleanrooms.BatchGetSchemaOutput, error) BatchGetSchemaRequest(*cleanrooms.BatchGetSchemaInput) (*request.Request, *cleanrooms.BatchGetSchemaOutput) + CreateAnalysisTemplate(*cleanrooms.CreateAnalysisTemplateInput) (*cleanrooms.CreateAnalysisTemplateOutput, error) + CreateAnalysisTemplateWithContext(aws.Context, *cleanrooms.CreateAnalysisTemplateInput, ...request.Option) (*cleanrooms.CreateAnalysisTemplateOutput, error) + CreateAnalysisTemplateRequest(*cleanrooms.CreateAnalysisTemplateInput) (*request.Request, *cleanrooms.CreateAnalysisTemplateOutput) + CreateCollaboration(*cleanrooms.CreateCollaborationInput) (*cleanrooms.CreateCollaborationOutput, error) CreateCollaborationWithContext(aws.Context, *cleanrooms.CreateCollaborationInput, ...request.Option) (*cleanrooms.CreateCollaborationOutput, error) CreateCollaborationRequest(*cleanrooms.CreateCollaborationInput) (*request.Request, *cleanrooms.CreateCollaborationOutput) @@ -84,6 +92,10 @@ type CleanRoomsAPI interface { CreateMembershipWithContext(aws.Context, *cleanrooms.CreateMembershipInput, ...request.Option) (*cleanrooms.CreateMembershipOutput, error) CreateMembershipRequest(*cleanrooms.CreateMembershipInput) (*request.Request, *cleanrooms.CreateMembershipOutput) + DeleteAnalysisTemplate(*cleanrooms.DeleteAnalysisTemplateInput) (*cleanrooms.DeleteAnalysisTemplateOutput, error) + DeleteAnalysisTemplateWithContext(aws.Context, *cleanrooms.DeleteAnalysisTemplateInput, ...request.Option) (*cleanrooms.DeleteAnalysisTemplateOutput, error) + DeleteAnalysisTemplateRequest(*cleanrooms.DeleteAnalysisTemplateInput) (*request.Request, *cleanrooms.DeleteAnalysisTemplateOutput) + DeleteCollaboration(*cleanrooms.DeleteCollaborationInput) (*cleanrooms.DeleteCollaborationOutput, error) DeleteCollaborationWithContext(aws.Context, *cleanrooms.DeleteCollaborationInput, ...request.Option) (*cleanrooms.DeleteCollaborationOutput, error) DeleteCollaborationRequest(*cleanrooms.DeleteCollaborationInput) (*request.Request, *cleanrooms.DeleteCollaborationOutput) @@ -108,10 +120,18 @@ type CleanRoomsAPI interface { DeleteMembershipWithContext(aws.Context, *cleanrooms.DeleteMembershipInput, ...request.Option) (*cleanrooms.DeleteMembershipOutput, error) DeleteMembershipRequest(*cleanrooms.DeleteMembershipInput) (*request.Request, *cleanrooms.DeleteMembershipOutput) + GetAnalysisTemplate(*cleanrooms.GetAnalysisTemplateInput) (*cleanrooms.GetAnalysisTemplateOutput, error) + GetAnalysisTemplateWithContext(aws.Context, *cleanrooms.GetAnalysisTemplateInput, ...request.Option) (*cleanrooms.GetAnalysisTemplateOutput, error) + GetAnalysisTemplateRequest(*cleanrooms.GetAnalysisTemplateInput) (*request.Request, *cleanrooms.GetAnalysisTemplateOutput) + GetCollaboration(*cleanrooms.GetCollaborationInput) (*cleanrooms.GetCollaborationOutput, error) GetCollaborationWithContext(aws.Context, *cleanrooms.GetCollaborationInput, ...request.Option) (*cleanrooms.GetCollaborationOutput, error) GetCollaborationRequest(*cleanrooms.GetCollaborationInput) (*request.Request, *cleanrooms.GetCollaborationOutput) + GetCollaborationAnalysisTemplate(*cleanrooms.GetCollaborationAnalysisTemplateInput) (*cleanrooms.GetCollaborationAnalysisTemplateOutput, error) + GetCollaborationAnalysisTemplateWithContext(aws.Context, *cleanrooms.GetCollaborationAnalysisTemplateInput, ...request.Option) (*cleanrooms.GetCollaborationAnalysisTemplateOutput, error) + GetCollaborationAnalysisTemplateRequest(*cleanrooms.GetCollaborationAnalysisTemplateInput) (*request.Request, *cleanrooms.GetCollaborationAnalysisTemplateOutput) + GetConfiguredTable(*cleanrooms.GetConfiguredTableInput) (*cleanrooms.GetConfiguredTableOutput, error) GetConfiguredTableWithContext(aws.Context, *cleanrooms.GetConfiguredTableInput, ...request.Option) (*cleanrooms.GetConfiguredTableOutput, error) GetConfiguredTableRequest(*cleanrooms.GetConfiguredTableInput) (*request.Request, *cleanrooms.GetConfiguredTableOutput) @@ -140,6 +160,20 @@ type CleanRoomsAPI interface { GetSchemaAnalysisRuleWithContext(aws.Context, *cleanrooms.GetSchemaAnalysisRuleInput, ...request.Option) (*cleanrooms.GetSchemaAnalysisRuleOutput, error) GetSchemaAnalysisRuleRequest(*cleanrooms.GetSchemaAnalysisRuleInput) (*request.Request, *cleanrooms.GetSchemaAnalysisRuleOutput) + ListAnalysisTemplates(*cleanrooms.ListAnalysisTemplatesInput) (*cleanrooms.ListAnalysisTemplatesOutput, error) + ListAnalysisTemplatesWithContext(aws.Context, *cleanrooms.ListAnalysisTemplatesInput, ...request.Option) (*cleanrooms.ListAnalysisTemplatesOutput, error) + ListAnalysisTemplatesRequest(*cleanrooms.ListAnalysisTemplatesInput) (*request.Request, *cleanrooms.ListAnalysisTemplatesOutput) + + ListAnalysisTemplatesPages(*cleanrooms.ListAnalysisTemplatesInput, func(*cleanrooms.ListAnalysisTemplatesOutput, bool) bool) error + ListAnalysisTemplatesPagesWithContext(aws.Context, *cleanrooms.ListAnalysisTemplatesInput, func(*cleanrooms.ListAnalysisTemplatesOutput, bool) bool, ...request.Option) error + + ListCollaborationAnalysisTemplates(*cleanrooms.ListCollaborationAnalysisTemplatesInput) (*cleanrooms.ListCollaborationAnalysisTemplatesOutput, error) + ListCollaborationAnalysisTemplatesWithContext(aws.Context, *cleanrooms.ListCollaborationAnalysisTemplatesInput, ...request.Option) (*cleanrooms.ListCollaborationAnalysisTemplatesOutput, error) + ListCollaborationAnalysisTemplatesRequest(*cleanrooms.ListCollaborationAnalysisTemplatesInput) (*request.Request, *cleanrooms.ListCollaborationAnalysisTemplatesOutput) + + ListCollaborationAnalysisTemplatesPages(*cleanrooms.ListCollaborationAnalysisTemplatesInput, func(*cleanrooms.ListCollaborationAnalysisTemplatesOutput, bool) bool) error + ListCollaborationAnalysisTemplatesPagesWithContext(aws.Context, *cleanrooms.ListCollaborationAnalysisTemplatesInput, func(*cleanrooms.ListCollaborationAnalysisTemplatesOutput, bool) bool, ...request.Option) error + ListCollaborations(*cleanrooms.ListCollaborationsInput) (*cleanrooms.ListCollaborationsOutput, error) ListCollaborationsWithContext(aws.Context, *cleanrooms.ListCollaborationsInput, ...request.Option) (*cleanrooms.ListCollaborationsOutput, error) ListCollaborationsRequest(*cleanrooms.ListCollaborationsInput) (*request.Request, *cleanrooms.ListCollaborationsOutput) @@ -205,6 +239,10 @@ type CleanRoomsAPI interface { UntagResourceWithContext(aws.Context, *cleanrooms.UntagResourceInput, ...request.Option) (*cleanrooms.UntagResourceOutput, error) UntagResourceRequest(*cleanrooms.UntagResourceInput) (*request.Request, *cleanrooms.UntagResourceOutput) + UpdateAnalysisTemplate(*cleanrooms.UpdateAnalysisTemplateInput) (*cleanrooms.UpdateAnalysisTemplateOutput, error) + UpdateAnalysisTemplateWithContext(aws.Context, *cleanrooms.UpdateAnalysisTemplateInput, ...request.Option) (*cleanrooms.UpdateAnalysisTemplateOutput, error) + UpdateAnalysisTemplateRequest(*cleanrooms.UpdateAnalysisTemplateInput) (*request.Request, *cleanrooms.UpdateAnalysisTemplateOutput) + UpdateCollaboration(*cleanrooms.UpdateCollaborationInput) (*cleanrooms.UpdateCollaborationOutput, error) UpdateCollaborationWithContext(aws.Context, *cleanrooms.UpdateCollaborationInput, ...request.Option) (*cleanrooms.UpdateCollaborationOutput, error) UpdateCollaborationRequest(*cleanrooms.UpdateCollaborationInput) (*request.Request, *cleanrooms.UpdateCollaborationOutput) diff --git a/service/codestarconnections/api.go b/service/codestarconnections/api.go index 66ca308162e..fc50ce46ea6 100644 --- a/service/codestarconnections/api.go +++ b/service/codestarconnections/api.go @@ -55,10 +55,10 @@ func (c *CodeStarConnections) CreateConnectionRequest(input *CreateConnectionInp // CreateConnection API operation for AWS CodeStar connections. // -// Creates a connection that can then be given to other AWS services like CodePipeline -// so that it can access third-party code repositories. The connection is in -// pending status until the third-party connection handshake is completed from -// the console. +// Creates a connection that can then be given to other Amazon Web Services +// services like CodePipeline so that it can access third-party code repositories. +// The connection is in pending status until the third-party connection handshake +// is completed from the console. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -573,6 +573,11 @@ func (c *CodeStarConnections) ListConnectionsRequest(input *ListConnectionsInput // // See the AWS API reference guide for AWS CodeStar connections's // API operation ListConnections for usage and error information. +// +// Returned Error Types: +// - ResourceNotFoundException +// Resource not found. Verify the connection resource ARN and try again. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections func (c *CodeStarConnections) ListConnections(input *ListConnectionsInput) (*ListConnectionsOutput, error) { req, out := c.ListConnectionsRequest(input) @@ -982,7 +987,7 @@ func (c *CodeStarConnections) UntagResourceRequest(input *UntagResourceInput) (r // UntagResource API operation for AWS CodeStar connections. // -// Removes tags from an AWS resource. +// Removes tags from an Amazon Web Services 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 @@ -1171,7 +1176,7 @@ func (s *ConflictException) RequestID() string { } // A resource that is used to connect third-party source providers with services -// like AWS CodePipeline. +// like CodePipeline. // // Note: A connection created through CloudFormation, the CLI, or the SDK is // in `PENDING` status by default. You can make its status `AVAILABLE` by updating @@ -1180,13 +1185,13 @@ type Connection struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the connection. The ARN is used as the - // connection reference when the connection is shared between AWS services. + // connection reference when the connection is shared between Amazon Web Services. // // The ARN is never reused if the connection is deleted. ConnectionArn *string `type:"string"` - // The name of the connection. Connection names must be unique in an AWS user - // account. + // The name of the connection. Connection names must be unique in an Amazon + // Web Services account. ConnectionName *string `min:"1" type:"string"` // The current status of the connection. @@ -1262,8 +1267,7 @@ func (s *Connection) SetProviderType(v string) *Connection { type CreateConnectionInput struct { _ struct{} `type:"structure"` - // The name of the connection to be created. The name must be unique in the - // calling AWS account. + // The name of the connection to be created. // // ConnectionName is a required field ConnectionName *string `min:"1" type:"string" required:"true"` @@ -1352,8 +1356,8 @@ type CreateConnectionOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the connection to be created. The ARN is - // used as the connection reference when the connection is shared between AWS - // services. + // used as the connection reference when the connection is shared between Amazon + // Web Services services. // // The ARN is never reused if the connection is deleted. // @@ -1397,8 +1401,7 @@ func (s *CreateConnectionOutput) SetTags(v []*Tag) *CreateConnectionOutput { type CreateHostInput struct { _ struct{} `type:"structure"` - // The name of the host to be created. The name must be unique in the calling - // AWS account. + // The name of the host to be created. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` @@ -2464,7 +2467,8 @@ func (s *ResourceUnavailableException) RequestID() string { // A tag is a key-value pair that is used to manage the resource. // -// This tag is available for use by AWS services that support tags. +// This tag is available for use by Amazon Web Services services that support +// tags. type Tag struct { _ struct{} `type:"structure"` @@ -2998,6 +3002,9 @@ const ( // ProviderTypeGitHubEnterpriseServer is a ProviderType enum value ProviderTypeGitHubEnterpriseServer = "GitHubEnterpriseServer" + + // ProviderTypeGitLab is a ProviderType enum value + ProviderTypeGitLab = "GitLab" ) // ProviderType_Values returns all elements of the ProviderType enum @@ -3006,5 +3013,6 @@ func ProviderType_Values() []string { ProviderTypeBitbucket, ProviderTypeGitHub, ProviderTypeGitHubEnterpriseServer, + ProviderTypeGitLab, } } diff --git a/service/codestarconnections/doc.go b/service/codestarconnections/doc.go index bb7e7f567ce..e533fff64a7 100644 --- a/service/codestarconnections/doc.go +++ b/service/codestarconnections/doc.go @@ -3,17 +3,18 @@ // Package codestarconnections provides the client and types for making API // requests to AWS CodeStar connections. // -// This AWS CodeStar Connections API Reference provides descriptions and usage -// examples of the operations and data types for the AWS CodeStar Connections -// API. You can use the connections API to work with connections and installations. -// -// Connections are configurations that you use to connect AWS resources to external -// code repositories. Each connection is a resource that can be given to services -// such as CodePipeline to connect to a third-party repository such as Bitbucket. -// For example, you can add the connection in CodePipeline so that it triggers -// your pipeline when a code change is made to your third-party code repository. -// Each connection is named and associated with a unique ARN that is used to -// reference the connection. +// This Amazon Web Services CodeStar Connections API Reference provides descriptions +// and usage examples of the operations and data types for the Amazon Web Services +// CodeStar Connections API. You can use the connections API to work with connections +// and installations. +// +// Connections are configurations that you use to connect Amazon Web Services +// resources to external code repositories. Each connection is a resource that +// can be given to services such as CodePipeline to connect to a third-party +// repository such as Bitbucket. For example, you can add the connection in +// CodePipeline so that it triggers your pipeline when a code change is made +// to your third-party code repository. Each connection is named and associated +// with a unique ARN that is used to reference the connection. // // When you create a connection, the console initiates a third-party connection // handshake. Installations are the apps that are used to conduct this handshake. @@ -48,18 +49,21 @@ // // - ListHosts, which lists the hosts associated with your account. // -// You can work with tags in AWS CodeStar Connections by calling the following: +// You can work with tags in Amazon Web Services CodeStar Connections by calling +// the following: // -// - ListTagsForResource, which gets information about AWS tags for a specified -// Amazon Resource Name (ARN) in AWS CodeStar Connections. +// - ListTagsForResource, which gets information about Amazon Web Services +// tags for a specified Amazon Resource Name (ARN) in Amazon Web Services +// CodeStar Connections. // -// - TagResource, which adds or updates tags for a resource in AWS CodeStar -// Connections. +// - TagResource, which adds or updates tags for a resource in Amazon Web +// Services CodeStar Connections. // -// - UntagResource, which removes tags for a resource in AWS CodeStar Connections. +// - UntagResource, which removes tags for a resource in Amazon Web Services +// CodeStar Connections. // -// For information about how to use AWS CodeStar Connections, see the Developer -// Tools User Guide (https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html). +// For information about how to use Amazon Web Services CodeStar Connections, +// see the Developer Tools User Guide (https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html). // // See https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01 for more information on this service. // diff --git a/service/drs/api.go b/service/drs/api.go index 30d756e6600..cc059979d0d 100644 --- a/service/drs/api.go +++ b/service/drs/api.go @@ -16102,6 +16102,9 @@ const ( // TargetInstanceTypeRightSizingMethodBasic is a TargetInstanceTypeRightSizingMethod enum value TargetInstanceTypeRightSizingMethodBasic = "BASIC" + + // TargetInstanceTypeRightSizingMethodInAws is a TargetInstanceTypeRightSizingMethod enum value + TargetInstanceTypeRightSizingMethodInAws = "IN_AWS" ) // TargetInstanceTypeRightSizingMethod_Values returns all elements of the TargetInstanceTypeRightSizingMethod enum @@ -16109,6 +16112,7 @@ func TargetInstanceTypeRightSizingMethod_Values() []string { return []string{ TargetInstanceTypeRightSizingMethodNone, TargetInstanceTypeRightSizingMethodBasic, + TargetInstanceTypeRightSizingMethodInAws, } } diff --git a/service/inspector2/api.go b/service/inspector2/api.go index ad3dee3cce2..2b792c8b1e9 100644 --- a/service/inspector2/api.go +++ b/service/inspector2/api.go @@ -294,6 +294,96 @@ func (c *Inspector2) BatchGetCodeSnippetWithContext(ctx aws.Context, input *Batc return out, req.Send() } +const opBatchGetFindingDetails = "BatchGetFindingDetails" + +// BatchGetFindingDetailsRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetFindingDetails operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchGetFindingDetails for more information on using the BatchGetFindingDetails +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the BatchGetFindingDetailsRequest method. +// req, resp := client.BatchGetFindingDetailsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/BatchGetFindingDetails +func (c *Inspector2) BatchGetFindingDetailsRequest(input *BatchGetFindingDetailsInput) (req *request.Request, output *BatchGetFindingDetailsOutput) { + op := &request.Operation{ + Name: opBatchGetFindingDetails, + HTTPMethod: "POST", + HTTPPath: "/findings/details/batch/get", + } + + if input == nil { + input = &BatchGetFindingDetailsInput{} + } + + output = &BatchGetFindingDetailsOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetFindingDetails API operation for Inspector2. +// +// Gets vulnerability details for findings. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Inspector2's +// API operation BatchGetFindingDetails for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// The request has failed validation due to missing required fields or having +// invalid inputs. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ThrottlingException +// The limit on the number of requests per second was exceeded. +// +// - InternalServerException +// The request has failed due to an internal failure of the Amazon Inspector +// service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/BatchGetFindingDetails +func (c *Inspector2) BatchGetFindingDetails(input *BatchGetFindingDetailsInput) (*BatchGetFindingDetailsOutput, error) { + req, out := c.BatchGetFindingDetailsRequest(input) + return out, req.Send() +} + +// BatchGetFindingDetailsWithContext is the same as BatchGetFindingDetails with the addition of +// the ability to pass a context and additional request options. +// +// See BatchGetFindingDetails for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Inspector2) BatchGetFindingDetailsWithContext(ctx aws.Context, input *BatchGetFindingDetailsInput, opts ...request.Option) (*BatchGetFindingDetailsOutput, error) { + req, out := c.BatchGetFindingDetailsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opBatchGetFreeTrialInfo = "BatchGetFreeTrialInfo" // BatchGetFreeTrialInfoRequest generates a "aws/request.Request" representing the @@ -6523,6 +6613,95 @@ func (s *BatchGetCodeSnippetOutput) SetErrors(v []*CodeSnippetError) *BatchGetCo return s } +type BatchGetFindingDetailsInput struct { + _ struct{} `type:"structure"` + + // A list of finding ARNs. + // + // FindingArns is a required field + FindingArns []*string `locationName:"findingArns" 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 BatchGetFindingDetailsInput) 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 BatchGetFindingDetailsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetFindingDetailsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetFindingDetailsInput"} + if s.FindingArns == nil { + invalidParams.Add(request.NewErrParamRequired("FindingArns")) + } + if s.FindingArns != nil && len(s.FindingArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FindingArns", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFindingArns sets the FindingArns field's value. +func (s *BatchGetFindingDetailsInput) SetFindingArns(v []*string) *BatchGetFindingDetailsInput { + s.FindingArns = v + return s +} + +type BatchGetFindingDetailsOutput struct { + _ struct{} `type:"structure"` + + // Error information for findings that details could not be returned for. + Errors []*FindingDetailsError `locationName:"errors" type:"list"` + + // A finding's vulnerability details. + FindingDetails []*FindingDetail `locationName:"findingDetails" 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 BatchGetFindingDetailsOutput) 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 BatchGetFindingDetailsOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchGetFindingDetailsOutput) SetErrors(v []*FindingDetailsError) *BatchGetFindingDetailsOutput { + s.Errors = v + return s +} + +// SetFindingDetails sets the FindingDetails field's value. +func (s *BatchGetFindingDetailsOutput) SetFindingDetails(v []*FindingDetail) *BatchGetFindingDetailsOutput { + s.FindingDetails = v + return s +} + type BatchGetFreeTrialInfoInput struct { _ struct{} `type:"structure"` @@ -8979,7 +9158,7 @@ type Destination struct { // BucketName is a required field BucketName *string `locationName:"bucketName" type:"string" required:"true"` - // The prefix of the Amazon S3 bucket used to export findings. + // The prefix that the findings will be written under. KeyPrefix *string `locationName:"keyPrefix" type:"string"` // The ARN of the KMS key used to encrypt data when exporting findings. @@ -10056,6 +10235,56 @@ func (s *EpssDetails) SetScore(v float64) *EpssDetails { return s } +// Details of the evidence for a vulnerability identified in a finding. +type Evidence struct { + _ struct{} `type:"structure"` + + // The evidence details. + EvidenceDetail *string `locationName:"evidenceDetail" type:"string"` + + // The evidence rule. + EvidenceRule *string `locationName:"evidenceRule" type:"string"` + + // The evidence severity. + Severity *string `locationName:"severity" 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 Evidence) 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 Evidence) GoString() string { + return s.String() +} + +// SetEvidenceDetail sets the EvidenceDetail field's value. +func (s *Evidence) SetEvidenceDetail(v string) *Evidence { + s.EvidenceDetail = &v + return s +} + +// SetEvidenceRule sets the EvidenceRule field's value. +func (s *Evidence) SetEvidenceRule(v string) *Evidence { + s.EvidenceRule = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *Evidence) SetSeverity(v string) *Evidence { + s.Severity = &v + return s +} + // Contains information on when this exploit was observed. type ExploitObserved struct { _ struct{} `type:"structure"` @@ -10490,7 +10719,7 @@ type FilterCriteria struct { // Details on the date and time a finding was last seen used to filter findings. LastObservedAt []*DateFilter `locationName:"lastObservedAt" min:"1" type:"list"` - // Details on the ingress source addresses used to filter findings. + // Details on network protocol used to filter findings. NetworkProtocol []*StringFilter `locationName:"networkProtocol" min:"1" type:"list"` // Details on the port ranges used to filter findings. @@ -11513,6 +11742,178 @@ func (s *Finding) SetUpdatedAt(v time.Time) *Finding { return s } +// Details of the vulnerability identified in a finding. +type FindingDetail struct { + _ struct{} `type:"structure"` + + // The Cybersecurity and Infrastructure Security Agency (CISA) details for a + // specific vulnerability. + CisaData *CisaData `locationName:"cisaData" type:"structure"` + + // The Common Weakness Enumerations (CWEs) associated with the vulnerability. + Cwes []*string `locationName:"cwes" type:"list"` + + // The Exploit Prediction Scoring System (EPSS) score of the vulnerability. + EpssScore *float64 `locationName:"epssScore" type:"double"` + + // Information on the evidence of the vulnerability. + Evidences []*Evidence `locationName:"evidences" type:"list"` + + // Contains information on when this exploit was observed. + ExploitObserved *ExploitObserved `locationName:"exploitObserved" type:"structure"` + + // The finding ARN that the vulnerability details are associated with. + FindingArn *string `locationName:"findingArn" min:"1" type:"string"` + + // The reference URLs for the vulnerability data. + ReferenceUrls []*string `locationName:"referenceUrls" type:"list"` + + // The risk score of the vulnerability. + RiskScore *int64 `locationName:"riskScore" type:"integer"` + + // The known malware tools or kits that can exploit the vulnerability. + Tools []*string `locationName:"tools" type:"list"` + + // The MITRE adversary tactics, techniques, or procedures (TTPs) associated + // with the vulnerability. + Ttps []*string `locationName:"ttps" 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 FindingDetail) 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 FindingDetail) GoString() string { + return s.String() +} + +// SetCisaData sets the CisaData field's value. +func (s *FindingDetail) SetCisaData(v *CisaData) *FindingDetail { + s.CisaData = v + return s +} + +// SetCwes sets the Cwes field's value. +func (s *FindingDetail) SetCwes(v []*string) *FindingDetail { + s.Cwes = v + return s +} + +// SetEpssScore sets the EpssScore field's value. +func (s *FindingDetail) SetEpssScore(v float64) *FindingDetail { + s.EpssScore = &v + return s +} + +// SetEvidences sets the Evidences field's value. +func (s *FindingDetail) SetEvidences(v []*Evidence) *FindingDetail { + s.Evidences = v + return s +} + +// SetExploitObserved sets the ExploitObserved field's value. +func (s *FindingDetail) SetExploitObserved(v *ExploitObserved) *FindingDetail { + s.ExploitObserved = v + return s +} + +// SetFindingArn sets the FindingArn field's value. +func (s *FindingDetail) SetFindingArn(v string) *FindingDetail { + s.FindingArn = &v + return s +} + +// SetReferenceUrls sets the ReferenceUrls field's value. +func (s *FindingDetail) SetReferenceUrls(v []*string) *FindingDetail { + s.ReferenceUrls = v + return s +} + +// SetRiskScore sets the RiskScore field's value. +func (s *FindingDetail) SetRiskScore(v int64) *FindingDetail { + s.RiskScore = &v + return s +} + +// SetTools sets the Tools field's value. +func (s *FindingDetail) SetTools(v []*string) *FindingDetail { + s.Tools = v + return s +} + +// SetTtps sets the Ttps field's value. +func (s *FindingDetail) SetTtps(v []*string) *FindingDetail { + s.Ttps = v + return s +} + +// Details about an error encountered when trying to return vulnerability data +// for a finding. +type FindingDetailsError struct { + _ struct{} `type:"structure"` + + // The error code. + // + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"FindingDetailsErrorCode"` + + // The error message. + // + // ErrorMessage is a required field + ErrorMessage *string `locationName:"errorMessage" min:"1" type:"string" required:"true"` + + // The finding ARN that returned an error. + // + // FindingArn is a required field + FindingArn *string `locationName:"findingArn" 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 FindingDetailsError) 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 FindingDetailsError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *FindingDetailsError) SetErrorCode(v string) *FindingDetailsError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *FindingDetailsError) SetErrorMessage(v string) *FindingDetailsError { + s.ErrorMessage = &v + return s +} + +// SetFindingArn sets the FindingArn field's value. +func (s *FindingDetailsError) SetFindingArn(v string) *FindingDetailsError { + s.FindingArn = &v + return s +} + // The details that define an aggregation based on finding type. type FindingTypeAggregation struct { _ struct{} `type:"structure"` @@ -18916,6 +19317,30 @@ func FilterAction_Values() []string { } } +const ( + // FindingDetailsErrorCodeInternalError is a FindingDetailsErrorCode enum value + FindingDetailsErrorCodeInternalError = "INTERNAL_ERROR" + + // FindingDetailsErrorCodeAccessDenied is a FindingDetailsErrorCode enum value + FindingDetailsErrorCodeAccessDenied = "ACCESS_DENIED" + + // FindingDetailsErrorCodeFindingDetailsNotFound is a FindingDetailsErrorCode enum value + FindingDetailsErrorCodeFindingDetailsNotFound = "FINDING_DETAILS_NOT_FOUND" + + // FindingDetailsErrorCodeInvalidInput is a FindingDetailsErrorCode enum value + FindingDetailsErrorCodeInvalidInput = "INVALID_INPUT" +) + +// FindingDetailsErrorCode_Values returns all elements of the FindingDetailsErrorCode enum +func FindingDetailsErrorCode_Values() []string { + return []string{ + FindingDetailsErrorCodeInternalError, + FindingDetailsErrorCodeAccessDenied, + FindingDetailsErrorCodeFindingDetailsNotFound, + FindingDetailsErrorCodeInvalidInput, + } +} + const ( // FindingStatusActive is a FindingStatus enum value FindingStatusActive = "ACTIVE" diff --git a/service/inspector2/inspector2iface/interface.go b/service/inspector2/inspector2iface/interface.go index 0e6fc7404e8..4fe25e8aa64 100644 --- a/service/inspector2/inspector2iface/interface.go +++ b/service/inspector2/inspector2iface/interface.go @@ -72,6 +72,10 @@ type Inspector2API interface { BatchGetCodeSnippetWithContext(aws.Context, *inspector2.BatchGetCodeSnippetInput, ...request.Option) (*inspector2.BatchGetCodeSnippetOutput, error) BatchGetCodeSnippetRequest(*inspector2.BatchGetCodeSnippetInput) (*request.Request, *inspector2.BatchGetCodeSnippetOutput) + BatchGetFindingDetails(*inspector2.BatchGetFindingDetailsInput) (*inspector2.BatchGetFindingDetailsOutput, error) + BatchGetFindingDetailsWithContext(aws.Context, *inspector2.BatchGetFindingDetailsInput, ...request.Option) (*inspector2.BatchGetFindingDetailsOutput, error) + BatchGetFindingDetailsRequest(*inspector2.BatchGetFindingDetailsInput) (*request.Request, *inspector2.BatchGetFindingDetailsOutput) + BatchGetFreeTrialInfo(*inspector2.BatchGetFreeTrialInfoInput) (*inspector2.BatchGetFreeTrialInfoOutput, error) BatchGetFreeTrialInfoWithContext(aws.Context, *inspector2.BatchGetFreeTrialInfoInput, ...request.Option) (*inspector2.BatchGetFreeTrialInfoOutput, error) BatchGetFreeTrialInfoRequest(*inspector2.BatchGetFreeTrialInfoInput) (*request.Request, *inspector2.BatchGetFreeTrialInfoOutput) diff --git a/service/lookoutequipment/api.go b/service/lookoutequipment/api.go index 96a49a8dfba..52a14d48b69 100644 --- a/service/lookoutequipment/api.go +++ b/service/lookoutequipment/api.go @@ -58,9 +58,9 @@ func (c *LookoutEquipment) CreateDatasetRequest(input *CreateDatasetInput) (req // // Creates a container for a collection of data being ingested for analysis. // The dataset contains the metadata describing where the data is and what the -// data actually looks like. In other words, it contains the location of the -// data source, the data schema, and other information. A dataset also contains -// any tags associated with the ingested data. +// data actually looks like. For example, it contains the location of the data +// source, the data schema, and other information. A dataset also contains any +// tags associated with the ingested data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -73,7 +73,7 @@ func (c *LookoutEquipment) CreateDatasetRequest(input *CreateDatasetInput) (req // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ConflictException // The request could not be completed due to a conflict with the current state @@ -184,7 +184,7 @@ func (c *LookoutEquipment) CreateInferenceSchedulerRequest(input *CreateInferenc // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ServiceQuotaExceededException // Resource limitations have been exceeded. @@ -278,7 +278,7 @@ func (c *LookoutEquipment) CreateLabelRequest(input *CreateLabelInput) (req *req // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry @@ -380,7 +380,7 @@ func (c *LookoutEquipment) CreateLabelGroupRequest(input *CreateLabelGroupInput) // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ConflictException // The request could not be completed due to a conflict with the current state @@ -489,7 +489,7 @@ func (c *LookoutEquipment) CreateModelRequest(input *CreateModelInput) (req *req // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ConflictException // The request could not be completed due to a conflict with the current state @@ -615,7 +615,7 @@ func (c *LookoutEquipment) DeleteDatasetRequest(input *DeleteDatasetInput) (req // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DeleteDataset func (c *LookoutEquipment) DeleteDataset(input *DeleteDatasetInput) (*DeleteDatasetOutput, error) { @@ -697,7 +697,7 @@ func (c *LookoutEquipment) DeleteInferenceSchedulerRequest(input *DeleteInferenc // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry @@ -816,7 +816,7 @@ func (c *LookoutEquipment) DeleteLabelRequest(input *DeleteLabelInput) (req *req // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DeleteLabel func (c *LookoutEquipment) DeleteLabel(input *DeleteLabelInput) (*DeleteLabelOutput, error) { @@ -916,7 +916,7 @@ func (c *LookoutEquipment) DeleteLabelGroupRequest(input *DeleteLabelGroupInput) // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DeleteLabelGroup func (c *LookoutEquipment) DeleteLabelGroup(input *DeleteLabelGroupInput) (*DeleteLabelGroupOutput, error) { @@ -1018,7 +1018,7 @@ func (c *LookoutEquipment) DeleteModelRequest(input *DeleteModelInput) (req *req // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DeleteModel func (c *LookoutEquipment) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) { @@ -1042,6 +1042,106 @@ func (c *LookoutEquipment) DeleteModelWithContext(ctx aws.Context, input *Delete return out, req.Send() } +const opDeleteResourcePolicy = "DeleteResourcePolicy" + +// DeleteResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteResourcePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteResourcePolicy for more information on using the DeleteResourcePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteResourcePolicyRequest method. +// req, resp := client.DeleteResourcePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DeleteResourcePolicy +func (c *LookoutEquipment) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput) (req *request.Request, output *DeleteResourcePolicyOutput) { + op := &request.Operation{ + Name: opDeleteResourcePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteResourcePolicyInput{} + } + + output = &DeleteResourcePolicyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteResourcePolicy API operation for Amazon Lookout for Equipment. +// +// Deletes the resource policy attached to the resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lookout for Equipment's +// API operation DeleteResourcePolicy for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - InternalServerException +// Processing of the request has failed because of an unknown error, exception +// or failure. +// +// - AccessDeniedException +// The request could not be completed because you do not have access to the +// resource. +// +// - ConflictException +// The request could not be completed due to a conflict with the current state +// of the target resource. +// +// - ValidationException +// The input fails to satisfy constraints specified by Amazon Lookout for Equipment +// or a related Amazon Web Services service that's being utilized. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DeleteResourcePolicy +func (c *LookoutEquipment) DeleteResourcePolicy(input *DeleteResourcePolicyInput) (*DeleteResourcePolicyOutput, error) { + req, out := c.DeleteResourcePolicyRequest(input) + return out, req.Send() +} + +// DeleteResourcePolicyWithContext is the same as DeleteResourcePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteResourcePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LookoutEquipment) DeleteResourcePolicyWithContext(ctx aws.Context, input *DeleteResourcePolicyInput, opts ...request.Option) (*DeleteResourcePolicyOutput, error) { + req, out := c.DeleteResourcePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeDataIngestionJob = "DescribeDataIngestionJob" // DescribeDataIngestionJobRequest generates a "aws/request.Request" representing the @@ -1099,7 +1199,7 @@ func (c *LookoutEquipment) DescribeDataIngestionJobRequest(input *DescribeDataIn // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry @@ -1195,7 +1295,7 @@ func (c *LookoutEquipment) DescribeDatasetRequest(input *DescribeDatasetInput) ( // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry @@ -1291,7 +1391,7 @@ func (c *LookoutEquipment) DescribeInferenceSchedulerRequest(input *DescribeInfe // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry @@ -1386,7 +1486,7 @@ func (c *LookoutEquipment) DescribeLabelRequest(input *DescribeLabelInput) (req // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry @@ -1481,7 +1581,7 @@ func (c *LookoutEquipment) DescribeLabelGroupRequest(input *DescribeLabelGroupIn // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry @@ -1578,7 +1678,7 @@ func (c *LookoutEquipment) DescribeModelRequest(input *DescribeModelInput) (req // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry @@ -1617,70 +1717,67 @@ func (c *LookoutEquipment) DescribeModelWithContext(ctx aws.Context, input *Desc return out, req.Send() } -const opListDataIngestionJobs = "ListDataIngestionJobs" +const opDescribeModelVersion = "DescribeModelVersion" -// ListDataIngestionJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListDataIngestionJobs operation. The "output" return +// DescribeModelVersionRequest generates a "aws/request.Request" representing the +// client's request for the DescribeModelVersion operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDataIngestionJobs for more information on using the ListDataIngestionJobs +// See DescribeModelVersion for more information on using the DescribeModelVersion // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListDataIngestionJobsRequest method. -// req, resp := client.ListDataIngestionJobsRequest(params) +// // Example sending a request using the DescribeModelVersionRequest method. +// req, resp := client.DescribeModelVersionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListDataIngestionJobs -func (c *LookoutEquipment) ListDataIngestionJobsRequest(input *ListDataIngestionJobsInput) (req *request.Request, output *ListDataIngestionJobsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DescribeModelVersion +func (c *LookoutEquipment) DescribeModelVersionRequest(input *DescribeModelVersionInput) (req *request.Request, output *DescribeModelVersionOutput) { op := &request.Operation{ - Name: opListDataIngestionJobs, + Name: opDescribeModelVersion, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListDataIngestionJobsInput{} + input = &DescribeModelVersionInput{} } - output = &ListDataIngestionJobsOutput{} + output = &DescribeModelVersionOutput{} req = c.newRequest(op, input, output) return } -// ListDataIngestionJobs API operation for Amazon Lookout for Equipment. +// DescribeModelVersion API operation for Amazon Lookout for Equipment. // -// Provides a list of all data ingestion jobs, including dataset name and ARN, -// S3 location of the input data, status, and so on. +// Retrieves information about a specific machine learning model version. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Lookout for Equipment's -// API operation ListDataIngestionJobs for usage and error information. +// API operation DescribeModelVersion for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. +// +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. // // - ThrottlingException // The request was denied due to request throttling. @@ -1693,143 +1790,89 @@ func (c *LookoutEquipment) ListDataIngestionJobsRequest(input *ListDataIngestion // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListDataIngestionJobs -func (c *LookoutEquipment) ListDataIngestionJobs(input *ListDataIngestionJobsInput) (*ListDataIngestionJobsOutput, error) { - req, out := c.ListDataIngestionJobsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DescribeModelVersion +func (c *LookoutEquipment) DescribeModelVersion(input *DescribeModelVersionInput) (*DescribeModelVersionOutput, error) { + req, out := c.DescribeModelVersionRequest(input) return out, req.Send() } -// ListDataIngestionJobsWithContext is the same as ListDataIngestionJobs with the addition of +// DescribeModelVersionWithContext is the same as DescribeModelVersion with the addition of // the ability to pass a context and additional request options. // -// See ListDataIngestionJobs for details on how to use this API operation. +// See DescribeModelVersion for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) ListDataIngestionJobsWithContext(ctx aws.Context, input *ListDataIngestionJobsInput, opts ...request.Option) (*ListDataIngestionJobsOutput, error) { - req, out := c.ListDataIngestionJobsRequest(input) +func (c *LookoutEquipment) DescribeModelVersionWithContext(ctx aws.Context, input *DescribeModelVersionInput, opts ...request.Option) (*DescribeModelVersionOutput, error) { + req, out := c.DescribeModelVersionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListDataIngestionJobsPages iterates over the pages of a ListDataIngestionJobs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListDataIngestionJobs 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 ListDataIngestionJobs operation. -// pageNum := 0 -// err := client.ListDataIngestionJobsPages(params, -// func(page *lookoutequipment.ListDataIngestionJobsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *LookoutEquipment) ListDataIngestionJobsPages(input *ListDataIngestionJobsInput, fn func(*ListDataIngestionJobsOutput, bool) bool) error { - return c.ListDataIngestionJobsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListDataIngestionJobsPagesWithContext same as ListDataIngestionJobsPages 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 *LookoutEquipment) ListDataIngestionJobsPagesWithContext(ctx aws.Context, input *ListDataIngestionJobsInput, fn func(*ListDataIngestionJobsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListDataIngestionJobsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListDataIngestionJobsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListDataIngestionJobsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListDatasets = "ListDatasets" +const opDescribeResourcePolicy = "DescribeResourcePolicy" -// ListDatasetsRequest generates a "aws/request.Request" representing the -// client's request for the ListDatasets operation. The "output" return +// DescribeResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the DescribeResourcePolicy operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDatasets for more information on using the ListDatasets +// See DescribeResourcePolicy for more information on using the DescribeResourcePolicy // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListDatasetsRequest method. -// req, resp := client.ListDatasetsRequest(params) +// // Example sending a request using the DescribeResourcePolicyRequest method. +// req, resp := client.DescribeResourcePolicyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListDatasets -func (c *LookoutEquipment) ListDatasetsRequest(input *ListDatasetsInput) (req *request.Request, output *ListDatasetsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DescribeResourcePolicy +func (c *LookoutEquipment) DescribeResourcePolicyRequest(input *DescribeResourcePolicyInput) (req *request.Request, output *DescribeResourcePolicyOutput) { op := &request.Operation{ - Name: opListDatasets, + Name: opDescribeResourcePolicy, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListDatasetsInput{} + input = &DescribeResourcePolicyInput{} } - output = &ListDatasetsOutput{} + output = &DescribeResourcePolicyOutput{} req = c.newRequest(op, input, output) return } -// ListDatasets API operation for Amazon Lookout for Equipment. +// DescribeResourcePolicy API operation for Amazon Lookout for Equipment. // -// Lists all datasets currently available in your account, filtering on the -// dataset name. +// Provides the details of a resource policy attached to a resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Lookout for Equipment's -// API operation ListDatasets for usage and error information. +// API operation DescribeResourcePolicy for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. +// +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. // // - ThrottlingException // The request was denied due to request throttling. @@ -1842,151 +1885,100 @@ func (c *LookoutEquipment) ListDatasetsRequest(input *ListDatasetsInput) (req *r // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListDatasets -func (c *LookoutEquipment) ListDatasets(input *ListDatasetsInput) (*ListDatasetsOutput, error) { - req, out := c.ListDatasetsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DescribeResourcePolicy +func (c *LookoutEquipment) DescribeResourcePolicy(input *DescribeResourcePolicyInput) (*DescribeResourcePolicyOutput, error) { + req, out := c.DescribeResourcePolicyRequest(input) return out, req.Send() } -// ListDatasetsWithContext is the same as ListDatasets with the addition of +// DescribeResourcePolicyWithContext is the same as DescribeResourcePolicy with the addition of // the ability to pass a context and additional request options. // -// See ListDatasets for details on how to use this API operation. +// See DescribeResourcePolicy for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) ListDatasetsWithContext(ctx aws.Context, input *ListDatasetsInput, opts ...request.Option) (*ListDatasetsOutput, error) { - req, out := c.ListDatasetsRequest(input) +func (c *LookoutEquipment) DescribeResourcePolicyWithContext(ctx aws.Context, input *DescribeResourcePolicyInput, opts ...request.Option) (*DescribeResourcePolicyOutput, error) { + req, out := c.DescribeResourcePolicyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListDatasetsPages iterates over the pages of a ListDatasets operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListDatasets 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 ListDatasets operation. -// pageNum := 0 -// err := client.ListDatasetsPages(params, -// func(page *lookoutequipment.ListDatasetsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *LookoutEquipment) ListDatasetsPages(input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool) error { - return c.ListDatasetsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListDatasetsPagesWithContext same as ListDatasetsPages 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 *LookoutEquipment) ListDatasetsPagesWithContext(ctx aws.Context, input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListDatasetsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListDatasetsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListDatasetsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListInferenceEvents = "ListInferenceEvents" +const opImportDataset = "ImportDataset" -// ListInferenceEventsRequest generates a "aws/request.Request" representing the -// client's request for the ListInferenceEvents operation. The "output" return +// ImportDatasetRequest generates a "aws/request.Request" representing the +// client's request for the ImportDataset operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListInferenceEvents for more information on using the ListInferenceEvents +// See ImportDataset for more information on using the ImportDataset // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListInferenceEventsRequest method. -// req, resp := client.ListInferenceEventsRequest(params) +// // Example sending a request using the ImportDatasetRequest method. +// req, resp := client.ImportDatasetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceEvents -func (c *LookoutEquipment) ListInferenceEventsRequest(input *ListInferenceEventsInput) (req *request.Request, output *ListInferenceEventsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ImportDataset +func (c *LookoutEquipment) ImportDatasetRequest(input *ImportDatasetInput) (req *request.Request, output *ImportDatasetOutput) { op := &request.Operation{ - Name: opListInferenceEvents, + Name: opImportDataset, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListInferenceEventsInput{} + input = &ImportDatasetInput{} } - output = &ListInferenceEventsOutput{} + output = &ImportDatasetOutput{} req = c.newRequest(op, input, output) return } -// ListInferenceEvents API operation for Amazon Lookout for Equipment. +// ImportDataset API operation for Amazon Lookout for Equipment. // -// Lists all inference events that have been found for the specified inference -// scheduler. +// Imports a dataset. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Equipment's -// API operation ListInferenceEvents for usage and error information. +// API operation ImportDataset for usage and error information. // // Returned Error Types: // +// - ConflictException +// The request could not be completed due to a conflict with the current state +// of the target resource. +// +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. +// // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. +// +// - ServiceQuotaExceededException +// Resource limitations have been exceeded. // // - ThrottlingException // The request was denied due to request throttling. // -// - ResourceNotFoundException -// The resource requested could not be found. Verify the resource ID and retry -// your request. -// // - AccessDeniedException // The request could not be completed because you do not have access to the // resource. @@ -1995,107 +1987,158 @@ func (c *LookoutEquipment) ListInferenceEventsRequest(input *ListInferenceEvents // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceEvents -func (c *LookoutEquipment) ListInferenceEvents(input *ListInferenceEventsInput) (*ListInferenceEventsOutput, error) { - req, out := c.ListInferenceEventsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ImportDataset +func (c *LookoutEquipment) ImportDataset(input *ImportDatasetInput) (*ImportDatasetOutput, error) { + req, out := c.ImportDatasetRequest(input) return out, req.Send() } -// ListInferenceEventsWithContext is the same as ListInferenceEvents with the addition of +// ImportDatasetWithContext is the same as ImportDataset with the addition of // the ability to pass a context and additional request options. // -// See ListInferenceEvents for details on how to use this API operation. +// See ImportDataset for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) ListInferenceEventsWithContext(ctx aws.Context, input *ListInferenceEventsInput, opts ...request.Option) (*ListInferenceEventsOutput, error) { - req, out := c.ListInferenceEventsRequest(input) +func (c *LookoutEquipment) ImportDatasetWithContext(ctx aws.Context, input *ImportDatasetInput, opts ...request.Option) (*ImportDatasetOutput, error) { + req, out := c.ImportDatasetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListInferenceEventsPages iterates over the pages of a ListInferenceEvents operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opImportModelVersion = "ImportModelVersion" + +// ImportModelVersionRequest generates a "aws/request.Request" representing the +// client's request for the ImportModelVersion operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListInferenceEvents method for more information on how to use this operation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// Note: This operation can generate multiple requests to a service. +// See ImportModelVersion for more information on using the ImportModelVersion +// API call, and error handling. // -// // Example iterating over at most 3 pages of a ListInferenceEvents operation. -// pageNum := 0 -// err := client.ListInferenceEventsPages(params, -// func(page *lookoutequipment.ListInferenceEventsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *LookoutEquipment) ListInferenceEventsPages(input *ListInferenceEventsInput, fn func(*ListInferenceEventsOutput, bool) bool) error { - return c.ListInferenceEventsPagesWithContext(aws.BackgroundContext(), input, fn) +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ImportModelVersionRequest method. +// req, resp := client.ImportModelVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ImportModelVersion +func (c *LookoutEquipment) ImportModelVersionRequest(input *ImportModelVersionInput) (req *request.Request, output *ImportModelVersionOutput) { + op := &request.Operation{ + Name: opImportModelVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ImportModelVersionInput{} + } + + output = &ImportModelVersionOutput{} + req = c.newRequest(op, input, output) + return } -// ListInferenceEventsPagesWithContext same as ListInferenceEventsPages except -// it takes a Context and allows setting request options on the pages. +// ImportModelVersion API operation for Amazon Lookout for Equipment. +// +// Imports a model that has been trained successfully. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lookout for Equipment's +// API operation ImportModelVersion for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// The request could not be completed due to a conflict with the current state +// of the target resource. +// +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. +// +// - ValidationException +// The input fails to satisfy constraints specified by Amazon Lookout for Equipment +// or a related Amazon Web Services service that's being utilized. +// +// - ServiceQuotaExceededException +// Resource limitations have been exceeded. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - AccessDeniedException +// The request could not be completed because you do not have access to the +// resource. +// +// - InternalServerException +// Processing of the request has failed because of an unknown error, exception +// or failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ImportModelVersion +func (c *LookoutEquipment) ImportModelVersion(input *ImportModelVersionInput) (*ImportModelVersionOutput, error) { + req, out := c.ImportModelVersionRequest(input) + return out, req.Send() +} + +// ImportModelVersionWithContext is the same as ImportModelVersion with the addition of +// the ability to pass a context and additional request options. +// +// See ImportModelVersion for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) ListInferenceEventsPagesWithContext(ctx aws.Context, input *ListInferenceEventsInput, fn func(*ListInferenceEventsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListInferenceEventsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListInferenceEventsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListInferenceEventsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() +func (c *LookoutEquipment) ImportModelVersionWithContext(ctx aws.Context, input *ImportModelVersionInput, opts ...request.Option) (*ImportModelVersionOutput, error) { + req, out := c.ImportModelVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -const opListInferenceExecutions = "ListInferenceExecutions" +const opListDataIngestionJobs = "ListDataIngestionJobs" -// ListInferenceExecutionsRequest generates a "aws/request.Request" representing the -// client's request for the ListInferenceExecutions operation. The "output" return +// ListDataIngestionJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListDataIngestionJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListInferenceExecutions for more information on using the ListInferenceExecutions +// See ListDataIngestionJobs for more information on using the ListDataIngestionJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListInferenceExecutionsRequest method. -// req, resp := client.ListInferenceExecutionsRequest(params) +// // Example sending a request using the ListDataIngestionJobsRequest method. +// req, resp := client.ListDataIngestionJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceExecutions -func (c *LookoutEquipment) ListInferenceExecutionsRequest(input *ListInferenceExecutionsInput) (req *request.Request, output *ListInferenceExecutionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListDataIngestionJobs +func (c *LookoutEquipment) ListDataIngestionJobsRequest(input *ListDataIngestionJobsInput) (req *request.Request, output *ListDataIngestionJobsOutput) { op := &request.Operation{ - Name: opListInferenceExecutions, + Name: opListDataIngestionJobs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -2107,39 +2150,35 @@ func (c *LookoutEquipment) ListInferenceExecutionsRequest(input *ListInferenceEx } if input == nil { - input = &ListInferenceExecutionsInput{} + input = &ListDataIngestionJobsInput{} } - output = &ListInferenceExecutionsOutput{} + output = &ListDataIngestionJobsOutput{} req = c.newRequest(op, input, output) return } -// ListInferenceExecutions API operation for Amazon Lookout for Equipment. +// ListDataIngestionJobs API operation for Amazon Lookout for Equipment. // -// Lists all inference executions that have been performed by the specified -// inference scheduler. +// Provides a list of all data ingestion jobs, including dataset name and ARN, +// S3 location of the input data, status, and so on. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Lookout for Equipment's -// API operation ListInferenceExecutions for usage and error information. +// API operation ListDataIngestionJobs for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ThrottlingException // The request was denied due to request throttling. // -// - ResourceNotFoundException -// The resource requested could not be found. Verify the resource ID and retry -// your request. -// // - AccessDeniedException // The request could not be completed because you do not have access to the // resource. @@ -2148,64 +2187,64 @@ func (c *LookoutEquipment) ListInferenceExecutionsRequest(input *ListInferenceEx // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceExecutions -func (c *LookoutEquipment) ListInferenceExecutions(input *ListInferenceExecutionsInput) (*ListInferenceExecutionsOutput, error) { - req, out := c.ListInferenceExecutionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListDataIngestionJobs +func (c *LookoutEquipment) ListDataIngestionJobs(input *ListDataIngestionJobsInput) (*ListDataIngestionJobsOutput, error) { + req, out := c.ListDataIngestionJobsRequest(input) return out, req.Send() } -// ListInferenceExecutionsWithContext is the same as ListInferenceExecutions with the addition of +// ListDataIngestionJobsWithContext is the same as ListDataIngestionJobs with the addition of // the ability to pass a context and additional request options. // -// See ListInferenceExecutions for details on how to use this API operation. +// See ListDataIngestionJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) ListInferenceExecutionsWithContext(ctx aws.Context, input *ListInferenceExecutionsInput, opts ...request.Option) (*ListInferenceExecutionsOutput, error) { - req, out := c.ListInferenceExecutionsRequest(input) +func (c *LookoutEquipment) ListDataIngestionJobsWithContext(ctx aws.Context, input *ListDataIngestionJobsInput, opts ...request.Option) (*ListDataIngestionJobsOutput, error) { + req, out := c.ListDataIngestionJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListInferenceExecutionsPages iterates over the pages of a ListInferenceExecutions operation, +// ListDataIngestionJobsPages iterates over the pages of a ListDataIngestionJobs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListInferenceExecutions method for more information on how to use this operation. +// See ListDataIngestionJobs 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 ListInferenceExecutions operation. +// // Example iterating over at most 3 pages of a ListDataIngestionJobs operation. // pageNum := 0 -// err := client.ListInferenceExecutionsPages(params, -// func(page *lookoutequipment.ListInferenceExecutionsOutput, lastPage bool) bool { +// err := client.ListDataIngestionJobsPages(params, +// func(page *lookoutequipment.ListDataIngestionJobsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *LookoutEquipment) ListInferenceExecutionsPages(input *ListInferenceExecutionsInput, fn func(*ListInferenceExecutionsOutput, bool) bool) error { - return c.ListInferenceExecutionsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *LookoutEquipment) ListDataIngestionJobsPages(input *ListDataIngestionJobsInput, fn func(*ListDataIngestionJobsOutput, bool) bool) error { + return c.ListDataIngestionJobsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListInferenceExecutionsPagesWithContext same as ListInferenceExecutionsPages except +// ListDataIngestionJobsPagesWithContext same as ListDataIngestionJobsPages 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 *LookoutEquipment) ListInferenceExecutionsPagesWithContext(ctx aws.Context, input *ListInferenceExecutionsInput, fn func(*ListInferenceExecutionsOutput, bool) bool, opts ...request.Option) error { +func (c *LookoutEquipment) ListDataIngestionJobsPagesWithContext(ctx aws.Context, input *ListDataIngestionJobsInput, fn func(*ListDataIngestionJobsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListInferenceExecutionsInput + var inCpy *ListDataIngestionJobsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListInferenceExecutionsRequest(inCpy) + req, _ := c.ListDataIngestionJobsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2213,7 +2252,7 @@ func (c *LookoutEquipment) ListInferenceExecutionsPagesWithContext(ctx aws.Conte } for p.Next() { - if !fn(p.Page().(*ListInferenceExecutionsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListDataIngestionJobsOutput), !p.HasNextPage()) { break } } @@ -2221,34 +2260,34 @@ func (c *LookoutEquipment) ListInferenceExecutionsPagesWithContext(ctx aws.Conte return p.Err() } -const opListInferenceSchedulers = "ListInferenceSchedulers" +const opListDatasets = "ListDatasets" -// ListInferenceSchedulersRequest generates a "aws/request.Request" representing the -// client's request for the ListInferenceSchedulers operation. The "output" return +// ListDatasetsRequest generates a "aws/request.Request" representing the +// client's request for the ListDatasets operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListInferenceSchedulers for more information on using the ListInferenceSchedulers +// See ListDatasets for more information on using the ListDatasets // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListInferenceSchedulersRequest method. -// req, resp := client.ListInferenceSchedulersRequest(params) +// // Example sending a request using the ListDatasetsRequest method. +// req, resp := client.ListDatasetsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceSchedulers -func (c *LookoutEquipment) ListInferenceSchedulersRequest(input *ListInferenceSchedulersInput) (req *request.Request, output *ListInferenceSchedulersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListDatasets +func (c *LookoutEquipment) ListDatasetsRequest(input *ListDatasetsInput) (req *request.Request, output *ListDatasetsOutput) { op := &request.Operation{ - Name: opListInferenceSchedulers, + Name: opListDatasets, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -2260,31 +2299,31 @@ func (c *LookoutEquipment) ListInferenceSchedulersRequest(input *ListInferenceSc } if input == nil { - input = &ListInferenceSchedulersInput{} + input = &ListDatasetsInput{} } - output = &ListInferenceSchedulersOutput{} + output = &ListDatasetsOutput{} req = c.newRequest(op, input, output) return } -// ListInferenceSchedulers API operation for Amazon Lookout for Equipment. +// ListDatasets API operation for Amazon Lookout for Equipment. // -// Retrieves a list of all inference schedulers currently available for your -// account. +// Lists all datasets currently available in your account, filtering on the +// dataset name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Lookout for Equipment's -// API operation ListInferenceSchedulers for usage and error information. +// API operation ListDatasets for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ThrottlingException // The request was denied due to request throttling. @@ -2297,64 +2336,64 @@ func (c *LookoutEquipment) ListInferenceSchedulersRequest(input *ListInferenceSc // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceSchedulers -func (c *LookoutEquipment) ListInferenceSchedulers(input *ListInferenceSchedulersInput) (*ListInferenceSchedulersOutput, error) { - req, out := c.ListInferenceSchedulersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListDatasets +func (c *LookoutEquipment) ListDatasets(input *ListDatasetsInput) (*ListDatasetsOutput, error) { + req, out := c.ListDatasetsRequest(input) return out, req.Send() } -// ListInferenceSchedulersWithContext is the same as ListInferenceSchedulers with the addition of +// ListDatasetsWithContext is the same as ListDatasets with the addition of // the ability to pass a context and additional request options. // -// See ListInferenceSchedulers for details on how to use this API operation. +// See ListDatasets for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) ListInferenceSchedulersWithContext(ctx aws.Context, input *ListInferenceSchedulersInput, opts ...request.Option) (*ListInferenceSchedulersOutput, error) { - req, out := c.ListInferenceSchedulersRequest(input) +func (c *LookoutEquipment) ListDatasetsWithContext(ctx aws.Context, input *ListDatasetsInput, opts ...request.Option) (*ListDatasetsOutput, error) { + req, out := c.ListDatasetsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListInferenceSchedulersPages iterates over the pages of a ListInferenceSchedulers operation, +// ListDatasetsPages iterates over the pages of a ListDatasets operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListInferenceSchedulers method for more information on how to use this operation. +// See ListDatasets 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 ListInferenceSchedulers operation. +// // Example iterating over at most 3 pages of a ListDatasets operation. // pageNum := 0 -// err := client.ListInferenceSchedulersPages(params, -// func(page *lookoutequipment.ListInferenceSchedulersOutput, lastPage bool) bool { +// err := client.ListDatasetsPages(params, +// func(page *lookoutequipment.ListDatasetsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *LookoutEquipment) ListInferenceSchedulersPages(input *ListInferenceSchedulersInput, fn func(*ListInferenceSchedulersOutput, bool) bool) error { - return c.ListInferenceSchedulersPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *LookoutEquipment) ListDatasetsPages(input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool) error { + return c.ListDatasetsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListInferenceSchedulersPagesWithContext same as ListInferenceSchedulersPages except +// ListDatasetsPagesWithContext same as ListDatasetsPages 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 *LookoutEquipment) ListInferenceSchedulersPagesWithContext(ctx aws.Context, input *ListInferenceSchedulersInput, fn func(*ListInferenceSchedulersOutput, bool) bool, opts ...request.Option) error { +func (c *LookoutEquipment) ListDatasetsPagesWithContext(ctx aws.Context, input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListInferenceSchedulersInput + var inCpy *ListDatasetsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListInferenceSchedulersRequest(inCpy) + req, _ := c.ListDatasetsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2362,7 +2401,7 @@ func (c *LookoutEquipment) ListInferenceSchedulersPagesWithContext(ctx aws.Conte } for p.Next() { - if !fn(p.Page().(*ListInferenceSchedulersOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListDatasetsOutput), !p.HasNextPage()) { break } } @@ -2370,34 +2409,34 @@ func (c *LookoutEquipment) ListInferenceSchedulersPagesWithContext(ctx aws.Conte return p.Err() } -const opListLabelGroups = "ListLabelGroups" +const opListInferenceEvents = "ListInferenceEvents" -// ListLabelGroupsRequest generates a "aws/request.Request" representing the -// client's request for the ListLabelGroups operation. The "output" return +// ListInferenceEventsRequest generates a "aws/request.Request" representing the +// client's request for the ListInferenceEvents operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListLabelGroups for more information on using the ListLabelGroups +// See ListInferenceEvents for more information on using the ListInferenceEvents // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListLabelGroupsRequest method. -// req, resp := client.ListLabelGroupsRequest(params) +// // Example sending a request using the ListInferenceEventsRequest method. +// req, resp := client.ListInferenceEventsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListLabelGroups -func (c *LookoutEquipment) ListLabelGroupsRequest(input *ListLabelGroupsInput) (req *request.Request, output *ListLabelGroupsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceEvents +func (c *LookoutEquipment) ListInferenceEventsRequest(input *ListInferenceEventsInput) (req *request.Request, output *ListInferenceEventsOutput) { op := &request.Operation{ - Name: opListLabelGroups, + Name: opListInferenceEvents, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -2409,34 +2448,39 @@ func (c *LookoutEquipment) ListLabelGroupsRequest(input *ListLabelGroupsInput) ( } if input == nil { - input = &ListLabelGroupsInput{} + input = &ListInferenceEventsInput{} } - output = &ListLabelGroupsOutput{} + output = &ListInferenceEventsOutput{} req = c.newRequest(op, input, output) return } -// ListLabelGroups API operation for Amazon Lookout for Equipment. +// ListInferenceEvents API operation for Amazon Lookout for Equipment. // -// Returns a list of the label groups. +// Lists all inference events that have been found for the specified inference +// scheduler. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Equipment's -// API operation ListLabelGroups for usage and error information. +// API operation ListInferenceEvents for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ThrottlingException // The request was denied due to request throttling. // +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. +// // - AccessDeniedException // The request could not be completed because you do not have access to the // resource. @@ -2445,64 +2489,64 @@ func (c *LookoutEquipment) ListLabelGroupsRequest(input *ListLabelGroupsInput) ( // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListLabelGroups -func (c *LookoutEquipment) ListLabelGroups(input *ListLabelGroupsInput) (*ListLabelGroupsOutput, error) { - req, out := c.ListLabelGroupsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceEvents +func (c *LookoutEquipment) ListInferenceEvents(input *ListInferenceEventsInput) (*ListInferenceEventsOutput, error) { + req, out := c.ListInferenceEventsRequest(input) return out, req.Send() } -// ListLabelGroupsWithContext is the same as ListLabelGroups with the addition of +// ListInferenceEventsWithContext is the same as ListInferenceEvents with the addition of // the ability to pass a context and additional request options. // -// See ListLabelGroups for details on how to use this API operation. +// See ListInferenceEvents for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) ListLabelGroupsWithContext(ctx aws.Context, input *ListLabelGroupsInput, opts ...request.Option) (*ListLabelGroupsOutput, error) { - req, out := c.ListLabelGroupsRequest(input) +func (c *LookoutEquipment) ListInferenceEventsWithContext(ctx aws.Context, input *ListInferenceEventsInput, opts ...request.Option) (*ListInferenceEventsOutput, error) { + req, out := c.ListInferenceEventsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListLabelGroupsPages iterates over the pages of a ListLabelGroups operation, +// ListInferenceEventsPages iterates over the pages of a ListInferenceEvents operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListLabelGroups method for more information on how to use this operation. +// See ListInferenceEvents 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 ListLabelGroups operation. +// // Example iterating over at most 3 pages of a ListInferenceEvents operation. // pageNum := 0 -// err := client.ListLabelGroupsPages(params, -// func(page *lookoutequipment.ListLabelGroupsOutput, lastPage bool) bool { +// err := client.ListInferenceEventsPages(params, +// func(page *lookoutequipment.ListInferenceEventsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *LookoutEquipment) ListLabelGroupsPages(input *ListLabelGroupsInput, fn func(*ListLabelGroupsOutput, bool) bool) error { - return c.ListLabelGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *LookoutEquipment) ListInferenceEventsPages(input *ListInferenceEventsInput, fn func(*ListInferenceEventsOutput, bool) bool) error { + return c.ListInferenceEventsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListLabelGroupsPagesWithContext same as ListLabelGroupsPages except +// ListInferenceEventsPagesWithContext same as ListInferenceEventsPages 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 *LookoutEquipment) ListLabelGroupsPagesWithContext(ctx aws.Context, input *ListLabelGroupsInput, fn func(*ListLabelGroupsOutput, bool) bool, opts ...request.Option) error { +func (c *LookoutEquipment) ListInferenceEventsPagesWithContext(ctx aws.Context, input *ListInferenceEventsInput, fn func(*ListInferenceEventsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListLabelGroupsInput + var inCpy *ListInferenceEventsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListLabelGroupsRequest(inCpy) + req, _ := c.ListInferenceEventsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2510,7 +2554,7 @@ func (c *LookoutEquipment) ListLabelGroupsPagesWithContext(ctx aws.Context, inpu } for p.Next() { - if !fn(p.Page().(*ListLabelGroupsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListInferenceEventsOutput), !p.HasNextPage()) { break } } @@ -2518,34 +2562,34 @@ func (c *LookoutEquipment) ListLabelGroupsPagesWithContext(ctx aws.Context, inpu return p.Err() } -const opListLabels = "ListLabels" +const opListInferenceExecutions = "ListInferenceExecutions" -// ListLabelsRequest generates a "aws/request.Request" representing the -// client's request for the ListLabels operation. The "output" return +// ListInferenceExecutionsRequest generates a "aws/request.Request" representing the +// client's request for the ListInferenceExecutions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListLabels for more information on using the ListLabels +// See ListInferenceExecutions for more information on using the ListInferenceExecutions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListLabelsRequest method. -// req, resp := client.ListLabelsRequest(params) +// // Example sending a request using the ListInferenceExecutionsRequest method. +// req, resp := client.ListInferenceExecutionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListLabels -func (c *LookoutEquipment) ListLabelsRequest(input *ListLabelsInput) (req *request.Request, output *ListLabelsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceExecutions +func (c *LookoutEquipment) ListInferenceExecutionsRequest(input *ListInferenceExecutionsInput) (req *request.Request, output *ListInferenceExecutionsOutput) { op := &request.Operation{ - Name: opListLabels, + Name: opListInferenceExecutions, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -2557,34 +2601,39 @@ func (c *LookoutEquipment) ListLabelsRequest(input *ListLabelsInput) (req *reque } if input == nil { - input = &ListLabelsInput{} + input = &ListInferenceExecutionsInput{} } - output = &ListLabelsOutput{} + output = &ListInferenceExecutionsOutput{} req = c.newRequest(op, input, output) return } -// ListLabels API operation for Amazon Lookout for Equipment. +// ListInferenceExecutions API operation for Amazon Lookout for Equipment. // -// Provides a list of labels. +// Lists all inference executions that have been performed by the specified +// inference scheduler. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Equipment's -// API operation ListLabels for usage and error information. +// API operation ListInferenceExecutions for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ThrottlingException // The request was denied due to request throttling. // +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. +// // - AccessDeniedException // The request could not be completed because you do not have access to the // resource. @@ -2593,64 +2642,64 @@ func (c *LookoutEquipment) ListLabelsRequest(input *ListLabelsInput) (req *reque // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListLabels -func (c *LookoutEquipment) ListLabels(input *ListLabelsInput) (*ListLabelsOutput, error) { - req, out := c.ListLabelsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceExecutions +func (c *LookoutEquipment) ListInferenceExecutions(input *ListInferenceExecutionsInput) (*ListInferenceExecutionsOutput, error) { + req, out := c.ListInferenceExecutionsRequest(input) return out, req.Send() } -// ListLabelsWithContext is the same as ListLabels with the addition of +// ListInferenceExecutionsWithContext is the same as ListInferenceExecutions with the addition of // the ability to pass a context and additional request options. // -// See ListLabels for details on how to use this API operation. +// See ListInferenceExecutions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) ListLabelsWithContext(ctx aws.Context, input *ListLabelsInput, opts ...request.Option) (*ListLabelsOutput, error) { - req, out := c.ListLabelsRequest(input) +func (c *LookoutEquipment) ListInferenceExecutionsWithContext(ctx aws.Context, input *ListInferenceExecutionsInput, opts ...request.Option) (*ListInferenceExecutionsOutput, error) { + req, out := c.ListInferenceExecutionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListLabelsPages iterates over the pages of a ListLabels operation, +// ListInferenceExecutionsPages iterates over the pages of a ListInferenceExecutions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListLabels method for more information on how to use this operation. +// See ListInferenceExecutions 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 ListLabels operation. +// // Example iterating over at most 3 pages of a ListInferenceExecutions operation. // pageNum := 0 -// err := client.ListLabelsPages(params, -// func(page *lookoutequipment.ListLabelsOutput, lastPage bool) bool { +// err := client.ListInferenceExecutionsPages(params, +// func(page *lookoutequipment.ListInferenceExecutionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *LookoutEquipment) ListLabelsPages(input *ListLabelsInput, fn func(*ListLabelsOutput, bool) bool) error { - return c.ListLabelsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *LookoutEquipment) ListInferenceExecutionsPages(input *ListInferenceExecutionsInput, fn func(*ListInferenceExecutionsOutput, bool) bool) error { + return c.ListInferenceExecutionsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListLabelsPagesWithContext same as ListLabelsPages except +// ListInferenceExecutionsPagesWithContext same as ListInferenceExecutionsPages 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 *LookoutEquipment) ListLabelsPagesWithContext(ctx aws.Context, input *ListLabelsInput, fn func(*ListLabelsOutput, bool) bool, opts ...request.Option) error { +func (c *LookoutEquipment) ListInferenceExecutionsPagesWithContext(ctx aws.Context, input *ListInferenceExecutionsInput, fn func(*ListInferenceExecutionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListLabelsInput + var inCpy *ListInferenceExecutionsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListLabelsRequest(inCpy) + req, _ := c.ListInferenceExecutionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2658,7 +2707,7 @@ func (c *LookoutEquipment) ListLabelsPagesWithContext(ctx aws.Context, input *Li } for p.Next() { - if !fn(p.Page().(*ListLabelsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListInferenceExecutionsOutput), !p.HasNextPage()) { break } } @@ -2666,34 +2715,34 @@ func (c *LookoutEquipment) ListLabelsPagesWithContext(ctx aws.Context, input *Li return p.Err() } -const opListModels = "ListModels" +const opListInferenceSchedulers = "ListInferenceSchedulers" -// ListModelsRequest generates a "aws/request.Request" representing the -// client's request for the ListModels operation. The "output" return +// ListInferenceSchedulersRequest generates a "aws/request.Request" representing the +// client's request for the ListInferenceSchedulers operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListModels for more information on using the ListModels +// See ListInferenceSchedulers for more information on using the ListInferenceSchedulers // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListModelsRequest method. -// req, resp := client.ListModelsRequest(params) +// // Example sending a request using the ListInferenceSchedulersRequest method. +// req, resp := client.ListInferenceSchedulersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListModels -func (c *LookoutEquipment) ListModelsRequest(input *ListModelsInput) (req *request.Request, output *ListModelsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceSchedulers +func (c *LookoutEquipment) ListInferenceSchedulersRequest(input *ListInferenceSchedulersInput) (req *request.Request, output *ListInferenceSchedulersOutput) { op := &request.Operation{ - Name: opListModels, + Name: opListInferenceSchedulers, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -2705,31 +2754,31 @@ func (c *LookoutEquipment) ListModelsRequest(input *ListModelsInput) (req *reque } if input == nil { - input = &ListModelsInput{} + input = &ListInferenceSchedulersInput{} } - output = &ListModelsOutput{} + output = &ListInferenceSchedulersOutput{} req = c.newRequest(op, input, output) return } -// ListModels API operation for Amazon Lookout for Equipment. +// ListInferenceSchedulers API operation for Amazon Lookout for Equipment. // -// Generates a list of all models in the account, including model name and ARN, -// dataset, and status. +// Retrieves a list of all inference schedulers currently available for your +// account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Lookout for Equipment's -// API operation ListModels for usage and error information. +// API operation ListInferenceSchedulers for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ThrottlingException // The request was denied due to request throttling. @@ -2742,64 +2791,64 @@ func (c *LookoutEquipment) ListModelsRequest(input *ListModelsInput) (req *reque // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListModels -func (c *LookoutEquipment) ListModels(input *ListModelsInput) (*ListModelsOutput, error) { - req, out := c.ListModelsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceSchedulers +func (c *LookoutEquipment) ListInferenceSchedulers(input *ListInferenceSchedulersInput) (*ListInferenceSchedulersOutput, error) { + req, out := c.ListInferenceSchedulersRequest(input) return out, req.Send() } -// ListModelsWithContext is the same as ListModels with the addition of +// ListInferenceSchedulersWithContext is the same as ListInferenceSchedulers with the addition of // the ability to pass a context and additional request options. // -// See ListModels for details on how to use this API operation. +// See ListInferenceSchedulers for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) ListModelsWithContext(ctx aws.Context, input *ListModelsInput, opts ...request.Option) (*ListModelsOutput, error) { - req, out := c.ListModelsRequest(input) +func (c *LookoutEquipment) ListInferenceSchedulersWithContext(ctx aws.Context, input *ListInferenceSchedulersInput, opts ...request.Option) (*ListInferenceSchedulersOutput, error) { + req, out := c.ListInferenceSchedulersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListModelsPages iterates over the pages of a ListModels operation, +// ListInferenceSchedulersPages iterates over the pages of a ListInferenceSchedulers operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListModels method for more information on how to use this operation. +// See ListInferenceSchedulers method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListModels operation. +// // Example iterating over at most 3 pages of a ListInferenceSchedulers operation. // pageNum := 0 -// err := client.ListModelsPages(params, -// func(page *lookoutequipment.ListModelsOutput, lastPage bool) bool { +// err := client.ListInferenceSchedulersPages(params, +// func(page *lookoutequipment.ListInferenceSchedulersOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *LookoutEquipment) ListModelsPages(input *ListModelsInput, fn func(*ListModelsOutput, bool) bool) error { - return c.ListModelsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *LookoutEquipment) ListInferenceSchedulersPages(input *ListInferenceSchedulersInput, fn func(*ListInferenceSchedulersOutput, bool) bool) error { + return c.ListInferenceSchedulersPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListModelsPagesWithContext same as ListModelsPages except +// ListInferenceSchedulersPagesWithContext same as ListInferenceSchedulersPages 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 *LookoutEquipment) ListModelsPagesWithContext(ctx aws.Context, input *ListModelsInput, fn func(*ListModelsOutput, bool) bool, opts ...request.Option) error { +func (c *LookoutEquipment) ListInferenceSchedulersPagesWithContext(ctx aws.Context, input *ListInferenceSchedulersInput, fn func(*ListInferenceSchedulersOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListModelsInput + var inCpy *ListInferenceSchedulersInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListModelsRequest(inCpy) + req, _ := c.ListInferenceSchedulersRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2807,7 +2856,7 @@ func (c *LookoutEquipment) ListModelsPagesWithContext(ctx aws.Context, input *Li } for p.Next() { - if !fn(p.Page().(*ListModelsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListInferenceSchedulersOutput), !p.HasNextPage()) { break } } @@ -2815,34 +2864,34 @@ func (c *LookoutEquipment) ListModelsPagesWithContext(ctx aws.Context, input *Li return p.Err() } -const opListSensorStatistics = "ListSensorStatistics" +const opListLabelGroups = "ListLabelGroups" -// ListSensorStatisticsRequest generates a "aws/request.Request" representing the -// client's request for the ListSensorStatistics operation. The "output" return +// ListLabelGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListLabelGroups operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListSensorStatistics for more information on using the ListSensorStatistics +// See ListLabelGroups for more information on using the ListLabelGroups // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListSensorStatisticsRequest method. -// req, resp := client.ListSensorStatisticsRequest(params) +// // Example sending a request using the ListLabelGroupsRequest method. +// req, resp := client.ListLabelGroupsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListSensorStatistics -func (c *LookoutEquipment) ListSensorStatisticsRequest(input *ListSensorStatisticsInput) (req *request.Request, output *ListSensorStatisticsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListLabelGroups +func (c *LookoutEquipment) ListLabelGroupsRequest(input *ListLabelGroupsInput) (req *request.Request, output *ListLabelGroupsOutput) { op := &request.Operation{ - Name: opListSensorStatistics, + Name: opListLabelGroups, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -2854,36 +2903,30 @@ func (c *LookoutEquipment) ListSensorStatisticsRequest(input *ListSensorStatisti } if input == nil { - input = &ListSensorStatisticsInput{} + input = &ListLabelGroupsInput{} } - output = &ListSensorStatisticsOutput{} + output = &ListLabelGroupsOutput{} req = c.newRequest(op, input, output) return } -// ListSensorStatistics API operation for Amazon Lookout for Equipment. +// ListLabelGroups API operation for Amazon Lookout for Equipment. // -// Lists statistics about the data collected for each of the sensors that have -// been successfully ingested in the particular dataset. Can also be used to -// retreive Sensor Statistics for a previous ingestion job. +// Returns a list of the label groups. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Lookout for Equipment's -// API operation ListSensorStatistics for usage and error information. +// API operation ListLabelGroups for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. -// -// - ResourceNotFoundException -// The resource requested could not be found. Verify the resource ID and retry -// your request. +// or a related Amazon Web Services service that's being utilized. // // - ThrottlingException // The request was denied due to request throttling. @@ -2896,64 +2939,64 @@ func (c *LookoutEquipment) ListSensorStatisticsRequest(input *ListSensorStatisti // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListSensorStatistics -func (c *LookoutEquipment) ListSensorStatistics(input *ListSensorStatisticsInput) (*ListSensorStatisticsOutput, error) { - req, out := c.ListSensorStatisticsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListLabelGroups +func (c *LookoutEquipment) ListLabelGroups(input *ListLabelGroupsInput) (*ListLabelGroupsOutput, error) { + req, out := c.ListLabelGroupsRequest(input) return out, req.Send() } -// ListSensorStatisticsWithContext is the same as ListSensorStatistics with the addition of +// ListLabelGroupsWithContext is the same as ListLabelGroups with the addition of // the ability to pass a context and additional request options. // -// See ListSensorStatistics for details on how to use this API operation. +// See ListLabelGroups for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) ListSensorStatisticsWithContext(ctx aws.Context, input *ListSensorStatisticsInput, opts ...request.Option) (*ListSensorStatisticsOutput, error) { - req, out := c.ListSensorStatisticsRequest(input) +func (c *LookoutEquipment) ListLabelGroupsWithContext(ctx aws.Context, input *ListLabelGroupsInput, opts ...request.Option) (*ListLabelGroupsOutput, error) { + req, out := c.ListLabelGroupsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListSensorStatisticsPages iterates over the pages of a ListSensorStatistics operation, +// ListLabelGroupsPages iterates over the pages of a ListLabelGroups operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListSensorStatistics method for more information on how to use this operation. +// See ListLabelGroups 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 ListSensorStatistics operation. +// // Example iterating over at most 3 pages of a ListLabelGroups operation. // pageNum := 0 -// err := client.ListSensorStatisticsPages(params, -// func(page *lookoutequipment.ListSensorStatisticsOutput, lastPage bool) bool { +// err := client.ListLabelGroupsPages(params, +// func(page *lookoutequipment.ListLabelGroupsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *LookoutEquipment) ListSensorStatisticsPages(input *ListSensorStatisticsInput, fn func(*ListSensorStatisticsOutput, bool) bool) error { - return c.ListSensorStatisticsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *LookoutEquipment) ListLabelGroupsPages(input *ListLabelGroupsInput, fn func(*ListLabelGroupsOutput, bool) bool) error { + return c.ListLabelGroupsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListSensorStatisticsPagesWithContext same as ListSensorStatisticsPages except +// ListLabelGroupsPagesWithContext same as ListLabelGroupsPages 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 *LookoutEquipment) ListSensorStatisticsPagesWithContext(ctx aws.Context, input *ListSensorStatisticsInput, fn func(*ListSensorStatisticsOutput, bool) bool, opts ...request.Option) error { +func (c *LookoutEquipment) ListLabelGroupsPagesWithContext(ctx aws.Context, input *ListLabelGroupsInput, fn func(*ListLabelGroupsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListSensorStatisticsInput + var inCpy *ListLabelGroupsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListSensorStatisticsRequest(inCpy) + req, _ := c.ListLabelGroupsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2961,7 +3004,7 @@ func (c *LookoutEquipment) ListSensorStatisticsPagesWithContext(ctx aws.Context, } for p.Next() { - if !fn(p.Page().(*ListSensorStatisticsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListLabelGroupsOutput), !p.HasNextPage()) { break } } @@ -2969,67 +3012,69 @@ func (c *LookoutEquipment) ListSensorStatisticsPagesWithContext(ctx aws.Context, return p.Err() } -const opListTagsForResource = "ListTagsForResource" +const opListLabels = "ListLabels" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// ListLabelsRequest generates a "aws/request.Request" representing the +// client's request for the ListLabels operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the 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 ListLabels for more information on using the ListLabels // API call, and error handling. // // This method is useful when you want to 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 ListLabelsRequest method. +// req, resp := client.ListLabelsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListTagsForResource -func (c *LookoutEquipment) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListLabels +func (c *LookoutEquipment) ListLabelsRequest(input *ListLabelsInput) (req *request.Request, output *ListLabelsOutput) { op := &request.Operation{ - Name: opListTagsForResource, + Name: opListLabels, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &ListTagsForResourceInput{} + input = &ListLabelsInput{} } - output = &ListTagsForResourceOutput{} + output = &ListLabelsOutput{} req = c.newRequest(op, input, output) return } -// ListTagsForResource API operation for Amazon Lookout for Equipment. +// ListLabels API operation for Amazon Lookout for Equipment. // -// Lists all the tags for a specified resource, including key and value. +// Provides a list of labels. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Equipment's -// API operation ListTagsForResource for usage and error information. +// API operation ListLabels for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. -// -// - ResourceNotFoundException -// The resource requested could not be found. Verify the resource ID and retry -// your request. +// or a related Amazon Web Services service that's being utilized. // // - ThrottlingException // The request was denied due to request throttling. @@ -3042,101 +3087,152 @@ func (c *LookoutEquipment) ListTagsForResourceRequest(input *ListTagsForResource // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListTagsForResource -func (c *LookoutEquipment) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListLabels +func (c *LookoutEquipment) ListLabels(input *ListLabelsInput) (*ListLabelsOutput, error) { + req, out := c.ListLabelsRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// ListLabelsWithContext is the same as ListLabels 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 ListLabels for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *LookoutEquipment) ListLabelsWithContext(ctx aws.Context, input *ListLabelsInput, opts ...request.Option) (*ListLabelsOutput, error) { + req, out := c.ListLabelsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartDataIngestionJob = "StartDataIngestionJob" +// ListLabelsPages iterates over the pages of a ListLabels operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLabels 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 ListLabels operation. +// pageNum := 0 +// err := client.ListLabelsPages(params, +// func(page *lookoutequipment.ListLabelsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *LookoutEquipment) ListLabelsPages(input *ListLabelsInput, fn func(*ListLabelsOutput, bool) bool) error { + return c.ListLabelsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// StartDataIngestionJobRequest generates a "aws/request.Request" representing the -// client's request for the StartDataIngestionJob operation. The "output" return +// ListLabelsPagesWithContext same as ListLabelsPages 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 *LookoutEquipment) ListLabelsPagesWithContext(ctx aws.Context, input *ListLabelsInput, fn func(*ListLabelsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLabelsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLabelsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListLabelsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListModelVersions = "ListModelVersions" + +// ListModelVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListModelVersions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartDataIngestionJob for more information on using the StartDataIngestionJob +// See ListModelVersions for more information on using the ListModelVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the StartDataIngestionJobRequest method. -// req, resp := client.StartDataIngestionJobRequest(params) +// // Example sending a request using the ListModelVersionsRequest method. +// req, resp := client.ListModelVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StartDataIngestionJob -func (c *LookoutEquipment) StartDataIngestionJobRequest(input *StartDataIngestionJobInput) (req *request.Request, output *StartDataIngestionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListModelVersions +func (c *LookoutEquipment) ListModelVersionsRequest(input *ListModelVersionsInput) (req *request.Request, output *ListModelVersionsOutput) { op := &request.Operation{ - Name: opStartDataIngestionJob, + Name: opListModelVersions, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StartDataIngestionJobInput{} + input = &ListModelVersionsInput{} } - output = &StartDataIngestionJobOutput{} + output = &ListModelVersionsOutput{} req = c.newRequest(op, input, output) return } -// StartDataIngestionJob API operation for Amazon Lookout for Equipment. +// ListModelVersions API operation for Amazon Lookout for Equipment. // -// Starts a data ingestion job. Amazon Lookout for Equipment returns the job -// status. +// Generates a list of all model versions for a given model, including the model +// version, model version ARN, and status. To list a subset of versions, use +// the MaxModelVersion and MinModelVersion fields. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Equipment's -// API operation StartDataIngestionJob for usage and error information. +// API operation ListModelVersions for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry // your request. // -// - ConflictException -// The request could not be completed due to a conflict with the current state -// of the target resource. -// // - ThrottlingException // The request was denied due to request throttling. // -// - ServiceQuotaExceededException -// Resource limitations have been exceeded. -// // - AccessDeniedException // The request could not be completed because you do not have access to the // resource. @@ -3145,93 +3241,143 @@ func (c *LookoutEquipment) StartDataIngestionJobRequest(input *StartDataIngestio // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StartDataIngestionJob -func (c *LookoutEquipment) StartDataIngestionJob(input *StartDataIngestionJobInput) (*StartDataIngestionJobOutput, error) { - req, out := c.StartDataIngestionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListModelVersions +func (c *LookoutEquipment) ListModelVersions(input *ListModelVersionsInput) (*ListModelVersionsOutput, error) { + req, out := c.ListModelVersionsRequest(input) return out, req.Send() } -// StartDataIngestionJobWithContext is the same as StartDataIngestionJob with the addition of +// ListModelVersionsWithContext is the same as ListModelVersions with the addition of // the ability to pass a context and additional request options. // -// See StartDataIngestionJob for details on how to use this API operation. +// See ListModelVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) StartDataIngestionJobWithContext(ctx aws.Context, input *StartDataIngestionJobInput, opts ...request.Option) (*StartDataIngestionJobOutput, error) { - req, out := c.StartDataIngestionJobRequest(input) +func (c *LookoutEquipment) ListModelVersionsWithContext(ctx aws.Context, input *ListModelVersionsInput, opts ...request.Option) (*ListModelVersionsOutput, error) { + req, out := c.ListModelVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartInferenceScheduler = "StartInferenceScheduler" +// ListModelVersionsPages iterates over the pages of a ListModelVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListModelVersions 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 ListModelVersions operation. +// pageNum := 0 +// err := client.ListModelVersionsPages(params, +// func(page *lookoutequipment.ListModelVersionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *LookoutEquipment) ListModelVersionsPages(input *ListModelVersionsInput, fn func(*ListModelVersionsOutput, bool) bool) error { + return c.ListModelVersionsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// StartInferenceSchedulerRequest generates a "aws/request.Request" representing the -// client's request for the StartInferenceScheduler operation. The "output" return +// ListModelVersionsPagesWithContext same as ListModelVersionsPages 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 *LookoutEquipment) ListModelVersionsPagesWithContext(ctx aws.Context, input *ListModelVersionsInput, fn func(*ListModelVersionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListModelVersionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListModelVersionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListModelVersionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListModels = "ListModels" + +// ListModelsRequest generates a "aws/request.Request" representing the +// client's request for the ListModels operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartInferenceScheduler for more information on using the StartInferenceScheduler +// See ListModels for more information on using the ListModels // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the StartInferenceSchedulerRequest method. -// req, resp := client.StartInferenceSchedulerRequest(params) +// // Example sending a request using the ListModelsRequest method. +// req, resp := client.ListModelsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StartInferenceScheduler -func (c *LookoutEquipment) StartInferenceSchedulerRequest(input *StartInferenceSchedulerInput) (req *request.Request, output *StartInferenceSchedulerOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListModels +func (c *LookoutEquipment) ListModelsRequest(input *ListModelsInput) (req *request.Request, output *ListModelsOutput) { op := &request.Operation{ - Name: opStartInferenceScheduler, + Name: opListModels, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StartInferenceSchedulerInput{} + input = &ListModelsInput{} } - output = &StartInferenceSchedulerOutput{} + output = &ListModelsOutput{} req = c.newRequest(op, input, output) return } -// StartInferenceScheduler API operation for Amazon Lookout for Equipment. +// ListModels API operation for Amazon Lookout for Equipment. // -// Starts an inference scheduler. +// Generates a list of all models in the account, including model name and ARN, +// dataset, and status. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Lookout for Equipment's -// API operation StartInferenceScheduler for usage and error information. +// API operation ListModels for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. -// -// - ConflictException -// The request could not be completed due to a conflict with the current state -// of the target resource. -// -// - ResourceNotFoundException -// The resource requested could not be found. Verify the resource ID and retry -// your request. +// or a related Amazon Web Services service that's being utilized. // // - ThrottlingException // The request was denied due to request throttling. @@ -3244,89 +3390,144 @@ func (c *LookoutEquipment) StartInferenceSchedulerRequest(input *StartInferenceS // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StartInferenceScheduler -func (c *LookoutEquipment) StartInferenceScheduler(input *StartInferenceSchedulerInput) (*StartInferenceSchedulerOutput, error) { - req, out := c.StartInferenceSchedulerRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListModels +func (c *LookoutEquipment) ListModels(input *ListModelsInput) (*ListModelsOutput, error) { + req, out := c.ListModelsRequest(input) return out, req.Send() } -// StartInferenceSchedulerWithContext is the same as StartInferenceScheduler with the addition of +// ListModelsWithContext is the same as ListModels with the addition of // the ability to pass a context and additional request options. // -// See StartInferenceScheduler for details on how to use this API operation. +// See ListModels for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) StartInferenceSchedulerWithContext(ctx aws.Context, input *StartInferenceSchedulerInput, opts ...request.Option) (*StartInferenceSchedulerOutput, error) { - req, out := c.StartInferenceSchedulerRequest(input) +func (c *LookoutEquipment) ListModelsWithContext(ctx aws.Context, input *ListModelsInput, opts ...request.Option) (*ListModelsOutput, error) { + req, out := c.ListModelsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopInferenceScheduler = "StopInferenceScheduler" +// ListModelsPages iterates over the pages of a ListModels operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListModels method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListModels operation. +// pageNum := 0 +// err := client.ListModelsPages(params, +// func(page *lookoutequipment.ListModelsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *LookoutEquipment) ListModelsPages(input *ListModelsInput, fn func(*ListModelsOutput, bool) bool) error { + return c.ListModelsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// StopInferenceSchedulerRequest generates a "aws/request.Request" representing the -// client's request for the StopInferenceScheduler operation. The "output" return +// ListModelsPagesWithContext same as ListModelsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LookoutEquipment) ListModelsPagesWithContext(ctx aws.Context, input *ListModelsInput, fn func(*ListModelsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListModelsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListModelsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListModelsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSensorStatistics = "ListSensorStatistics" + +// ListSensorStatisticsRequest generates a "aws/request.Request" representing the +// client's request for the ListSensorStatistics operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopInferenceScheduler for more information on using the StopInferenceScheduler +// See ListSensorStatistics for more information on using the ListSensorStatistics // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the StopInferenceSchedulerRequest method. -// req, resp := client.StopInferenceSchedulerRequest(params) +// // Example sending a request using the ListSensorStatisticsRequest method. +// req, resp := client.ListSensorStatisticsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StopInferenceScheduler -func (c *LookoutEquipment) StopInferenceSchedulerRequest(input *StopInferenceSchedulerInput) (req *request.Request, output *StopInferenceSchedulerOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListSensorStatistics +func (c *LookoutEquipment) ListSensorStatisticsRequest(input *ListSensorStatisticsInput) (req *request.Request, output *ListSensorStatisticsOutput) { op := &request.Operation{ - Name: opStopInferenceScheduler, + Name: opListSensorStatistics, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StopInferenceSchedulerInput{} + input = &ListSensorStatisticsInput{} } - output = &StopInferenceSchedulerOutput{} + output = &ListSensorStatisticsOutput{} req = c.newRequest(op, input, output) return } -// StopInferenceScheduler API operation for Amazon Lookout for Equipment. +// ListSensorStatistics API operation for Amazon Lookout for Equipment. // -// Stops an inference scheduler. +// Lists statistics about the data collected for each of the sensors that have +// been successfully ingested in the particular dataset. Can also be used to +// retreive Sensor Statistics for a previous ingestion job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Lookout for Equipment's -// API operation StopInferenceScheduler for usage and error information. +// API operation ListSensorStatistics for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. -// -// - ConflictException -// The request could not be completed due to a conflict with the current state -// of the target resource. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry @@ -3343,98 +3544,141 @@ func (c *LookoutEquipment) StopInferenceSchedulerRequest(input *StopInferenceSch // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StopInferenceScheduler -func (c *LookoutEquipment) StopInferenceScheduler(input *StopInferenceSchedulerInput) (*StopInferenceSchedulerOutput, error) { - req, out := c.StopInferenceSchedulerRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListSensorStatistics +func (c *LookoutEquipment) ListSensorStatistics(input *ListSensorStatisticsInput) (*ListSensorStatisticsOutput, error) { + req, out := c.ListSensorStatisticsRequest(input) return out, req.Send() } -// StopInferenceSchedulerWithContext is the same as StopInferenceScheduler with the addition of +// ListSensorStatisticsWithContext is the same as ListSensorStatistics with the addition of // the ability to pass a context and additional request options. // -// See StopInferenceScheduler for details on how to use this API operation. +// See ListSensorStatistics for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) StopInferenceSchedulerWithContext(ctx aws.Context, input *StopInferenceSchedulerInput, opts ...request.Option) (*StopInferenceSchedulerOutput, error) { - req, out := c.StopInferenceSchedulerRequest(input) +func (c *LookoutEquipment) ListSensorStatisticsWithContext(ctx aws.Context, input *ListSensorStatisticsInput, opts ...request.Option) (*ListSensorStatisticsOutput, error) { + req, out := c.ListSensorStatisticsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagResource = "TagResource" +// ListSensorStatisticsPages iterates over the pages of a ListSensorStatistics operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSensorStatistics 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 ListSensorStatistics operation. +// pageNum := 0 +// err := client.ListSensorStatisticsPages(params, +// func(page *lookoutequipment.ListSensorStatisticsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *LookoutEquipment) ListSensorStatisticsPages(input *ListSensorStatisticsInput, fn func(*ListSensorStatisticsOutput, bool) bool) error { + return c.ListSensorStatisticsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// ListSensorStatisticsPagesWithContext same as ListSensorStatisticsPages 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 *LookoutEquipment) ListSensorStatisticsPagesWithContext(ctx aws.Context, input *ListSensorStatisticsInput, fn func(*ListSensorStatisticsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSensorStatisticsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSensorStatisticsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSensorStatisticsOutput), !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 TagResource for more information on using the TagResource +// 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 TagResourceRequest method. -// req, resp := client.TagResourceRequest(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/lookoutequipment-2020-12-15/TagResource -func (c *LookoutEquipment) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListTagsForResource +func (c *LookoutEquipment) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opTagResource, + Name: opListTagsForResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &TagResourceInput{} + input = &ListTagsForResourceInput{} } - output = &TagResourceOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// TagResource API operation for Amazon Lookout for Equipment. +// ListTagsForResource API operation for Amazon Lookout for Equipment. // -// Associates a given tag to a resource in your account. A tag is a key-value -// pair which can be added to an Amazon Lookout for Equipment resource as metadata. -// Tags can be used for organizing your resources as well as helping you to -// search and filter by tag. Multiple tags can be added to a resource, either -// when you create it, or later. Up to 50 tags can be associated with each resource. +// Lists all the tags for a specified resource, including key and value. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Lookout for Equipment's -// API operation TagResource for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry // your request. // -// - ServiceQuotaExceededException -// Resource limitations have been exceeded. -// // - ThrottlingException // The request was denied due to request throttling. // @@ -3446,95 +3690,100 @@ func (c *LookoutEquipment) TagResourceRequest(input *TagResourceInput) (req *req // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/TagResource -func (c *LookoutEquipment) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListTagsForResource +func (c *LookoutEquipment) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource 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 TagResource 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 *LookoutEquipment) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *LookoutEquipment) 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 opUntagResource = "UntagResource" +const opPutResourcePolicy = "PutResourcePolicy" -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// PutResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the PutResourcePolicy operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UntagResource for more information on using the UntagResource +// See PutResourcePolicy for more information on using the PutResourcePolicy // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) +// // Example sending a request using the PutResourcePolicyRequest method. +// req, resp := client.PutResourcePolicyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UntagResource -func (c *LookoutEquipment) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/PutResourcePolicy +func (c *LookoutEquipment) PutResourcePolicyRequest(input *PutResourcePolicyInput) (req *request.Request, output *PutResourcePolicyOutput) { op := &request.Operation{ - Name: opUntagResource, + Name: opPutResourcePolicy, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UntagResourceInput{} + input = &PutResourcePolicyInput{} } - output = &UntagResourceOutput{} + output = &PutResourcePolicyOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UntagResource API operation for Amazon Lookout for Equipment. +// PutResourcePolicy API operation for Amazon Lookout for Equipment. // -// Removes a specific tag from a given resource. The tag is specified by its -// key. +// Creates a resource control policy for a given resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Lookout for Equipment's -// API operation UntagResource for usage and error information. +// API operation PutResourcePolicy for usage and error information. // // Returned Error Types: // // - ValidationException // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry // your request. // +// - ConflictException +// The request could not be completed due to a conflict with the current state +// of the target resource. +// // - ThrottlingException // The request was denied due to request throttling. // +// - ServiceQuotaExceededException +// Resource limitations have been exceeded. +// // - AccessDeniedException // The request could not be completed because you do not have access to the // resource. @@ -3543,98 +3792,101 @@ func (c *LookoutEquipment) UntagResourceRequest(input *UntagResourceInput) (req // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UntagResource -func (c *LookoutEquipment) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/PutResourcePolicy +func (c *LookoutEquipment) PutResourcePolicy(input *PutResourcePolicyInput) (*PutResourcePolicyOutput, error) { + req, out := c.PutResourcePolicyRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// PutResourcePolicyWithContext is the same as PutResourcePolicy 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 PutResourcePolicy for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *LookoutEquipment) PutResourcePolicyWithContext(ctx aws.Context, input *PutResourcePolicyInput, opts ...request.Option) (*PutResourcePolicyOutput, error) { + req, out := c.PutResourcePolicyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateInferenceScheduler = "UpdateInferenceScheduler" +const opStartDataIngestionJob = "StartDataIngestionJob" -// UpdateInferenceSchedulerRequest generates a "aws/request.Request" representing the -// client's request for the UpdateInferenceScheduler operation. The "output" return +// StartDataIngestionJobRequest generates a "aws/request.Request" representing the +// client's request for the StartDataIngestionJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateInferenceScheduler for more information on using the UpdateInferenceScheduler +// See StartDataIngestionJob for more information on using the StartDataIngestionJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateInferenceSchedulerRequest method. -// req, resp := client.UpdateInferenceSchedulerRequest(params) +// // Example sending a request using the StartDataIngestionJobRequest method. +// req, resp := client.StartDataIngestionJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateInferenceScheduler -func (c *LookoutEquipment) UpdateInferenceSchedulerRequest(input *UpdateInferenceSchedulerInput) (req *request.Request, output *UpdateInferenceSchedulerOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StartDataIngestionJob +func (c *LookoutEquipment) StartDataIngestionJobRequest(input *StartDataIngestionJobInput) (req *request.Request, output *StartDataIngestionJobOutput) { op := &request.Operation{ - Name: opUpdateInferenceScheduler, + Name: opStartDataIngestionJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateInferenceSchedulerInput{} + input = &StartDataIngestionJobInput{} } - output = &UpdateInferenceSchedulerOutput{} + output = &StartDataIngestionJobOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateInferenceScheduler API operation for Amazon Lookout for Equipment. +// StartDataIngestionJob API operation for Amazon Lookout for Equipment. // -// Updates an inference scheduler. +// Starts a data ingestion job. Amazon Lookout for Equipment returns the job +// status. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Lookout for Equipment's -// API operation UpdateInferenceScheduler for usage and error information. +// API operation StartDataIngestionJob for usage and error information. // // Returned Error Types: // -// - ConflictException -// The request could not be completed due to a conflict with the current state -// of the target resource. +// - ValidationException +// The input fails to satisfy constraints specified by Amazon Lookout for Equipment +// or a related Amazon Web Services service that's being utilized. // // - ResourceNotFoundException // The resource requested could not be found. Verify the resource ID and retry // your request. // -// - ValidationException -// The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// - ConflictException +// The request could not be completed due to a conflict with the current state +// of the target resource. // // - ThrottlingException // The request was denied due to request throttling. // +// - ServiceQuotaExceededException +// Resource limitations have been exceeded. +// // - AccessDeniedException // The request could not be completed because you do not have access to the // resource. @@ -3643,83 +3895,86 @@ func (c *LookoutEquipment) UpdateInferenceSchedulerRequest(input *UpdateInferenc // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateInferenceScheduler -func (c *LookoutEquipment) UpdateInferenceScheduler(input *UpdateInferenceSchedulerInput) (*UpdateInferenceSchedulerOutput, error) { - req, out := c.UpdateInferenceSchedulerRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StartDataIngestionJob +func (c *LookoutEquipment) StartDataIngestionJob(input *StartDataIngestionJobInput) (*StartDataIngestionJobOutput, error) { + req, out := c.StartDataIngestionJobRequest(input) return out, req.Send() } -// UpdateInferenceSchedulerWithContext is the same as UpdateInferenceScheduler with the addition of +// StartDataIngestionJobWithContext is the same as StartDataIngestionJob with the addition of // the ability to pass a context and additional request options. // -// See UpdateInferenceScheduler for details on how to use this API operation. +// See StartDataIngestionJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) UpdateInferenceSchedulerWithContext(ctx aws.Context, input *UpdateInferenceSchedulerInput, opts ...request.Option) (*UpdateInferenceSchedulerOutput, error) { - req, out := c.UpdateInferenceSchedulerRequest(input) +func (c *LookoutEquipment) StartDataIngestionJobWithContext(ctx aws.Context, input *StartDataIngestionJobInput, opts ...request.Option) (*StartDataIngestionJobOutput, error) { + req, out := c.StartDataIngestionJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateLabelGroup = "UpdateLabelGroup" +const opStartInferenceScheduler = "StartInferenceScheduler" -// UpdateLabelGroupRequest generates a "aws/request.Request" representing the -// client's request for the UpdateLabelGroup operation. The "output" return +// StartInferenceSchedulerRequest generates a "aws/request.Request" representing the +// client's request for the StartInferenceScheduler operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateLabelGroup for more information on using the UpdateLabelGroup +// See StartInferenceScheduler for more information on using the StartInferenceScheduler // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateLabelGroupRequest method. -// req, resp := client.UpdateLabelGroupRequest(params) +// // Example sending a request using the StartInferenceSchedulerRequest method. +// req, resp := client.StartInferenceSchedulerRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateLabelGroup -func (c *LookoutEquipment) UpdateLabelGroupRequest(input *UpdateLabelGroupInput) (req *request.Request, output *UpdateLabelGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StartInferenceScheduler +func (c *LookoutEquipment) StartInferenceSchedulerRequest(input *StartInferenceSchedulerInput) (req *request.Request, output *StartInferenceSchedulerOutput) { op := &request.Operation{ - Name: opUpdateLabelGroup, + Name: opStartInferenceScheduler, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateLabelGroupInput{} + input = &StartInferenceSchedulerInput{} } - output = &UpdateLabelGroupOutput{} + output = &StartInferenceSchedulerOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateLabelGroup API operation for Amazon Lookout for Equipment. +// StartInferenceScheduler API operation for Amazon Lookout for Equipment. // -// Updates the label group. +// Starts an inference scheduler. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Equipment's -// API operation UpdateLabelGroup for usage and error information. +// API operation StartInferenceScheduler for usage and error information. // // Returned Error Types: // +// - ValidationException +// The input fails to satisfy constraints specified by Amazon Lookout for Equipment +// or a related Amazon Web Services service that's being utilized. +// // - ConflictException // The request could not be completed due to a conflict with the current state // of the target resource. @@ -3728,10 +3983,6 @@ func (c *LookoutEquipment) UpdateLabelGroupRequest(input *UpdateLabelGroupInput) // The resource requested could not be found. Verify the resource ID and retry // your request. // -// - ValidationException -// The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. -// // - ThrottlingException // The request was denied due to request throttling. // @@ -3743,105 +3994,1365 @@ func (c *LookoutEquipment) UpdateLabelGroupRequest(input *UpdateLabelGroupInput) // Processing of the request has failed because of an unknown error, exception // or failure. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateLabelGroup -func (c *LookoutEquipment) UpdateLabelGroup(input *UpdateLabelGroupInput) (*UpdateLabelGroupOutput, error) { - req, out := c.UpdateLabelGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StartInferenceScheduler +func (c *LookoutEquipment) StartInferenceScheduler(input *StartInferenceSchedulerInput) (*StartInferenceSchedulerOutput, error) { + req, out := c.StartInferenceSchedulerRequest(input) return out, req.Send() } -// UpdateLabelGroupWithContext is the same as UpdateLabelGroup with the addition of +// StartInferenceSchedulerWithContext is the same as StartInferenceScheduler with the addition of // the ability to pass a context and additional request options. // -// See UpdateLabelGroup for details on how to use this API operation. +// See StartInferenceScheduler for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *LookoutEquipment) UpdateLabelGroupWithContext(ctx aws.Context, input *UpdateLabelGroupInput, opts ...request.Option) (*UpdateLabelGroupOutput, error) { - req, out := c.UpdateLabelGroupRequest(input) +func (c *LookoutEquipment) StartInferenceSchedulerWithContext(ctx aws.Context, input *StartInferenceSchedulerInput, opts ...request.Option) (*StartInferenceSchedulerOutput, error) { + req, out := c.StartInferenceSchedulerRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// The request could not be completed because you do not have access to the -// resource. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" min:"1" type:"string"` -} +const opStopInferenceScheduler = "StopInferenceScheduler" -// String returns the string representation. +// StopInferenceSchedulerRequest generates a "aws/request.Request" representing the +// client's request for the StopInferenceScheduler operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) GoString() string { - return s.String() -} - -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, +// See StopInferenceScheduler for more information on using the StopInferenceScheduler +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the StopInferenceSchedulerRequest method. +// req, resp := client.StopInferenceSchedulerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StopInferenceScheduler +func (c *LookoutEquipment) StopInferenceSchedulerRequest(input *StopInferenceSchedulerInput) (req *request.Request, output *StopInferenceSchedulerOutput) { + op := &request.Operation{ + Name: opStopInferenceScheduler, + HTTPMethod: "POST", + HTTPPath: "/", } -} - -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" -} -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if input == nil { + input = &StopInferenceSchedulerInput{} } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil -} -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) + output = &StopInferenceSchedulerOutput{} + req = c.newRequest(op, input, output) + return } -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode +// StopInferenceScheduler API operation for Amazon Lookout for Equipment. +// +// Stops an inference scheduler. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Equipment's +// API operation StopInferenceScheduler for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// The input fails to satisfy constraints specified by Amazon Lookout for Equipment +// or a related Amazon Web Services service that's being utilized. +// +// - ConflictException +// The request could not be completed due to a conflict with the current state +// of the target resource. +// +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - AccessDeniedException +// The request could not be completed because you do not have access to the +// resource. +// +// - InternalServerException +// Processing of the request has failed because of an unknown error, exception +// or failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/StopInferenceScheduler +func (c *LookoutEquipment) StopInferenceScheduler(input *StopInferenceSchedulerInput) (*StopInferenceSchedulerOutput, error) { + req, out := c.StopInferenceSchedulerRequest(input) + return out, req.Send() } -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID +// StopInferenceSchedulerWithContext is the same as StopInferenceScheduler with the addition of +// the ability to pass a context and additional request options. +// +// See StopInferenceScheduler for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LookoutEquipment) StopInferenceSchedulerWithContext(ctx aws.Context, input *StopInferenceSchedulerInput, opts ...request.Option) (*StopInferenceSchedulerOutput, error) { + req, out := c.StopInferenceSchedulerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -// Entity that comprises information on categorical values in data. -type CategoricalValues struct { - _ struct{} `type:"structure"` - - // Indicates the number of categories in the data. - NumberOfCategory *int64 `type:"integer"` +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/TagResource +func (c *LookoutEquipment) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for Amazon Lookout for Equipment. +// +// Associates a given tag to a resource in your account. A tag is a key-value +// pair which can be added to an Amazon Lookout for Equipment resource as metadata. +// Tags can be used for organizing your resources as well as helping you to +// search and filter by tag. Multiple tags can be added to a resource, either +// when you create it, or later. Up to 50 tags can be associated with each resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lookout for Equipment's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// The input fails to satisfy constraints specified by Amazon Lookout for Equipment +// or a related Amazon Web Services service that's being utilized. +// +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. +// +// - ServiceQuotaExceededException +// Resource limitations have been exceeded. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - AccessDeniedException +// The request could not be completed because you do not have access to the +// resource. +// +// - InternalServerException +// Processing of the request has failed because of an unknown error, exception +// or failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/TagResource +func (c *LookoutEquipment) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LookoutEquipment) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UntagResource +func (c *LookoutEquipment) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for Amazon Lookout for Equipment. +// +// Removes a specific tag from a given resource. The tag is specified by its +// 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. +// +// See the AWS API reference guide for Amazon Lookout for Equipment's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// The input fails to satisfy constraints specified by Amazon Lookout for Equipment +// or a related Amazon Web Services service that's being utilized. +// +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - AccessDeniedException +// The request could not be completed because you do not have access to the +// resource. +// +// - InternalServerException +// Processing of the request has failed because of an unknown error, exception +// or failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UntagResource +func (c *LookoutEquipment) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LookoutEquipment) 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 opUpdateActiveModelVersion = "UpdateActiveModelVersion" + +// UpdateActiveModelVersionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateActiveModelVersion operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateActiveModelVersion for more information on using the UpdateActiveModelVersion +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateActiveModelVersionRequest method. +// req, resp := client.UpdateActiveModelVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateActiveModelVersion +func (c *LookoutEquipment) UpdateActiveModelVersionRequest(input *UpdateActiveModelVersionInput) (req *request.Request, output *UpdateActiveModelVersionOutput) { + op := &request.Operation{ + Name: opUpdateActiveModelVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateActiveModelVersionInput{} + } + + output = &UpdateActiveModelVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateActiveModelVersion API operation for Amazon Lookout for Equipment. +// +// Sets the active model version for a given machine learning model. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lookout for Equipment's +// API operation UpdateActiveModelVersion for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// The input fails to satisfy constraints specified by Amazon Lookout for Equipment +// or a related Amazon Web Services service that's being utilized. +// +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. +// +// - InternalServerException +// Processing of the request has failed because of an unknown error, exception +// or failure. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - AccessDeniedException +// The request could not be completed because you do not have access to the +// resource. +// +// - ConflictException +// The request could not be completed due to a conflict with the current state +// of the target resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateActiveModelVersion +func (c *LookoutEquipment) UpdateActiveModelVersion(input *UpdateActiveModelVersionInput) (*UpdateActiveModelVersionOutput, error) { + req, out := c.UpdateActiveModelVersionRequest(input) + return out, req.Send() +} + +// UpdateActiveModelVersionWithContext is the same as UpdateActiveModelVersion with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateActiveModelVersion for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LookoutEquipment) UpdateActiveModelVersionWithContext(ctx aws.Context, input *UpdateActiveModelVersionInput, opts ...request.Option) (*UpdateActiveModelVersionOutput, error) { + req, out := c.UpdateActiveModelVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateInferenceScheduler = "UpdateInferenceScheduler" + +// UpdateInferenceSchedulerRequest generates a "aws/request.Request" representing the +// client's request for the UpdateInferenceScheduler operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateInferenceScheduler for more information on using the UpdateInferenceScheduler +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateInferenceSchedulerRequest method. +// req, resp := client.UpdateInferenceSchedulerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateInferenceScheduler +func (c *LookoutEquipment) UpdateInferenceSchedulerRequest(input *UpdateInferenceSchedulerInput) (req *request.Request, output *UpdateInferenceSchedulerOutput) { + op := &request.Operation{ + Name: opUpdateInferenceScheduler, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateInferenceSchedulerInput{} + } + + output = &UpdateInferenceSchedulerOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateInferenceScheduler API operation for Amazon Lookout for Equipment. +// +// Updates an inference scheduler. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Equipment's +// API operation UpdateInferenceScheduler for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// The request could not be completed due to a conflict with the current state +// of the target resource. +// +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. +// +// - ValidationException +// The input fails to satisfy constraints specified by Amazon Lookout for Equipment +// or a related Amazon Web Services service that's being utilized. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - AccessDeniedException +// The request could not be completed because you do not have access to the +// resource. +// +// - InternalServerException +// Processing of the request has failed because of an unknown error, exception +// or failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateInferenceScheduler +func (c *LookoutEquipment) UpdateInferenceScheduler(input *UpdateInferenceSchedulerInput) (*UpdateInferenceSchedulerOutput, error) { + req, out := c.UpdateInferenceSchedulerRequest(input) + return out, req.Send() +} + +// UpdateInferenceSchedulerWithContext is the same as UpdateInferenceScheduler with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateInferenceScheduler for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LookoutEquipment) UpdateInferenceSchedulerWithContext(ctx aws.Context, input *UpdateInferenceSchedulerInput, opts ...request.Option) (*UpdateInferenceSchedulerOutput, error) { + req, out := c.UpdateInferenceSchedulerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateLabelGroup = "UpdateLabelGroup" + +// UpdateLabelGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLabelGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateLabelGroup for more information on using the UpdateLabelGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateLabelGroupRequest method. +// req, resp := client.UpdateLabelGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateLabelGroup +func (c *LookoutEquipment) UpdateLabelGroupRequest(input *UpdateLabelGroupInput) (req *request.Request, output *UpdateLabelGroupOutput) { + op := &request.Operation{ + Name: opUpdateLabelGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateLabelGroupInput{} + } + + output = &UpdateLabelGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateLabelGroup API operation for Amazon Lookout for Equipment. +// +// Updates the label group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lookout for Equipment's +// API operation UpdateLabelGroup for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// The request could not be completed due to a conflict with the current state +// of the target resource. +// +// - ResourceNotFoundException +// The resource requested could not be found. Verify the resource ID and retry +// your request. +// +// - ValidationException +// The input fails to satisfy constraints specified by Amazon Lookout for Equipment +// or a related Amazon Web Services service that's being utilized. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - AccessDeniedException +// The request could not be completed because you do not have access to the +// resource. +// +// - InternalServerException +// Processing of the request has failed because of an unknown error, exception +// or failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateLabelGroup +func (c *LookoutEquipment) UpdateLabelGroup(input *UpdateLabelGroupInput) (*UpdateLabelGroupOutput, error) { + req, out := c.UpdateLabelGroupRequest(input) + return out, req.Send() +} + +// UpdateLabelGroupWithContext is the same as UpdateLabelGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateLabelGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LookoutEquipment) UpdateLabelGroupWithContext(ctx aws.Context, input *UpdateLabelGroupInput, opts ...request.Option) (*UpdateLabelGroupOutput, error) { + req, out := c.UpdateLabelGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// The request could not be completed because you do not have access to the +// resource. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" 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 AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Entity that comprises information on categorical values in data. +type CategoricalValues struct { + _ struct{} `type:"structure"` + + // Indicates the number of categories in the data. + NumberOfCategory *int64 `type:"integer"` // Indicates whether there is a potential data issue related to categorical // values. // - // Status is a required field - Status *string `type:"string" required:"true" enum:"StatisticalIssueStatus"` + // Status is a required field + Status *string `type:"string" required:"true" enum:"StatisticalIssueStatus"` +} + +// 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 CategoricalValues) 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 CategoricalValues) GoString() string { + return s.String() +} + +// SetNumberOfCategory sets the NumberOfCategory field's value. +func (s *CategoricalValues) SetNumberOfCategory(v int64) *CategoricalValues { + s.NumberOfCategory = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CategoricalValues) SetStatus(v string) *CategoricalValues { + s.Status = &v + return s +} + +// The request could not be completed due to a conflict with the current state +// of the target resource. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" 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 ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Entity that comprises information of count and percentage. +type CountPercent struct { + _ struct{} `type:"structure"` + + // Indicates the count of occurences of the given statistic. + // + // Count is a required field + Count *int64 `type:"integer" required:"true"` + + // Indicates the percentage of occurances of the given statistic. + // + // Percentage is a required field + Percentage *float64 `type:"float" 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 CountPercent) 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 CountPercent) GoString() string { + return s.String() +} + +// SetCount sets the Count field's value. +func (s *CountPercent) SetCount(v int64) *CountPercent { + s.Count = &v + return s +} + +// SetPercentage sets the Percentage field's value. +func (s *CountPercent) SetPercentage(v float64) *CountPercent { + s.Percentage = &v + return s +} + +type CreateDatasetInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the request. If you do not set the client request + // token, Amazon Lookout for Equipment generates one. + ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The name of the dataset being created. + // + // DatasetName is a required field + DatasetName *string `min:"1" type:"string" required:"true"` + + // A JSON description of the data that is in each time series dataset, including + // names, column names, and data types. + DatasetSchema *DatasetSchema `type:"structure"` + + // Provides the identifier of the KMS key used to encrypt dataset data by Amazon + // Lookout for Equipment. + ServerSideKmsKeyId *string `min:"1" type:"string"` + + // Any tags associated with the ingested data described in the dataset. + Tags []*Tag `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDatasetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDatasetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDatasetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDatasetInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.DatasetName == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetName")) + } + if s.DatasetName != nil && len(*s.DatasetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) + } + if s.ServerSideKmsKeyId != nil && len(*s.ServerSideKmsKeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerSideKmsKeyId", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateDatasetInput) SetClientToken(v string) *CreateDatasetInput { + s.ClientToken = &v + return s +} + +// SetDatasetName sets the DatasetName field's value. +func (s *CreateDatasetInput) SetDatasetName(v string) *CreateDatasetInput { + s.DatasetName = &v + return s +} + +// SetDatasetSchema sets the DatasetSchema field's value. +func (s *CreateDatasetInput) SetDatasetSchema(v *DatasetSchema) *CreateDatasetInput { + s.DatasetSchema = v + return s +} + +// SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. +func (s *CreateDatasetInput) SetServerSideKmsKeyId(v string) *CreateDatasetInput { + s.ServerSideKmsKeyId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDatasetInput) SetTags(v []*Tag) *CreateDatasetInput { + s.Tags = v + return s +} + +type CreateDatasetOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the dataset being created. + DatasetArn *string `min:"20" type:"string"` + + // The name of the dataset being created. + DatasetName *string `min:"1" type:"string"` + + // Indicates the status of the CreateDataset operation. + Status *string `type:"string" enum:"DatasetStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDatasetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDatasetOutput) GoString() string { + return s.String() +} + +// SetDatasetArn sets the DatasetArn field's value. +func (s *CreateDatasetOutput) SetDatasetArn(v string) *CreateDatasetOutput { + s.DatasetArn = &v + return s +} + +// SetDatasetName sets the DatasetName field's value. +func (s *CreateDatasetOutput) SetDatasetName(v string) *CreateDatasetOutput { + s.DatasetName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CreateDatasetOutput) SetStatus(v string) *CreateDatasetOutput { + s.Status = &v + return s +} + +type CreateInferenceSchedulerInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the request. If you do not set the client request + // token, Amazon Lookout for Equipment generates one. + ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The interval (in minutes) of planned delay at the start of each inference + // segment. For example, if inference is set to run every ten minutes, the delay + // is set to five minutes and the time is 09:08. The inference scheduler will + // wake up at the configured interval (which, without a delay configured, would + // be 09:10) plus the additional five minute delay time (so 09:15) to check + // your Amazon S3 bucket. The delay provides a buffer for you to upload data + // at the same frequency, so that you don't have to stop and restart the scheduler + // when uploading new data. + // + // For more information, see Understanding the inference process (https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-inference-process.html). + DataDelayOffsetInMinutes *int64 `type:"long"` + + // Specifies configuration information for the input data for the inference + // scheduler, including delimiter, format, and dataset location. + // + // DataInputConfiguration is a required field + DataInputConfiguration *InferenceInputConfiguration `type:"structure" required:"true"` + + // Specifies configuration information for the output results for the inference + // scheduler, including the S3 location for the output. + // + // DataOutputConfiguration is a required field + DataOutputConfiguration *InferenceOutputConfiguration `type:"structure" required:"true"` + + // How often data is uploaded to the source Amazon S3 bucket for the input data. + // The value chosen is the length of time between data uploads. For instance, + // if you select 5 minutes, Amazon Lookout for Equipment will upload the real-time + // data to the source bucket once every 5 minutes. This frequency also determines + // how often Amazon Lookout for Equipment runs inference on your data. + // + // For more information, see Understanding the inference process (https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-inference-process.html). + // + // DataUploadFrequency is a required field + DataUploadFrequency *string `type:"string" required:"true" enum:"DataUploadFrequency"` + + // The name of the inference scheduler being created. + // + // InferenceSchedulerName is a required field + InferenceSchedulerName *string `min:"1" type:"string" required:"true"` + + // The name of the previously trained ML model being used to create the inference + // scheduler. + // + // ModelName is a required field + ModelName *string `min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of a role with permission to access the data + // source being used for the inference. + // + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // Provides the identifier of the KMS key used to encrypt inference scheduler + // data by Amazon Lookout for Equipment. + ServerSideKmsKeyId *string `min:"1" type:"string"` + + // Any tags associated with the inference scheduler. + Tags []*Tag `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateInferenceSchedulerInput) 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 CreateInferenceSchedulerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateInferenceSchedulerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateInferenceSchedulerInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.DataInputConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("DataInputConfiguration")) + } + if s.DataOutputConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("DataOutputConfiguration")) + } + if s.DataUploadFrequency == nil { + invalidParams.Add(request.NewErrParamRequired("DataUploadFrequency")) + } + if s.InferenceSchedulerName == nil { + invalidParams.Add(request.NewErrParamRequired("InferenceSchedulerName")) + } + if s.InferenceSchedulerName != nil && len(*s.InferenceSchedulerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InferenceSchedulerName", 1)) + } + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) + } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) + } + if s.ServerSideKmsKeyId != nil && len(*s.ServerSideKmsKeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerSideKmsKeyId", 1)) + } + if s.DataInputConfiguration != nil { + if err := s.DataInputConfiguration.Validate(); err != nil { + invalidParams.AddNested("DataInputConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.DataOutputConfiguration != nil { + if err := s.DataOutputConfiguration.Validate(); err != nil { + invalidParams.AddNested("DataOutputConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateInferenceSchedulerInput) SetClientToken(v string) *CreateInferenceSchedulerInput { + s.ClientToken = &v + return s +} + +// SetDataDelayOffsetInMinutes sets the DataDelayOffsetInMinutes field's value. +func (s *CreateInferenceSchedulerInput) SetDataDelayOffsetInMinutes(v int64) *CreateInferenceSchedulerInput { + s.DataDelayOffsetInMinutes = &v + return s +} + +// SetDataInputConfiguration sets the DataInputConfiguration field's value. +func (s *CreateInferenceSchedulerInput) SetDataInputConfiguration(v *InferenceInputConfiguration) *CreateInferenceSchedulerInput { + s.DataInputConfiguration = v + return s +} + +// SetDataOutputConfiguration sets the DataOutputConfiguration field's value. +func (s *CreateInferenceSchedulerInput) SetDataOutputConfiguration(v *InferenceOutputConfiguration) *CreateInferenceSchedulerInput { + s.DataOutputConfiguration = v + return s +} + +// SetDataUploadFrequency sets the DataUploadFrequency field's value. +func (s *CreateInferenceSchedulerInput) SetDataUploadFrequency(v string) *CreateInferenceSchedulerInput { + s.DataUploadFrequency = &v + return s +} + +// SetInferenceSchedulerName sets the InferenceSchedulerName field's value. +func (s *CreateInferenceSchedulerInput) SetInferenceSchedulerName(v string) *CreateInferenceSchedulerInput { + s.InferenceSchedulerName = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *CreateInferenceSchedulerInput) SetModelName(v string) *CreateInferenceSchedulerInput { + s.ModelName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CreateInferenceSchedulerInput) SetRoleArn(v string) *CreateInferenceSchedulerInput { + s.RoleArn = &v + return s +} + +// SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. +func (s *CreateInferenceSchedulerInput) SetServerSideKmsKeyId(v string) *CreateInferenceSchedulerInput { + s.ServerSideKmsKeyId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateInferenceSchedulerInput) SetTags(v []*Tag) *CreateInferenceSchedulerInput { + s.Tags = v + return s +} + +type CreateInferenceSchedulerOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the inference scheduler being created. + InferenceSchedulerArn *string `min:"20" type:"string"` + + // The name of inference scheduler being created. + InferenceSchedulerName *string `min:"1" type:"string"` + + // Indicates the status of the CreateInferenceScheduler operation. + Status *string `type:"string" enum:"InferenceSchedulerStatus"` +} + +// 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 CreateInferenceSchedulerOutput) 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 CreateInferenceSchedulerOutput) GoString() string { + return s.String() +} + +// SetInferenceSchedulerArn sets the InferenceSchedulerArn field's value. +func (s *CreateInferenceSchedulerOutput) SetInferenceSchedulerArn(v string) *CreateInferenceSchedulerOutput { + s.InferenceSchedulerArn = &v + return s +} + +// SetInferenceSchedulerName sets the InferenceSchedulerName field's value. +func (s *CreateInferenceSchedulerOutput) SetInferenceSchedulerName(v string) *CreateInferenceSchedulerOutput { + s.InferenceSchedulerName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CreateInferenceSchedulerOutput) SetStatus(v string) *CreateInferenceSchedulerOutput { + s.Status = &v + return s +} + +type CreateLabelGroupInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the request to create a label group. If you do not + // set the client request token, Lookout for Equipment generates one. + ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The acceptable fault codes (indicating the type of anomaly associated with + // the label) that can be used with this label group. + // + // Data in this field will be retained for service usage. Follow best practices + // for the security of your data. + FaultCodes []*string `type:"list"` + + // Names a group of labels. + // + // Data in this field will be retained for service usage. Follow best practices + // for the security of your data. + // + // LabelGroupName is a required field + LabelGroupName *string `min:"1" type:"string" required:"true"` + + // Tags that provide metadata about the label group you are creating. + // + // Data in this field will be retained for service usage. Follow best practices + // for the security of your data. + Tags []*Tag `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLabelGroupInput) 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 CreateLabelGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLabelGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLabelGroupInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.LabelGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("LabelGroupName")) + } + if s.LabelGroupName != nil && len(*s.LabelGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LabelGroupName", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateLabelGroupInput) SetClientToken(v string) *CreateLabelGroupInput { + s.ClientToken = &v + return s +} + +// SetFaultCodes sets the FaultCodes field's value. +func (s *CreateLabelGroupInput) SetFaultCodes(v []*string) *CreateLabelGroupInput { + s.FaultCodes = v + return s +} + +// SetLabelGroupName sets the LabelGroupName field's value. +func (s *CreateLabelGroupInput) SetLabelGroupName(v string) *CreateLabelGroupInput { + s.LabelGroupName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLabelGroupInput) SetTags(v []*Tag) *CreateLabelGroupInput { + s.Tags = v + return s +} + +type CreateLabelGroupOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the label group that you have created. + LabelGroupArn *string `min:"20" type:"string"` + + // The name of the label group that you have created. Data in this field will + // be retained for service usage. Follow best practices for the security of + // your data. + LabelGroupName *string `min:"1" type:"string"` } // String returns the string representation. @@ -3849,7 +5360,7 @@ type CategoricalValues 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 CategoricalValues) String() string { +func (s CreateLabelGroupOutput) String() string { return awsutil.Prettify(s) } @@ -3858,29 +5369,70 @@ func (s CategoricalValues) 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 CategoricalValues) GoString() string { +func (s CreateLabelGroupOutput) GoString() string { return s.String() } -// SetNumberOfCategory sets the NumberOfCategory field's value. -func (s *CategoricalValues) SetNumberOfCategory(v int64) *CategoricalValues { - s.NumberOfCategory = &v +// SetLabelGroupArn sets the LabelGroupArn field's value. +func (s *CreateLabelGroupOutput) SetLabelGroupArn(v string) *CreateLabelGroupOutput { + s.LabelGroupArn = &v return s } -// SetStatus sets the Status field's value. -func (s *CategoricalValues) SetStatus(v string) *CategoricalValues { - s.Status = &v +// SetLabelGroupName sets the LabelGroupName field's value. +func (s *CreateLabelGroupOutput) SetLabelGroupName(v string) *CreateLabelGroupOutput { + s.LabelGroupName = &v return s } -// The request could not be completed due to a conflict with the current state -// of the target resource. -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type CreateLabelInput struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" min:"1" type:"string"` + // A unique identifier for the request to create a label. If you do not set + // the client request token, Lookout for Equipment generates one. + ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The end time of the labeled event. + // + // EndTime is a required field + EndTime *time.Time `type:"timestamp" required:"true"` + + // Indicates that a label pertains to a particular piece of equipment. + // + // Data in this field will be retained for service usage. Follow best practices + // for the security of your data. + Equipment *string `min:"1" type:"string"` + + // Provides additional information about the label. The fault code must be defined + // in the FaultCodes attribute of the label group. + // + // Data in this field will be retained for service usage. Follow best practices + // for the security of your data. + FaultCode *string `min:"1" type:"string"` + + // The name of a group of labels. + // + // Data in this field will be retained for service usage. Follow best practices + // for the security of your data. + // + // LabelGroupName is a required field + LabelGroupName *string `min:"1" type:"string" required:"true"` + + // Metadata providing additional information about the label. + // + // Data in this field will be retained for service usage. Follow best practices + // for the security of your data. + Notes *string `min:"1" type:"string"` + + // Indicates whether a labeled event represents an anomaly. + // + // Rating is a required field + Rating *string `type:"string" required:"true" enum:"LabelRating"` + + // The start time of the labeled event. + // + // StartTime is a required field + StartTime *time.Time `type:"timestamp" required:"true"` } // String returns the string representation. @@ -3888,7 +5440,7 @@ type ConflictException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConflictException) String() string { +func (s CreateLabelInput) String() string { return awsutil.Prettify(s) } @@ -3897,61 +5449,100 @@ func (s ConflictException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConflictException) GoString() string { +func (s CreateLabelInput) GoString() string { return s.String() } -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLabelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLabelInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.EndTime == nil { + invalidParams.Add(request.NewErrParamRequired("EndTime")) + } + if s.Equipment != nil && len(*s.Equipment) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Equipment", 1)) + } + if s.FaultCode != nil && len(*s.FaultCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FaultCode", 1)) + } + if s.LabelGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("LabelGroupName")) + } + if s.LabelGroupName != nil && len(*s.LabelGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LabelGroupName", 1)) } + if s.Notes != nil && len(*s.Notes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Notes", 1)) + } + if s.Rating == nil { + invalidParams.Add(request.NewErrParamRequired("Rating")) + } + if s.StartTime == nil { + invalidParams.Add(request.NewErrParamRequired("StartTime")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" +// SetClientToken sets the ClientToken field's value. +func (s *CreateLabelInput) SetClientToken(v string) *CreateLabelInput { + s.ClientToken = &v + return s } -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetEndTime sets the EndTime field's value. +func (s *CreateLabelInput) SetEndTime(v time.Time) *CreateLabelInput { + s.EndTime = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil +// SetEquipment sets the Equipment field's value. +func (s *CreateLabelInput) SetEquipment(v string) *CreateLabelInput { + s.Equipment = &v + return s } -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetFaultCode sets the FaultCode field's value. +func (s *CreateLabelInput) SetFaultCode(v string) *CreateLabelInput { + s.FaultCode = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetLabelGroupName sets the LabelGroupName field's value. +func (s *CreateLabelInput) SetLabelGroupName(v string) *CreateLabelInput { + s.LabelGroupName = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID +// SetNotes sets the Notes field's value. +func (s *CreateLabelInput) SetNotes(v string) *CreateLabelInput { + s.Notes = &v + return s } -// Entity that comprises information of count and percentage. -type CountPercent struct { - _ struct{} `type:"structure"` +// SetRating sets the Rating field's value. +func (s *CreateLabelInput) SetRating(v string) *CreateLabelInput { + s.Rating = &v + return s +} - // Indicates the count of occurences of the given statistic. - // - // Count is a required field - Count *int64 `type:"integer" required:"true"` +// SetStartTime sets the StartTime field's value. +func (s *CreateLabelInput) SetStartTime(v time.Time) *CreateLabelInput { + s.StartTime = &v + return s +} - // Indicates the percentage of occurances of the given statistic. - // - // Percentage is a required field - Percentage *float64 `type:"float" required:"true"` +type CreateLabelOutput struct { + _ struct{} `type:"structure"` + + // The ID of the label that you have created. + LabelId *string `type:"string"` } // String returns the string representation. @@ -3959,7 +5550,7 @@ type CountPercent 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 CountPercent) String() string { +func (s CreateLabelOutput) String() string { return awsutil.Prettify(s) } @@ -3968,44 +5559,83 @@ func (s CountPercent) 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 CountPercent) GoString() string { +func (s CreateLabelOutput) GoString() string { return s.String() } -// SetCount sets the Count field's value. -func (s *CountPercent) SetCount(v int64) *CountPercent { - s.Count = &v - return s -} - -// SetPercentage sets the Percentage field's value. -func (s *CountPercent) SetPercentage(v float64) *CountPercent { - s.Percentage = &v +// SetLabelId sets the LabelId field's value. +func (s *CreateLabelOutput) SetLabelId(v string) *CreateLabelOutput { + s.LabelId = &v return s } -type CreateDatasetInput struct { +type CreateModelInput struct { _ struct{} `type:"structure"` // A unique identifier for the request. If you do not set the client request // token, Amazon Lookout for Equipment generates one. ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` - // The name of the dataset being created. + // The configuration is the TargetSamplingRate, which is the sampling rate of + // the data after post processing by Amazon Lookout for Equipment. For example, + // if you provide data that has been collected at a 1 second level and you want + // the system to resample the data at a 1 minute rate before training, the TargetSamplingRate + // is 1 minute. + // + // When providing a value for the TargetSamplingRate, you must attach the prefix + // "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, + // the value for a 15 minute rate is PT15M, and the value for a 1 hour rate + // is PT1H + DataPreProcessingConfiguration *DataPreProcessingConfiguration `type:"structure"` + + // The name of the dataset for the ML model being created. // // DatasetName is a required field DatasetName *string `min:"1" type:"string" required:"true"` - // A JSON description of the data that is in each time series dataset, including - // names, column names, and data types. + // The data schema for the ML model being created. DatasetSchema *DatasetSchema `type:"structure"` - // Provides the identifier of the KMS key used to encrypt dataset data by Amazon + // Indicates the time reference in the dataset that should be used to end the + // subset of evaluation data for the ML model. + EvaluationDataEndTime *time.Time `type:"timestamp"` + + // Indicates the time reference in the dataset that should be used to begin + // the subset of evaluation data for the ML model. + EvaluationDataStartTime *time.Time `type:"timestamp"` + + // The input configuration for the labels being used for the ML model that's + // being created. + LabelsInputConfiguration *LabelsInputConfiguration `type:"structure"` + + // The name for the ML model to be created. + // + // ModelName is a required field + ModelName *string `min:"1" type:"string" required:"true"` + + // Indicates that the asset associated with this sensor has been shut off. As + // long as this condition is met, Lookout for Equipment will not use data from + // this asset for training, evaluation, or inference. + OffCondition *string `min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of a role with permission to access the data + // source being used to create the ML model. + RoleArn *string `min:"20" type:"string"` + + // Provides the identifier of the KMS key used to encrypt model data by Amazon // Lookout for Equipment. ServerSideKmsKeyId *string `min:"1" type:"string"` - // Any tags associated with the ingested data described in the dataset. + // Any tags associated with the ML model being created. Tags []*Tag `type:"list"` + + // Indicates the time reference in the dataset that should be used to end the + // subset of training data for the ML model. + TrainingDataEndTime *time.Time `type:"timestamp"` + + // Indicates the time reference in the dataset that should be used to begin + // the subset of training data for the ML model. + TrainingDataStartTime *time.Time `type:"timestamp"` } // String returns the string representation. @@ -4013,7 +5643,7 @@ type CreateDatasetInput 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 CreateDatasetInput) String() string { +func (s CreateModelInput) String() string { return awsutil.Prettify(s) } @@ -4022,13 +5652,13 @@ func (s CreateDatasetInput) 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 CreateDatasetInput) GoString() string { +func (s CreateModelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDatasetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDatasetInput"} +func (s *CreateModelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateModelInput"} if s.ClientToken != nil && len(*s.ClientToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) } @@ -4038,9 +5668,26 @@ func (s *CreateDatasetInput) Validate() error { if s.DatasetName != nil && len(*s.DatasetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) } + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) + } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } + if s.OffCondition != nil && len(*s.OffCondition) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OffCondition", 1)) + } + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) + } if s.ServerSideKmsKeyId != nil && len(*s.ServerSideKmsKeyId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServerSideKmsKeyId", 1)) } + if s.LabelsInputConfiguration != nil { + if err := s.LabelsInputConfiguration.Validate(); err != nil { + invalidParams.AddNested("LabelsInputConfiguration", err.(request.ErrInvalidParams)) + } + } if s.Tags != nil { for i, v := range s.Tags { if v == nil { @@ -4059,46 +5706,150 @@ func (s *CreateDatasetInput) Validate() error { } // SetClientToken sets the ClientToken field's value. -func (s *CreateDatasetInput) SetClientToken(v string) *CreateDatasetInput { +func (s *CreateModelInput) SetClientToken(v string) *CreateModelInput { s.ClientToken = &v return s } +// SetDataPreProcessingConfiguration sets the DataPreProcessingConfiguration field's value. +func (s *CreateModelInput) SetDataPreProcessingConfiguration(v *DataPreProcessingConfiguration) *CreateModelInput { + s.DataPreProcessingConfiguration = v + return s +} + // SetDatasetName sets the DatasetName field's value. -func (s *CreateDatasetInput) SetDatasetName(v string) *CreateDatasetInput { +func (s *CreateModelInput) SetDatasetName(v string) *CreateModelInput { s.DatasetName = &v return s } // SetDatasetSchema sets the DatasetSchema field's value. -func (s *CreateDatasetInput) SetDatasetSchema(v *DatasetSchema) *CreateDatasetInput { +func (s *CreateModelInput) SetDatasetSchema(v *DatasetSchema) *CreateModelInput { s.DatasetSchema = v return s } +// SetEvaluationDataEndTime sets the EvaluationDataEndTime field's value. +func (s *CreateModelInput) SetEvaluationDataEndTime(v time.Time) *CreateModelInput { + s.EvaluationDataEndTime = &v + return s +} + +// SetEvaluationDataStartTime sets the EvaluationDataStartTime field's value. +func (s *CreateModelInput) SetEvaluationDataStartTime(v time.Time) *CreateModelInput { + s.EvaluationDataStartTime = &v + return s +} + +// SetLabelsInputConfiguration sets the LabelsInputConfiguration field's value. +func (s *CreateModelInput) SetLabelsInputConfiguration(v *LabelsInputConfiguration) *CreateModelInput { + s.LabelsInputConfiguration = v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *CreateModelInput) SetModelName(v string) *CreateModelInput { + s.ModelName = &v + return s +} + +// SetOffCondition sets the OffCondition field's value. +func (s *CreateModelInput) SetOffCondition(v string) *CreateModelInput { + s.OffCondition = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CreateModelInput) SetRoleArn(v string) *CreateModelInput { + s.RoleArn = &v + return s +} + // SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. -func (s *CreateDatasetInput) SetServerSideKmsKeyId(v string) *CreateDatasetInput { +func (s *CreateModelInput) SetServerSideKmsKeyId(v string) *CreateModelInput { s.ServerSideKmsKeyId = &v return s } // SetTags sets the Tags field's value. -func (s *CreateDatasetInput) SetTags(v []*Tag) *CreateDatasetInput { +func (s *CreateModelInput) SetTags(v []*Tag) *CreateModelInput { s.Tags = v return s } -type CreateDatasetOutput struct { +// SetTrainingDataEndTime sets the TrainingDataEndTime field's value. +func (s *CreateModelInput) SetTrainingDataEndTime(v time.Time) *CreateModelInput { + s.TrainingDataEndTime = &v + return s +} + +// SetTrainingDataStartTime sets the TrainingDataStartTime field's value. +func (s *CreateModelInput) SetTrainingDataStartTime(v time.Time) *CreateModelInput { + s.TrainingDataStartTime = &v + return s +} + +type CreateModelOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the dataset being created. + // The Amazon Resource Name (ARN) of the model being created. + ModelArn *string `min:"20" type:"string"` + + // Indicates the status of the CreateModel operation. + Status *string `type:"string" enum:"ModelStatus"` +} + +// 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 CreateModelOutput) 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 CreateModelOutput) GoString() string { + return s.String() +} + +// SetModelArn sets the ModelArn field's value. +func (s *CreateModelOutput) SetModelArn(v string) *CreateModelOutput { + s.ModelArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CreateModelOutput) SetStatus(v string) *CreateModelOutput { + s.Status = &v + return s +} + +// Provides information about a specified data ingestion job, including dataset +// information, data ingestion configuration, and status. +type DataIngestionJobSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the dataset used in the data ingestion + // job. DatasetArn *string `min:"20" type:"string"` - // The name of the dataset being created. + // The name of the dataset used for the data ingestion job. DatasetName *string `min:"1" type:"string"` - // Indicates the status of the CreateDataset operation. - Status *string `type:"string" enum:"DatasetStatus"` + // Specifies information for the input data for the data inference job, including + // data Amazon S3 location parameters. + IngestionInputConfiguration *IngestionInputConfiguration `type:"structure"` + + // Indicates the job ID of the data ingestion job. + JobId *string `type:"string"` + + // Indicates the status of the data ingestion job. + Status *string `type:"string" enum:"IngestionJobStatus"` } // String returns the string representation. @@ -4106,7 +5857,7 @@ type CreateDatasetOutput 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 CreateDatasetOutput) String() string { +func (s DataIngestionJobSummary) String() string { return awsutil.Prettify(s) } @@ -4115,93 +5866,126 @@ func (s CreateDatasetOutput) 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 CreateDatasetOutput) GoString() string { +func (s DataIngestionJobSummary) GoString() string { return s.String() } // SetDatasetArn sets the DatasetArn field's value. -func (s *CreateDatasetOutput) SetDatasetArn(v string) *CreateDatasetOutput { +func (s *DataIngestionJobSummary) SetDatasetArn(v string) *DataIngestionJobSummary { s.DatasetArn = &v return s } -// SetDatasetName sets the DatasetName field's value. -func (s *CreateDatasetOutput) SetDatasetName(v string) *CreateDatasetOutput { - s.DatasetName = &v - return s +// SetDatasetName sets the DatasetName field's value. +func (s *DataIngestionJobSummary) SetDatasetName(v string) *DataIngestionJobSummary { + s.DatasetName = &v + return s +} + +// SetIngestionInputConfiguration sets the IngestionInputConfiguration field's value. +func (s *DataIngestionJobSummary) SetIngestionInputConfiguration(v *IngestionInputConfiguration) *DataIngestionJobSummary { + s.IngestionInputConfiguration = v + return s +} + +// SetJobId sets the JobId field's value. +func (s *DataIngestionJobSummary) SetJobId(v string) *DataIngestionJobSummary { + s.JobId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DataIngestionJobSummary) SetStatus(v string) *DataIngestionJobSummary { + s.Status = &v + return s +} + +// The configuration is the TargetSamplingRate, which is the sampling rate of +// the data after post processing by Amazon Lookout for Equipment. For example, +// if you provide data that has been collected at a 1 second level and you want +// the system to resample the data at a 1 minute rate before training, the TargetSamplingRate +// is 1 minute. +// +// When providing a value for the TargetSamplingRate, you must attach the prefix +// "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, +// the value for a 15 minute rate is PT15M, and the value for a 1 hour rate +// is PT1H +type DataPreProcessingConfiguration struct { + _ struct{} `type:"structure"` + + // The sampling rate of the data after post processing by Amazon Lookout for + // Equipment. For example, if you provide data that has been collected at a + // 1 second level and you want the system to resample the data at a 1 minute + // rate before training, the TargetSamplingRate is 1 minute. + // + // When providing a value for the TargetSamplingRate, you must attach the prefix + // "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, + // the value for a 15 minute rate is PT15M, and the value for a 1 hour rate + // is PT1H + TargetSamplingRate *string `type:"string" enum:"TargetSamplingRate"` +} + +// 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 DataPreProcessingConfiguration) 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 DataPreProcessingConfiguration) GoString() string { + return s.String() } -// SetStatus sets the Status field's value. -func (s *CreateDatasetOutput) SetStatus(v string) *CreateDatasetOutput { - s.Status = &v +// SetTargetSamplingRate sets the TargetSamplingRate field's value. +func (s *DataPreProcessingConfiguration) SetTargetSamplingRate(v string) *DataPreProcessingConfiguration { + s.TargetSamplingRate = &v return s } -type CreateInferenceSchedulerInput struct { +// DataQualitySummary gives aggregated statistics over all the sensors about +// a completed ingestion job. It primarily gives more information about statistics +// over different incorrect data like MissingCompleteSensorData, MissingSensorData, +// UnsupportedDateFormats, InsufficientSensorData, DuplicateTimeStamps. +type DataQualitySummary struct { _ struct{} `type:"structure"` - // A unique identifier for the request. If you do not set the client request - // token, Amazon Lookout for Equipment generates one. - ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` - - // The interval (in minutes) of planned delay at the start of each inference - // segment. For example, if inference is set to run every ten minutes, the delay - // is set to five minutes and the time is 09:08. The inference scheduler will - // wake up at the configured interval (which, without a delay configured, would - // be 09:10) plus the additional five minute delay time (so 09:15) to check - // your Amazon S3 bucket. The delay provides a buffer for you to upload data - // at the same frequency, so that you don't have to stop and restart the scheduler - // when uploading new data. - // - // For more information, see Understanding the inference process (https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-inference-process.html). - DataDelayOffsetInMinutes *int64 `type:"long"` - - // Specifies configuration information for the input data for the inference - // scheduler, including delimiter, format, and dataset location. - // - // DataInputConfiguration is a required field - DataInputConfiguration *InferenceInputConfiguration `type:"structure" required:"true"` - - // Specifies configuration information for the output results for the inference - // scheduler, including the S3 location for the output. + // Parameter that gives information about duplicate timestamps in the input + // data. // - // DataOutputConfiguration is a required field - DataOutputConfiguration *InferenceOutputConfiguration `type:"structure" required:"true"` + // DuplicateTimestamps is a required field + DuplicateTimestamps *DuplicateTimestamps `type:"structure" required:"true"` - // How often data is uploaded to the source Amazon S3 bucket for the input data. - // The value chosen is the length of time between data uploads. For instance, - // if you select 5 minutes, Amazon Lookout for Equipment will upload the real-time - // data to the source bucket once every 5 minutes. This frequency also determines - // how often Amazon Lookout for Equipment runs inference on your data. - // - // For more information, see Understanding the inference process (https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-inference-process.html). + // Parameter that gives information about insufficient data for sensors in the + // dataset. This includes information about those sensors that have complete + // data missing and those with a short date range. // - // DataUploadFrequency is a required field - DataUploadFrequency *string `type:"string" required:"true" enum:"DataUploadFrequency"` + // InsufficientSensorData is a required field + InsufficientSensorData *InsufficientSensorData `type:"structure" required:"true"` - // The name of the inference scheduler being created. + // Parameter that gives information about data that is invalid over all the + // sensors in the input data. // - // InferenceSchedulerName is a required field - InferenceSchedulerName *string `min:"1" type:"string" required:"true"` + // InvalidSensorData is a required field + InvalidSensorData *InvalidSensorData `type:"structure" required:"true"` - // The name of the previously trained ML model being used to create the inference - // scheduler. + // Parameter that gives information about data that is missing over all the + // sensors in the input data. // - // ModelName is a required field - ModelName *string `min:"1" type:"string" required:"true"` + // MissingSensorData is a required field + MissingSensorData *MissingSensorData `type:"structure" required:"true"` - // The Amazon Resource Name (ARN) of a role with permission to access the data - // source being used for the inference. + // Parameter that gives information about unsupported timestamps in the input + // data. // - // RoleArn is a required field - RoleArn *string `min:"20" type:"string" required:"true"` - - // Provides the identifier of the KMS key used to encrypt inference scheduler - // data by Amazon Lookout for Equipment. - ServerSideKmsKeyId *string `min:"1" type:"string"` - - // Any tags associated with the inference scheduler. - Tags []*Tag `type:"list"` + // UnsupportedTimestamps is a required field + UnsupportedTimestamps *UnsupportedTimestamps `type:"structure" required:"true"` } // String returns the string representation. @@ -4209,7 +5993,7 @@ type CreateInferenceSchedulerInput 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 CreateInferenceSchedulerInput) String() string { +func (s DataQualitySummary) String() string { return awsutil.Prettify(s) } @@ -4218,144 +6002,87 @@ func (s CreateInferenceSchedulerInput) 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 CreateInferenceSchedulerInput) GoString() string { +func (s DataQualitySummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateInferenceSchedulerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateInferenceSchedulerInput"} - if s.ClientToken != nil && len(*s.ClientToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) - } - if s.DataInputConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("DataInputConfiguration")) - } - if s.DataOutputConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("DataOutputConfiguration")) - } - if s.DataUploadFrequency == nil { - invalidParams.Add(request.NewErrParamRequired("DataUploadFrequency")) - } - if s.InferenceSchedulerName == nil { - invalidParams.Add(request.NewErrParamRequired("InferenceSchedulerName")) - } - if s.InferenceSchedulerName != nil && len(*s.InferenceSchedulerName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InferenceSchedulerName", 1)) - } - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - if s.ModelName != nil && len(*s.ModelName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.RoleArn != nil && len(*s.RoleArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) - } - if s.ServerSideKmsKeyId != nil && len(*s.ServerSideKmsKeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServerSideKmsKeyId", 1)) - } - if s.DataInputConfiguration != nil { - if err := s.DataInputConfiguration.Validate(); err != nil { - invalidParams.AddNested("DataInputConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.DataOutputConfiguration != nil { - if err := s.DataOutputConfiguration.Validate(); err != nil { - invalidParams.AddNested("DataOutputConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetClientToken sets the ClientToken field's value. -func (s *CreateInferenceSchedulerInput) SetClientToken(v string) *CreateInferenceSchedulerInput { - s.ClientToken = &v +// SetDuplicateTimestamps sets the DuplicateTimestamps field's value. +func (s *DataQualitySummary) SetDuplicateTimestamps(v *DuplicateTimestamps) *DataQualitySummary { + s.DuplicateTimestamps = v return s } -// SetDataDelayOffsetInMinutes sets the DataDelayOffsetInMinutes field's value. -func (s *CreateInferenceSchedulerInput) SetDataDelayOffsetInMinutes(v int64) *CreateInferenceSchedulerInput { - s.DataDelayOffsetInMinutes = &v +// SetInsufficientSensorData sets the InsufficientSensorData field's value. +func (s *DataQualitySummary) SetInsufficientSensorData(v *InsufficientSensorData) *DataQualitySummary { + s.InsufficientSensorData = v return s } -// SetDataInputConfiguration sets the DataInputConfiguration field's value. -func (s *CreateInferenceSchedulerInput) SetDataInputConfiguration(v *InferenceInputConfiguration) *CreateInferenceSchedulerInput { - s.DataInputConfiguration = v +// SetInvalidSensorData sets the InvalidSensorData field's value. +func (s *DataQualitySummary) SetInvalidSensorData(v *InvalidSensorData) *DataQualitySummary { + s.InvalidSensorData = v return s } -// SetDataOutputConfiguration sets the DataOutputConfiguration field's value. -func (s *CreateInferenceSchedulerInput) SetDataOutputConfiguration(v *InferenceOutputConfiguration) *CreateInferenceSchedulerInput { - s.DataOutputConfiguration = v +// SetMissingSensorData sets the MissingSensorData field's value. +func (s *DataQualitySummary) SetMissingSensorData(v *MissingSensorData) *DataQualitySummary { + s.MissingSensorData = v return s } -// SetDataUploadFrequency sets the DataUploadFrequency field's value. -func (s *CreateInferenceSchedulerInput) SetDataUploadFrequency(v string) *CreateInferenceSchedulerInput { - s.DataUploadFrequency = &v +// SetUnsupportedTimestamps sets the UnsupportedTimestamps field's value. +func (s *DataQualitySummary) SetUnsupportedTimestamps(v *UnsupportedTimestamps) *DataQualitySummary { + s.UnsupportedTimestamps = v return s } -// SetInferenceSchedulerName sets the InferenceSchedulerName field's value. -func (s *CreateInferenceSchedulerInput) SetInferenceSchedulerName(v string) *CreateInferenceSchedulerInput { - s.InferenceSchedulerName = &v - return s -} +// Provides information about the data schema used with the given dataset. +type DatasetSchema struct { + _ struct{} `type:"structure"` -// SetModelName sets the ModelName field's value. -func (s *CreateInferenceSchedulerInput) SetModelName(v string) *CreateInferenceSchedulerInput { - s.ModelName = &v - return s + InlineDataSchema aws.JSONValue `type:"jsonvalue"` } -// SetRoleArn sets the RoleArn field's value. -func (s *CreateInferenceSchedulerInput) SetRoleArn(v string) *CreateInferenceSchedulerInput { - s.RoleArn = &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 DatasetSchema) String() string { + return awsutil.Prettify(s) } -// SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. -func (s *CreateInferenceSchedulerInput) SetServerSideKmsKeyId(v string) *CreateInferenceSchedulerInput { - s.ServerSideKmsKeyId = &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 DatasetSchema) GoString() string { + return s.String() } -// SetTags sets the Tags field's value. -func (s *CreateInferenceSchedulerInput) SetTags(v []*Tag) *CreateInferenceSchedulerInput { - s.Tags = v +// SetInlineDataSchema sets the InlineDataSchema field's value. +func (s *DatasetSchema) SetInlineDataSchema(v aws.JSONValue) *DatasetSchema { + s.InlineDataSchema = v return s } -type CreateInferenceSchedulerOutput struct { +// Contains information about the specific data set, including name, ARN, and +// status. +type DatasetSummary struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the inference scheduler being created. - InferenceSchedulerArn *string `min:"20" type:"string"` + // The time at which the dataset was created in Amazon Lookout for Equipment. + CreatedAt *time.Time `type:"timestamp"` - // The name of inference scheduler being created. - InferenceSchedulerName *string `min:"1" type:"string"` + // The Amazon Resource Name (ARN) of the specified dataset. + DatasetArn *string `min:"20" type:"string"` - // Indicates the status of the CreateInferenceScheduler operation. - Status *string `type:"string" enum:"InferenceSchedulerStatus"` + // The name of the dataset. + DatasetName *string `min:"1" type:"string"` + + // Indicates the status of the dataset. + Status *string `type:"string" enum:"DatasetStatus"` } // String returns the string representation. @@ -4363,7 +6090,7 @@ type CreateInferenceSchedulerOutput 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 CreateInferenceSchedulerOutput) String() string { +func (s DatasetSummary) String() string { return awsutil.Prettify(s) } @@ -4372,55 +6099,41 @@ func (s CreateInferenceSchedulerOutput) 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 CreateInferenceSchedulerOutput) GoString() string { +func (s DatasetSummary) GoString() string { return s.String() } -// SetInferenceSchedulerArn sets the InferenceSchedulerArn field's value. -func (s *CreateInferenceSchedulerOutput) SetInferenceSchedulerArn(v string) *CreateInferenceSchedulerOutput { - s.InferenceSchedulerArn = &v +// SetCreatedAt sets the CreatedAt field's value. +func (s *DatasetSummary) SetCreatedAt(v time.Time) *DatasetSummary { + s.CreatedAt = &v return s } -// SetInferenceSchedulerName sets the InferenceSchedulerName field's value. -func (s *CreateInferenceSchedulerOutput) SetInferenceSchedulerName(v string) *CreateInferenceSchedulerOutput { - s.InferenceSchedulerName = &v +// SetDatasetArn sets the DatasetArn field's value. +func (s *DatasetSummary) SetDatasetArn(v string) *DatasetSummary { + s.DatasetArn = &v + return s +} + +// SetDatasetName sets the DatasetName field's value. +func (s *DatasetSummary) SetDatasetName(v string) *DatasetSummary { + s.DatasetName = &v return s } // SetStatus sets the Status field's value. -func (s *CreateInferenceSchedulerOutput) SetStatus(v string) *CreateInferenceSchedulerOutput { +func (s *DatasetSummary) SetStatus(v string) *DatasetSummary { s.Status = &v return s } -type CreateLabelGroupInput struct { +type DeleteDatasetInput struct { _ struct{} `type:"structure"` - // A unique identifier for the request to create a label group. If you do not - // set the client request token, Lookout for Equipment generates one. - ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` - - // The acceptable fault codes (indicating the type of anomaly associated with - // the label) that can be used with this label group. - // - // Data in this field will be retained for service usage. Follow best practices - // for the security of your data. - FaultCodes []*string `type:"list"` - - // Names a group of labels. - // - // Data in this field will be retained for service usage. Follow best practices - // for the security of your data. - // - // LabelGroupName is a required field - LabelGroupName *string `min:"1" type:"string" required:"true"` - - // Tags that provide metadata about the label group you are creating. + // The name of the dataset to be deleted. // - // Data in this field will be retained for service usage. Follow best practices - // for the security of your data. - Tags []*Tag `type:"list"` + // DatasetName is a required field + DatasetName *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4428,7 +6141,7 @@ type CreateLabelGroupInput 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 CreateLabelGroupInput) String() string { +func (s DeleteDatasetInput) String() string { return awsutil.Prettify(s) } @@ -4437,31 +6150,18 @@ func (s CreateLabelGroupInput) 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 CreateLabelGroupInput) GoString() string { +func (s DeleteDatasetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLabelGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLabelGroupInput"} - if s.ClientToken != nil && len(*s.ClientToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) - } - if s.LabelGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LabelGroupName")) - } - if s.LabelGroupName != nil && len(*s.LabelGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LabelGroupName", 1)) +func (s *DeleteDatasetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDatasetInput"} + if s.DatasetName == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetName")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.DatasetName != nil && len(*s.DatasetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) } if invalidParams.Len() > 0 { @@ -4470,40 +6170,14 @@ func (s *CreateLabelGroupInput) Validate() error { return nil } -// SetClientToken sets the ClientToken field's value. -func (s *CreateLabelGroupInput) SetClientToken(v string) *CreateLabelGroupInput { - s.ClientToken = &v - return s -} - -// SetFaultCodes sets the FaultCodes field's value. -func (s *CreateLabelGroupInput) SetFaultCodes(v []*string) *CreateLabelGroupInput { - s.FaultCodes = v - return s -} - -// SetLabelGroupName sets the LabelGroupName field's value. -func (s *CreateLabelGroupInput) SetLabelGroupName(v string) *CreateLabelGroupInput { - s.LabelGroupName = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateLabelGroupInput) SetTags(v []*Tag) *CreateLabelGroupInput { - s.Tags = v +// SetDatasetName sets the DatasetName field's value. +func (s *DeleteDatasetInput) SetDatasetName(v string) *DeleteDatasetInput { + s.DatasetName = &v return s } -type CreateLabelGroupOutput struct { +type DeleteDatasetOutput struct { _ struct{} `type:"structure"` - - // The ARN of the label group that you have created. - LabelGroupArn *string `min:"20" type:"string"` - - // The name of the label group that you have created. Data in this field will - // be retained for service usage. Follow best practices for the security of - // your data. - LabelGroupName *string `min:"1" type:"string"` } // String returns the string representation. @@ -4511,7 +6185,7 @@ type CreateLabelGroupOutput 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 CreateLabelGroupOutput) String() string { +func (s DeleteDatasetOutput) String() string { return awsutil.Prettify(s) } @@ -4520,70 +6194,17 @@ func (s CreateLabelGroupOutput) 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 CreateLabelGroupOutput) GoString() string { +func (s DeleteDatasetOutput) GoString() string { return s.String() } -// SetLabelGroupArn sets the LabelGroupArn field's value. -func (s *CreateLabelGroupOutput) SetLabelGroupArn(v string) *CreateLabelGroupOutput { - s.LabelGroupArn = &v - return s -} - -// SetLabelGroupName sets the LabelGroupName field's value. -func (s *CreateLabelGroupOutput) SetLabelGroupName(v string) *CreateLabelGroupOutput { - s.LabelGroupName = &v - return s -} - -type CreateLabelInput struct { +type DeleteInferenceSchedulerInput struct { _ struct{} `type:"structure"` - // A unique identifier for the request to create a label. If you do not set - // the client request token, Lookout for Equipment generates one. - ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` - - // The end time of the labeled event. - // - // EndTime is a required field - EndTime *time.Time `type:"timestamp" required:"true"` - - // Indicates that a label pertains to a particular piece of equipment. - // - // Data in this field will be retained for service usage. Follow best practices - // for the security of your data. - Equipment *string `min:"1" type:"string"` - - // Provides additional information about the label. The fault code must be defined - // in the FaultCodes attribute of the label group. - // - // Data in this field will be retained for service usage. Follow best practices - // for the security of your data. - FaultCode *string `min:"1" type:"string"` - - // The name of a group of labels. - // - // Data in this field will be retained for service usage. Follow best practices - // for the security of your data. - // - // LabelGroupName is a required field - LabelGroupName *string `min:"1" type:"string" required:"true"` - - // Metadata providing additional information about the label. - // - // Data in this field will be retained for service usage. Follow best practices - // for the security of your data. - Notes *string `min:"1" type:"string"` - - // Indicates whether a labeled event represents an anomaly. - // - // Rating is a required field - Rating *string `type:"string" required:"true" enum:"LabelRating"` - - // The start time of the labeled event. + // The name of the inference scheduler to be deleted. // - // StartTime is a required field - StartTime *time.Time `type:"timestamp" required:"true"` + // InferenceSchedulerName is a required field + InferenceSchedulerName *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4591,7 +6212,7 @@ type CreateLabelInput 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 CreateLabelInput) String() string { +func (s DeleteInferenceSchedulerInput) String() string { return awsutil.Prettify(s) } @@ -4600,100 +6221,34 @@ func (s CreateLabelInput) 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 CreateLabelInput) GoString() string { +func (s DeleteInferenceSchedulerInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLabelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLabelInput"} - if s.ClientToken != nil && len(*s.ClientToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) - } - if s.EndTime == nil { - invalidParams.Add(request.NewErrParamRequired("EndTime")) - } - if s.Equipment != nil && len(*s.Equipment) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Equipment", 1)) - } - if s.FaultCode != nil && len(*s.FaultCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FaultCode", 1)) - } - if s.LabelGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LabelGroupName")) - } - if s.LabelGroupName != nil && len(*s.LabelGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LabelGroupName", 1)) - } - if s.Notes != nil && len(*s.Notes) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Notes", 1)) - } - if s.Rating == nil { - invalidParams.Add(request.NewErrParamRequired("Rating")) - } - if s.StartTime == nil { - invalidParams.Add(request.NewErrParamRequired("StartTime")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetClientToken sets the ClientToken field's value. -func (s *CreateLabelInput) SetClientToken(v string) *CreateLabelInput { - s.ClientToken = &v - return s -} - -// SetEndTime sets the EndTime field's value. -func (s *CreateLabelInput) SetEndTime(v time.Time) *CreateLabelInput { - s.EndTime = &v - return s -} - -// SetEquipment sets the Equipment field's value. -func (s *CreateLabelInput) SetEquipment(v string) *CreateLabelInput { - s.Equipment = &v - return s -} - -// SetFaultCode sets the FaultCode field's value. -func (s *CreateLabelInput) SetFaultCode(v string) *CreateLabelInput { - s.FaultCode = &v - return s -} - -// SetLabelGroupName sets the LabelGroupName field's value. -func (s *CreateLabelInput) SetLabelGroupName(v string) *CreateLabelInput { - s.LabelGroupName = &v - return s -} - -// SetNotes sets the Notes field's value. -func (s *CreateLabelInput) SetNotes(v string) *CreateLabelInput { - s.Notes = &v - return s -} +func (s *DeleteInferenceSchedulerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteInferenceSchedulerInput"} + if s.InferenceSchedulerName == nil { + invalidParams.Add(request.NewErrParamRequired("InferenceSchedulerName")) + } + if s.InferenceSchedulerName != nil && len(*s.InferenceSchedulerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InferenceSchedulerName", 1)) + } -// SetRating sets the Rating field's value. -func (s *CreateLabelInput) SetRating(v string) *CreateLabelInput { - s.Rating = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetStartTime sets the StartTime field's value. -func (s *CreateLabelInput) SetStartTime(v time.Time) *CreateLabelInput { - s.StartTime = &v +// SetInferenceSchedulerName sets the InferenceSchedulerName field's value. +func (s *DeleteInferenceSchedulerInput) SetInferenceSchedulerName(v string) *DeleteInferenceSchedulerInput { + s.InferenceSchedulerName = &v return s } -type CreateLabelOutput struct { +type DeleteInferenceSchedulerOutput struct { _ struct{} `type:"structure"` - - // The ID of the label that you have created. - LabelId *string `type:"string"` } // String returns the string representation. @@ -4701,7 +6256,7 @@ type CreateLabelOutput 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 CreateLabelOutput) String() string { +func (s DeleteInferenceSchedulerOutput) String() string { return awsutil.Prettify(s) } @@ -4710,83 +6265,19 @@ func (s CreateLabelOutput) 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 CreateLabelOutput) GoString() string { +func (s DeleteInferenceSchedulerOutput) GoString() string { return s.String() } -// SetLabelId sets the LabelId field's value. -func (s *CreateLabelOutput) SetLabelId(v string) *CreateLabelOutput { - s.LabelId = &v - return s -} - -type CreateModelInput struct { +type DeleteLabelGroupInput struct { _ struct{} `type:"structure"` - // A unique identifier for the request. If you do not set the client request - // token, Amazon Lookout for Equipment generates one. - ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` - - // The configuration is the TargetSamplingRate, which is the sampling rate of - // the data after post processing by Amazon Lookout for Equipment. For example, - // if you provide data that has been collected at a 1 second level and you want - // the system to resample the data at a 1 minute rate before training, the TargetSamplingRate - // is 1 minute. - // - // When providing a value for the TargetSamplingRate, you must attach the prefix - // "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, - // the value for a 15 minute rate is PT15M, and the value for a 1 hour rate - // is PT1H - DataPreProcessingConfiguration *DataPreProcessingConfiguration `type:"structure"` - - // The name of the dataset for the ML model being created. - // - // DatasetName is a required field - DatasetName *string `min:"1" type:"string" required:"true"` - - // The data schema for the ML model being created. - DatasetSchema *DatasetSchema `type:"structure"` - - // Indicates the time reference in the dataset that should be used to end the - // subset of evaluation data for the ML model. - EvaluationDataEndTime *time.Time `type:"timestamp"` - - // Indicates the time reference in the dataset that should be used to begin - // the subset of evaluation data for the ML model. - EvaluationDataStartTime *time.Time `type:"timestamp"` - - // The input configuration for the labels being used for the ML model that's - // being created. - LabelsInputConfiguration *LabelsInputConfiguration `type:"structure"` - - // The name for the ML model to be created. + // The name of the label group that you want to delete. Data in this field will + // be retained for service usage. Follow best practices for the security of + // your data. // - // ModelName is a required field - ModelName *string `min:"1" type:"string" required:"true"` - - // Indicates that the asset associated with this sensor has been shut off. As - // long as this condition is met, Lookout for Equipment will not use data from - // this asset for training, evaluation, or inference. - OffCondition *string `min:"1" type:"string"` - - // The Amazon Resource Name (ARN) of a role with permission to access the data - // source being used to create the ML model. - RoleArn *string `min:"20" type:"string"` - - // Provides the identifier of the KMS key used to encrypt model data by Amazon - // Lookout for Equipment. - ServerSideKmsKeyId *string `min:"1" type:"string"` - - // Any tags associated with the ML model being created. - Tags []*Tag `type:"list"` - - // Indicates the time reference in the dataset that should be used to end the - // subset of training data for the ML model. - TrainingDataEndTime *time.Time `type:"timestamp"` - - // Indicates the time reference in the dataset that should be used to begin - // the subset of training data for the ML model. - TrainingDataStartTime *time.Time `type:"timestamp"` + // LabelGroupName is a required field + LabelGroupName *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4794,7 +6285,7 @@ type CreateModelInput 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 CreateModelInput) String() string { +func (s DeleteLabelGroupInput) String() string { return awsutil.Prettify(s) } @@ -4803,51 +6294,18 @@ func (s CreateModelInput) 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 CreateModelInput) GoString() string { +func (s DeleteLabelGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateModelInput"} - if s.ClientToken != nil && len(*s.ClientToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) - } - if s.DatasetName == nil { - invalidParams.Add(request.NewErrParamRequired("DatasetName")) - } - if s.DatasetName != nil && len(*s.DatasetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) - } - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - if s.ModelName != nil && len(*s.ModelName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) - } - if s.OffCondition != nil && len(*s.OffCondition) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OffCondition", 1)) - } - if s.RoleArn != nil && len(*s.RoleArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) - } - if s.ServerSideKmsKeyId != nil && len(*s.ServerSideKmsKeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServerSideKmsKeyId", 1)) - } - if s.LabelsInputConfiguration != nil { - if err := s.LabelsInputConfiguration.Validate(); err != nil { - invalidParams.AddNested("LabelsInputConfiguration", err.(request.ErrInvalidParams)) - } +func (s *DeleteLabelGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLabelGroupInput"} + if s.LabelGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("LabelGroupName")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.LabelGroupName != nil && len(*s.LabelGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LabelGroupName", 1)) } if invalidParams.Len() > 0 { @@ -4856,98 +6314,128 @@ func (s *CreateModelInput) Validate() error { return nil } -// SetClientToken sets the ClientToken field's value. -func (s *CreateModelInput) SetClientToken(v string) *CreateModelInput { - s.ClientToken = &v +// SetLabelGroupName sets the LabelGroupName field's value. +func (s *DeleteLabelGroupInput) SetLabelGroupName(v string) *DeleteLabelGroupInput { + s.LabelGroupName = &v return s } -// SetDataPreProcessingConfiguration sets the DataPreProcessingConfiguration field's value. -func (s *CreateModelInput) SetDataPreProcessingConfiguration(v *DataPreProcessingConfiguration) *CreateModelInput { - s.DataPreProcessingConfiguration = v - return s +type DeleteLabelGroupOutput struct { + _ struct{} `type:"structure"` } -// SetDatasetName sets the DatasetName field's value. -func (s *CreateModelInput) SetDatasetName(v string) *CreateModelInput { - s.DatasetName = &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 DeleteLabelGroupOutput) String() string { + return awsutil.Prettify(s) } -// SetDatasetSchema sets the DatasetSchema field's value. -func (s *CreateModelInput) SetDatasetSchema(v *DatasetSchema) *CreateModelInput { - s.DatasetSchema = 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 DeleteLabelGroupOutput) GoString() string { + return s.String() } -// SetEvaluationDataEndTime sets the EvaluationDataEndTime field's value. -func (s *CreateModelInput) SetEvaluationDataEndTime(v time.Time) *CreateModelInput { - s.EvaluationDataEndTime = &v - return s -} +type DeleteLabelInput struct { + _ struct{} `type:"structure"` -// SetEvaluationDataStartTime sets the EvaluationDataStartTime field's value. -func (s *CreateModelInput) SetEvaluationDataStartTime(v time.Time) *CreateModelInput { - s.EvaluationDataStartTime = &v - return s + // The name of the label group that contains the label that you want to delete. + // Data in this field will be retained for service usage. Follow best practices + // for the security of your data. + // + // LabelGroupName is a required field + LabelGroupName *string `min:"1" type:"string" required:"true"` + + // The ID of the label that you want to delete. + // + // LabelId is a required field + LabelId *string `type:"string" required:"true"` } -// SetLabelsInputConfiguration sets the LabelsInputConfiguration field's value. -func (s *CreateModelInput) SetLabelsInputConfiguration(v *LabelsInputConfiguration) *CreateModelInput { - s.LabelsInputConfiguration = 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 DeleteLabelInput) String() string { + return awsutil.Prettify(s) } -// SetModelName sets the ModelName field's value. -func (s *CreateModelInput) SetModelName(v string) *CreateModelInput { - s.ModelName = &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 DeleteLabelInput) GoString() string { + return s.String() } -// SetOffCondition sets the OffCondition field's value. -func (s *CreateModelInput) SetOffCondition(v string) *CreateModelInput { - s.OffCondition = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLabelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLabelInput"} + if s.LabelGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("LabelGroupName")) + } + if s.LabelGroupName != nil && len(*s.LabelGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LabelGroupName", 1)) + } + if s.LabelId == nil { + invalidParams.Add(request.NewErrParamRequired("LabelId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetRoleArn sets the RoleArn field's value. -func (s *CreateModelInput) SetRoleArn(v string) *CreateModelInput { - s.RoleArn = &v +// SetLabelGroupName sets the LabelGroupName field's value. +func (s *DeleteLabelInput) SetLabelGroupName(v string) *DeleteLabelInput { + s.LabelGroupName = &v return s } -// SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. -func (s *CreateModelInput) SetServerSideKmsKeyId(v string) *CreateModelInput { - s.ServerSideKmsKeyId = &v +// SetLabelId sets the LabelId field's value. +func (s *DeleteLabelInput) SetLabelId(v string) *DeleteLabelInput { + s.LabelId = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateModelInput) SetTags(v []*Tag) *CreateModelInput { - s.Tags = v - return s +type DeleteLabelOutput struct { + _ struct{} `type:"structure"` } -// SetTrainingDataEndTime sets the TrainingDataEndTime field's value. -func (s *CreateModelInput) SetTrainingDataEndTime(v time.Time) *CreateModelInput { - s.TrainingDataEndTime = &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 DeleteLabelOutput) String() string { + return awsutil.Prettify(s) } -// SetTrainingDataStartTime sets the TrainingDataStartTime field's value. -func (s *CreateModelInput) SetTrainingDataStartTime(v time.Time) *CreateModelInput { - s.TrainingDataStartTime = &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 DeleteLabelOutput) GoString() string { + return s.String() } -type CreateModelOutput struct { +type DeleteModelInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the model being created. - ModelArn *string `min:"20" type:"string"` - - // Indicates the status of the CreateModel operation. - Status *string `type:"string" enum:"ModelStatus"` + // The name of the ML model to be deleted. + // + // ModelName is a required field + ModelName *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -4955,7 +6443,7 @@ type CreateModelOutput 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 CreateModelOutput) String() string { +func (s DeleteModelInput) String() string { return awsutil.Prettify(s) } @@ -4964,43 +6452,62 @@ func (s CreateModelOutput) 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 CreateModelOutput) GoString() string { +func (s DeleteModelInput) GoString() string { return s.String() } -// SetModelArn sets the ModelArn field's value. -func (s *CreateModelOutput) SetModelArn(v string) *CreateModelOutput { - s.ModelArn = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteModelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteModelInput"} + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) + } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetStatus sets the Status field's value. -func (s *CreateModelOutput) SetStatus(v string) *CreateModelOutput { - s.Status = &v +// SetModelName sets the ModelName field's value. +func (s *DeleteModelInput) SetModelName(v string) *DeleteModelInput { + s.ModelName = &v return s } -// Provides information about a specified data ingestion job, including dataset -// information, data ingestion configuration, and status. -type DataIngestionJobSummary struct { +type DeleteModelOutput struct { _ struct{} `type:"structure"` +} - // The Amazon Resource Name (ARN) of the dataset used in the data ingestion - // job. - DatasetArn *string `min:"20" type:"string"` - - // The name of the dataset used for the data ingestion job. - DatasetName *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 DeleteModelOutput) String() string { + return awsutil.Prettify(s) +} - // Specifies information for the input data for the data inference job, including - // data Amazon S3 location parameters. - IngestionInputConfiguration *IngestionInputConfiguration `type:"structure"` +// 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 DeleteModelOutput) GoString() string { + return s.String() +} - // Indicates the job ID of the data ingestion job. - JobId *string `type:"string"` +type DeleteResourcePolicyInput struct { + _ struct{} `type:"structure"` - // Indicates the status of the data ingestion job. - Status *string `type:"string" enum:"IngestionJobStatus"` + // The Amazon Resource Name (ARN) of the resource for which the resource policy + // should be deleted. + // + // ResourceArn is a required field + ResourceArn *string `min:"20" type:"string" required:"true"` } // String returns the string representation. @@ -5008,7 +6515,7 @@ type DataIngestionJobSummary 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 DataIngestionJobSummary) String() string { +func (s DeleteResourcePolicyInput) String() string { return awsutil.Prettify(s) } @@ -5017,63 +6524,61 @@ func (s DataIngestionJobSummary) 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 DataIngestionJobSummary) GoString() string { +func (s DeleteResourcePolicyInput) GoString() string { return s.String() } -// SetDatasetArn sets the DatasetArn field's value. -func (s *DataIngestionJobSummary) SetDatasetArn(v string) *DataIngestionJobSummary { - s.DatasetArn = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteResourcePolicyInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20)) + } -// SetDatasetName sets the DatasetName field's value. -func (s *DataIngestionJobSummary) SetDatasetName(v string) *DataIngestionJobSummary { - s.DatasetName = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetIngestionInputConfiguration sets the IngestionInputConfiguration field's value. -func (s *DataIngestionJobSummary) SetIngestionInputConfiguration(v *IngestionInputConfiguration) *DataIngestionJobSummary { - s.IngestionInputConfiguration = v +// SetResourceArn sets the ResourceArn field's value. +func (s *DeleteResourcePolicyInput) SetResourceArn(v string) *DeleteResourcePolicyInput { + s.ResourceArn = &v return s } -// SetJobId sets the JobId field's value. -func (s *DataIngestionJobSummary) SetJobId(v string) *DataIngestionJobSummary { - s.JobId = &v - return s +type DeleteResourcePolicyOutput struct { + _ struct{} `type:"structure"` } -// SetStatus sets the Status field's value. -func (s *DataIngestionJobSummary) SetStatus(v string) *DataIngestionJobSummary { - s.Status = &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 DeleteResourcePolicyOutput) String() string { + return awsutil.Prettify(s) } -// The configuration is the TargetSamplingRate, which is the sampling rate of -// the data after post processing by Amazon Lookout for Equipment. For example, -// if you provide data that has been collected at a 1 second level and you want -// the system to resample the data at a 1 minute rate before training, the TargetSamplingRate -// is 1 minute. +// GoString returns the string representation. // -// When providing a value for the TargetSamplingRate, you must attach the prefix -// "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, -// the value for a 15 minute rate is PT15M, and the value for a 1 hour rate -// is PT1H -type DataPreProcessingConfiguration 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 DeleteResourcePolicyOutput) GoString() string { + return s.String() +} + +type DescribeDataIngestionJobInput struct { _ struct{} `type:"structure"` - // The sampling rate of the data after post processing by Amazon Lookout for - // Equipment. For example, if you provide data that has been collected at a - // 1 second level and you want the system to resample the data at a 1 minute - // rate before training, the TargetSamplingRate is 1 minute. + // The job ID of the data ingestion job. // - // When providing a value for the TargetSamplingRate, you must attach the prefix - // "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, - // the value for a 15 minute rate is PT15M, and the value for a 1 hour rate - // is PT1H - TargetSamplingRate *string `type:"string" enum:"TargetSamplingRate"` + // JobId is a required field + JobId *string `type:"string" required:"true"` } // String returns the string representation. @@ -5081,7 +6586,7 @@ type DataPreProcessingConfiguration 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 DataPreProcessingConfiguration) String() string { +func (s DescribeDataIngestionJobInput) String() string { return awsutil.Prettify(s) } @@ -5090,53 +6595,82 @@ func (s DataPreProcessingConfiguration) 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 DataPreProcessingConfiguration) GoString() string { +func (s DescribeDataIngestionJobInput) GoString() string { return s.String() } -// SetTargetSamplingRate sets the TargetSamplingRate field's value. -func (s *DataPreProcessingConfiguration) SetTargetSamplingRate(v string) *DataPreProcessingConfiguration { - s.TargetSamplingRate = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDataIngestionJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDataIngestionJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *DescribeDataIngestionJobInput) SetJobId(v string) *DescribeDataIngestionJobInput { + s.JobId = &v return s } -// DataQualitySummary gives aggregated statistics over all the sensors about -// a completed ingestion job. It primarily gives more information about statistics -// over different incorrect data like MissingCompleteSensorData, MissingSensorData, -// UnsupportedDateFormats, InsufficientSensorData, DuplicateTimeStamps. -type DataQualitySummary struct { +type DescribeDataIngestionJobOutput struct { _ struct{} `type:"structure"` - // Parameter that gives information about duplicate timestamps in the input - // data. - // - // DuplicateTimestamps is a required field - DuplicateTimestamps *DuplicateTimestamps `type:"structure" required:"true"` + // The time at which the data ingestion job was created. + CreatedAt *time.Time `type:"timestamp"` - // Parameter that gives information about insufficient data for sensors in the - // dataset. This includes information about those sensors that have complete - // data missing and those with a short date range. - // - // InsufficientSensorData is a required field - InsufficientSensorData *InsufficientSensorData `type:"structure" required:"true"` + // Indicates the latest timestamp corresponding to data that was successfully + // ingested during this specific ingestion job. + DataEndTime *time.Time `type:"timestamp"` + + // Gives statistics about a completed ingestion job. These statistics primarily + // relate to quantifying incorrect data such as MissingCompleteSensorData, MissingSensorData, + // UnsupportedDateFormats, InsufficientSensorData, and DuplicateTimeStamps. + DataQualitySummary *DataQualitySummary `type:"structure"` + + // Indicates the earliest timestamp corresponding to data that was successfully + // ingested during this specific ingestion job. + DataStartTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the dataset being used in the data ingestion + // job. + DatasetArn *string `min:"20" type:"string"` + + // Specifies the reason for failure when a data ingestion job has failed. + FailedReason *string `min:"1" type:"string"` + + // Indicates the size of the ingested dataset. + IngestedDataSize *int64 `type:"long"` + + // Gives statistics about how many files have been ingested, and which files + // have not been ingested, for a particular ingestion job. + IngestedFilesSummary *IngestedFilesSummary `type:"structure"` + + // Specifies the S3 location configuration for the data input for the data ingestion + // job. + IngestionInputConfiguration *IngestionInputConfiguration `type:"structure"` + + // Indicates the job ID of the data ingestion job. + JobId *string `type:"string"` - // Parameter that gives information about data that is invalid over all the - // sensors in the input data. - // - // InvalidSensorData is a required field - InvalidSensorData *InvalidSensorData `type:"structure" required:"true"` + // The Amazon Resource Name (ARN) of an IAM role with permission to access the + // data source being ingested. + RoleArn *string `min:"20" type:"string"` - // Parameter that gives information about data that is missing over all the - // sensors in the input data. - // - // MissingSensorData is a required field - MissingSensorData *MissingSensorData `type:"structure" required:"true"` + // The Amazon Resource Name (ARN) of the source dataset from which the data + // used for the data ingestion job was imported from. + SourceDatasetArn *string `min:"20" type:"string"` - // Parameter that gives information about unsupported timestamps in the input - // data. - // - // UnsupportedTimestamps is a required field - UnsupportedTimestamps *UnsupportedTimestamps `type:"structure" required:"true"` + // Indicates the status of the DataIngestionJob operation. + Status *string `type:"string" enum:"IngestionJobStatus"` + + // Provides details about status of the ingestion job that is currently in progress. + StatusDetail *string `min:"1" type:"string"` } // String returns the string representation. @@ -5144,7 +6678,7 @@ type DataQualitySummary 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 DataQualitySummary) String() string { +func (s DescribeDataIngestionJobOutput) String() string { return awsutil.Prettify(s) } @@ -5153,45 +6687,101 @@ func (s DataQualitySummary) 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 DataQualitySummary) GoString() string { +func (s DescribeDataIngestionJobOutput) GoString() string { return s.String() } -// SetDuplicateTimestamps sets the DuplicateTimestamps field's value. -func (s *DataQualitySummary) SetDuplicateTimestamps(v *DuplicateTimestamps) *DataQualitySummary { - s.DuplicateTimestamps = v +// SetCreatedAt sets the CreatedAt field's value. +func (s *DescribeDataIngestionJobOutput) SetCreatedAt(v time.Time) *DescribeDataIngestionJobOutput { + s.CreatedAt = &v return s } -// SetInsufficientSensorData sets the InsufficientSensorData field's value. -func (s *DataQualitySummary) SetInsufficientSensorData(v *InsufficientSensorData) *DataQualitySummary { - s.InsufficientSensorData = v +// SetDataEndTime sets the DataEndTime field's value. +func (s *DescribeDataIngestionJobOutput) SetDataEndTime(v time.Time) *DescribeDataIngestionJobOutput { + s.DataEndTime = &v return s } -// SetInvalidSensorData sets the InvalidSensorData field's value. -func (s *DataQualitySummary) SetInvalidSensorData(v *InvalidSensorData) *DataQualitySummary { - s.InvalidSensorData = v +// SetDataQualitySummary sets the DataQualitySummary field's value. +func (s *DescribeDataIngestionJobOutput) SetDataQualitySummary(v *DataQualitySummary) *DescribeDataIngestionJobOutput { + s.DataQualitySummary = v return s } -// SetMissingSensorData sets the MissingSensorData field's value. -func (s *DataQualitySummary) SetMissingSensorData(v *MissingSensorData) *DataQualitySummary { - s.MissingSensorData = v +// SetDataStartTime sets the DataStartTime field's value. +func (s *DescribeDataIngestionJobOutput) SetDataStartTime(v time.Time) *DescribeDataIngestionJobOutput { + s.DataStartTime = &v return s } -// SetUnsupportedTimestamps sets the UnsupportedTimestamps field's value. -func (s *DataQualitySummary) SetUnsupportedTimestamps(v *UnsupportedTimestamps) *DataQualitySummary { - s.UnsupportedTimestamps = v +// SetDatasetArn sets the DatasetArn field's value. +func (s *DescribeDataIngestionJobOutput) SetDatasetArn(v string) *DescribeDataIngestionJobOutput { + s.DatasetArn = &v return s } -// Provides information about the data schema used with the given dataset. -type DatasetSchema struct { +// SetFailedReason sets the FailedReason field's value. +func (s *DescribeDataIngestionJobOutput) SetFailedReason(v string) *DescribeDataIngestionJobOutput { + s.FailedReason = &v + return s +} + +// SetIngestedDataSize sets the IngestedDataSize field's value. +func (s *DescribeDataIngestionJobOutput) SetIngestedDataSize(v int64) *DescribeDataIngestionJobOutput { + s.IngestedDataSize = &v + return s +} + +// SetIngestedFilesSummary sets the IngestedFilesSummary field's value. +func (s *DescribeDataIngestionJobOutput) SetIngestedFilesSummary(v *IngestedFilesSummary) *DescribeDataIngestionJobOutput { + s.IngestedFilesSummary = v + return s +} + +// SetIngestionInputConfiguration sets the IngestionInputConfiguration field's value. +func (s *DescribeDataIngestionJobOutput) SetIngestionInputConfiguration(v *IngestionInputConfiguration) *DescribeDataIngestionJobOutput { + s.IngestionInputConfiguration = v + return s +} + +// SetJobId sets the JobId field's value. +func (s *DescribeDataIngestionJobOutput) SetJobId(v string) *DescribeDataIngestionJobOutput { + s.JobId = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeDataIngestionJobOutput) SetRoleArn(v string) *DescribeDataIngestionJobOutput { + s.RoleArn = &v + return s +} + +// SetSourceDatasetArn sets the SourceDatasetArn field's value. +func (s *DescribeDataIngestionJobOutput) SetSourceDatasetArn(v string) *DescribeDataIngestionJobOutput { + s.SourceDatasetArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeDataIngestionJobOutput) SetStatus(v string) *DescribeDataIngestionJobOutput { + s.Status = &v + return s +} + +// SetStatusDetail sets the StatusDetail field's value. +func (s *DescribeDataIngestionJobOutput) SetStatusDetail(v string) *DescribeDataIngestionJobOutput { + s.StatusDetail = &v + return s +} + +type DescribeDatasetInput struct { _ struct{} `type:"structure"` - InlineDataSchema aws.JSONValue `type:"jsonvalue"` + // The name of the dataset to be described. + // + // DatasetName is a required field + DatasetName *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5199,7 +6789,7 @@ type DatasetSchema 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 DatasetSchema) String() string { +func (s DescribeDatasetInput) String() string { return awsutil.Prettify(s) } @@ -5208,30 +6798,85 @@ func (s DatasetSchema) 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 DatasetSchema) GoString() string { +func (s DescribeDatasetInput) GoString() string { return s.String() } -// SetInlineDataSchema sets the InlineDataSchema field's value. -func (s *DatasetSchema) SetInlineDataSchema(v aws.JSONValue) *DatasetSchema { - s.InlineDataSchema = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDatasetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDatasetInput"} + if s.DatasetName == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetName")) + } + if s.DatasetName != nil && len(*s.DatasetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDatasetName sets the DatasetName field's value. +func (s *DescribeDatasetInput) SetDatasetName(v string) *DescribeDatasetInput { + s.DatasetName = &v return s } -// Contains information about the specific data set, including name, ARN, and -// status. -type DatasetSummary struct { +type DescribeDatasetOutput struct { _ struct{} `type:"structure"` - // The time at which the dataset was created in Amazon Lookout for Equipment. + // Specifies the time the dataset was created in Lookout for Equipment. CreatedAt *time.Time `type:"timestamp"` - // The Amazon Resource Name (ARN) of the specified dataset. + // Indicates the latest timestamp corresponding to data that was successfully + // ingested during the most recent ingestion of this particular dataset. + DataEndTime *time.Time `type:"timestamp"` + + // Gives statistics associated with the given dataset for the latest successful + // associated ingestion job id. These statistics primarily relate to quantifying + // incorrect data such as MissingCompleteSensorData, MissingSensorData, UnsupportedDateFormats, + // InsufficientSensorData, and DuplicateTimeStamps. + DataQualitySummary *DataQualitySummary `type:"structure"` + + // Indicates the earliest timestamp corresponding to data that was successfully + // ingested during the most recent ingestion of this particular dataset. + DataStartTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the dataset being described. DatasetArn *string `min:"20" type:"string"` - // The name of the dataset. + // The name of the dataset being described. DatasetName *string `min:"1" type:"string"` + // IngestedFilesSummary associated with the given dataset for the latest successful + // associated ingestion job id. + IngestedFilesSummary *IngestedFilesSummary `type:"structure"` + + // Specifies the S3 location configuration for the data input for the data ingestion + // job. + IngestionInputConfiguration *IngestionInputConfiguration `type:"structure"` + + // Specifies the time the dataset was last updated, if it was. + LastUpdatedAt *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the IAM role that you are using for this + // the data ingestion job. + RoleArn *string `min:"20" type:"string"` + + // A JSON description of the data that is in each time series dataset, including + // names, column names, and data types. + Schema aws.JSONValue `type:"jsonvalue"` + + // Provides the identifier of the KMS key used to encrypt dataset data by Amazon + // Lookout for Equipment. + ServerSideKmsKeyId *string `min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the source dataset from which the current + // data being described was imported from. + SourceDatasetArn *string `min:"20" type:"string"` + // Indicates the status of the dataset. Status *string `type:"string" enum:"DatasetStatus"` } @@ -5241,7 +6886,7 @@ type DatasetSummary 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 DatasetSummary) String() string { +func (s DescribeDatasetOutput) String() string { return awsutil.Prettify(s) } @@ -5250,109 +6895,98 @@ func (s DatasetSummary) 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 DatasetSummary) GoString() string { +func (s DescribeDatasetOutput) GoString() string { return s.String() } // SetCreatedAt sets the CreatedAt field's value. -func (s *DatasetSummary) SetCreatedAt(v time.Time) *DatasetSummary { +func (s *DescribeDatasetOutput) SetCreatedAt(v time.Time) *DescribeDatasetOutput { s.CreatedAt = &v return s } +// SetDataEndTime sets the DataEndTime field's value. +func (s *DescribeDatasetOutput) SetDataEndTime(v time.Time) *DescribeDatasetOutput { + s.DataEndTime = &v + return s +} + +// SetDataQualitySummary sets the DataQualitySummary field's value. +func (s *DescribeDatasetOutput) SetDataQualitySummary(v *DataQualitySummary) *DescribeDatasetOutput { + s.DataQualitySummary = v + return s +} + +// SetDataStartTime sets the DataStartTime field's value. +func (s *DescribeDatasetOutput) SetDataStartTime(v time.Time) *DescribeDatasetOutput { + s.DataStartTime = &v + return s +} + // SetDatasetArn sets the DatasetArn field's value. -func (s *DatasetSummary) SetDatasetArn(v string) *DatasetSummary { +func (s *DescribeDatasetOutput) SetDatasetArn(v string) *DescribeDatasetOutput { s.DatasetArn = &v return s } // SetDatasetName sets the DatasetName field's value. -func (s *DatasetSummary) SetDatasetName(v string) *DatasetSummary { +func (s *DescribeDatasetOutput) SetDatasetName(v string) *DescribeDatasetOutput { s.DatasetName = &v return s } -// SetStatus sets the Status field's value. -func (s *DatasetSummary) SetStatus(v string) *DatasetSummary { - s.Status = &v +// SetIngestedFilesSummary sets the IngestedFilesSummary field's value. +func (s *DescribeDatasetOutput) SetIngestedFilesSummary(v *IngestedFilesSummary) *DescribeDatasetOutput { + s.IngestedFilesSummary = v return s } -type DeleteDatasetInput struct { - _ struct{} `type:"structure"` - - // The name of the dataset to be deleted. - // - // DatasetName is a required field - DatasetName *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 DeleteDatasetInput) String() string { - return awsutil.Prettify(s) +// SetIngestionInputConfiguration sets the IngestionInputConfiguration field's value. +func (s *DescribeDatasetOutput) SetIngestionInputConfiguration(v *IngestionInputConfiguration) *DescribeDatasetOutput { + s.IngestionInputConfiguration = 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 DeleteDatasetInput) GoString() string { - return s.String() +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *DescribeDatasetOutput) SetLastUpdatedAt(v time.Time) *DescribeDatasetOutput { + s.LastUpdatedAt = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDatasetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDatasetInput"} - if s.DatasetName == nil { - invalidParams.Add(request.NewErrParamRequired("DatasetName")) - } - if s.DatasetName != nil && len(*s.DatasetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeDatasetOutput) SetRoleArn(v string) *DescribeDatasetOutput { + s.RoleArn = &v + return s } -// SetDatasetName sets the DatasetName field's value. -func (s *DeleteDatasetInput) SetDatasetName(v string) *DeleteDatasetInput { - s.DatasetName = &v +// SetSchema sets the Schema field's value. +func (s *DescribeDatasetOutput) SetSchema(v aws.JSONValue) *DescribeDatasetOutput { + s.Schema = v return s } -type DeleteDatasetOutput struct { - _ struct{} `type:"structure"` +// SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. +func (s *DescribeDatasetOutput) SetServerSideKmsKeyId(v string) *DescribeDatasetOutput { + s.ServerSideKmsKeyId = &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 DeleteDatasetOutput) String() string { - return awsutil.Prettify(s) +// SetSourceDatasetArn sets the SourceDatasetArn field's value. +func (s *DescribeDatasetOutput) SetSourceDatasetArn(v string) *DescribeDatasetOutput { + s.SourceDatasetArn = &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 DeleteDatasetOutput) GoString() string { - return s.String() +// SetStatus sets the Status field's value. +func (s *DescribeDatasetOutput) SetStatus(v string) *DescribeDatasetOutput { + s.Status = &v + return s } -type DeleteInferenceSchedulerInput struct { +type DescribeInferenceSchedulerInput struct { _ struct{} `type:"structure"` - // The name of the inference scheduler to be deleted. + // The name of the inference scheduler being described. // // InferenceSchedulerName is a required field InferenceSchedulerName *string `min:"1" type:"string" required:"true"` @@ -5363,7 +6997,7 @@ type DeleteInferenceSchedulerInput 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 DeleteInferenceSchedulerInput) String() string { +func (s DescribeInferenceSchedulerInput) String() string { return awsutil.Prettify(s) } @@ -5372,13 +7006,13 @@ func (s DeleteInferenceSchedulerInput) 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 DeleteInferenceSchedulerInput) GoString() string { +func (s DescribeInferenceSchedulerInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteInferenceSchedulerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteInferenceSchedulerInput"} +func (s *DescribeInferenceSchedulerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeInferenceSchedulerInput"} if s.InferenceSchedulerName == nil { invalidParams.Add(request.NewErrParamRequired("InferenceSchedulerName")) } @@ -5393,13 +7027,74 @@ func (s *DeleteInferenceSchedulerInput) Validate() error { } // SetInferenceSchedulerName sets the InferenceSchedulerName field's value. -func (s *DeleteInferenceSchedulerInput) SetInferenceSchedulerName(v string) *DeleteInferenceSchedulerInput { +func (s *DescribeInferenceSchedulerInput) SetInferenceSchedulerName(v string) *DescribeInferenceSchedulerInput { s.InferenceSchedulerName = &v return s } -type DeleteInferenceSchedulerOutput struct { +type DescribeInferenceSchedulerOutput struct { _ struct{} `type:"structure"` + + // Specifies the time at which the inference scheduler was created. + CreatedAt *time.Time `type:"timestamp"` + + // A period of time (in minutes) by which inference on the data is delayed after + // the data starts. For instance, if you select an offset delay time of five + // minutes, inference will not begin on the data until the first data measurement + // after the five minute mark. For example, if five minutes is selected, the + // inference scheduler will wake up at the configured frequency with the additional + // five minute delay time to check the customer S3 bucket. The customer can + // upload data at the same frequency and they don't need to stop and restart + // the scheduler when uploading new data. + DataDelayOffsetInMinutes *int64 `type:"long"` + + // Specifies configuration information for the input data for the inference + // scheduler, including delimiter, format, and dataset location. + DataInputConfiguration *InferenceInputConfiguration `type:"structure"` + + // Specifies information for the output results for the inference scheduler, + // including the output S3 location. + DataOutputConfiguration *InferenceOutputConfiguration `type:"structure"` + + // Specifies how often data is uploaded to the source S3 bucket for the input + // data. This value is the length of time between data uploads. For instance, + // if you select 5 minutes, Amazon Lookout for Equipment will upload the real-time + // data to the source bucket once every 5 minutes. This frequency also determines + // how often Amazon Lookout for Equipment starts a scheduled inference on your + // data. In this example, it starts once every 5 minutes. + DataUploadFrequency *string `type:"string" enum:"DataUploadFrequency"` + + // The Amazon Resource Name (ARN) of the inference scheduler being described. + InferenceSchedulerArn *string `min:"20" type:"string"` + + // The name of the inference scheduler being described. + InferenceSchedulerName *string `min:"1" type:"string"` + + // Indicates whether the latest execution for the inference scheduler was Anomalous + // (anomalous events found) or Normal (no anomalous events found). + LatestInferenceResult *string `type:"string" enum:"LatestInferenceResult"` + + // The Amazon Resource Name (ARN) of the ML model of the inference scheduler + // being described. + ModelArn *string `min:"20" type:"string"` + + // The name of the ML model of the inference scheduler being described. + ModelName *string `min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of a role with permission to access the data + // source for the inference scheduler being described. + RoleArn *string `min:"20" type:"string"` + + // Provides the identifier of the KMS key used to encrypt inference scheduler + // data by Amazon Lookout for Equipment. + ServerSideKmsKeyId *string `min:"1" type:"string"` + + // Indicates the status of the inference scheduler. + Status *string `type:"string" enum:"InferenceSchedulerStatus"` + + // Specifies the time at which the inference scheduler was last updated, if + // it was. + UpdatedAt *time.Time `type:"timestamp"` } // String returns the string representation. @@ -5407,7 +7102,7 @@ type DeleteInferenceSchedulerOutput 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 DeleteInferenceSchedulerOutput) String() string { +func (s DescribeInferenceSchedulerOutput) String() string { return awsutil.Prettify(s) } @@ -5416,97 +7111,101 @@ func (s DeleteInferenceSchedulerOutput) 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 DeleteInferenceSchedulerOutput) GoString() string { +func (s DescribeInferenceSchedulerOutput) GoString() string { return s.String() } -type DeleteLabelGroupInput struct { - _ struct{} `type:"structure"` +// SetCreatedAt sets the CreatedAt field's value. +func (s *DescribeInferenceSchedulerOutput) SetCreatedAt(v time.Time) *DescribeInferenceSchedulerOutput { + s.CreatedAt = &v + return s +} - // The name of the label group that you want to delete. Data in this field will - // be retained for service usage. Follow best practices for the security of - // your data. - // - // LabelGroupName is a required field - LabelGroupName *string `min:"1" type:"string" required:"true"` +// SetDataDelayOffsetInMinutes sets the DataDelayOffsetInMinutes field's value. +func (s *DescribeInferenceSchedulerOutput) SetDataDelayOffsetInMinutes(v int64) *DescribeInferenceSchedulerOutput { + s.DataDelayOffsetInMinutes = &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 DeleteLabelGroupInput) String() string { - return awsutil.Prettify(s) +// SetDataInputConfiguration sets the DataInputConfiguration field's value. +func (s *DescribeInferenceSchedulerOutput) SetDataInputConfiguration(v *InferenceInputConfiguration) *DescribeInferenceSchedulerOutput { + s.DataInputConfiguration = 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 DeleteLabelGroupInput) GoString() string { - return s.String() +// SetDataOutputConfiguration sets the DataOutputConfiguration field's value. +func (s *DescribeInferenceSchedulerOutput) SetDataOutputConfiguration(v *InferenceOutputConfiguration) *DescribeInferenceSchedulerOutput { + s.DataOutputConfiguration = v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLabelGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLabelGroupInput"} - if s.LabelGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LabelGroupName")) - } - if s.LabelGroupName != nil && len(*s.LabelGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LabelGroupName", 1)) - } +// SetDataUploadFrequency sets the DataUploadFrequency field's value. +func (s *DescribeInferenceSchedulerOutput) SetDataUploadFrequency(v string) *DescribeInferenceSchedulerOutput { + s.DataUploadFrequency = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetInferenceSchedulerArn sets the InferenceSchedulerArn field's value. +func (s *DescribeInferenceSchedulerOutput) SetInferenceSchedulerArn(v string) *DescribeInferenceSchedulerOutput { + s.InferenceSchedulerArn = &v + return s } -// SetLabelGroupName sets the LabelGroupName field's value. -func (s *DeleteLabelGroupInput) SetLabelGroupName(v string) *DeleteLabelGroupInput { - s.LabelGroupName = &v +// SetInferenceSchedulerName sets the InferenceSchedulerName field's value. +func (s *DescribeInferenceSchedulerOutput) SetInferenceSchedulerName(v string) *DescribeInferenceSchedulerOutput { + s.InferenceSchedulerName = &v return s } -type DeleteLabelGroupOutput struct { - _ struct{} `type:"structure"` +// SetLatestInferenceResult sets the LatestInferenceResult field's value. +func (s *DescribeInferenceSchedulerOutput) SetLatestInferenceResult(v string) *DescribeInferenceSchedulerOutput { + s.LatestInferenceResult = &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 DeleteLabelGroupOutput) String() string { - return awsutil.Prettify(s) +// SetModelArn sets the ModelArn field's value. +func (s *DescribeInferenceSchedulerOutput) SetModelArn(v string) *DescribeInferenceSchedulerOutput { + s.ModelArn = &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 DeleteLabelGroupOutput) GoString() string { - return s.String() +// SetModelName sets the ModelName field's value. +func (s *DescribeInferenceSchedulerOutput) SetModelName(v string) *DescribeInferenceSchedulerOutput { + s.ModelName = &v + return s } -type DeleteLabelInput struct { - _ struct{} `type:"structure"` +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeInferenceSchedulerOutput) SetRoleArn(v string) *DescribeInferenceSchedulerOutput { + s.RoleArn = &v + return s +} - // The name of the label group that contains the label that you want to delete. - // Data in this field will be retained for service usage. Follow best practices - // for the security of your data. +// SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. +func (s *DescribeInferenceSchedulerOutput) SetServerSideKmsKeyId(v string) *DescribeInferenceSchedulerOutput { + s.ServerSideKmsKeyId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeInferenceSchedulerOutput) SetStatus(v string) *DescribeInferenceSchedulerOutput { + s.Status = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *DescribeInferenceSchedulerOutput) SetUpdatedAt(v time.Time) *DescribeInferenceSchedulerOutput { + s.UpdatedAt = &v + return s +} + +type DescribeLabelGroupInput struct { + _ struct{} `type:"structure"` + + // Returns the name of the label group. // // LabelGroupName is a required field LabelGroupName *string `min:"1" type:"string" required:"true"` - - // The ID of the label that you want to delete. - // - // LabelId is a required field - LabelId *string `type:"string" required:"true"` } // String returns the string representation. @@ -5514,7 +7213,7 @@ type DeleteLabelInput 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 DeleteLabelInput) String() string { +func (s DescribeLabelGroupInput) String() string { return awsutil.Prettify(s) } @@ -5523,22 +7222,19 @@ func (s DeleteLabelInput) 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 DeleteLabelInput) GoString() string { +func (s DescribeLabelGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLabelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLabelInput"} +func (s *DescribeLabelGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeLabelGroupInput"} if s.LabelGroupName == nil { invalidParams.Add(request.NewErrParamRequired("LabelGroupName")) } if s.LabelGroupName != nil && len(*s.LabelGroupName) < 1 { invalidParams.Add(request.NewErrParamMinLen("LabelGroupName", 1)) } - if s.LabelId == nil { - invalidParams.Add(request.NewErrParamRequired("LabelId")) - } if invalidParams.Len() > 0 { return invalidParams @@ -5547,46 +7243,29 @@ func (s *DeleteLabelInput) Validate() error { } // SetLabelGroupName sets the LabelGroupName field's value. -func (s *DeleteLabelInput) SetLabelGroupName(v string) *DeleteLabelInput { +func (s *DescribeLabelGroupInput) SetLabelGroupName(v string) *DescribeLabelGroupInput { s.LabelGroupName = &v return s } -// SetLabelId sets the LabelId field's value. -func (s *DeleteLabelInput) SetLabelId(v string) *DeleteLabelInput { - s.LabelId = &v - return s -} - -type DeleteLabelOutput struct { +type DescribeLabelGroupOutput 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 DeleteLabelOutput) String() string { - return awsutil.Prettify(s) -} + // The time at which the label group was created. + CreatedAt *time.Time `type:"timestamp"` -// 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 DeleteLabelOutput) GoString() string { - return s.String() -} + // Codes indicating the type of anomaly associated with the labels in the lagbel + // group. + FaultCodes []*string `type:"list"` -type DeleteModelInput struct { - _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the label group. + LabelGroupArn *string `min:"20" type:"string"` - // The name of the ML model to be deleted. - // - // ModelName is a required field - ModelName *string `min:"1" type:"string" required:"true"` + // The name of the label group. + LabelGroupName *string `min:"1" type:"string"` + + // The time at which the label group was updated. + UpdatedAt *time.Time `type:"timestamp"` } // String returns the string representation. @@ -5594,7 +7273,7 @@ type DeleteModelInput 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 DeleteModelInput) String() string { +func (s DescribeLabelGroupOutput) String() string { return awsutil.Prettify(s) } @@ -5603,61 +7282,52 @@ func (s DeleteModelInput) 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 DeleteModelInput) GoString() string { +func (s DescribeLabelGroupOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteModelInput"} - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - if s.ModelName != nil && len(*s.ModelName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCreatedAt sets the CreatedAt field's value. +func (s *DescribeLabelGroupOutput) SetCreatedAt(v time.Time) *DescribeLabelGroupOutput { + s.CreatedAt = &v + return s } -// SetModelName sets the ModelName field's value. -func (s *DeleteModelInput) SetModelName(v string) *DeleteModelInput { - s.ModelName = &v +// SetFaultCodes sets the FaultCodes field's value. +func (s *DescribeLabelGroupOutput) SetFaultCodes(v []*string) *DescribeLabelGroupOutput { + s.FaultCodes = v return s } -type DeleteModelOutput struct { - _ struct{} `type:"structure"` +// SetLabelGroupArn sets the LabelGroupArn field's value. +func (s *DescribeLabelGroupOutput) SetLabelGroupArn(v string) *DescribeLabelGroupOutput { + s.LabelGroupArn = &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 DeleteModelOutput) String() string { - return awsutil.Prettify(s) +// SetLabelGroupName sets the LabelGroupName field's value. +func (s *DescribeLabelGroupOutput) SetLabelGroupName(v string) *DescribeLabelGroupOutput { + s.LabelGroupName = &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 DeleteModelOutput) GoString() string { - return s.String() +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *DescribeLabelGroupOutput) SetUpdatedAt(v time.Time) *DescribeLabelGroupOutput { + s.UpdatedAt = &v + return s } -type DescribeDataIngestionJobInput struct { +type DescribeLabelInput struct { _ struct{} `type:"structure"` - // The job ID of the data ingestion job. + // Returns the name of the group containing the label. // - // JobId is a required field - JobId *string `type:"string" required:"true"` + // LabelGroupName is a required field + LabelGroupName *string `min:"1" type:"string" required:"true"` + + // Returns the ID of the label. + // + // LabelId is a required field + LabelId *string `type:"string" required:"true"` } // String returns the string representation. @@ -5665,7 +7335,7 @@ type DescribeDataIngestionJobInput 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 DescribeDataIngestionJobInput) String() string { +func (s DescribeLabelInput) String() string { return awsutil.Prettify(s) } @@ -5674,15 +7344,21 @@ func (s DescribeDataIngestionJobInput) 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 DescribeDataIngestionJobInput) GoString() string { +func (s DescribeLabelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDataIngestionJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDataIngestionJobInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) +func (s *DescribeLabelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeLabelInput"} + if s.LabelGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("LabelGroupName")) + } + if s.LabelGroupName != nil && len(*s.LabelGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LabelGroupName", 1)) + } + if s.LabelId == nil { + invalidParams.Add(request.NewErrParamRequired("LabelId")) } if invalidParams.Len() > 0 { @@ -5691,61 +7367,56 @@ func (s *DescribeDataIngestionJobInput) Validate() error { return nil } -// SetJobId sets the JobId field's value. -func (s *DescribeDataIngestionJobInput) SetJobId(v string) *DescribeDataIngestionJobInput { - s.JobId = &v +// SetLabelGroupName sets the LabelGroupName field's value. +func (s *DescribeLabelInput) SetLabelGroupName(v string) *DescribeLabelInput { + s.LabelGroupName = &v return s } -type DescribeDataIngestionJobOutput struct { +// SetLabelId sets the LabelId field's value. +func (s *DescribeLabelInput) SetLabelId(v string) *DescribeLabelInput { + s.LabelId = &v + return s +} + +type DescribeLabelOutput struct { _ struct{} `type:"structure"` - // The time at which the data ingestion job was created. + // The time at which the label was created. CreatedAt *time.Time `type:"timestamp"` - // Indicates the latest timestamp corresponding to data that was successfully - // ingested during this specific ingestion job. - DataEndTime *time.Time `type:"timestamp"` - - // Gives statistics about a completed ingestion job. These statistics primarily - // relate to quantifying incorrect data such as MissingCompleteSensorData, MissingSensorData, - // UnsupportedDateFormats, InsufficientSensorData, and DuplicateTimeStamps. - DataQualitySummary *DataQualitySummary `type:"structure"` - - // Indicates the earliest timestamp corresponding to data that was successfully - // ingested during this specific ingestion job. - DataStartTime *time.Time `type:"timestamp"` - - // The Amazon Resource Name (ARN) of the dataset being used in the data ingestion - // job. - DatasetArn *string `min:"20" type:"string"` + // The end time of the requested label. + EndTime *time.Time `type:"timestamp"` - // Specifies the reason for failure when a data ingestion job has failed. - FailedReason *string `min:"1" type:"string"` + // Indicates that a label pertains to a particular piece of equipment. + Equipment *string `min:"1" type:"string"` - // Indicates the size of the ingested dataset. - IngestedDataSize *int64 `type:"long"` + // Indicates the type of anomaly associated with the label. + // + // Data in this field will be retained for service usage. Follow best practices + // for the security of your data. + FaultCode *string `min:"1" type:"string"` - // Gives statistics about how many files have been ingested, and which files - // have not been ingested, for a particular ingestion job. - IngestedFilesSummary *IngestedFilesSummary `type:"structure"` + // The Amazon Resource Name (ARN) of the requested label group. + LabelGroupArn *string `min:"20" type:"string"` - // Specifies the S3 location configuration for the data input for the data ingestion - // job. - IngestionInputConfiguration *IngestionInputConfiguration `type:"structure"` + // The name of the requested label group. + LabelGroupName *string `min:"1" type:"string"` - // Indicates the job ID of the data ingestion job. - JobId *string `type:"string"` + // The ID of the requested label. + LabelId *string `type:"string"` - // The Amazon Resource Name (ARN) of an IAM role with permission to access the - // data source being ingested. - RoleArn *string `min:"20" type:"string"` + // Metadata providing additional information about the label. + // + // Data in this field will be retained for service usage. Follow best practices + // for the security of your data. + Notes *string `min:"1" type:"string"` - // Indicates the status of the DataIngestionJob operation. - Status *string `type:"string" enum:"IngestionJobStatus"` + // Indicates whether a labeled event represents an anomaly. + Rating *string `type:"string" enum:"LabelRating"` - // Provides details about status of the ingestion job that is currently in progress. - StatusDetail *string `min:"1" type:"string"` + // The start time of the requested label. + StartTime *time.Time `type:"timestamp"` } // String returns the string representation. @@ -5753,7 +7424,7 @@ type DescribeDataIngestionJobOutput 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 DescribeDataIngestionJobOutput) String() string { +func (s DescribeLabelOutput) String() string { return awsutil.Prettify(s) } @@ -5762,95 +7433,77 @@ func (s DescribeDataIngestionJobOutput) 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 DescribeDataIngestionJobOutput) GoString() string { +func (s DescribeLabelOutput) GoString() string { return s.String() } // SetCreatedAt sets the CreatedAt field's value. -func (s *DescribeDataIngestionJobOutput) SetCreatedAt(v time.Time) *DescribeDataIngestionJobOutput { +func (s *DescribeLabelOutput) SetCreatedAt(v time.Time) *DescribeLabelOutput { s.CreatedAt = &v return s } -// SetDataEndTime sets the DataEndTime field's value. -func (s *DescribeDataIngestionJobOutput) SetDataEndTime(v time.Time) *DescribeDataIngestionJobOutput { - s.DataEndTime = &v - return s -} - -// SetDataQualitySummary sets the DataQualitySummary field's value. -func (s *DescribeDataIngestionJobOutput) SetDataQualitySummary(v *DataQualitySummary) *DescribeDataIngestionJobOutput { - s.DataQualitySummary = v - return s -} - -// SetDataStartTime sets the DataStartTime field's value. -func (s *DescribeDataIngestionJobOutput) SetDataStartTime(v time.Time) *DescribeDataIngestionJobOutput { - s.DataStartTime = &v - return s -} - -// SetDatasetArn sets the DatasetArn field's value. -func (s *DescribeDataIngestionJobOutput) SetDatasetArn(v string) *DescribeDataIngestionJobOutput { - s.DatasetArn = &v +// SetEndTime sets the EndTime field's value. +func (s *DescribeLabelOutput) SetEndTime(v time.Time) *DescribeLabelOutput { + s.EndTime = &v return s } -// SetFailedReason sets the FailedReason field's value. -func (s *DescribeDataIngestionJobOutput) SetFailedReason(v string) *DescribeDataIngestionJobOutput { - s.FailedReason = &v +// SetEquipment sets the Equipment field's value. +func (s *DescribeLabelOutput) SetEquipment(v string) *DescribeLabelOutput { + s.Equipment = &v return s } -// SetIngestedDataSize sets the IngestedDataSize field's value. -func (s *DescribeDataIngestionJobOutput) SetIngestedDataSize(v int64) *DescribeDataIngestionJobOutput { - s.IngestedDataSize = &v +// SetFaultCode sets the FaultCode field's value. +func (s *DescribeLabelOutput) SetFaultCode(v string) *DescribeLabelOutput { + s.FaultCode = &v return s } -// SetIngestedFilesSummary sets the IngestedFilesSummary field's value. -func (s *DescribeDataIngestionJobOutput) SetIngestedFilesSummary(v *IngestedFilesSummary) *DescribeDataIngestionJobOutput { - s.IngestedFilesSummary = v +// SetLabelGroupArn sets the LabelGroupArn field's value. +func (s *DescribeLabelOutput) SetLabelGroupArn(v string) *DescribeLabelOutput { + s.LabelGroupArn = &v return s } -// SetIngestionInputConfiguration sets the IngestionInputConfiguration field's value. -func (s *DescribeDataIngestionJobOutput) SetIngestionInputConfiguration(v *IngestionInputConfiguration) *DescribeDataIngestionJobOutput { - s.IngestionInputConfiguration = v +// SetLabelGroupName sets the LabelGroupName field's value. +func (s *DescribeLabelOutput) SetLabelGroupName(v string) *DescribeLabelOutput { + s.LabelGroupName = &v return s } -// SetJobId sets the JobId field's value. -func (s *DescribeDataIngestionJobOutput) SetJobId(v string) *DescribeDataIngestionJobOutput { - s.JobId = &v +// SetLabelId sets the LabelId field's value. +func (s *DescribeLabelOutput) SetLabelId(v string) *DescribeLabelOutput { + s.LabelId = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *DescribeDataIngestionJobOutput) SetRoleArn(v string) *DescribeDataIngestionJobOutput { - s.RoleArn = &v +// SetNotes sets the Notes field's value. +func (s *DescribeLabelOutput) SetNotes(v string) *DescribeLabelOutput { + s.Notes = &v return s } -// SetStatus sets the Status field's value. -func (s *DescribeDataIngestionJobOutput) SetStatus(v string) *DescribeDataIngestionJobOutput { - s.Status = &v +// SetRating sets the Rating field's value. +func (s *DescribeLabelOutput) SetRating(v string) *DescribeLabelOutput { + s.Rating = &v return s } -// SetStatusDetail sets the StatusDetail field's value. -func (s *DescribeDataIngestionJobOutput) SetStatusDetail(v string) *DescribeDataIngestionJobOutput { - s.StatusDetail = &v +// SetStartTime sets the StartTime field's value. +func (s *DescribeLabelOutput) SetStartTime(v time.Time) *DescribeLabelOutput { + s.StartTime = &v return s } -type DescribeDatasetInput struct { +type DescribeModelInput struct { _ struct{} `type:"structure"` - // The name of the dataset to be described. + // The name of the ML model to be described. // - // DatasetName is a required field - DatasetName *string `min:"1" type:"string" required:"true"` + // ModelName is a required field + ModelName *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5858,7 +7511,7 @@ type DescribeDatasetInput 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 DescribeDatasetInput) String() string { +func (s DescribeModelInput) String() string { return awsutil.Prettify(s) } @@ -5867,18 +7520,18 @@ func (s DescribeDatasetInput) 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 DescribeDatasetInput) GoString() string { +func (s DescribeModelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDatasetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDatasetInput"} - if s.DatasetName == nil { - invalidParams.Add(request.NewErrParamRequired("DatasetName")) +func (s *DescribeModelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeModelInput"} + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) } - if s.DatasetName != nil && len(*s.DatasetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) } if invalidParams.Len() > 0 { @@ -5887,63 +7540,136 @@ func (s *DescribeDatasetInput) Validate() error { return nil } -// SetDatasetName sets the DatasetName field's value. -func (s *DescribeDatasetInput) SetDatasetName(v string) *DescribeDatasetInput { - s.DatasetName = &v +// SetModelName sets the ModelName field's value. +func (s *DescribeModelInput) SetModelName(v string) *DescribeModelInput { + s.ModelName = &v return s } -type DescribeDatasetOutput struct { +type DescribeModelOutput struct { _ struct{} `type:"structure"` - // Specifies the time the dataset was created in Lookout for Equipment. - CreatedAt *time.Time `type:"timestamp"` + // The name of the model version used by the inference schedular when running + // a scheduled inference execution. + ActiveModelVersion *int64 `min:"1" type:"long"` - // Indicates the latest timestamp corresponding to data that was successfully - // ingested during the most recent ingestion of this particular dataset. - DataEndTime *time.Time `type:"timestamp"` + // The Amazon Resource Name (ARN) of the model version used by the inference + // scheduler when running a scheduled inference execution. + ActiveModelVersionArn *string `min:"20" type:"string"` - // Gives statistics associated with the given dataset for the latest successful - // associated ingestion job id. These statistics primarily relate to quantifying - // incorrect data such as MissingCompleteSensorData, MissingSensorData, UnsupportedDateFormats, - // InsufficientSensorData, and DuplicateTimeStamps. - DataQualitySummary *DataQualitySummary `type:"structure"` + // Indicates the time and date at which the ML model was created. + CreatedAt *time.Time `type:"timestamp"` - // Indicates the earliest timestamp corresponding to data that was successfully - // ingested during the most recent ingestion of this particular dataset. - DataStartTime *time.Time `type:"timestamp"` + // The configuration is the TargetSamplingRate, which is the sampling rate of + // the data after post processing by Amazon Lookout for Equipment. For example, + // if you provide data that has been collected at a 1 second level and you want + // the system to resample the data at a 1 minute rate before training, the TargetSamplingRate + // is 1 minute. + // + // When providing a value for the TargetSamplingRate, you must attach the prefix + // "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, + // the value for a 15 minute rate is PT15M, and the value for a 1 hour rate + // is PT1H + DataPreProcessingConfiguration *DataPreProcessingConfiguration `type:"structure"` - // The Amazon Resource Name (ARN) of the dataset being described. + // The Amazon Resouce Name (ARN) of the dataset used to create the ML model + // being described. DatasetArn *string `min:"20" type:"string"` - // The name of the dataset being described. + // The name of the dataset being used by the ML being described. DatasetName *string `min:"1" type:"string"` - // IngestedFilesSummary associated with the given dataset for the latest successful - // associated ingestion job id. - IngestedFilesSummary *IngestedFilesSummary `type:"structure"` + // Indicates the time reference in the dataset that was used to end the subset + // of evaluation data for the ML model. + EvaluationDataEndTime *time.Time `type:"timestamp"` - // Specifies the S3 location configuration for the data input for the data ingestion - // job. - IngestionInputConfiguration *IngestionInputConfiguration `type:"structure"` + // Indicates the time reference in the dataset that was used to begin the subset + // of evaluation data for the ML model. + EvaluationDataStartTime *time.Time `type:"timestamp"` - // Specifies the time the dataset was last updated, if it was. - LastUpdatedAt *time.Time `type:"timestamp"` + // If the training of the ML model failed, this indicates the reason for that + // failure. + FailedReason *string `min:"1" type:"string"` - // The Amazon Resource Name (ARN) of the IAM role that you are using for this - // the data ingestion job. + // The date and time when the import job was completed. This field appears if + // the active model version was imported. + ImportJobEndTime *time.Time `type:"timestamp"` + + // The date and time when the import job was started. This field appears if + // the active model version was imported. + ImportJobStartTime *time.Time `type:"timestamp"` + + // Specifies configuration information about the labels input, including its + // S3 location. + LabelsInputConfiguration *LabelsInputConfiguration `type:"structure"` + + // Indicates the last time the ML model was updated. The type of update is not + // specified. + LastUpdatedTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the ML model being described. + ModelArn *string `min:"20" type:"string"` + + // The Model Metrics show an aggregated summary of the model's performance within + // the evaluation time range. This is the JSON content of the metrics created + // when evaluating the model. + ModelMetrics aws.JSONValue `type:"jsonvalue"` + + // The name of the ML model being described. + ModelName *string `min:"1" type:"string"` + + // The date the active model version was activated. + ModelVersionActivatedAt *time.Time `type:"timestamp"` + + // Indicates that the asset associated with this sensor has been shut off. As + // long as this condition is met, Lookout for Equipment will not use data from + // this asset for training, evaluation, or inference. + OffCondition *string `min:"1" type:"string"` + + // The model version that was set as the active model version prior to the current + // active model version. + PreviousActiveModelVersion *int64 `min:"1" type:"long"` + + // The ARN of the model version that was set as the active model version prior + // to the current active model version. + PreviousActiveModelVersionArn *string `min:"20" type:"string"` + + // The date and time when the previous active model version was activated. + PreviousModelVersionActivatedAt *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of a role with permission to access the data + // source for the ML model being described. RoleArn *string `min:"20" type:"string"` // A JSON description of the data that is in each time series dataset, including // names, column names, and data types. Schema aws.JSONValue `type:"jsonvalue"` - // Provides the identifier of the KMS key used to encrypt dataset data by Amazon + // Provides the identifier of the KMS key used to encrypt model data by Amazon // Lookout for Equipment. ServerSideKmsKeyId *string `min:"1" type:"string"` - // Indicates the status of the dataset. - Status *string `type:"string" enum:"DatasetStatus"` + // The Amazon Resource Name (ARN) of the source model version. This field appears + // if the active model version was imported. + SourceModelVersionArn *string `min:"20" type:"string"` + + // Specifies the current status of the model being described. Status describes + // the status of the most recent action of the model. + Status *string `type:"string" enum:"ModelStatus"` + + // Indicates the time reference in the dataset that was used to end the subset + // of training data for the ML model. + TrainingDataEndTime *time.Time `type:"timestamp"` + + // Indicates the time reference in the dataset that was used to begin the subset + // of training data for the ML model. + TrainingDataStartTime *time.Time `type:"timestamp"` + + // Indicates the time at which the training of the ML model was completed. + TrainingExecutionEndTime *time.Time `type:"timestamp"` + + // Indicates the time at which the training of the ML model began. + TrainingExecutionStartTime *time.Time `type:"timestamp"` } // String returns the string representation. @@ -5951,7 +7677,7 @@ type DescribeDatasetOutput 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 DescribeDatasetOutput) String() string { +func (s DescribeModelOutput) String() string { return awsutil.Prettify(s) } @@ -5960,95 +7686,202 @@ func (s DescribeDatasetOutput) 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 DescribeDatasetOutput) GoString() string { +func (s DescribeModelOutput) GoString() string { return s.String() } +// SetActiveModelVersion sets the ActiveModelVersion field's value. +func (s *DescribeModelOutput) SetActiveModelVersion(v int64) *DescribeModelOutput { + s.ActiveModelVersion = &v + return s +} + +// SetActiveModelVersionArn sets the ActiveModelVersionArn field's value. +func (s *DescribeModelOutput) SetActiveModelVersionArn(v string) *DescribeModelOutput { + s.ActiveModelVersionArn = &v + return s +} + // SetCreatedAt sets the CreatedAt field's value. -func (s *DescribeDatasetOutput) SetCreatedAt(v time.Time) *DescribeDatasetOutput { +func (s *DescribeModelOutput) SetCreatedAt(v time.Time) *DescribeModelOutput { s.CreatedAt = &v return s } -// SetDataEndTime sets the DataEndTime field's value. -func (s *DescribeDatasetOutput) SetDataEndTime(v time.Time) *DescribeDatasetOutput { - s.DataEndTime = &v +// SetDataPreProcessingConfiguration sets the DataPreProcessingConfiguration field's value. +func (s *DescribeModelOutput) SetDataPreProcessingConfiguration(v *DataPreProcessingConfiguration) *DescribeModelOutput { + s.DataPreProcessingConfiguration = v return s } -// SetDataQualitySummary sets the DataQualitySummary field's value. -func (s *DescribeDatasetOutput) SetDataQualitySummary(v *DataQualitySummary) *DescribeDatasetOutput { - s.DataQualitySummary = v +// SetDatasetArn sets the DatasetArn field's value. +func (s *DescribeModelOutput) SetDatasetArn(v string) *DescribeModelOutput { + s.DatasetArn = &v + return s +} + +// SetDatasetName sets the DatasetName field's value. +func (s *DescribeModelOutput) SetDatasetName(v string) *DescribeModelOutput { + s.DatasetName = &v + return s +} + +// SetEvaluationDataEndTime sets the EvaluationDataEndTime field's value. +func (s *DescribeModelOutput) SetEvaluationDataEndTime(v time.Time) *DescribeModelOutput { + s.EvaluationDataEndTime = &v + return s +} + +// SetEvaluationDataStartTime sets the EvaluationDataStartTime field's value. +func (s *DescribeModelOutput) SetEvaluationDataStartTime(v time.Time) *DescribeModelOutput { + s.EvaluationDataStartTime = &v + return s +} + +// SetFailedReason sets the FailedReason field's value. +func (s *DescribeModelOutput) SetFailedReason(v string) *DescribeModelOutput { + s.FailedReason = &v + return s +} + +// SetImportJobEndTime sets the ImportJobEndTime field's value. +func (s *DescribeModelOutput) SetImportJobEndTime(v time.Time) *DescribeModelOutput { + s.ImportJobEndTime = &v + return s +} + +// SetImportJobStartTime sets the ImportJobStartTime field's value. +func (s *DescribeModelOutput) SetImportJobStartTime(v time.Time) *DescribeModelOutput { + s.ImportJobStartTime = &v + return s +} + +// SetLabelsInputConfiguration sets the LabelsInputConfiguration field's value. +func (s *DescribeModelOutput) SetLabelsInputConfiguration(v *LabelsInputConfiguration) *DescribeModelOutput { + s.LabelsInputConfiguration = v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *DescribeModelOutput) SetLastUpdatedTime(v time.Time) *DescribeModelOutput { + s.LastUpdatedTime = &v + return s +} + +// SetModelArn sets the ModelArn field's value. +func (s *DescribeModelOutput) SetModelArn(v string) *DescribeModelOutput { + s.ModelArn = &v + return s +} + +// SetModelMetrics sets the ModelMetrics field's value. +func (s *DescribeModelOutput) SetModelMetrics(v aws.JSONValue) *DescribeModelOutput { + s.ModelMetrics = v return s } -// SetDataStartTime sets the DataStartTime field's value. -func (s *DescribeDatasetOutput) SetDataStartTime(v time.Time) *DescribeDatasetOutput { - s.DataStartTime = &v +// SetModelName sets the ModelName field's value. +func (s *DescribeModelOutput) SetModelName(v string) *DescribeModelOutput { + s.ModelName = &v return s } -// SetDatasetArn sets the DatasetArn field's value. -func (s *DescribeDatasetOutput) SetDatasetArn(v string) *DescribeDatasetOutput { - s.DatasetArn = &v +// SetModelVersionActivatedAt sets the ModelVersionActivatedAt field's value. +func (s *DescribeModelOutput) SetModelVersionActivatedAt(v time.Time) *DescribeModelOutput { + s.ModelVersionActivatedAt = &v return s } -// SetDatasetName sets the DatasetName field's value. -func (s *DescribeDatasetOutput) SetDatasetName(v string) *DescribeDatasetOutput { - s.DatasetName = &v +// SetOffCondition sets the OffCondition field's value. +func (s *DescribeModelOutput) SetOffCondition(v string) *DescribeModelOutput { + s.OffCondition = &v return s } -// SetIngestedFilesSummary sets the IngestedFilesSummary field's value. -func (s *DescribeDatasetOutput) SetIngestedFilesSummary(v *IngestedFilesSummary) *DescribeDatasetOutput { - s.IngestedFilesSummary = v +// SetPreviousActiveModelVersion sets the PreviousActiveModelVersion field's value. +func (s *DescribeModelOutput) SetPreviousActiveModelVersion(v int64) *DescribeModelOutput { + s.PreviousActiveModelVersion = &v return s } -// SetIngestionInputConfiguration sets the IngestionInputConfiguration field's value. -func (s *DescribeDatasetOutput) SetIngestionInputConfiguration(v *IngestionInputConfiguration) *DescribeDatasetOutput { - s.IngestionInputConfiguration = v +// SetPreviousActiveModelVersionArn sets the PreviousActiveModelVersionArn field's value. +func (s *DescribeModelOutput) SetPreviousActiveModelVersionArn(v string) *DescribeModelOutput { + s.PreviousActiveModelVersionArn = &v return s } -// SetLastUpdatedAt sets the LastUpdatedAt field's value. -func (s *DescribeDatasetOutput) SetLastUpdatedAt(v time.Time) *DescribeDatasetOutput { - s.LastUpdatedAt = &v +// SetPreviousModelVersionActivatedAt sets the PreviousModelVersionActivatedAt field's value. +func (s *DescribeModelOutput) SetPreviousModelVersionActivatedAt(v time.Time) *DescribeModelOutput { + s.PreviousModelVersionActivatedAt = &v return s } // SetRoleArn sets the RoleArn field's value. -func (s *DescribeDatasetOutput) SetRoleArn(v string) *DescribeDatasetOutput { +func (s *DescribeModelOutput) SetRoleArn(v string) *DescribeModelOutput { s.RoleArn = &v return s } // SetSchema sets the Schema field's value. -func (s *DescribeDatasetOutput) SetSchema(v aws.JSONValue) *DescribeDatasetOutput { +func (s *DescribeModelOutput) SetSchema(v aws.JSONValue) *DescribeModelOutput { s.Schema = v return s } // SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. -func (s *DescribeDatasetOutput) SetServerSideKmsKeyId(v string) *DescribeDatasetOutput { +func (s *DescribeModelOutput) SetServerSideKmsKeyId(v string) *DescribeModelOutput { s.ServerSideKmsKeyId = &v return s } +// SetSourceModelVersionArn sets the SourceModelVersionArn field's value. +func (s *DescribeModelOutput) SetSourceModelVersionArn(v string) *DescribeModelOutput { + s.SourceModelVersionArn = &v + return s +} + // SetStatus sets the Status field's value. -func (s *DescribeDatasetOutput) SetStatus(v string) *DescribeDatasetOutput { +func (s *DescribeModelOutput) SetStatus(v string) *DescribeModelOutput { s.Status = &v return s } -type DescribeInferenceSchedulerInput struct { +// SetTrainingDataEndTime sets the TrainingDataEndTime field's value. +func (s *DescribeModelOutput) SetTrainingDataEndTime(v time.Time) *DescribeModelOutput { + s.TrainingDataEndTime = &v + return s +} + +// SetTrainingDataStartTime sets the TrainingDataStartTime field's value. +func (s *DescribeModelOutput) SetTrainingDataStartTime(v time.Time) *DescribeModelOutput { + s.TrainingDataStartTime = &v + return s +} + +// SetTrainingExecutionEndTime sets the TrainingExecutionEndTime field's value. +func (s *DescribeModelOutput) SetTrainingExecutionEndTime(v time.Time) *DescribeModelOutput { + s.TrainingExecutionEndTime = &v + return s +} + +// SetTrainingExecutionStartTime sets the TrainingExecutionStartTime field's value. +func (s *DescribeModelOutput) SetTrainingExecutionStartTime(v time.Time) *DescribeModelOutput { + s.TrainingExecutionStartTime = &v + return s +} + +type DescribeModelVersionInput struct { _ struct{} `type:"structure"` - // The name of the inference scheduler being described. + // The name of the machine learning model that this version belongs to. // - // InferenceSchedulerName is a required field - InferenceSchedulerName *string `min:"1" type:"string" required:"true"` + // ModelName is a required field + ModelName *string `min:"1" type:"string" required:"true"` + + // The version of the machine learning model. + // + // ModelVersion is a required field + ModelVersion *int64 `min:"1" type:"long" required:"true"` } // String returns the string representation. @@ -6056,7 +7889,7 @@ type DescribeInferenceSchedulerInput 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 DescribeInferenceSchedulerInput) String() string { +func (s DescribeModelVersionInput) String() string { return awsutil.Prettify(s) } @@ -6065,18 +7898,24 @@ func (s DescribeInferenceSchedulerInput) 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 DescribeInferenceSchedulerInput) GoString() string { +func (s DescribeModelVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeInferenceSchedulerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeInferenceSchedulerInput"} - if s.InferenceSchedulerName == nil { - invalidParams.Add(request.NewErrParamRequired("InferenceSchedulerName")) +func (s *DescribeModelVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeModelVersionInput"} + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) } - if s.InferenceSchedulerName != nil && len(*s.InferenceSchedulerName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InferenceSchedulerName", 1)) + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } + if s.ModelVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ModelVersion")) + } + if s.ModelVersion != nil && *s.ModelVersion < 1 { + invalidParams.Add(request.NewErrParamMinValue("ModelVersion", 1)) } if invalidParams.Len() > 0 { @@ -6085,75 +7924,134 @@ func (s *DescribeInferenceSchedulerInput) Validate() error { return nil } -// SetInferenceSchedulerName sets the InferenceSchedulerName field's value. -func (s *DescribeInferenceSchedulerInput) SetInferenceSchedulerName(v string) *DescribeInferenceSchedulerInput { - s.InferenceSchedulerName = &v +// SetModelName sets the ModelName field's value. +func (s *DescribeModelVersionInput) SetModelName(v string) *DescribeModelVersionInput { + s.ModelName = &v return s } -type DescribeInferenceSchedulerOutput struct { +// SetModelVersion sets the ModelVersion field's value. +func (s *DescribeModelVersionInput) SetModelVersion(v int64) *DescribeModelVersionInput { + s.ModelVersion = &v + return s +} + +type DescribeModelVersionOutput struct { _ struct{} `type:"structure"` - // Specifies the time at which the inference scheduler was created. + // Indicates the time and date at which the machine learning model version was + // created. CreatedAt *time.Time `type:"timestamp"` - // A period of time (in minutes) by which inference on the data is delayed after - // the data starts. For instance, if you select an offset delay time of five - // minutes, inference will not begin on the data until the first data measurement - // after the five minute mark. For example, if five minutes is selected, the - // inference scheduler will wake up at the configured frequency with the additional - // five minute delay time to check the customer S3 bucket. The customer can - // upload data at the same frequency and they don't need to stop and restart - // the scheduler when uploading new data. - DataDelayOffsetInMinutes *int64 `type:"long"` + // The configuration is the TargetSamplingRate, which is the sampling rate of + // the data after post processing by Amazon Lookout for Equipment. For example, + // if you provide data that has been collected at a 1 second level and you want + // the system to resample the data at a 1 minute rate before training, the TargetSamplingRate + // is 1 minute. + // + // When providing a value for the TargetSamplingRate, you must attach the prefix + // "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, + // the value for a 15 minute rate is PT15M, and the value for a 1 hour rate + // is PT1H + DataPreProcessingConfiguration *DataPreProcessingConfiguration `type:"structure"` - // Specifies configuration information for the input data for the inference - // scheduler, including delimiter, format, and dataset location. - DataInputConfiguration *InferenceInputConfiguration `type:"structure"` + // The Amazon Resource Name (ARN) of the dataset used to train the model version. + DatasetArn *string `min:"20" type:"string"` - // Specifies information for the output results for the inference scheduler, - // including the output S3 location. - DataOutputConfiguration *InferenceOutputConfiguration `type:"structure"` + // The name of the dataset used to train the model version. + DatasetName *string `min:"1" type:"string"` - // Specifies how often data is uploaded to the source S3 bucket for the input - // data. This value is the length of time between data uploads. For instance, - // if you select 5 minutes, Amazon Lookout for Equipment will upload the real-time - // data to the source bucket once every 5 minutes. This frequency also determines - // how often Amazon Lookout for Equipment starts a scheduled inference on your - // data. In this example, it starts once every 5 minutes. - DataUploadFrequency *string `type:"string" enum:"DataUploadFrequency"` + // The date on which the data in the evaluation set began being gathered. If + // you imported the version, this is the date that the evaluation set data in + // the source version finished being gathered. + EvaluationDataEndTime *time.Time `type:"timestamp"` - // The Amazon Resource Name (ARN) of the inference scheduler being described. - InferenceSchedulerArn *string `min:"20" type:"string"` + // The date on which the data in the evaluation set began being gathered. If + // you imported the version, this is the date that the evaluation set data in + // the source version began being gathered. + EvaluationDataStartTime *time.Time `type:"timestamp"` - // The name of the inference scheduler being described. - InferenceSchedulerName *string `min:"1" type:"string"` + // The failure message if the training of the model version failed. + FailedReason *string `min:"1" type:"string"` - // Indicates whether the latest execution for the inference scheduler was Anomalous - // (anomalous events found) or Normal (no anomalous events found). - LatestInferenceResult *string `type:"string" enum:"LatestInferenceResult"` + // The date and time when the import job completed. This field appears if the + // model version was imported. + ImportJobEndTime *time.Time `type:"timestamp"` - // The Amazon Resource Name (ARN) of the ML model of the inference scheduler - // being described. + // The date and time when the import job began. This field appears if the model + // version was imported. + ImportJobStartTime *time.Time `type:"timestamp"` + + // The size in bytes of the imported data. This field appears if the model version + // was imported. + ImportedDataSizeInBytes *int64 `type:"long"` + + // Contains the configuration information for the S3 location being used to + // hold label data. + LabelsInputConfiguration *LabelsInputConfiguration `type:"structure"` + + // Indicates the last time the machine learning model version was updated. + LastUpdatedTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the parent machine learning model that + // this version belong to. ModelArn *string `min:"20" type:"string"` - // The name of the ML model of the inference scheduler being described. + // Shows an aggregated summary, in JSON format, of the model's performance within + // the evaluation time range. These metrics are created when evaluating the + // model. + ModelMetrics *string `min:"1" type:"string"` + + // The name of the machine learning model that this version belongs to. ModelName *string `min:"1" type:"string"` - // The Amazon Resource Name (ARN) of a role with permission to access the data - // source for the inference scheduler being described. + // The version of the machine learning model. + ModelVersion *int64 `min:"1" type:"long"` + + // The Amazon Resource Name (ARN) of the model version. + ModelVersionArn *string `min:"20" type:"string"` + + // Indicates that the asset associated with this sensor has been shut off. As + // long as this condition is met, Lookout for Equipment will not use data from + // this asset for training, evaluation, or inference. + OffCondition *string `min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the role that was used to train the model + // version. RoleArn *string `min:"20" type:"string"` - // Provides the identifier of the KMS key used to encrypt inference scheduler - // data by Amazon Lookout for Equipment. + // The schema of the data used to train the model version. + Schema *string `min:"1" type:"string"` + + // The identifier of the KMS key key used to encrypt model version data by Amazon + // Lookout for Equipment. ServerSideKmsKeyId *string `min:"1" type:"string"` - // Indicates the status of the inference scheduler. - Status *string `type:"string" enum:"InferenceSchedulerStatus"` + // If model version was imported, then this field is the arn of the source model + // version. + SourceModelVersionArn *string `min:"20" type:"string"` - // Specifies the time at which the inference scheduler was last updated, if - // it was. - UpdatedAt *time.Time `type:"timestamp"` + // Indicates whether this model version was created by training or by importing. + SourceType *string `type:"string" enum:"ModelVersionSourceType"` + + // The current status of the model version. + Status *string `type:"string" enum:"ModelVersionStatus"` + + // The date on which the training data finished being gathered. If you imported + // the version, this is the date that the training data in the source version + // finished being gathered. + TrainingDataEndTime *time.Time `type:"timestamp"` + + // The date on which the training data began being gathered. If you imported + // the version, this is the date that the training data in the source version + // began being gathered. + TrainingDataStartTime *time.Time `type:"timestamp"` + + // The time when the training of the version completed. + TrainingExecutionEndTime *time.Time `type:"timestamp"` + + // The time when the training of the version began. + TrainingExecutionStartTime *time.Time `type:"timestamp"` } // String returns the string representation. @@ -6161,7 +8059,7 @@ type DescribeInferenceSchedulerOutput 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 DescribeInferenceSchedulerOutput) String() string { +func (s DescribeModelVersionOutput) String() string { return awsutil.Prettify(s) } @@ -6170,101 +8068,186 @@ func (s DescribeInferenceSchedulerOutput) 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 DescribeInferenceSchedulerOutput) GoString() string { +func (s DescribeModelVersionOutput) GoString() string { return s.String() } // SetCreatedAt sets the CreatedAt field's value. -func (s *DescribeInferenceSchedulerOutput) SetCreatedAt(v time.Time) *DescribeInferenceSchedulerOutput { +func (s *DescribeModelVersionOutput) SetCreatedAt(v time.Time) *DescribeModelVersionOutput { s.CreatedAt = &v return s } -// SetDataDelayOffsetInMinutes sets the DataDelayOffsetInMinutes field's value. -func (s *DescribeInferenceSchedulerOutput) SetDataDelayOffsetInMinutes(v int64) *DescribeInferenceSchedulerOutput { - s.DataDelayOffsetInMinutes = &v +// SetDataPreProcessingConfiguration sets the DataPreProcessingConfiguration field's value. +func (s *DescribeModelVersionOutput) SetDataPreProcessingConfiguration(v *DataPreProcessingConfiguration) *DescribeModelVersionOutput { + s.DataPreProcessingConfiguration = v return s } -// SetDataInputConfiguration sets the DataInputConfiguration field's value. -func (s *DescribeInferenceSchedulerOutput) SetDataInputConfiguration(v *InferenceInputConfiguration) *DescribeInferenceSchedulerOutput { - s.DataInputConfiguration = v +// SetDatasetArn sets the DatasetArn field's value. +func (s *DescribeModelVersionOutput) SetDatasetArn(v string) *DescribeModelVersionOutput { + s.DatasetArn = &v return s } -// SetDataOutputConfiguration sets the DataOutputConfiguration field's value. -func (s *DescribeInferenceSchedulerOutput) SetDataOutputConfiguration(v *InferenceOutputConfiguration) *DescribeInferenceSchedulerOutput { - s.DataOutputConfiguration = v +// SetDatasetName sets the DatasetName field's value. +func (s *DescribeModelVersionOutput) SetDatasetName(v string) *DescribeModelVersionOutput { + s.DatasetName = &v return s } -// SetDataUploadFrequency sets the DataUploadFrequency field's value. -func (s *DescribeInferenceSchedulerOutput) SetDataUploadFrequency(v string) *DescribeInferenceSchedulerOutput { - s.DataUploadFrequency = &v +// SetEvaluationDataEndTime sets the EvaluationDataEndTime field's value. +func (s *DescribeModelVersionOutput) SetEvaluationDataEndTime(v time.Time) *DescribeModelVersionOutput { + s.EvaluationDataEndTime = &v + return s +} + +// SetEvaluationDataStartTime sets the EvaluationDataStartTime field's value. +func (s *DescribeModelVersionOutput) SetEvaluationDataStartTime(v time.Time) *DescribeModelVersionOutput { + s.EvaluationDataStartTime = &v + return s +} + +// SetFailedReason sets the FailedReason field's value. +func (s *DescribeModelVersionOutput) SetFailedReason(v string) *DescribeModelVersionOutput { + s.FailedReason = &v + return s +} + +// SetImportJobEndTime sets the ImportJobEndTime field's value. +func (s *DescribeModelVersionOutput) SetImportJobEndTime(v time.Time) *DescribeModelVersionOutput { + s.ImportJobEndTime = &v + return s +} + +// SetImportJobStartTime sets the ImportJobStartTime field's value. +func (s *DescribeModelVersionOutput) SetImportJobStartTime(v time.Time) *DescribeModelVersionOutput { + s.ImportJobStartTime = &v + return s +} + +// SetImportedDataSizeInBytes sets the ImportedDataSizeInBytes field's value. +func (s *DescribeModelVersionOutput) SetImportedDataSizeInBytes(v int64) *DescribeModelVersionOutput { + s.ImportedDataSizeInBytes = &v + return s +} + +// SetLabelsInputConfiguration sets the LabelsInputConfiguration field's value. +func (s *DescribeModelVersionOutput) SetLabelsInputConfiguration(v *LabelsInputConfiguration) *DescribeModelVersionOutput { + s.LabelsInputConfiguration = v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *DescribeModelVersionOutput) SetLastUpdatedTime(v time.Time) *DescribeModelVersionOutput { + s.LastUpdatedTime = &v + return s +} + +// SetModelArn sets the ModelArn field's value. +func (s *DescribeModelVersionOutput) SetModelArn(v string) *DescribeModelVersionOutput { + s.ModelArn = &v + return s +} + +// SetModelMetrics sets the ModelMetrics field's value. +func (s *DescribeModelVersionOutput) SetModelMetrics(v string) *DescribeModelVersionOutput { + s.ModelMetrics = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *DescribeModelVersionOutput) SetModelName(v string) *DescribeModelVersionOutput { + s.ModelName = &v + return s +} + +// SetModelVersion sets the ModelVersion field's value. +func (s *DescribeModelVersionOutput) SetModelVersion(v int64) *DescribeModelVersionOutput { + s.ModelVersion = &v + return s +} + +// SetModelVersionArn sets the ModelVersionArn field's value. +func (s *DescribeModelVersionOutput) SetModelVersionArn(v string) *DescribeModelVersionOutput { + s.ModelVersionArn = &v + return s +} + +// SetOffCondition sets the OffCondition field's value. +func (s *DescribeModelVersionOutput) SetOffCondition(v string) *DescribeModelVersionOutput { + s.OffCondition = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeModelVersionOutput) SetRoleArn(v string) *DescribeModelVersionOutput { + s.RoleArn = &v return s } -// SetInferenceSchedulerArn sets the InferenceSchedulerArn field's value. -func (s *DescribeInferenceSchedulerOutput) SetInferenceSchedulerArn(v string) *DescribeInferenceSchedulerOutput { - s.InferenceSchedulerArn = &v +// SetSchema sets the Schema field's value. +func (s *DescribeModelVersionOutput) SetSchema(v string) *DescribeModelVersionOutput { + s.Schema = &v return s } -// SetInferenceSchedulerName sets the InferenceSchedulerName field's value. -func (s *DescribeInferenceSchedulerOutput) SetInferenceSchedulerName(v string) *DescribeInferenceSchedulerOutput { - s.InferenceSchedulerName = &v +// SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. +func (s *DescribeModelVersionOutput) SetServerSideKmsKeyId(v string) *DescribeModelVersionOutput { + s.ServerSideKmsKeyId = &v return s } -// SetLatestInferenceResult sets the LatestInferenceResult field's value. -func (s *DescribeInferenceSchedulerOutput) SetLatestInferenceResult(v string) *DescribeInferenceSchedulerOutput { - s.LatestInferenceResult = &v +// SetSourceModelVersionArn sets the SourceModelVersionArn field's value. +func (s *DescribeModelVersionOutput) SetSourceModelVersionArn(v string) *DescribeModelVersionOutput { + s.SourceModelVersionArn = &v return s } -// SetModelArn sets the ModelArn field's value. -func (s *DescribeInferenceSchedulerOutput) SetModelArn(v string) *DescribeInferenceSchedulerOutput { - s.ModelArn = &v +// SetSourceType sets the SourceType field's value. +func (s *DescribeModelVersionOutput) SetSourceType(v string) *DescribeModelVersionOutput { + s.SourceType = &v return s } -// SetModelName sets the ModelName field's value. -func (s *DescribeInferenceSchedulerOutput) SetModelName(v string) *DescribeInferenceSchedulerOutput { - s.ModelName = &v +// SetStatus sets the Status field's value. +func (s *DescribeModelVersionOutput) SetStatus(v string) *DescribeModelVersionOutput { + s.Status = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *DescribeInferenceSchedulerOutput) SetRoleArn(v string) *DescribeInferenceSchedulerOutput { - s.RoleArn = &v +// SetTrainingDataEndTime sets the TrainingDataEndTime field's value. +func (s *DescribeModelVersionOutput) SetTrainingDataEndTime(v time.Time) *DescribeModelVersionOutput { + s.TrainingDataEndTime = &v return s } -// SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. -func (s *DescribeInferenceSchedulerOutput) SetServerSideKmsKeyId(v string) *DescribeInferenceSchedulerOutput { - s.ServerSideKmsKeyId = &v +// SetTrainingDataStartTime sets the TrainingDataStartTime field's value. +func (s *DescribeModelVersionOutput) SetTrainingDataStartTime(v time.Time) *DescribeModelVersionOutput { + s.TrainingDataStartTime = &v return s } -// SetStatus sets the Status field's value. -func (s *DescribeInferenceSchedulerOutput) SetStatus(v string) *DescribeInferenceSchedulerOutput { - s.Status = &v +// SetTrainingExecutionEndTime sets the TrainingExecutionEndTime field's value. +func (s *DescribeModelVersionOutput) SetTrainingExecutionEndTime(v time.Time) *DescribeModelVersionOutput { + s.TrainingExecutionEndTime = &v return s } -// SetUpdatedAt sets the UpdatedAt field's value. -func (s *DescribeInferenceSchedulerOutput) SetUpdatedAt(v time.Time) *DescribeInferenceSchedulerOutput { - s.UpdatedAt = &v +// SetTrainingExecutionStartTime sets the TrainingExecutionStartTime field's value. +func (s *DescribeModelVersionOutput) SetTrainingExecutionStartTime(v time.Time) *DescribeModelVersionOutput { + s.TrainingExecutionStartTime = &v return s } -type DescribeLabelGroupInput struct { +type DescribeResourcePolicyInput struct { _ struct{} `type:"structure"` - // Returns the name of the label group. + // The Amazon Resource Name (ARN) of the resource that is associated with the + // resource policy. // - // LabelGroupName is a required field - LabelGroupName *string `min:"1" type:"string" required:"true"` + // ResourceArn is a required field + ResourceArn *string `min:"20" type:"string" required:"true"` } // String returns the string representation. @@ -6272,7 +8255,7 @@ type DescribeLabelGroupInput 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 DescribeLabelGroupInput) String() string { +func (s DescribeResourcePolicyInput) String() string { return awsutil.Prettify(s) } @@ -6281,18 +8264,18 @@ func (s DescribeLabelGroupInput) 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 DescribeLabelGroupInput) GoString() string { +func (s DescribeResourcePolicyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeLabelGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeLabelGroupInput"} - if s.LabelGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LabelGroupName")) +func (s *DescribeResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeResourcePolicyInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } - if s.LabelGroupName != nil && len(*s.LabelGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LabelGroupName", 1)) + if s.ResourceArn != nil && len(*s.ResourceArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20)) } if invalidParams.Len() > 0 { @@ -6301,30 +8284,26 @@ func (s *DescribeLabelGroupInput) Validate() error { return nil } -// SetLabelGroupName sets the LabelGroupName field's value. -func (s *DescribeLabelGroupInput) SetLabelGroupName(v string) *DescribeLabelGroupInput { - s.LabelGroupName = &v +// SetResourceArn sets the ResourceArn field's value. +func (s *DescribeResourcePolicyInput) SetResourceArn(v string) *DescribeResourcePolicyInput { + s.ResourceArn = &v return s } -type DescribeLabelGroupOutput struct { +type DescribeResourcePolicyOutput struct { _ struct{} `type:"structure"` - // The time at which the label group was created. - CreatedAt *time.Time `type:"timestamp"` - - // Codes indicating the type of anomaly associated with the labels in the lagbel - // group. - FaultCodes []*string `type:"list"` + // The time when the resource policy was created. + CreationTime *time.Time `type:"timestamp"` - // The ARN of the label group. - LabelGroupArn *string `min:"20" type:"string"` + // The time when the resource policy was last modified. + LastModifiedTime *time.Time `type:"timestamp"` - // The name of the label group. - LabelGroupName *string `min:"1" type:"string"` + // A unique identifier for a revision of the resource policy. + PolicyRevisionId *string `type:"string"` - // The time at which the label group was updated. - UpdatedAt *time.Time `type:"timestamp"` + // The resource policy in a JSON-formatted string. + ResourcePolicy *string `min:"1" type:"string"` } // String returns the string representation. @@ -6332,7 +8311,7 @@ type DescribeLabelGroupOutput 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 DescribeLabelGroupOutput) String() string { +func (s DescribeResourcePolicyOutput) String() string { return awsutil.Prettify(s) } @@ -6341,52 +8320,42 @@ func (s DescribeLabelGroupOutput) 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 DescribeLabelGroupOutput) GoString() string { +func (s DescribeResourcePolicyOutput) GoString() string { return s.String() } -// SetCreatedAt sets the CreatedAt field's value. -func (s *DescribeLabelGroupOutput) SetCreatedAt(v time.Time) *DescribeLabelGroupOutput { - s.CreatedAt = &v - return s -} - -// SetFaultCodes sets the FaultCodes field's value. -func (s *DescribeLabelGroupOutput) SetFaultCodes(v []*string) *DescribeLabelGroupOutput { - s.FaultCodes = v +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeResourcePolicyOutput) SetCreationTime(v time.Time) *DescribeResourcePolicyOutput { + s.CreationTime = &v return s } -// SetLabelGroupArn sets the LabelGroupArn field's value. -func (s *DescribeLabelGroupOutput) SetLabelGroupArn(v string) *DescribeLabelGroupOutput { - s.LabelGroupArn = &v +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeResourcePolicyOutput) SetLastModifiedTime(v time.Time) *DescribeResourcePolicyOutput { + s.LastModifiedTime = &v return s } -// SetLabelGroupName sets the LabelGroupName field's value. -func (s *DescribeLabelGroupOutput) SetLabelGroupName(v string) *DescribeLabelGroupOutput { - s.LabelGroupName = &v +// SetPolicyRevisionId sets the PolicyRevisionId field's value. +func (s *DescribeResourcePolicyOutput) SetPolicyRevisionId(v string) *DescribeResourcePolicyOutput { + s.PolicyRevisionId = &v return s } -// SetUpdatedAt sets the UpdatedAt field's value. -func (s *DescribeLabelGroupOutput) SetUpdatedAt(v time.Time) *DescribeLabelGroupOutput { - s.UpdatedAt = &v +// SetResourcePolicy sets the ResourcePolicy field's value. +func (s *DescribeResourcePolicyOutput) SetResourcePolicy(v string) *DescribeResourcePolicyOutput { + s.ResourcePolicy = &v return s } -type DescribeLabelInput struct { +// Entity that comprises information abount duplicate timestamps in the dataset. +type DuplicateTimestamps struct { _ struct{} `type:"structure"` - // Returns the name of the group containing the label. - // - // LabelGroupName is a required field - LabelGroupName *string `min:"1" type:"string" required:"true"` - - // Returns the ID of the label. + // Indicates the total number of duplicate timestamps. // - // LabelId is a required field - LabelId *string `type:"string" required:"true"` + // TotalNumberOfDuplicateTimestamps is a required field + TotalNumberOfDuplicateTimestamps *int64 `type:"integer" required:"true"` } // String returns the string representation. @@ -6394,7 +8363,7 @@ type DescribeLabelInput 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 DescribeLabelInput) String() string { +func (s DuplicateTimestamps) String() string { return awsutil.Prettify(s) } @@ -6403,79 +8372,39 @@ func (s DescribeLabelInput) 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 DescribeLabelInput) GoString() string { +func (s DuplicateTimestamps) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeLabelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeLabelInput"} - if s.LabelGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LabelGroupName")) - } - if s.LabelGroupName != nil && len(*s.LabelGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LabelGroupName", 1)) - } - if s.LabelId == nil { - invalidParams.Add(request.NewErrParamRequired("LabelId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetLabelGroupName sets the LabelGroupName field's value. -func (s *DescribeLabelInput) SetLabelGroupName(v string) *DescribeLabelInput { - s.LabelGroupName = &v - return s -} - -// SetLabelId sets the LabelId field's value. -func (s *DescribeLabelInput) SetLabelId(v string) *DescribeLabelInput { - s.LabelId = &v +// SetTotalNumberOfDuplicateTimestamps sets the TotalNumberOfDuplicateTimestamps field's value. +func (s *DuplicateTimestamps) SetTotalNumberOfDuplicateTimestamps(v int64) *DuplicateTimestamps { + s.TotalNumberOfDuplicateTimestamps = &v return s } -type DescribeLabelOutput struct { +type ImportDatasetInput struct { _ struct{} `type:"structure"` - // The time at which the label was created. - CreatedAt *time.Time `type:"timestamp"` - - // The end time of the requested label. - EndTime *time.Time `type:"timestamp"` - - // Indicates that a label pertains to a particular piece of equipment. - Equipment *string `min:"1" type:"string"` - - // Indicates the type of anomaly associated with the label. - // - // Data in this field will be retained for service usage. Follow best practices - // for the security of your data. - FaultCode *string `min:"1" type:"string"` - - // The ARN of the requested label group. - LabelGroupArn *string `min:"20" type:"string"` + // A unique identifier for the request. If you do not set the client request + // token, Amazon Lookout for Equipment generates one. + ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` - // The name of the requested label group. - LabelGroupName *string `min:"1" type:"string"` + // The name of the machine learning dataset to be created. If the dataset already + // exists, Amazon Lookout for Equipment overwrites the existing dataset. If + // you don't specify this field, it is filled with the name of the source dataset. + DatasetName *string `min:"1" type:"string"` - // The ID of the requested label. - LabelId *string `type:"string"` + // Provides the identifier of the KMS key key used to encrypt model data by + // Amazon Lookout for Equipment. + ServerSideKmsKeyId *string `min:"1" type:"string"` - // Metadata providing additional information about the label. + // The Amazon Resource Name (ARN) of the dataset to import. // - // Data in this field will be retained for service usage. Follow best practices - // for the security of your data. - Notes *string `min:"1" type:"string"` - - // Indicates whether a labeled event represents an anomaly. - Rating *string `type:"string" enum:"LabelRating"` + // SourceDatasetArn is a required field + SourceDatasetArn *string `min:"20" type:"string" required:"true"` - // The start time of the requested label. - StartTime *time.Time `type:"timestamp"` + // Any tags associated with the dataset to be created. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -6483,7 +8412,7 @@ type DescribeLabelOutput 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 DescribeLabelOutput) String() string { +func (s ImportDatasetInput) String() string { return awsutil.Prettify(s) } @@ -6492,77 +8421,89 @@ func (s DescribeLabelOutput) 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 DescribeLabelOutput) GoString() string { +func (s ImportDatasetInput) GoString() string { return s.String() } -// SetCreatedAt sets the CreatedAt field's value. -func (s *DescribeLabelOutput) SetCreatedAt(v time.Time) *DescribeLabelOutput { - s.CreatedAt = &v - return s -} - -// SetEndTime sets the EndTime field's value. -func (s *DescribeLabelOutput) SetEndTime(v time.Time) *DescribeLabelOutput { - s.EndTime = &v - return s -} - -// SetEquipment sets the Equipment field's value. -func (s *DescribeLabelOutput) SetEquipment(v string) *DescribeLabelOutput { - s.Equipment = &v - return s -} - -// SetFaultCode sets the FaultCode field's value. -func (s *DescribeLabelOutput) SetFaultCode(v string) *DescribeLabelOutput { - s.FaultCode = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImportDatasetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportDatasetInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.DatasetName != nil && len(*s.DatasetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) + } + if s.ServerSideKmsKeyId != nil && len(*s.ServerSideKmsKeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerSideKmsKeyId", 1)) + } + if s.SourceDatasetArn == nil { + invalidParams.Add(request.NewErrParamRequired("SourceDatasetArn")) + } + if s.SourceDatasetArn != nil && len(*s.SourceDatasetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("SourceDatasetArn", 20)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } -// SetLabelGroupArn sets the LabelGroupArn field's value. -func (s *DescribeLabelOutput) SetLabelGroupArn(v string) *DescribeLabelOutput { - s.LabelGroupArn = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetLabelGroupName sets the LabelGroupName field's value. -func (s *DescribeLabelOutput) SetLabelGroupName(v string) *DescribeLabelOutput { - s.LabelGroupName = &v +// SetClientToken sets the ClientToken field's value. +func (s *ImportDatasetInput) SetClientToken(v string) *ImportDatasetInput { + s.ClientToken = &v return s } -// SetLabelId sets the LabelId field's value. -func (s *DescribeLabelOutput) SetLabelId(v string) *DescribeLabelOutput { - s.LabelId = &v +// SetDatasetName sets the DatasetName field's value. +func (s *ImportDatasetInput) SetDatasetName(v string) *ImportDatasetInput { + s.DatasetName = &v return s } -// SetNotes sets the Notes field's value. -func (s *DescribeLabelOutput) SetNotes(v string) *DescribeLabelOutput { - s.Notes = &v +// SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. +func (s *ImportDatasetInput) SetServerSideKmsKeyId(v string) *ImportDatasetInput { + s.ServerSideKmsKeyId = &v return s } -// SetRating sets the Rating field's value. -func (s *DescribeLabelOutput) SetRating(v string) *DescribeLabelOutput { - s.Rating = &v +// SetSourceDatasetArn sets the SourceDatasetArn field's value. +func (s *ImportDatasetInput) SetSourceDatasetArn(v string) *ImportDatasetInput { + s.SourceDatasetArn = &v return s } - -// SetStartTime sets the StartTime field's value. -func (s *DescribeLabelOutput) SetStartTime(v time.Time) *DescribeLabelOutput { - s.StartTime = &v + +// SetTags sets the Tags field's value. +func (s *ImportDatasetInput) SetTags(v []*Tag) *ImportDatasetInput { + s.Tags = v return s } -type DescribeModelInput struct { +type ImportDatasetOutput struct { _ struct{} `type:"structure"` - // The name of the ML model to be described. - // - // ModelName is a required field - ModelName *string `min:"1" type:"string" required:"true"` + // The Amazon Resource Name (ARN) of the dataset that was imported. + DatasetArn *string `min:"20" type:"string"` + + // The name of the created machine learning dataset. + DatasetName *string `min:"1" type:"string"` + + // A unique identifier for the job of importing the dataset. + JobId *string `type:"string"` + + // The status of the ImportDataset operation. + Status *string `type:"string" enum:"DatasetStatus"` } // String returns the string representation. @@ -6570,7 +8511,7 @@ type DescribeModelInput 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 DescribeModelInput) String() string { +func (s ImportDatasetOutput) String() string { return awsutil.Prettify(s) } @@ -6579,122 +8520,70 @@ func (s DescribeModelInput) 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 DescribeModelInput) GoString() string { +func (s ImportDatasetOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeModelInput"} - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - if s.ModelName != nil && len(*s.ModelName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) - } +// SetDatasetArn sets the DatasetArn field's value. +func (s *ImportDatasetOutput) SetDatasetArn(v string) *ImportDatasetOutput { + s.DatasetArn = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDatasetName sets the DatasetName field's value. +func (s *ImportDatasetOutput) SetDatasetName(v string) *ImportDatasetOutput { + s.DatasetName = &v + return s } -// SetModelName sets the ModelName field's value. -func (s *DescribeModelInput) SetModelName(v string) *DescribeModelInput { - s.ModelName = &v +// SetJobId sets the JobId field's value. +func (s *ImportDatasetOutput) SetJobId(v string) *ImportDatasetOutput { + s.JobId = &v return s } -type DescribeModelOutput struct { +// SetStatus sets the Status field's value. +func (s *ImportDatasetOutput) SetStatus(v string) *ImportDatasetOutput { + s.Status = &v + return s +} + +type ImportModelVersionInput struct { _ struct{} `type:"structure"` - // Indicates the time and date at which the ML model was created. - CreatedAt *time.Time `type:"timestamp"` + // A unique identifier for the request. If you do not set the client request + // token, Amazon Lookout for Equipment generates one. + ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` - // The configuration is the TargetSamplingRate, which is the sampling rate of - // the data after post processing by Amazon Lookout for Equipment. For example, - // if you provide data that has been collected at a 1 second level and you want - // the system to resample the data at a 1 minute rate before training, the TargetSamplingRate - // is 1 minute. + // The name of the dataset for the machine learning model being imported. // - // When providing a value for the TargetSamplingRate, you must attach the prefix - // "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, - // the value for a 15 minute rate is PT15M, and the value for a 1 hour rate - // is PT1H - DataPreProcessingConfiguration *DataPreProcessingConfiguration `type:"structure"` - - // The Amazon Resouce Name (ARN) of the dataset used to create the ML model - // being described. - DatasetArn *string `min:"20" type:"string"` - - // The name of the dataset being used by the ML being described. - DatasetName *string `min:"1" type:"string"` - - // Indicates the time reference in the dataset that was used to end the subset - // of evaluation data for the ML model. - EvaluationDataEndTime *time.Time `type:"timestamp"` - - // Indicates the time reference in the dataset that was used to begin the subset - // of evaluation data for the ML model. - EvaluationDataStartTime *time.Time `type:"timestamp"` - - // If the training of the ML model failed, this indicates the reason for that - // failure. - FailedReason *string `min:"1" type:"string"` + // DatasetName is a required field + DatasetName *string `min:"1" type:"string" required:"true"` - // Specifies configuration information about the labels input, including its - // S3 location. + // Contains the configuration information for the S3 location being used to + // hold label data. LabelsInputConfiguration *LabelsInputConfiguration `type:"structure"` - // Indicates the last time the ML model was updated. The type of update is not - // specified. - LastUpdatedTime *time.Time `type:"timestamp"` - - // The Amazon Resource Name (ARN) of the ML model being described. - ModelArn *string `min:"20" type:"string"` - - // The Model Metrics show an aggregated summary of the model's performance within - // the evaluation time range. This is the JSON content of the metrics created - // when evaluating the model. - ModelMetrics aws.JSONValue `type:"jsonvalue"` - - // The name of the ML model being described. + // The name for the machine learning model to be created. If the model already + // exists, Amazon Lookout for Equipment creates a new version. If you do not + // specify this field, it is filled with the name of the source model. ModelName *string `min:"1" type:"string"` - // Indicates that the asset associated with this sensor has been shut off. As - // long as this condition is met, Lookout for Equipment will not use data from - // this asset for training, evaluation, or inference. - OffCondition *string `min:"1" type:"string"` - // The Amazon Resource Name (ARN) of a role with permission to access the data - // source for the ML model being described. + // source being used to create the machine learning model. RoleArn *string `min:"20" type:"string"` - // A JSON description of the data that is in each time series dataset, including - // names, column names, and data types. - Schema aws.JSONValue `type:"jsonvalue"` - - // Provides the identifier of the KMS key used to encrypt model data by Amazon - // Lookout for Equipment. + // Provides the identifier of the KMS key key used to encrypt model data by + // Amazon Lookout for Equipment. ServerSideKmsKeyId *string `min:"1" type:"string"` - // Specifies the current status of the model being described. Status describes - // the status of the most recent action of the model. - Status *string `type:"string" enum:"ModelStatus"` - - // Indicates the time reference in the dataset that was used to end the subset - // of training data for the ML model. - TrainingDataEndTime *time.Time `type:"timestamp"` - - // Indicates the time reference in the dataset that was used to begin the subset - // of training data for the ML model. - TrainingDataStartTime *time.Time `type:"timestamp"` - - // Indicates the time at which the training of the ML model was completed. - TrainingExecutionEndTime *time.Time `type:"timestamp"` + // The Amazon Resource Name (ARN) of the model version to import. + // + // SourceModelVersionArn is a required field + SourceModelVersionArn *string `min:"20" type:"string" required:"true"` - // Indicates the time at which the training of the ML model began. - TrainingExecutionStartTime *time.Time `type:"timestamp"` + // The tags associated with the machine learning model to be created. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -6702,7 +8591,7 @@ type DescribeModelOutput 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 DescribeModelOutput) String() string { +func (s ImportModelVersionInput) String() string { return awsutil.Prettify(s) } @@ -6711,144 +8600,124 @@ func (s DescribeModelOutput) 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 DescribeModelOutput) GoString() string { +func (s ImportModelVersionInput) GoString() string { return s.String() } -// SetCreatedAt sets the CreatedAt field's value. -func (s *DescribeModelOutput) SetCreatedAt(v time.Time) *DescribeModelOutput { - s.CreatedAt = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImportModelVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportModelVersionInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.DatasetName == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetName")) + } + if s.DatasetName != nil && len(*s.DatasetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) + } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) + } + if s.ServerSideKmsKeyId != nil && len(*s.ServerSideKmsKeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServerSideKmsKeyId", 1)) + } + if s.SourceModelVersionArn == nil { + invalidParams.Add(request.NewErrParamRequired("SourceModelVersionArn")) + } + if s.SourceModelVersionArn != nil && len(*s.SourceModelVersionArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("SourceModelVersionArn", 20)) + } + if s.LabelsInputConfiguration != nil { + if err := s.LabelsInputConfiguration.Validate(); err != nil { + invalidParams.AddNested("LabelsInputConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } -// SetDataPreProcessingConfiguration sets the DataPreProcessingConfiguration field's value. -func (s *DescribeModelOutput) SetDataPreProcessingConfiguration(v *DataPreProcessingConfiguration) *DescribeModelOutput { - s.DataPreProcessingConfiguration = v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetDatasetArn sets the DatasetArn field's value. -func (s *DescribeModelOutput) SetDatasetArn(v string) *DescribeModelOutput { - s.DatasetArn = &v +// SetClientToken sets the ClientToken field's value. +func (s *ImportModelVersionInput) SetClientToken(v string) *ImportModelVersionInput { + s.ClientToken = &v return s } // SetDatasetName sets the DatasetName field's value. -func (s *DescribeModelOutput) SetDatasetName(v string) *DescribeModelOutput { +func (s *ImportModelVersionInput) SetDatasetName(v string) *ImportModelVersionInput { s.DatasetName = &v return s } -// SetEvaluationDataEndTime sets the EvaluationDataEndTime field's value. -func (s *DescribeModelOutput) SetEvaluationDataEndTime(v time.Time) *DescribeModelOutput { - s.EvaluationDataEndTime = &v - return s -} - -// SetEvaluationDataStartTime sets the EvaluationDataStartTime field's value. -func (s *DescribeModelOutput) SetEvaluationDataStartTime(v time.Time) *DescribeModelOutput { - s.EvaluationDataStartTime = &v - return s -} - -// SetFailedReason sets the FailedReason field's value. -func (s *DescribeModelOutput) SetFailedReason(v string) *DescribeModelOutput { - s.FailedReason = &v - return s -} - // SetLabelsInputConfiguration sets the LabelsInputConfiguration field's value. -func (s *DescribeModelOutput) SetLabelsInputConfiguration(v *LabelsInputConfiguration) *DescribeModelOutput { +func (s *ImportModelVersionInput) SetLabelsInputConfiguration(v *LabelsInputConfiguration) *ImportModelVersionInput { s.LabelsInputConfiguration = v return s } -// SetLastUpdatedTime sets the LastUpdatedTime field's value. -func (s *DescribeModelOutput) SetLastUpdatedTime(v time.Time) *DescribeModelOutput { - s.LastUpdatedTime = &v - return s -} - -// SetModelArn sets the ModelArn field's value. -func (s *DescribeModelOutput) SetModelArn(v string) *DescribeModelOutput { - s.ModelArn = &v - return s -} - -// SetModelMetrics sets the ModelMetrics field's value. -func (s *DescribeModelOutput) SetModelMetrics(v aws.JSONValue) *DescribeModelOutput { - s.ModelMetrics = v - return s -} - -// SetModelName sets the ModelName field's value. -func (s *DescribeModelOutput) SetModelName(v string) *DescribeModelOutput { - s.ModelName = &v - return s -} - -// SetOffCondition sets the OffCondition field's value. -func (s *DescribeModelOutput) SetOffCondition(v string) *DescribeModelOutput { - s.OffCondition = &v - return s -} - -// SetRoleArn sets the RoleArn field's value. -func (s *DescribeModelOutput) SetRoleArn(v string) *DescribeModelOutput { - s.RoleArn = &v - return s -} - -// SetSchema sets the Schema field's value. -func (s *DescribeModelOutput) SetSchema(v aws.JSONValue) *DescribeModelOutput { - s.Schema = v - return s -} - -// SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. -func (s *DescribeModelOutput) SetServerSideKmsKeyId(v string) *DescribeModelOutput { - s.ServerSideKmsKeyId = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *DescribeModelOutput) SetStatus(v string) *DescribeModelOutput { - s.Status = &v +// SetModelName sets the ModelName field's value. +func (s *ImportModelVersionInput) SetModelName(v string) *ImportModelVersionInput { + s.ModelName = &v return s } -// SetTrainingDataEndTime sets the TrainingDataEndTime field's value. -func (s *DescribeModelOutput) SetTrainingDataEndTime(v time.Time) *DescribeModelOutput { - s.TrainingDataEndTime = &v +// SetRoleArn sets the RoleArn field's value. +func (s *ImportModelVersionInput) SetRoleArn(v string) *ImportModelVersionInput { + s.RoleArn = &v return s } -// SetTrainingDataStartTime sets the TrainingDataStartTime field's value. -func (s *DescribeModelOutput) SetTrainingDataStartTime(v time.Time) *DescribeModelOutput { - s.TrainingDataStartTime = &v +// SetServerSideKmsKeyId sets the ServerSideKmsKeyId field's value. +func (s *ImportModelVersionInput) SetServerSideKmsKeyId(v string) *ImportModelVersionInput { + s.ServerSideKmsKeyId = &v return s } -// SetTrainingExecutionEndTime sets the TrainingExecutionEndTime field's value. -func (s *DescribeModelOutput) SetTrainingExecutionEndTime(v time.Time) *DescribeModelOutput { - s.TrainingExecutionEndTime = &v +// SetSourceModelVersionArn sets the SourceModelVersionArn field's value. +func (s *ImportModelVersionInput) SetSourceModelVersionArn(v string) *ImportModelVersionInput { + s.SourceModelVersionArn = &v return s } -// SetTrainingExecutionStartTime sets the TrainingExecutionStartTime field's value. -func (s *DescribeModelOutput) SetTrainingExecutionStartTime(v time.Time) *DescribeModelOutput { - s.TrainingExecutionStartTime = &v +// SetTags sets the Tags field's value. +func (s *ImportModelVersionInput) SetTags(v []*Tag) *ImportModelVersionInput { + s.Tags = v return s } -// Entity that comprises information abount duplicate timestamps in the dataset. -type DuplicateTimestamps struct { +type ImportModelVersionOutput struct { _ struct{} `type:"structure"` - // Indicates the total number of duplicate timestamps. - // - // TotalNumberOfDuplicateTimestamps is a required field - TotalNumberOfDuplicateTimestamps *int64 `type:"integer" required:"true"` + // The Amazon Resource Name (ARN) of the model being created. + ModelArn *string `min:"20" type:"string"` + + // The name for the machine learning model. + ModelName *string `min:"1" type:"string"` + + // The version of the model being created. + ModelVersion *int64 `min:"1" type:"long"` + + // The Amazon Resource Name (ARN) of the model version being created. + ModelVersionArn *string `min:"20" type:"string"` + + // The status of the ImportModelVersion operation. + Status *string `type:"string" enum:"ModelVersionStatus"` } // String returns the string representation. @@ -6856,7 +8725,7 @@ type DuplicateTimestamps 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 DuplicateTimestamps) String() string { +func (s ImportModelVersionOutput) String() string { return awsutil.Prettify(s) } @@ -6865,13 +8734,37 @@ func (s DuplicateTimestamps) 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 DuplicateTimestamps) GoString() string { +func (s ImportModelVersionOutput) GoString() string { return s.String() } -// SetTotalNumberOfDuplicateTimestamps sets the TotalNumberOfDuplicateTimestamps field's value. -func (s *DuplicateTimestamps) SetTotalNumberOfDuplicateTimestamps(v int64) *DuplicateTimestamps { - s.TotalNumberOfDuplicateTimestamps = &v +// SetModelArn sets the ModelArn field's value. +func (s *ImportModelVersionOutput) SetModelArn(v string) *ImportModelVersionOutput { + s.ModelArn = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *ImportModelVersionOutput) SetModelName(v string) *ImportModelVersionOutput { + s.ModelName = &v + return s +} + +// SetModelVersion sets the ModelVersion field's value. +func (s *ImportModelVersionOutput) SetModelVersion(v int64) *ImportModelVersionOutput { + s.ModelVersion = &v + return s +} + +// SetModelVersionArn sets the ModelVersionArn field's value. +func (s *ImportModelVersionOutput) SetModelVersionArn(v string) *ImportModelVersionOutput { + s.ModelVersionArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ImportModelVersionOutput) SetStatus(v string) *ImportModelVersionOutput { + s.Status = &v return s } @@ -7211,7 +9104,7 @@ func (s *InferenceInputNameConfiguration) SetTimestampFormat(v string) *Inferenc type InferenceOutputConfiguration struct { _ struct{} `type:"structure"` - // The ID number for the AWS KMS key used to encrypt the inference output. + // The ID number for the KMS key key used to encrypt the inference output. KmsKeyId *string `min:"1" type:"string"` // Specifies configuration information for the output results from for the inference, @@ -7621,9 +9514,15 @@ type IngestionS3InputConfiguration struct { // Bucket is a required field Bucket *string `min:"3" type:"string" required:"true"` - // Pattern for matching the Amazon S3 files which will be used for ingestion. - // If no KeyPattern is provided, we will use the default hierarchy file structure, - // which is same as KeyPattern {prefix}/{component_name}/* + // The pattern for matching the Amazon S3 files that will be used for ingestion. + // If the schema was created previously without any KeyPattern, then the default + // KeyPattern {prefix}/{component_name}/* is used to download files from Amazon + // S3 according to the schema. This field is required when ingestion is being + // done for the first time. + // + // Valid Values: {prefix}/{component_name}_* | {prefix}/{component_name}/* | + // {prefix}/{component_name}[DELIMITER]* (Allowed delimiters : space, dot, underscore, + // hyphen) KeyPattern *string `min:"1" type:"string"` // The prefix for the S3 location being used for the input data for the data @@ -7852,7 +9751,7 @@ type LabelGroupSummary struct { // The time at which the label group was created. CreatedAt *time.Time `type:"timestamp"` - // The ARN of the label group. + // The Amazon Resource Name (ARN) of the label group. LabelGroupArn *string `min:"20" type:"string"` // The name of the label group. @@ -7923,7 +9822,7 @@ type LabelSummary struct { // for the security of your data. FaultCode *string `min:"1" type:"string"` - // The ARN of the label group. + // The Amazon Resource Name (ARN) of the label group. LabelGroupArn *string `min:"20" type:"string"` // The name of the label group. @@ -8417,7 +10316,7 @@ type ListInferenceEventsInput struct { InferenceSchedulerName *string `min:"1" type:"string" required:"true"` // Returns all the inference events with an end start time equal to or greater - // than less than the end time given + // than less than the end time given. // // IntervalEndTime is a required field IntervalEndTime *time.Time `type:"timestamp" required:"true"` @@ -8711,7 +10610,7 @@ type ListInferenceSchedulersInput struct { // schedulers. NextToken *string `type:"string"` - // Specifies the current status of the inference schedulers to list. + // Specifies the current status of the inference schedulers. Status *string `type:"string" enum:"InferenceSchedulerStatus"` } @@ -9085,6 +10984,184 @@ func (s *ListLabelsOutput) SetNextToken(v string) *ListLabelsOutput { return s } +type ListModelVersionsInput struct { + _ struct{} `type:"structure"` + + // Filter results to return all the model versions created before this time. + CreatedAtEndTime *time.Time `type:"timestamp"` + + // Filter results to return all the model versions created after this time. + CreatedAtStartTime *time.Time `type:"timestamp"` + + // Specifies the highest version of the model to return in the list. + MaxModelVersion *int64 `min:"1" type:"long"` + + // Specifies the maximum number of machine learning model versions to list. + MaxResults *int64 `min:"1" type:"integer"` + + // Specifies the lowest version of the model to return in the list. + MinModelVersion *int64 `min:"1" type:"long"` + + // Then name of the machine learning model for which the model versions are + // to be listed. + // + // ModelName is a required field + ModelName *string `min:"1" type:"string" required:"true"` + + // If the total number of results exceeds the limit that the response can display, + // the response returns an opaque pagination token indicating where to continue + // the listing of machine learning model versions. Use this token in the NextToken + // field in the request to list the next page of results. + NextToken *string `type:"string"` + + // Filter the results based on the way the model version was generated. + SourceType *string `type:"string" enum:"ModelVersionSourceType"` + + // Filter the results based on the current status of the model version. + Status *string `type:"string" enum:"ModelVersionStatus"` +} + +// 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 ListModelVersionsInput) 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 ListModelVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListModelVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListModelVersionsInput"} + if s.MaxModelVersion != nil && *s.MaxModelVersion < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxModelVersion", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.MinModelVersion != nil && *s.MinModelVersion < 1 { + invalidParams.Add(request.NewErrParamMinValue("MinModelVersion", 1)) + } + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) + } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCreatedAtEndTime sets the CreatedAtEndTime field's value. +func (s *ListModelVersionsInput) SetCreatedAtEndTime(v time.Time) *ListModelVersionsInput { + s.CreatedAtEndTime = &v + return s +} + +// SetCreatedAtStartTime sets the CreatedAtStartTime field's value. +func (s *ListModelVersionsInput) SetCreatedAtStartTime(v time.Time) *ListModelVersionsInput { + s.CreatedAtStartTime = &v + return s +} + +// SetMaxModelVersion sets the MaxModelVersion field's value. +func (s *ListModelVersionsInput) SetMaxModelVersion(v int64) *ListModelVersionsInput { + s.MaxModelVersion = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListModelVersionsInput) SetMaxResults(v int64) *ListModelVersionsInput { + s.MaxResults = &v + return s +} + +// SetMinModelVersion sets the MinModelVersion field's value. +func (s *ListModelVersionsInput) SetMinModelVersion(v int64) *ListModelVersionsInput { + s.MinModelVersion = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *ListModelVersionsInput) SetModelName(v string) *ListModelVersionsInput { + s.ModelName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListModelVersionsInput) SetNextToken(v string) *ListModelVersionsInput { + s.NextToken = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *ListModelVersionsInput) SetSourceType(v string) *ListModelVersionsInput { + s.SourceType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListModelVersionsInput) SetStatus(v string) *ListModelVersionsInput { + s.Status = &v + return s +} + +type ListModelVersionsOutput struct { + _ struct{} `type:"structure"` + + // Provides information on the specified model version, including the created + // time, model and dataset ARNs, and status. + ModelVersionSummaries []*ModelVersionSummary `type:"list"` + + // If the total number of results exceeds the limit that the response can display, + // the response returns an opaque pagination token indicating where to continue + // the listing of machine learning model versions. Use this token in the NextToken + // field in the request to list 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 ListModelVersionsOutput) 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 ListModelVersionsOutput) GoString() string { + return s.String() +} + +// SetModelVersionSummaries sets the ModelVersionSummaries field's value. +func (s *ListModelVersionsOutput) SetModelVersionSummaries(v []*ModelVersionSummary) *ListModelVersionsOutput { + s.ModelVersionSummaries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListModelVersionsOutput) SetNextToken(v string) *ListModelVersionsOutput { + s.NextToken = &v + return s +} + type ListModelsInput struct { _ struct{} `type:"structure"` @@ -9501,28 +11578,129 @@ func (s *MissingSensorData) SetTotalNumberOfMissingValues(v int64) *MissingSenso return s } -// Provides information about the specified ML model, including dataset and -// model names and ARNs, as well as status. -type ModelSummary struct { +// Provides information about the specified ML model, including dataset and +// model names and ARNs, as well as status. +type ModelSummary struct { + _ struct{} `type:"structure"` + + // The model version that the inference scheduler uses to run an inference execution. + ActiveModelVersion *int64 `min:"1" type:"long"` + + // The Amazon Resource Name (ARN) of the model version that is set as active. + // The active model version is the model version that the inference scheduler + // uses to run an inference execution. + ActiveModelVersionArn *string `min:"20" type:"string"` + + // The time at which the specific model was created. + CreatedAt *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the dataset used to create the model. + DatasetArn *string `min:"20" type:"string"` + + // The name of the dataset being used for the ML model. + DatasetName *string `min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the ML model. + ModelArn *string `min:"20" type:"string"` + + // The name of the ML model. + ModelName *string `min:"1" type:"string"` + + // Indicates the status of the ML model. + Status *string `type:"string" enum:"ModelStatus"` +} + +// 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 ModelSummary) 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 ModelSummary) GoString() string { + return s.String() +} + +// SetActiveModelVersion sets the ActiveModelVersion field's value. +func (s *ModelSummary) SetActiveModelVersion(v int64) *ModelSummary { + s.ActiveModelVersion = &v + return s +} + +// SetActiveModelVersionArn sets the ActiveModelVersionArn field's value. +func (s *ModelSummary) SetActiveModelVersionArn(v string) *ModelSummary { + s.ActiveModelVersionArn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *ModelSummary) SetCreatedAt(v time.Time) *ModelSummary { + s.CreatedAt = &v + return s +} + +// SetDatasetArn sets the DatasetArn field's value. +func (s *ModelSummary) SetDatasetArn(v string) *ModelSummary { + s.DatasetArn = &v + return s +} + +// SetDatasetName sets the DatasetName field's value. +func (s *ModelSummary) SetDatasetName(v string) *ModelSummary { + s.DatasetName = &v + return s +} + +// SetModelArn sets the ModelArn field's value. +func (s *ModelSummary) SetModelArn(v string) *ModelSummary { + s.ModelArn = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *ModelSummary) SetModelName(v string) *ModelSummary { + s.ModelName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ModelSummary) SetStatus(v string) *ModelSummary { + s.Status = &v + return s +} + +// Contains information about the specific model version. +type ModelVersionSummary struct { _ struct{} `type:"structure"` - // The time at which the specific model was created. + // The time when this model version was created. CreatedAt *time.Time `type:"timestamp"` - // The Amazon Resource Name (ARN) of the dataset used to create the model. - DatasetArn *string `min:"20" type:"string"` - - // The name of the dataset being used for the ML model. - DatasetName *string `min:"1" type:"string"` - - // The Amazon Resource Name (ARN) of the ML model. + // The Amazon Resource Name (ARN) of the model that this model version is a + // version of. ModelArn *string `min:"20" type:"string"` - // The name of the ML model. + // The name of the model that this model version is a version of. ModelName *string `min:"1" type:"string"` - // Indicates the status of the ML model. - Status *string `type:"string" enum:"ModelStatus"` + // The version of the model. + ModelVersion *int64 `min:"1" type:"long"` + + // The Amazon Resource Name (ARN) of the model version. + ModelVersionArn *string `min:"20" type:"string"` + + // Indicates how this model version was generated. + SourceType *string `type:"string" enum:"ModelVersionSourceType"` + + // The current status of the model version. + Status *string `type:"string" enum:"ModelVersionStatus"` } // String returns the string representation. @@ -9530,7 +11708,7 @@ type ModelSummary 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 ModelSummary) String() string { +func (s ModelVersionSummary) String() string { return awsutil.Prettify(s) } @@ -9539,42 +11717,48 @@ func (s ModelSummary) 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 ModelSummary) GoString() string { +func (s ModelVersionSummary) GoString() string { return s.String() } // SetCreatedAt sets the CreatedAt field's value. -func (s *ModelSummary) SetCreatedAt(v time.Time) *ModelSummary { +func (s *ModelVersionSummary) SetCreatedAt(v time.Time) *ModelVersionSummary { s.CreatedAt = &v return s } -// SetDatasetArn sets the DatasetArn field's value. -func (s *ModelSummary) SetDatasetArn(v string) *ModelSummary { - s.DatasetArn = &v +// SetModelArn sets the ModelArn field's value. +func (s *ModelVersionSummary) SetModelArn(v string) *ModelVersionSummary { + s.ModelArn = &v return s } -// SetDatasetName sets the DatasetName field's value. -func (s *ModelSummary) SetDatasetName(v string) *ModelSummary { - s.DatasetName = &v +// SetModelName sets the ModelName field's value. +func (s *ModelVersionSummary) SetModelName(v string) *ModelVersionSummary { + s.ModelName = &v return s } -// SetModelArn sets the ModelArn field's value. -func (s *ModelSummary) SetModelArn(v string) *ModelSummary { - s.ModelArn = &v +// SetModelVersion sets the ModelVersion field's value. +func (s *ModelVersionSummary) SetModelVersion(v int64) *ModelVersionSummary { + s.ModelVersion = &v return s } -// SetModelName sets the ModelName field's value. -func (s *ModelSummary) SetModelName(v string) *ModelSummary { - s.ModelName = &v +// SetModelVersionArn sets the ModelVersionArn field's value. +func (s *ModelVersionSummary) SetModelVersionArn(v string) *ModelVersionSummary { + s.ModelVersionArn = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *ModelVersionSummary) SetSourceType(v string) *ModelVersionSummary { + s.SourceType = &v return s } // SetStatus sets the Status field's value. -func (s *ModelSummary) SetStatus(v string) *ModelSummary { +func (s *ModelVersionSummary) SetStatus(v string) *ModelVersionSummary { s.Status = &v return s } @@ -9658,6 +11842,135 @@ func (s *MultipleOperatingModes) SetStatus(v string) *MultipleOperatingModes { return s } +type PutResourcePolicyInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the request. If you do not set the client request + // token, Amazon Lookout for Equipment generates one. + ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // A unique identifier for a revision of the resource policy. + PolicyRevisionId *string `type:"string"` + + // The Amazon Resource Name (ARN) of the resource for which the policy is being + // created. + // + // ResourceArn is a required field + ResourceArn *string `min:"20" type:"string" required:"true"` + + // The JSON-formatted resource policy to create. + // + // ResourcePolicy is a required field + ResourcePolicy *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 PutResourcePolicyInput) 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 PutResourcePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutResourcePolicyInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20)) + } + if s.ResourcePolicy == nil { + invalidParams.Add(request.NewErrParamRequired("ResourcePolicy")) + } + if s.ResourcePolicy != nil && len(*s.ResourcePolicy) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourcePolicy", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *PutResourcePolicyInput) SetClientToken(v string) *PutResourcePolicyInput { + s.ClientToken = &v + return s +} + +// SetPolicyRevisionId sets the PolicyRevisionId field's value. +func (s *PutResourcePolicyInput) SetPolicyRevisionId(v string) *PutResourcePolicyInput { + s.PolicyRevisionId = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *PutResourcePolicyInput) SetResourceArn(v string) *PutResourcePolicyInput { + s.ResourceArn = &v + return s +} + +// SetResourcePolicy sets the ResourcePolicy field's value. +func (s *PutResourcePolicyInput) SetResourcePolicy(v string) *PutResourcePolicyInput { + s.ResourcePolicy = &v + return s +} + +type PutResourcePolicyOutput struct { + _ struct{} `type:"structure"` + + // A unique identifier for a revision of the resource policy. + PolicyRevisionId *string `type:"string"` + + // The Amazon Resource Name (ARN) of the resource for which the policy was created. + ResourceArn *string `min:"20" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutResourcePolicyOutput) 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 PutResourcePolicyOutput) GoString() string { + return s.String() +} + +// SetPolicyRevisionId sets the PolicyRevisionId field's value. +func (s *PutResourcePolicyOutput) SetPolicyRevisionId(v string) *PutResourcePolicyOutput { + s.PolicyRevisionId = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *PutResourcePolicyOutput) SetResourceArn(v string) *PutResourcePolicyOutput { + s.ResourceArn = &v + return s +} + // The resource requested could not be found. Verify the resource ID and retry // your request. type ResourceNotFoundException struct { @@ -9732,8 +12045,8 @@ type S3Object struct { // Bucket is a required field Bucket *string `min:"3" type:"string" required:"true"` - // The AWS Key Management Service (AWS KMS) key being used to encrypt the S3 - // object. Without this key, data in the bucket is not accessible. + // The Amazon Web Services Key Management Service (KMS key) key being used to + // encrypt the S3 object. Without this key, data in the bucket is not accessible. // // Key is a required field Key *string `min:"1" type:"string" required:"true"` @@ -10740,6 +13053,156 @@ func (s UntagResourceOutput) GoString() string { return s.String() } +type UpdateActiveModelVersionInput struct { + _ struct{} `type:"structure"` + + // The name of the machine learning model for which the active model version + // is being set. + // + // ModelName is a required field + ModelName *string `min:"1" type:"string" required:"true"` + + // The version of the machine learning model for which the active model version + // is being set. + // + // ModelVersion is a required field + ModelVersion *int64 `min:"1" type:"long" 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 UpdateActiveModelVersionInput) 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 UpdateActiveModelVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateActiveModelVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateActiveModelVersionInput"} + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) + } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } + if s.ModelVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ModelVersion")) + } + if s.ModelVersion != nil && *s.ModelVersion < 1 { + invalidParams.Add(request.NewErrParamMinValue("ModelVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetModelName sets the ModelName field's value. +func (s *UpdateActiveModelVersionInput) SetModelName(v string) *UpdateActiveModelVersionInput { + s.ModelName = &v + return s +} + +// SetModelVersion sets the ModelVersion field's value. +func (s *UpdateActiveModelVersionInput) SetModelVersion(v int64) *UpdateActiveModelVersionInput { + s.ModelVersion = &v + return s +} + +type UpdateActiveModelVersionOutput struct { + _ struct{} `type:"structure"` + + // The version that is currently active of the machine learning model for which + // the active model version was set. + CurrentActiveVersion *int64 `min:"1" type:"long"` + + // The Amazon Resource Name (ARN) of the machine learning model version that + // is the current active model version. + CurrentActiveVersionArn *string `min:"20" type:"string"` + + // The Amazon Resource Name (ARN) of the machine learning model for which the + // active model version was set. + ModelArn *string `min:"20" type:"string"` + + // The name of the machine learning model for which the active model version + // was set. + ModelName *string `min:"1" type:"string"` + + // The previous version that was active of the machine learning model for which + // the active model version was set. + PreviousActiveVersion *int64 `min:"1" type:"long"` + + // The Amazon Resource Name (ARN) of the machine learning model version that + // was the previous active model version. + PreviousActiveVersionArn *string `min:"20" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateActiveModelVersionOutput) 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 UpdateActiveModelVersionOutput) GoString() string { + return s.String() +} + +// SetCurrentActiveVersion sets the CurrentActiveVersion field's value. +func (s *UpdateActiveModelVersionOutput) SetCurrentActiveVersion(v int64) *UpdateActiveModelVersionOutput { + s.CurrentActiveVersion = &v + return s +} + +// SetCurrentActiveVersionArn sets the CurrentActiveVersionArn field's value. +func (s *UpdateActiveModelVersionOutput) SetCurrentActiveVersionArn(v string) *UpdateActiveModelVersionOutput { + s.CurrentActiveVersionArn = &v + return s +} + +// SetModelArn sets the ModelArn field's value. +func (s *UpdateActiveModelVersionOutput) SetModelArn(v string) *UpdateActiveModelVersionOutput { + s.ModelArn = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *UpdateActiveModelVersionOutput) SetModelName(v string) *UpdateActiveModelVersionOutput { + s.ModelName = &v + return s +} + +// SetPreviousActiveVersion sets the PreviousActiveVersion field's value. +func (s *UpdateActiveModelVersionOutput) SetPreviousActiveVersion(v int64) *UpdateActiveModelVersionOutput { + s.PreviousActiveVersion = &v + return s +} + +// SetPreviousActiveVersionArn sets the PreviousActiveVersionArn field's value. +func (s *UpdateActiveModelVersionOutput) SetPreviousActiveVersionArn(v string) *UpdateActiveModelVersionOutput { + s.PreviousActiveVersionArn = &v + return s +} + type UpdateInferenceSchedulerInput struct { _ struct{} `type:"structure"` @@ -10968,7 +13431,7 @@ func (s UpdateLabelGroupOutput) GoString() string { } // The input fails to satisfy constraints specified by Amazon Lookout for Equipment -// or a related AWS service that's being utilized. +// or a related Amazon Web Services service that's being utilized. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -11069,6 +13532,9 @@ const ( // DatasetStatusActive is a DatasetStatus enum value DatasetStatusActive = "ACTIVE" + + // DatasetStatusImportInProgress is a DatasetStatus enum value + DatasetStatusImportInProgress = "IMPORT_IN_PROGRESS" ) // DatasetStatus_Values returns all elements of the DatasetStatus enum @@ -11077,6 +13543,7 @@ func DatasetStatus_Values() []string { DatasetStatusCreated, DatasetStatusIngestionInProgress, DatasetStatusActive, + DatasetStatusImportInProgress, } } @@ -11133,6 +13600,9 @@ const ( // IngestionJobStatusFailed is a IngestionJobStatus enum value IngestionJobStatusFailed = "FAILED" + + // IngestionJobStatusImportInProgress is a IngestionJobStatus enum value + IngestionJobStatusImportInProgress = "IMPORT_IN_PROGRESS" ) // IngestionJobStatus_Values returns all elements of the IngestionJobStatus enum @@ -11141,6 +13611,7 @@ func IngestionJobStatus_Values() []string { IngestionJobStatusInProgress, IngestionJobStatusSuccess, IngestionJobStatusFailed, + IngestionJobStatusImportInProgress, } } @@ -11189,6 +13660,9 @@ const ( // ModelStatusFailed is a ModelStatus enum value ModelStatusFailed = "FAILED" + + // ModelStatusImportInProgress is a ModelStatus enum value + ModelStatusImportInProgress = "IMPORT_IN_PROGRESS" ) // ModelStatus_Values returns all elements of the ModelStatus enum @@ -11197,6 +13671,55 @@ func ModelStatus_Values() []string { ModelStatusInProgress, ModelStatusSuccess, ModelStatusFailed, + ModelStatusImportInProgress, + } +} + +const ( + // ModelVersionSourceTypeTraining is a ModelVersionSourceType enum value + ModelVersionSourceTypeTraining = "TRAINING" + + // ModelVersionSourceTypeRetraining is a ModelVersionSourceType enum value + ModelVersionSourceTypeRetraining = "RETRAINING" + + // ModelVersionSourceTypeImport is a ModelVersionSourceType enum value + ModelVersionSourceTypeImport = "IMPORT" +) + +// ModelVersionSourceType_Values returns all elements of the ModelVersionSourceType enum +func ModelVersionSourceType_Values() []string { + return []string{ + ModelVersionSourceTypeTraining, + ModelVersionSourceTypeRetraining, + ModelVersionSourceTypeImport, + } +} + +const ( + // ModelVersionStatusInProgress is a ModelVersionStatus enum value + ModelVersionStatusInProgress = "IN_PROGRESS" + + // ModelVersionStatusSuccess is a ModelVersionStatus enum value + ModelVersionStatusSuccess = "SUCCESS" + + // ModelVersionStatusFailed is a ModelVersionStatus enum value + ModelVersionStatusFailed = "FAILED" + + // ModelVersionStatusImportInProgress is a ModelVersionStatus enum value + ModelVersionStatusImportInProgress = "IMPORT_IN_PROGRESS" + + // ModelVersionStatusCanceled is a ModelVersionStatus enum value + ModelVersionStatusCanceled = "CANCELED" +) + +// ModelVersionStatus_Values returns all elements of the ModelVersionStatus enum +func ModelVersionStatus_Values() []string { + return []string{ + ModelVersionStatusInProgress, + ModelVersionStatusSuccess, + ModelVersionStatusFailed, + ModelVersionStatusImportInProgress, + ModelVersionStatusCanceled, } } diff --git a/service/lookoutequipment/errors.go b/service/lookoutequipment/errors.go index c321aedd437..4ecc494d5b1 100644 --- a/service/lookoutequipment/errors.go +++ b/service/lookoutequipment/errors.go @@ -52,7 +52,7 @@ const ( // "ValidationException". // // The input fails to satisfy constraints specified by Amazon Lookout for Equipment - // or a related AWS service that's being utilized. + // or a related Amazon Web Services service that's being utilized. ErrCodeValidationException = "ValidationException" ) diff --git a/service/lookoutequipment/lookoutequipmentiface/interface.go b/service/lookoutequipment/lookoutequipmentiface/interface.go index f68e8a343f7..1268d2ea6aa 100644 --- a/service/lookoutequipment/lookoutequipmentiface/interface.go +++ b/service/lookoutequipment/lookoutequipmentiface/interface.go @@ -100,6 +100,10 @@ type LookoutEquipmentAPI interface { DeleteModelWithContext(aws.Context, *lookoutequipment.DeleteModelInput, ...request.Option) (*lookoutequipment.DeleteModelOutput, error) DeleteModelRequest(*lookoutequipment.DeleteModelInput) (*request.Request, *lookoutequipment.DeleteModelOutput) + DeleteResourcePolicy(*lookoutequipment.DeleteResourcePolicyInput) (*lookoutequipment.DeleteResourcePolicyOutput, error) + DeleteResourcePolicyWithContext(aws.Context, *lookoutequipment.DeleteResourcePolicyInput, ...request.Option) (*lookoutequipment.DeleteResourcePolicyOutput, error) + DeleteResourcePolicyRequest(*lookoutequipment.DeleteResourcePolicyInput) (*request.Request, *lookoutequipment.DeleteResourcePolicyOutput) + DescribeDataIngestionJob(*lookoutequipment.DescribeDataIngestionJobInput) (*lookoutequipment.DescribeDataIngestionJobOutput, error) DescribeDataIngestionJobWithContext(aws.Context, *lookoutequipment.DescribeDataIngestionJobInput, ...request.Option) (*lookoutequipment.DescribeDataIngestionJobOutput, error) DescribeDataIngestionJobRequest(*lookoutequipment.DescribeDataIngestionJobInput) (*request.Request, *lookoutequipment.DescribeDataIngestionJobOutput) @@ -124,6 +128,22 @@ type LookoutEquipmentAPI interface { DescribeModelWithContext(aws.Context, *lookoutequipment.DescribeModelInput, ...request.Option) (*lookoutequipment.DescribeModelOutput, error) DescribeModelRequest(*lookoutequipment.DescribeModelInput) (*request.Request, *lookoutequipment.DescribeModelOutput) + DescribeModelVersion(*lookoutequipment.DescribeModelVersionInput) (*lookoutequipment.DescribeModelVersionOutput, error) + DescribeModelVersionWithContext(aws.Context, *lookoutequipment.DescribeModelVersionInput, ...request.Option) (*lookoutequipment.DescribeModelVersionOutput, error) + DescribeModelVersionRequest(*lookoutequipment.DescribeModelVersionInput) (*request.Request, *lookoutequipment.DescribeModelVersionOutput) + + DescribeResourcePolicy(*lookoutequipment.DescribeResourcePolicyInput) (*lookoutequipment.DescribeResourcePolicyOutput, error) + DescribeResourcePolicyWithContext(aws.Context, *lookoutequipment.DescribeResourcePolicyInput, ...request.Option) (*lookoutequipment.DescribeResourcePolicyOutput, error) + DescribeResourcePolicyRequest(*lookoutequipment.DescribeResourcePolicyInput) (*request.Request, *lookoutequipment.DescribeResourcePolicyOutput) + + ImportDataset(*lookoutequipment.ImportDatasetInput) (*lookoutequipment.ImportDatasetOutput, error) + ImportDatasetWithContext(aws.Context, *lookoutequipment.ImportDatasetInput, ...request.Option) (*lookoutequipment.ImportDatasetOutput, error) + ImportDatasetRequest(*lookoutequipment.ImportDatasetInput) (*request.Request, *lookoutequipment.ImportDatasetOutput) + + ImportModelVersion(*lookoutequipment.ImportModelVersionInput) (*lookoutequipment.ImportModelVersionOutput, error) + ImportModelVersionWithContext(aws.Context, *lookoutequipment.ImportModelVersionInput, ...request.Option) (*lookoutequipment.ImportModelVersionOutput, error) + ImportModelVersionRequest(*lookoutequipment.ImportModelVersionInput) (*request.Request, *lookoutequipment.ImportModelVersionOutput) + ListDataIngestionJobs(*lookoutequipment.ListDataIngestionJobsInput) (*lookoutequipment.ListDataIngestionJobsOutput, error) ListDataIngestionJobsWithContext(aws.Context, *lookoutequipment.ListDataIngestionJobsInput, ...request.Option) (*lookoutequipment.ListDataIngestionJobsOutput, error) ListDataIngestionJobsRequest(*lookoutequipment.ListDataIngestionJobsInput) (*request.Request, *lookoutequipment.ListDataIngestionJobsOutput) @@ -173,6 +193,13 @@ type LookoutEquipmentAPI interface { ListLabelsPages(*lookoutequipment.ListLabelsInput, func(*lookoutequipment.ListLabelsOutput, bool) bool) error ListLabelsPagesWithContext(aws.Context, *lookoutequipment.ListLabelsInput, func(*lookoutequipment.ListLabelsOutput, bool) bool, ...request.Option) error + ListModelVersions(*lookoutequipment.ListModelVersionsInput) (*lookoutequipment.ListModelVersionsOutput, error) + ListModelVersionsWithContext(aws.Context, *lookoutequipment.ListModelVersionsInput, ...request.Option) (*lookoutequipment.ListModelVersionsOutput, error) + ListModelVersionsRequest(*lookoutequipment.ListModelVersionsInput) (*request.Request, *lookoutequipment.ListModelVersionsOutput) + + ListModelVersionsPages(*lookoutequipment.ListModelVersionsInput, func(*lookoutequipment.ListModelVersionsOutput, bool) bool) error + ListModelVersionsPagesWithContext(aws.Context, *lookoutequipment.ListModelVersionsInput, func(*lookoutequipment.ListModelVersionsOutput, bool) bool, ...request.Option) error + ListModels(*lookoutequipment.ListModelsInput) (*lookoutequipment.ListModelsOutput, error) ListModelsWithContext(aws.Context, *lookoutequipment.ListModelsInput, ...request.Option) (*lookoutequipment.ListModelsOutput, error) ListModelsRequest(*lookoutequipment.ListModelsInput) (*request.Request, *lookoutequipment.ListModelsOutput) @@ -191,6 +218,10 @@ type LookoutEquipmentAPI interface { ListTagsForResourceWithContext(aws.Context, *lookoutequipment.ListTagsForResourceInput, ...request.Option) (*lookoutequipment.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*lookoutequipment.ListTagsForResourceInput) (*request.Request, *lookoutequipment.ListTagsForResourceOutput) + PutResourcePolicy(*lookoutequipment.PutResourcePolicyInput) (*lookoutequipment.PutResourcePolicyOutput, error) + PutResourcePolicyWithContext(aws.Context, *lookoutequipment.PutResourcePolicyInput, ...request.Option) (*lookoutequipment.PutResourcePolicyOutput, error) + PutResourcePolicyRequest(*lookoutequipment.PutResourcePolicyInput) (*request.Request, *lookoutequipment.PutResourcePolicyOutput) + StartDataIngestionJob(*lookoutequipment.StartDataIngestionJobInput) (*lookoutequipment.StartDataIngestionJobOutput, error) StartDataIngestionJobWithContext(aws.Context, *lookoutequipment.StartDataIngestionJobInput, ...request.Option) (*lookoutequipment.StartDataIngestionJobOutput, error) StartDataIngestionJobRequest(*lookoutequipment.StartDataIngestionJobInput) (*request.Request, *lookoutequipment.StartDataIngestionJobOutput) @@ -211,6 +242,10 @@ type LookoutEquipmentAPI interface { UntagResourceWithContext(aws.Context, *lookoutequipment.UntagResourceInput, ...request.Option) (*lookoutequipment.UntagResourceOutput, error) UntagResourceRequest(*lookoutequipment.UntagResourceInput) (*request.Request, *lookoutequipment.UntagResourceOutput) + UpdateActiveModelVersion(*lookoutequipment.UpdateActiveModelVersionInput) (*lookoutequipment.UpdateActiveModelVersionOutput, error) + UpdateActiveModelVersionWithContext(aws.Context, *lookoutequipment.UpdateActiveModelVersionInput, ...request.Option) (*lookoutequipment.UpdateActiveModelVersionOutput, error) + UpdateActiveModelVersionRequest(*lookoutequipment.UpdateActiveModelVersionInput) (*request.Request, *lookoutequipment.UpdateActiveModelVersionOutput) + UpdateInferenceScheduler(*lookoutequipment.UpdateInferenceSchedulerInput) (*lookoutequipment.UpdateInferenceSchedulerOutput, error) UpdateInferenceSchedulerWithContext(aws.Context, *lookoutequipment.UpdateInferenceSchedulerInput, ...request.Option) (*lookoutequipment.UpdateInferenceSchedulerOutput, error) UpdateInferenceSchedulerRequest(*lookoutequipment.UpdateInferenceSchedulerInput) (*request.Request, *lookoutequipment.UpdateInferenceSchedulerOutput) diff --git a/service/omics/api.go b/service/omics/api.go index a18202c3ed5..8f97cdbf29f 100644 --- a/service/omics/api.go +++ b/service/omics/api.go @@ -12975,6 +12975,9 @@ type GetReadSetMetadataOutput struct { // CreationTime is a required field CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"` + // The creation type of the read set. + CreationType *string `locationName:"creationType" type:"string" enum:"CreationType"` + // The read set's description. Description *string `locationName:"description" min:"1" type:"string"` @@ -13051,6 +13054,12 @@ func (s *GetReadSetMetadataOutput) SetCreationTime(v time.Time) *GetReadSetMetad return s } +// SetCreationType sets the CreationType field's value. +func (s *GetReadSetMetadataOutput) SetCreationType(v string) *GetReadSetMetadataOutput { + s.CreationType = &v + return s +} + // SetDescription sets the Description field's value. func (s *GetReadSetMetadataOutput) SetDescription(v string) *GetReadSetMetadataOutput { s.Description = &v @@ -18685,6 +18694,9 @@ type ReadSetFilter struct { // The filter's end date. CreatedBefore *time.Time `locationName:"createdBefore" type:"timestamp" timestampFormat:"iso8601"` + // The creation type of the read set. + CreationType *string `locationName:"creationType" type:"string" enum:"CreationType"` + // Where the source originated. GeneratedFrom *string `locationName:"generatedFrom" min:"1" type:"string"` @@ -18759,6 +18771,12 @@ func (s *ReadSetFilter) SetCreatedBefore(v time.Time) *ReadSetFilter { return s } +// SetCreationType sets the CreationType field's value. +func (s *ReadSetFilter) SetCreationType(v string) *ReadSetFilter { + s.CreationType = &v + return s +} + // SetGeneratedFrom sets the GeneratedFrom field's value. func (s *ReadSetFilter) SetGeneratedFrom(v string) *ReadSetFilter { s.GeneratedFrom = &v @@ -18809,6 +18827,9 @@ type ReadSetListItem struct { // CreationTime is a required field CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"` + // The creation type of the read set. + CreationType *string `locationName:"creationType" type:"string" enum:"CreationType"` + // The read set's description. Description *string `locationName:"description" min:"1" type:"string"` @@ -18882,6 +18903,12 @@ func (s *ReadSetListItem) SetCreationTime(v time.Time) *ReadSetListItem { return s } +// SetCreationType sets the CreationType field's value. +func (s *ReadSetListItem) SetCreationType(v string) *ReadSetListItem { + s.CreationType = &v + return s +} + // SetDescription sets the Description field's value. func (s *ReadSetListItem) SetDescription(v string) *ReadSetListItem { s.Description = &v @@ -23631,6 +23658,22 @@ func AnnotationType_Values() []string { } } +const ( + // CreationTypeImport is a CreationType enum value + CreationTypeImport = "IMPORT" + + // CreationTypeUpload is a CreationType enum value + CreationTypeUpload = "UPLOAD" +) + +// CreationType_Values returns all elements of the CreationType enum +func CreationType_Values() []string { + return []string{ + CreationTypeImport, + CreationTypeUpload, + } +} + const ( // EncryptionTypeKms is a EncryptionType enum value EncryptionTypeKms = "KMS" diff --git a/service/rds/api.go b/service/rds/api.go index 38933b5efc4..3d9051fb765 100644 --- a/service/rds/api.go +++ b/service/rds/api.go @@ -19099,6 +19099,13 @@ type CreateCustomDBEngineVersionOutput struct { // specific DB engine version. SupportsGlobalDatabases *bool `type:"boolean"` + // A value that indicates whether the DB engine version supports forwarding + // write operations from reader DB instances to the writer DB instance in the + // DB cluster. By default, write operations aren't allowed on reader DB instances. + // + // Valid for: Aurora DB clusters only + SupportsLocalWriteForwarding *bool `type:"boolean"` + // A value that indicates whether the engine version supports exporting the // log types specified by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs *bool `type:"boolean"` @@ -19293,6 +19300,12 @@ func (s *CreateCustomDBEngineVersionOutput) SetSupportsGlobalDatabases(v bool) * return s } +// SetSupportsLocalWriteForwarding sets the SupportsLocalWriteForwarding field's value. +func (s *CreateCustomDBEngineVersionOutput) SetSupportsLocalWriteForwarding(v bool) *CreateCustomDBEngineVersionOutput { + s.SupportsLocalWriteForwarding = &v + return s +} + // SetSupportsLogExportsToCloudwatchLogs sets the SupportsLogExportsToCloudwatchLogs field's value. func (s *CreateCustomDBEngineVersionOutput) SetSupportsLogExportsToCloudwatchLogs(v bool) *CreateCustomDBEngineVersionOutput { s.SupportsLogExportsToCloudwatchLogs = &v @@ -19782,6 +19795,13 @@ type CreateDBClusterInput struct { // Valid for Cluster Type: Aurora DB clusters only EnableIAMDatabaseAuthentication *bool `type:"boolean"` + // Specifies whether read replicas can forward write operations to the writer + // DB instance in the DB cluster. By default, write operations aren't allowed + // on reader DB instances. + // + // Valid for: Aurora DB clusters only + EnableLocalWriteForwarding *bool `type:"boolean"` + // Specifies whether to turn on Performance Insights for the DB cluster. // // For more information, see Using Amazon Performance Insights (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) @@ -20408,6 +20428,12 @@ func (s *CreateDBClusterInput) SetEnableIAMDatabaseAuthentication(v bool) *Creat return s } +// SetEnableLocalWriteForwarding sets the EnableLocalWriteForwarding field's value. +func (s *CreateDBClusterInput) SetEnableLocalWriteForwarding(v bool) *CreateDBClusterInput { + s.EnableLocalWriteForwarding = &v + return s +} + // SetEnablePerformanceInsights sets the EnablePerformanceInsights field's value. func (s *CreateDBClusterInput) SetEnablePerformanceInsights(v bool) *CreateDBClusterInput { s.EnablePerformanceInsights = &v @@ -24900,6 +24926,10 @@ type DBCluster struct { // The latest time to which a database can be restored with point-in-time restore. LatestRestorableTime *time.Time `type:"timestamp"` + // Specifies whether an Aurora DB cluster has in-cluster write forwarding enabled, + // not enabled, requested, or is in the process of enabling it. + LocalWriteForwardingStatus *string `type:"string" enum:"LocalWriteForwardingStatus"` + // The secret managed by RDS in Amazon Web Services Secrets Manager for the // master user password. // @@ -25358,6 +25388,12 @@ func (s *DBCluster) SetLatestRestorableTime(v time.Time) *DBCluster { return s } +// SetLocalWriteForwardingStatus sets the LocalWriteForwardingStatus field's value. +func (s *DBCluster) SetLocalWriteForwardingStatus(v string) *DBCluster { + s.LocalWriteForwardingStatus = &v + return s +} + // SetMasterUserSecret sets the MasterUserSecret field's value. func (s *DBCluster) SetMasterUserSecret(v *MasterUserSecret) *DBCluster { s.MasterUserSecret = v @@ -26402,6 +26438,13 @@ type DBEngineVersion struct { // specific DB engine version. SupportsGlobalDatabases *bool `type:"boolean"` + // A value that indicates whether the DB engine version supports forwarding + // write operations from reader DB instances to the writer DB instance in the + // DB cluster. By default, write operations aren't allowed on reader DB instances. + // + // Valid for: Aurora DB clusters only + SupportsLocalWriteForwarding *bool `type:"boolean"` + // A value that indicates whether the engine version supports exporting the // log types specified by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs *bool `type:"boolean"` @@ -26596,6 +26639,12 @@ func (s *DBEngineVersion) SetSupportsGlobalDatabases(v bool) *DBEngineVersion { return s } +// SetSupportsLocalWriteForwarding sets the SupportsLocalWriteForwarding field's value. +func (s *DBEngineVersion) SetSupportsLocalWriteForwarding(v bool) *DBEngineVersion { + s.SupportsLocalWriteForwarding = &v + return s +} + // SetSupportsLogExportsToCloudwatchLogs sets the SupportsLogExportsToCloudwatchLogs field's value. func (s *DBEngineVersion) SetSupportsLogExportsToCloudwatchLogs(v bool) *DBEngineVersion { s.SupportsLogExportsToCloudwatchLogs = &v @@ -29703,6 +29752,13 @@ type DeleteCustomDBEngineVersionOutput struct { // specific DB engine version. SupportsGlobalDatabases *bool `type:"boolean"` + // A value that indicates whether the DB engine version supports forwarding + // write operations from reader DB instances to the writer DB instance in the + // DB cluster. By default, write operations aren't allowed on reader DB instances. + // + // Valid for: Aurora DB clusters only + SupportsLocalWriteForwarding *bool `type:"boolean"` + // A value that indicates whether the engine version supports exporting the // log types specified by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs *bool `type:"boolean"` @@ -29897,6 +29953,12 @@ func (s *DeleteCustomDBEngineVersionOutput) SetSupportsGlobalDatabases(v bool) * return s } +// SetSupportsLocalWriteForwarding sets the SupportsLocalWriteForwarding field's value. +func (s *DeleteCustomDBEngineVersionOutput) SetSupportsLocalWriteForwarding(v bool) *DeleteCustomDBEngineVersionOutput { + s.SupportsLocalWriteForwarding = &v + return s +} + // SetSupportsLogExportsToCloudwatchLogs sets the SupportsLogExportsToCloudwatchLogs field's value. func (s *DeleteCustomDBEngineVersionOutput) SetSupportsLogExportsToCloudwatchLogs(v bool) *DeleteCustomDBEngineVersionOutput { s.SupportsLogExportsToCloudwatchLogs = &v @@ -39819,6 +39881,13 @@ type ModifyCustomDBEngineVersionOutput struct { // specific DB engine version. SupportsGlobalDatabases *bool `type:"boolean"` + // A value that indicates whether the DB engine version supports forwarding + // write operations from reader DB instances to the writer DB instance in the + // DB cluster. By default, write operations aren't allowed on reader DB instances. + // + // Valid for: Aurora DB clusters only + SupportsLocalWriteForwarding *bool `type:"boolean"` + // A value that indicates whether the engine version supports exporting the // log types specified by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs *bool `type:"boolean"` @@ -40013,6 +40082,12 @@ func (s *ModifyCustomDBEngineVersionOutput) SetSupportsGlobalDatabases(v bool) * return s } +// SetSupportsLocalWriteForwarding sets the SupportsLocalWriteForwarding field's value. +func (s *ModifyCustomDBEngineVersionOutput) SetSupportsLocalWriteForwarding(v bool) *ModifyCustomDBEngineVersionOutput { + s.SupportsLocalWriteForwarding = &v + return s +} + // SetSupportsLogExportsToCloudwatchLogs sets the SupportsLogExportsToCloudwatchLogs field's value. func (s *ModifyCustomDBEngineVersionOutput) SetSupportsLogExportsToCloudwatchLogs(v bool) *ModifyCustomDBEngineVersionOutput { s.SupportsLogExportsToCloudwatchLogs = &v @@ -40468,6 +40543,13 @@ type ModifyDBClusterInput struct { // Valid for Cluster Type: Aurora DB clusters only EnableIAMDatabaseAuthentication *bool `type:"boolean"` + // Specifies whether read replicas can forward write operations to the writer + // DB instance in the DB cluster. By default, write operations aren't allowed + // on reader DB instances. + // + // Valid for: Aurora DB clusters only + EnableLocalWriteForwarding *bool `type:"boolean"` + // Specifies whether to turn on Performance Insights for the DB cluster. // // For more information, see Using Amazon Performance Insights (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) @@ -40950,6 +41032,12 @@ func (s *ModifyDBClusterInput) SetEnableIAMDatabaseAuthentication(v bool) *Modif return s } +// SetEnableLocalWriteForwarding sets the EnableLocalWriteForwarding field's value. +func (s *ModifyDBClusterInput) SetEnableLocalWriteForwarding(v bool) *ModifyDBClusterInput { + s.EnableLocalWriteForwarding = &v + return s +} + // SetEnablePerformanceInsights sets the EnablePerformanceInsights field's value. func (s *ModifyDBClusterInput) SetEnablePerformanceInsights(v bool) *ModifyDBClusterInput { s.EnablePerformanceInsights = &v @@ -53701,6 +53789,13 @@ type UpgradeTarget struct { // target engine version. SupportsGlobalDatabases *bool `type:"boolean"` + // A value that indicates whether the target engine version supports forwarding + // write operations from reader DB instances to the writer DB instance in the + // DB cluster. By default, write operations aren't allowed on reader DB instances. + // + // Valid for: Aurora DB clusters only + SupportsLocalWriteForwarding *bool `type:"boolean"` + // A value that indicates whether you can use Aurora parallel query with the // target engine version. SupportsParallelQuery *bool `type:"boolean"` @@ -53772,6 +53867,12 @@ func (s *UpgradeTarget) SetSupportsGlobalDatabases(v bool) *UpgradeTarget { return s } +// SetSupportsLocalWriteForwarding sets the SupportsLocalWriteForwarding field's value. +func (s *UpgradeTarget) SetSupportsLocalWriteForwarding(v bool) *UpgradeTarget { + s.SupportsLocalWriteForwarding = &v + return s +} + // SetSupportsParallelQuery sets the SupportsParallelQuery field's value. func (s *UpgradeTarget) SetSupportsParallelQuery(v bool) *UpgradeTarget { s.SupportsParallelQuery = &v @@ -54462,6 +54563,34 @@ func IAMAuthMode_Values() []string { } } +const ( + // LocalWriteForwardingStatusEnabled is a LocalWriteForwardingStatus enum value + LocalWriteForwardingStatusEnabled = "enabled" + + // LocalWriteForwardingStatusDisabled is a LocalWriteForwardingStatus enum value + LocalWriteForwardingStatusDisabled = "disabled" + + // LocalWriteForwardingStatusEnabling is a LocalWriteForwardingStatus enum value + LocalWriteForwardingStatusEnabling = "enabling" + + // LocalWriteForwardingStatusDisabling is a LocalWriteForwardingStatus enum value + LocalWriteForwardingStatusDisabling = "disabling" + + // LocalWriteForwardingStatusRequested is a LocalWriteForwardingStatus enum value + LocalWriteForwardingStatusRequested = "requested" +) + +// LocalWriteForwardingStatus_Values returns all elements of the LocalWriteForwardingStatus enum +func LocalWriteForwardingStatus_Values() []string { + return []string{ + LocalWriteForwardingStatusEnabled, + LocalWriteForwardingStatusDisabled, + LocalWriteForwardingStatusEnabling, + LocalWriteForwardingStatusDisabling, + LocalWriteForwardingStatusRequested, + } +} + const ( // ReplicaModeOpenReadOnly is a ReplicaMode enum value ReplicaModeOpenReadOnly = "open-read-only" diff --git a/service/route53/api.go b/service/route53/api.go index ed55d8224d2..55c72ad6864 100644 --- a/service/route53/api.go +++ b/service/route53/api.go @@ -1728,13 +1728,6 @@ func (c *Route53) CreateTrafficPolicyInstanceRequest(input *CreateTrafficPolicyI // responds to DNS queries for the domain or subdomain name by using the resource // record sets that CreateTrafficPolicyInstance created. // -// After you submit an CreateTrafficPolicyInstance request, there's a brief -// delay while Amazon Route 53 creates the resource record sets that are specified -// in the traffic policy definition. Use GetTrafficPolicyInstance with the id -// of new traffic policy instance to confirm that the CreateTrafficPolicyInstance -// request completed successfully. For more information, see the State response -// element. -// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -4787,10 +4780,10 @@ func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanc // // Gets information about a specified traffic policy instance. // -// Use GetTrafficPolicyInstance with the id of new traffic policy instance to -// confirm that the CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance -// request completed successfully. For more information, see the State response -// element. +// After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance +// request, there's a brief delay while Amazon Route 53 creates the resource +// record sets that are specified in the traffic policy definition. For more +// information, see the State response element. // // In the Route 53 console, traffic policy instances are known as policy records. // @@ -7512,12 +7505,6 @@ func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyI // UpdateTrafficPolicyInstance API operation for Amazon Route 53. // -// After you submit a UpdateTrafficPolicyInstance request, there's a brief delay -// while Route 53 creates the resource record sets that are specified in the -// traffic policy definition. Use GetTrafficPolicyInstance with the id of updated -// traffic policy instance confirm that the UpdateTrafficPolicyInstance request -// completed successfully. For more information, see the State response element. -// // Updates the resource record sets in a specified hosted zone that were created // based on the settings in a specified traffic policy version. // @@ -20450,6 +20437,9 @@ const ( // CloudWatchRegionApSoutheast4 is a CloudWatchRegion enum value CloudWatchRegionApSoutheast4 = "ap-southeast-4" + + // CloudWatchRegionIlCentral1 is a CloudWatchRegion enum value + CloudWatchRegionIlCentral1 = "il-central-1" ) // CloudWatchRegion_Values returns all elements of the CloudWatchRegion enum @@ -20489,6 +20479,7 @@ func CloudWatchRegion_Values() []string { CloudWatchRegionUsIsoWest1, CloudWatchRegionUsIsobEast1, CloudWatchRegionApSoutheast4, + CloudWatchRegionIlCentral1, } } @@ -20819,6 +20810,9 @@ const ( // ResourceRecordSetRegionApSoutheast4 is a ResourceRecordSetRegion enum value ResourceRecordSetRegionApSoutheast4 = "ap-southeast-4" + + // ResourceRecordSetRegionIlCentral1 is a ResourceRecordSetRegion enum value + ResourceRecordSetRegionIlCentral1 = "il-central-1" ) // ResourceRecordSetRegion_Values returns all elements of the ResourceRecordSetRegion enum @@ -20853,6 +20847,7 @@ func ResourceRecordSetRegion_Values() []string { ResourceRecordSetRegionEuSouth1, ResourceRecordSetRegionEuSouth2, ResourceRecordSetRegionApSoutheast4, + ResourceRecordSetRegionIlCentral1, } } @@ -21011,6 +21006,9 @@ const ( // VPCRegionApSoutheast4 is a VPCRegion enum value VPCRegionApSoutheast4 = "ap-southeast-4" + + // VPCRegionIlCentral1 is a VPCRegion enum value + VPCRegionIlCentral1 = "il-central-1" ) // VPCRegion_Values returns all elements of the VPCRegion enum @@ -21049,5 +21047,6 @@ func VPCRegion_Values() []string { VPCRegionEuSouth1, VPCRegionEuSouth2, VPCRegionApSoutheast4, + VPCRegionIlCentral1, } } diff --git a/service/scheduler/api.go b/service/scheduler/api.go index 9f20268b625..1f1e050cfc6 100644 --- a/service/scheduler/api.go +++ b/service/scheduler/api.go @@ -1560,6 +1560,10 @@ func (s *CreateScheduleGroupOutput) SetScheduleGroupArn(v string) *CreateSchedul type CreateScheduleInput struct { _ struct{} `type:"structure"` + // Specifies the action that EventBridge Scheduler applies to the schedule after + // the schedule completes invoking the target. + ActionAfterCompletion *string `type:"string" enum:"ActionAfterCompletion"` + // Unique, case-sensitive identifier you provide to ensure the idempotency of // the request. If you do not specify a client token, EventBridge Scheduler // uses a randomly generated token for the request to ensure idempotency. @@ -1598,7 +1602,7 @@ type CreateScheduleInput struct { // // * at expression - at(yyyy-mm-ddThh:mm:ss) // - // * rate expression - rate(unit value) + // * rate expression - rate(value unit) // // * cron expression - cron(fields) // @@ -1709,6 +1713,12 @@ func (s *CreateScheduleInput) Validate() error { return nil } +// SetActionAfterCompletion sets the ActionAfterCompletion field's value. +func (s *CreateScheduleInput) SetActionAfterCompletion(v string) *CreateScheduleInput { + s.ActionAfterCompletion = &v + return s +} + // SetClientToken sets the ClientToken field's value. func (s *CreateScheduleInput) SetClientToken(v string) *CreateScheduleInput { s.ClientToken = &v @@ -2569,6 +2579,10 @@ func (s *GetScheduleInput) SetName(v string) *GetScheduleInput { type GetScheduleOutput struct { _ struct{} `type:"structure"` + // Indicates the action that EventBridge Scheduler applies to the schedule after + // the schedule completes invoking the target. + ActionAfterCompletion *string `type:"string" enum:"ActionAfterCompletion"` + // The Amazon Resource Name (ARN) of the schedule. Arn *string `min:"1" type:"string"` @@ -2606,7 +2620,7 @@ type GetScheduleOutput struct { // // * at expression - at(yyyy-mm-ddThh:mm:ss) // - // * rate expression - rate(unit value) + // * rate expression - rate(value unit) // // * cron expression - cron(fields) // @@ -2663,6 +2677,12 @@ func (s GetScheduleOutput) GoString() string { return s.String() } +// SetActionAfterCompletion sets the ActionAfterCompletion field's value. +func (s *GetScheduleOutput) SetActionAfterCompletion(v string) *GetScheduleOutput { + s.ActionAfterCompletion = &v + return s +} + // SetArn sets the Arn field's value. func (s *GetScheduleOutput) SetArn(v string) *GetScheduleOutput { s.Arn = &v @@ -4406,6 +4426,10 @@ func (s UntagResourceOutput) GoString() string { type UpdateScheduleInput struct { _ struct{} `type:"structure"` + // Specifies the action that EventBridge Scheduler applies to the schedule after + // the schedule completes invoking the target. + ActionAfterCompletion *string `type:"string" enum:"ActionAfterCompletion"` + // Unique, case-sensitive identifier you provide to ensure the idempotency of // the request. If you do not specify a client token, EventBridge Scheduler // uses a randomly generated token for the request to ensure idempotency. @@ -4446,7 +4470,7 @@ type UpdateScheduleInput struct { // // * at expression - at(yyyy-mm-ddThh:mm:ss) // - // * rate expression - rate(unit value) + // * rate expression - rate(value unit) // // * cron expression - cron(fields) // @@ -4558,6 +4582,12 @@ func (s *UpdateScheduleInput) Validate() error { return nil } +// SetActionAfterCompletion sets the ActionAfterCompletion field's value. +func (s *UpdateScheduleInput) SetActionAfterCompletion(v string) *UpdateScheduleInput { + s.ActionAfterCompletion = &v + return s +} + // SetClientToken sets the ClientToken field's value. func (s *UpdateScheduleInput) SetClientToken(v string) *UpdateScheduleInput { s.ClientToken = &v @@ -4727,6 +4757,22 @@ func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } +const ( + // ActionAfterCompletionNone is a ActionAfterCompletion enum value + ActionAfterCompletionNone = "NONE" + + // ActionAfterCompletionDelete is a ActionAfterCompletion enum value + ActionAfterCompletionDelete = "DELETE" +) + +// ActionAfterCompletion_Values returns all elements of the ActionAfterCompletion enum +func ActionAfterCompletion_Values() []string { + return []string{ + ActionAfterCompletionNone, + ActionAfterCompletionDelete, + } +} + const ( // AssignPublicIpEnabled is a AssignPublicIp enum value AssignPublicIpEnabled = "ENABLED"