From 2cc1773d6b9e0518a9f44264d480a8cdd9a7dd0e Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Thu, 30 Apr 2020 11:18:55 -0700 Subject: [PATCH] Release v1.30.18 (2020-04-30) (#3297) Release v1.30.18 (2020-04-30) === ### Service Client Updates * `service/iot`: Updates service API and documentation * AWS IoT Core released Fleet Provisioning for scalable onboarding of IoT devices to the cloud. This release includes support for customer's Lambda functions to validate devices during onboarding. Fleet Provisioning also allows devices to send Certificate Signing Requests (CSR) to AWS IoT Core for signing and getting a unique certificate. Lastly, AWS IoT Core added a feature to register the same certificate for multiple accounts in the same region without needing to register the certificate authority (CA). * `service/iotevents`: Updates service API and documentation * `service/lambda`: Updates service documentation and examples * Documentation updates for Lambda * `service/mediaconvert`: Updates service API and documentation * AWS Elemental MediaConvert SDK has added support for including AFD signaling in MXF wrapper. * `service/schemas`: Updates service API and documentation * `service/storagegateway`: Updates service API * Adding support for S3_INTELLIGENT_TIERING as a storage class option --- CHANGELOG.md | 15 + aws/endpoints/defaults.go | 56 +- aws/version.go | 2 +- models/apis/iot/2015-05-28/api-2.json | 106 ++- models/apis/iot/2015-05-28/docs-2.json | 66 +- models/apis/iotevents/2018-07-27/api-2.json | 123 --- models/apis/iotevents/2018-07-27/docs-2.json | 107 +-- models/apis/lambda/2015-03-31/docs-2.json | 2 +- models/apis/lambda/2015-03-31/examples-1.json | 4 +- .../apis/mediaconvert/2017-08-29/api-2.json | 22 +- .../apis/mediaconvert/2017-08-29/docs-2.json | 22 +- models/apis/schemas/2019-12-02/api-2.json | 281 +++++-- models/apis/schemas/2019-12-02/docs-2.json | 678 +++++++++-------- .../apis/storagegateway/2013-06-30/api-2.json | 2 +- models/endpoints/endpoints.json | 48 ++ service/iot/api.go | 648 +++++++++++++++- service/iot/iotiface/interface.go | 4 + service/iotevents/api.go | 561 +------------- service/iotevents/errors.go | 48 +- service/iotevents/ioteventsiface/interface.go | 4 - service/lambda/api.go | 3 +- service/lambda/examples_test.go | 2 +- service/mediaconvert/api.go | 70 +- service/schemas/api.go | 716 +++++++++++------- service/schemas/doc.go | 2 +- service/schemas/errors.go | 5 + service/schemas/schemasiface/interface.go | 20 +- 27 files changed, 2073 insertions(+), 1544 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef3c1325c3..a56336bec2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +Release v1.30.18 (2020-04-30) +=== + +### Service Client Updates +* `service/iot`: Updates service API and documentation + * AWS IoT Core released Fleet Provisioning for scalable onboarding of IoT devices to the cloud. This release includes support for customer's Lambda functions to validate devices during onboarding. Fleet Provisioning also allows devices to send Certificate Signing Requests (CSR) to AWS IoT Core for signing and getting a unique certificate. Lastly, AWS IoT Core added a feature to register the same certificate for multiple accounts in the same region without needing to register the certificate authority (CA). +* `service/iotevents`: Updates service API and documentation +* `service/lambda`: Updates service documentation and examples + * Documentation updates for Lambda +* `service/mediaconvert`: Updates service API and documentation + * AWS Elemental MediaConvert SDK has added support for including AFD signaling in MXF wrapper. +* `service/schemas`: Updates service API and documentation +* `service/storagegateway`: Updates service API + * Adding support for S3_INTELLIGENT_TIERING as a storage class option + Release v1.30.17 (2020-04-29) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 3eb6a2ae8d..c3ec305c26 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -1398,9 +1398,27 @@ var awsPartition = partition{ "ca-central-1": endpoint{}, "eu-west-1": endpoint{}, "eu-west-2": endpoint{}, - "us-east-1": endpoint{}, - "us-east-2": endpoint{}, - "us-west-2": endpoint{}, + "fips-us-east-1": endpoint{ + Hostname: "comprehendmedical-fips.us-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + "fips-us-east-2": endpoint{ + Hostname: "comprehendmedical-fips.us-east-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-2", + }, + }, + "fips-us-west-2": endpoint{ + Hostname: "comprehendmedical-fips.us-west-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-west-2", + }, + }, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, }, }, "config": service{ @@ -4069,7 +4087,37 @@ var awsPartition = partition{ "eu-west-2": endpoint{}, "eu-west-3": endpoint{}, "me-south-1": endpoint{}, - "sa-east-1": endpoint{}, + "rds-fips.ca-central-1": endpoint{ + Hostname: "rds-fips.ca-central-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "ca-central-1", + }, + }, + "rds-fips.us-east-1": endpoint{ + Hostname: "rds-fips.us-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + "rds-fips.us-east-2": endpoint{ + Hostname: "rds-fips.us-east-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-2", + }, + }, + "rds-fips.us-west-1": endpoint{ + Hostname: "rds-fips.us-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-west-1", + }, + }, + "rds-fips.us-west-2": endpoint{ + Hostname: "rds-fips.us-west-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-west-2", + }, + }, + "sa-east-1": endpoint{}, "us-east-1": endpoint{ SSLCommonName: "{service}.{dnsSuffix}", }, diff --git a/aws/version.go b/aws/version.go index 8626046a48..7f652da781 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.30.17" +const SDKVersion = "1.30.18" diff --git a/models/apis/iot/2015-05-28/api-2.json b/models/apis/iot/2015-05-28/api-2.json index 0c97a349e1..83ce4cd4a8 100644 --- a/models/apis/iot/2015-05-28/api-2.json +++ b/models/apis/iot/2015-05-28/api-2.json @@ -1284,6 +1284,7 @@ "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ThrottlingException"}, + {"shape":"InvalidRequestException"}, {"shape":"UnauthorizedException"}, {"shape":"ServiceUnavailableException"}, {"shape":"InternalFailureException"} @@ -2649,6 +2650,25 @@ {"shape":"InternalFailureException"} ] }, + "RegisterCertificateWithoutCA":{ + "name":"RegisterCertificateWithoutCA", + "http":{ + "method":"POST", + "requestUri":"/certificate/register-no-ca" + }, + "input":{"shape":"RegisterCertificateWithoutCARequest"}, + "output":{"shape":"RegisterCertificateWithoutCAResponse"}, + "errors":[ + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"InvalidRequestException"}, + {"shape":"CertificateStateException"}, + {"shape":"CertificateValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"UnauthorizedException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalFailureException"} + ] + }, "RegisterThing":{ "name":"RegisterThing", "http":{ @@ -2807,8 +2827,7 @@ {"shape":"InternalException"}, {"shape":"NotConfiguredException"}, {"shape":"InvalidRequestException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"LimitExceededException"} + {"shape":"ServiceUnavailableException"} ] }, "SetV2LoggingOptions":{ @@ -3925,6 +3944,7 @@ }, "AuthInfo":{ "type":"structure", + "required":["resources"], "members":{ "actionType":{"shape":"ActionType"}, "resources":{"shape":"Resources"} @@ -4257,6 +4277,7 @@ "certificateArn":{"shape":"CertificateArn"}, "certificateId":{"shape":"CertificateId"}, "status":{"shape":"CertificateStatus"}, + "certificateMode":{"shape":"CertificateMode"}, "creationDate":{"shape":"DateType"} } }, @@ -4284,7 +4305,8 @@ "customerVersion":{"shape":"CustomerVersion"}, "transferData":{"shape":"TransferData"}, "generationId":{"shape":"GenerationId"}, - "validity":{"shape":"CertificateValidity"} + "validity":{"shape":"CertificateValidity"}, + "certificateMode":{"shape":"CertificateMode"} } }, "CertificateId":{ @@ -4293,6 +4315,13 @@ "min":64, "pattern":"(0x)?[a-fA-F0-9]+" }, + "CertificateMode":{ + "type":"string", + "enum":[ + "DEFAULT", + "SNI_ONLY" + ] + }, "CertificateName":{"type":"string"}, "CertificatePathOnDevice":{"type":"string"}, "CertificatePem":{ @@ -4520,6 +4549,7 @@ "tokenKeyName":{"shape":"TokenKeyName"}, "tokenSigningPublicKeys":{"shape":"PublicKeyMap"}, "status":{"shape":"AuthorizerStatus"}, + "tags":{"shape":"TagList"}, "signingDisabled":{"shape":"BooleanKey"} } }, @@ -4614,7 +4644,8 @@ "serverCertificateArns":{"shape":"ServerCertificateArns"}, "validationCertificateArn":{"shape":"AcmCertificateArn"}, "authorizerConfig":{"shape":"AuthorizerConfig"}, - "serviceType":{"shape":"ServiceType"} + "serviceType":{"shape":"ServiceType"}, + "tags":{"shape":"TagList"} } }, "CreateDomainConfigurationResponse":{ @@ -4778,7 +4809,8 @@ "location":"uri", "locationName":"policyName" }, - "policyDocument":{"shape":"PolicyDocument"} + "policyDocument":{"shape":"PolicyDocument"}, + "tags":{"shape":"TagList"} } }, "CreatePolicyResponse":{ @@ -4852,6 +4884,7 @@ "templateBody":{"shape":"TemplateBody"}, "enabled":{"shape":"Enabled"}, "provisioningRoleArn":{"shape":"RoleArn"}, + "preProvisioningHook":{"shape":"ProvisioningHook"}, "tags":{"shape":"TagList"} } }, @@ -4905,7 +4938,8 @@ "locationName":"roleAlias" }, "roleArn":{"shape":"RoleArn"}, - "credentialDurationSeconds":{"shape":"CredentialDurationSeconds"} + "credentialDurationSeconds":{"shape":"CredentialDurationSeconds"}, + "tags":{"shape":"TagList"} } }, "CreateRoleAliasResponse":{ @@ -5998,7 +6032,8 @@ "defaultVersionId":{"shape":"TemplateVersionId"}, "templateBody":{"shape":"TemplateBody"}, "enabled":{"shape":"Enabled"}, - "provisioningRoleArn":{"shape":"RoleArn"} + "provisioningRoleArn":{"shape":"RoleArn"}, + "preProvisioningHook":{"shape":"ProvisioningHook"} } }, "DescribeProvisioningTemplateVersionRequest":{ @@ -8847,6 +8882,7 @@ }, "MaxJobExecutionsPerMin":{ "type":"integer", + "max":1000, "min":1 }, "MaxResults":{ @@ -9117,6 +9153,12 @@ }, "PartitionKey":{"type":"string"}, "PayloadField":{"type":"string"}, + "PayloadVersion":{ + "type":"string", + "max":32, + "min":10, + "pattern":"^[0-9-]+$" + }, "Percent":{ "type":"double", "max":100, @@ -9255,6 +9297,14 @@ "max":2, "min":1 }, + "ProvisioningHook":{ + "type":"structure", + "required":["targetArn"], + "members":{ + "payloadVersion":{"shape":"PayloadVersion"}, + "targetArn":{"shape":"TargetArn"} + } + }, "ProvisioningTemplateListing":{ "type":"list", "member":{"shape":"ProvisioningTemplateSummary"} @@ -9381,7 +9431,8 @@ "location":"querystring", "locationName":"allowAutoRegistration" }, - "registrationConfig":{"shape":"RegistrationConfig"} + "registrationConfig":{"shape":"RegistrationConfig"}, + "tags":{"shape":"TagList"} } }, "RegisterCACertificateResponse":{ @@ -9413,6 +9464,21 @@ "certificateId":{"shape":"CertificateId"} } }, + "RegisterCertificateWithoutCARequest":{ + "type":"structure", + "required":["certificatePem"], + "members":{ + "certificatePem":{"shape":"CertificatePem"}, + "status":{"shape":"CertificateStatus"} + } + }, + "RegisterCertificateWithoutCAResponse":{ + "type":"structure", + "members":{ + "certificateArn":{"shape":"CertificateArn"}, + "certificateId":{"shape":"CertificateId"} + } + }, "RegisterThingRequest":{ "type":"structure", "required":["templateBody"], @@ -9493,6 +9559,7 @@ }, "RemoveAuthorizerConfig":{"type":"boolean"}, "RemoveAutoRegistration":{"type":"boolean"}, + "RemoveHook":{"type":"boolean"}, "RemoveThingFromBillingGroupRequest":{ "type":"structure", "members":{ @@ -10250,12 +10317,18 @@ "TableName":{"type":"string"}, "Tag":{ "type":"structure", + "required":["Key"], "members":{ "Key":{"shape":"TagKey"}, "Value":{"shape":"TagValue"} } }, - "TagKey":{"type":"string"}, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, "TagKeyList":{ "type":"list", "member":{"shape":"TagKey"} @@ -10280,9 +10353,16 @@ "members":{ } }, - "TagValue":{"type":"string"}, + "TagValue":{ + "type":"string", + "max":256, + "min":1 + }, "Target":{"type":"string"}, - "TargetArn":{"type":"string"}, + "TargetArn":{ + "type":"string", + "max":2048 + }, "TargetAuditCheckNames":{ "type":"list", "member":{"shape":"AuditCheckName"} @@ -11066,7 +11146,9 @@ "description":{"shape":"TemplateDescription"}, "enabled":{"shape":"Enabled"}, "defaultVersionId":{"shape":"TemplateVersionId"}, - "provisioningRoleArn":{"shape":"RoleArn"} + "provisioningRoleArn":{"shape":"RoleArn"}, + "preProvisioningHook":{"shape":"ProvisioningHook"}, + "removePreProvisioningHook":{"shape":"RemoveHook"} } }, "UpdateProvisioningTemplateResponse":{ diff --git a/models/apis/iot/2015-05-28/docs-2.json b/models/apis/iot/2015-05-28/docs-2.json index f114284839..96520942ee 100644 --- a/models/apis/iot/2015-05-28/docs-2.json +++ b/models/apis/iot/2015-05-28/docs-2.json @@ -166,6 +166,7 @@ "ListViolationEvents": "

Lists the Device Defender security profile violations discovered during the given time period. You can use filters to limit the results to those alerts issued for a particular security profile, behavior, or thing (device).

", "RegisterCACertificate": "

Registers a CA certificate with AWS IoT. This CA certificate can then be used to sign device certificates, which can be then registered with AWS IoT. You can register up to 10 CA certificates per AWS account that have the same subject field. This enables you to have up to 10 certificate authorities sign your device certificates. If you have more than one CA certificate registered, make sure you pass the CA certificate when you register your device certificates with the RegisterCertificate API.

", "RegisterCertificate": "

Registers a device certificate with AWS IoT. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.

", + "RegisterCertificateWithoutCA": "

Register a certificate that does not have a certificate authority (CA).

", "RegisterThing": "

Provisions a thing in the device registry. RegisterThing calls other AWS IoT control plane APIs. These calls might exceed your account level AWS IoT Throttling Limits and cause throttle errors. Please contact AWS Customer Support to raise your throttling limits if necessary.

", "RejectCertificateTransfer": "

Rejects a pending certificate transfer. After AWS IoT rejects a certificate transfer, the certificate status changes from PENDING_TRANSFER to INACTIVE.

To check for pending certificate transfers, call ListCertificates to enumerate your certificates.

This operation can only be called by the transfer destination. After it is called, the certificate will be returned to the source's account in the INACTIVE state.

", "RemoveThingFromBillingGroup": "

Removes the given thing from the billing group.

", @@ -1230,6 +1231,7 @@ "OutgoingCertificate$certificateArn": "

The certificate ARN.

", "RegisterCACertificateResponse$certificateArn": "

The CA certificate ARN.

", "RegisterCertificateResponse$certificateArn": "

The certificate ARN.

", + "RegisterCertificateWithoutCAResponse$certificateArn": "

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

", "SigningProfileParameter$certificateArn": "

Certificate ARN.

", "TransferCertificateResponse$transferredCertificateArn": "

The ARN of the certificate.

" } @@ -1266,6 +1268,7 @@ "OutgoingCertificate$certificateId": "

The certificate ID.

", "RegisterCACertificateResponse$certificateId": "

The CA certificate identifier.

", "RegisterCertificateResponse$certificateId": "

The certificate identifier.

", + "RegisterCertificateWithoutCAResponse$certificateId": "

The ID of the registered certificate. (The last part of the certificate ARN contains the certificate ID.

", "RejectCertificateTransferRequest$certificateId": "

The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)

", "ResourceIdentifier$deviceCertificateId": "

The ID of the certificate attached to the resource.

", "ResourceIdentifier$caCertificateId": "

The ID of the CA certificate used to authorize the certificate.

", @@ -1274,6 +1277,13 @@ "UpdateCertificateRequest$certificateId": "

The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)

" } }, + "CertificateMode": { + "base": null, + "refs": { + "Certificate$certificateMode": "

The mode of the certificate.

", + "CertificateDescription$certificateMode": "

The mode of the certificate.

" + } + }, "CertificateName": { "base": null, "refs": { @@ -1298,7 +1308,8 @@ "RegisterCACertificateRequest$verificationCertificate": "

The private key verification certificate.

", "RegisterCertificateRequest$certificatePem": "

The certificate data, in PEM format.

", "RegisterCertificateRequest$caCertificatePem": "

The CA certificate used to sign the device certificate being registered.

", - "RegisterThingResponse$certificatePem": "

.

" + "RegisterCertificateWithoutCARequest$certificatePem": "

The certificate data, in PEM format.

", + "RegisterThingResponse$certificatePem": "

The certificate data, in PEM format.

" } }, "CertificateSigningRequest": { @@ -1318,6 +1329,7 @@ "Certificate$status": "

The status of the certificate.

The status value REGISTER_INACTIVE is deprecated and should not be used.

", "CertificateDescription$status": "

The status of the certificate.

", "RegisterCertificateRequest$status": "

The status of the register certificate request.

", + "RegisterCertificateWithoutCARequest$status": "

The status of the register certificate request.

", "UpdateCertificateRequest$newStatus": "

The new status.

Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by AWS IoT. They are not intended for developer use.

Note: The status value REGISTER_INACTIVE is deprecated and should not be used.

" } }, @@ -1377,7 +1389,7 @@ "ClientId": { "base": null, "refs": { - "DescribeThingResponse$defaultClientId": "

The default client ID.

", + "DescribeThingResponse$defaultClientId": "

The default MQTT client ID. For a typical device, the thing name is also used as the default MQTT client ID. Although we don’t require a mapping between a thing's registry name and its use of MQTT client IDs, certificates, or shadow state, we recommend that you choose a thing name and use it as the MQTT client ID for the registry and the Device Shadow service.

This lets you better organize your AWS IoT fleet without removing the flexibility of the underlying device certificate model or shadows.

", "ResourceIdentifier$clientId": "

The client ID.

", "TestAuthorizationRequest$clientId": "

The MQTT client ID.

" } @@ -2555,7 +2567,7 @@ "DimensionValueOperator": { "base": null, "refs": { - "MetricDimension$operator": "

Defines how the dimensionValues of a dimension are interpreted. For example, for DimensionType TOPIC_FILTER, with IN operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN Operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null), it will be interpreted as IN.

" + "MetricDimension$operator": "

Defines how the dimensionValues of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the IN operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null), it will be interpreted as IN.

" } }, "DisableAllLogs": { @@ -4621,7 +4633,7 @@ "Parameters": { "base": null, "refs": { - "RegisterThingRequest$parameters": "

The parameters for provisioning a thing. See Programmatic Provisioning for more information.

" + "RegisterThingRequest$parameters": "

The parameters for provisioning a thing. See Provisioning Templates for more information.

" } }, "PartitionKey": { @@ -4636,6 +4648,12 @@ "DynamoDBAction$payloadField": "

The action payload. This name can be customized.

" } }, + "PayloadVersion": { + "base": null, + "refs": { + "ProvisioningHook$payloadVersion": "

The payload that was sent to the target function.

Note: Only Lambda functions are currently supported.

" + } + }, "Percent": { "base": null, "refs": { @@ -4901,6 +4919,14 @@ "OTAUpdateInfo$protocols": "

The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device can choose the protocol.

" } }, + "ProvisioningHook": { + "base": "

Structure that contains payloadVersion and targetArn.

", + "refs": { + "CreateProvisioningTemplateRequest$preProvisioningHook": "

Creates a pre-provisioning hook template.

", + "DescribeProvisioningTemplateResponse$preProvisioningHook": "

Gets information about a pre-provisioned hook.

", + "UpdateProvisioningTemplateRequest$preProvisioningHook": "

Updates the pre-provisioning hook template.

" + } + }, "ProvisioningTemplateListing": { "base": null, "refs": { @@ -5092,6 +5118,16 @@ "refs": { } }, + "RegisterCertificateWithoutCARequest": { + "base": null, + "refs": { + } + }, + "RegisterCertificateWithoutCAResponse": { + "base": null, + "refs": { + } + }, "RegisterThingRequest": { "base": null, "refs": { @@ -5185,6 +5221,12 @@ "UpdateCACertificateRequest$removeAutoRegistration": "

If true, removes auto registration.

" } }, + "RemoveHook": { + "base": null, + "refs": { + "UpdateProvisioningTemplateRequest$removePreProvisioningHook": "

Removes pre-provisioning hook template.

" + } + }, "RemoveThingFromBillingGroupRequest": { "base": null, "refs": { @@ -5664,7 +5706,7 @@ "ServiceType": { "base": null, "refs": { - "CreateDomainConfigurationRequest$serviceType": "

The type of service delivered by the endpoint.

", + "CreateDomainConfigurationRequest$serviceType": "

The type of service delivered by the endpoint.

AWS IoT Core currently supports only the DATA service type.

", "DescribeDomainConfigurationResponse$serviceType": "

The type of service delivered by the endpoint.

", "DomainConfigurationSummary$serviceType": "

The type of service delivered by the endpoint.

", "ListDomainConfigurationsRequest$serviceType": "

The type of service delivered by the endpoint.

" @@ -6061,19 +6103,24 @@ "TagList": { "base": null, "refs": { + "CreateAuthorizerRequest$tags": "

Metadata which can be used to manage the custom authorizer.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags \"key1=value1&key2=value2...\"

For the cli-input-json file use format: \"tags\": \"key1=value1&key2=value2...\"

", "CreateBillingGroupRequest$tags": "

Metadata which can be used to manage the billing group.

", "CreateDimensionRequest$tags": "

Metadata that can be used to manage the dimension.

", + "CreateDomainConfigurationRequest$tags": "

Metadata which can be used to manage the domain configuration.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags \"key1=value1&key2=value2...\"

For the cli-input-json file use format: \"tags\": \"key1=value1&key2=value2...\"

", "CreateDynamicThingGroupRequest$tags": "

Metadata which can be used to manage the dynamic thing group.

", "CreateJobRequest$tags": "

Metadata which can be used to manage the job.

", "CreateMitigationActionRequest$tags": "

Metadata that can be used to manage the mitigation action.

", "CreateOTAUpdateRequest$tags": "

Metadata which can be used to manage updates.

", + "CreatePolicyRequest$tags": "

Metadata which can be used to manage the policy.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags \"key1=value1&key2=value2...\"

For the cli-input-json file use format: \"tags\": \"key1=value1&key2=value2...\"

", "CreateProvisioningTemplateRequest$tags": "

Metadata which can be used to manage the fleet provisioning template.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags \"key1=value1&key2=value2...\"

For the cli-input-json file use format: \"tags\": \"key1=value1&key2=value2...\"

", + "CreateRoleAliasRequest$tags": "

Metadata which can be used to manage the role alias.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags \"key1=value1&key2=value2...\"

For the cli-input-json file use format: \"tags\": \"key1=value1&key2=value2...\"

", "CreateScheduledAuditRequest$tags": "

Metadata that can be used to manage the scheduled audit.

", "CreateSecurityProfileRequest$tags": "

Metadata that can be used to manage the security profile.

", "CreateStreamRequest$tags": "

Metadata which can be used to manage streams.

", "CreateThingGroupRequest$tags": "

Metadata which can be used to manage the thing group.

", "CreateThingTypeRequest$tags": "

Metadata which can be used to manage the thing type.

", "ListTagsForResourceResponse$tags": "

The list of tags assigned to the resource.

", + "RegisterCACertificateRequest$tags": "

Metadata which can be used to manage the CA certificate.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags \"key1=value1&key2=value2...\"

For the cli-input-json file use format: \"tags\": \"key1=value1&key2=value2...\"

", "TagResourceRequest$tags": "

The new or modified tags for the resource.

" } }, @@ -6103,7 +6150,8 @@ "base": null, "refs": { "AuditNotificationTarget$targetArn": "

The ARN of the target (SNS topic) to which audit notifications are sent.

", - "JobTargets$member": null + "JobTargets$member": null, + "ProvisioningHook$targetArn": "

The ARN of the target function.

Note: Only Lambda functions are currently supported.

" } }, "TargetAuditCheckNames": { @@ -6453,7 +6501,7 @@ "AddThingToThingGroupRequest$thingName": "

The name of the thing to add to a group.

", "AttachThingPrincipalRequest$thingName": "

The name of the thing.

", "CancelJobExecutionRequest$thingName": "

The name of the thing whose execution of the job will be canceled.

", - "CreateThingRequest$thingName": "

The name of the thing to create.

", + "CreateThingRequest$thingName": "

The name of the thing to create.

You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

", "CreateThingResponse$thingName": "

The name of the new thing.

", "DeleteJobExecutionRequest$thingName": "

The name of the thing whose job execution will be deleted.

", "DeleteThingRequest$thingName": "

The name of the thing to delete.

", @@ -6471,7 +6519,7 @@ "ThingDocument$thingName": "

The thing name.

", "ThingNameList$member": null, "UpdateThingGroupsForThingRequest$thingName": "

The thing whose group memberships will be updated.

", - "UpdateThingRequest$thingName": "

The name of the thing to update.

" + "UpdateThingRequest$thingName": "

The name of the thing to update.

You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

" } }, "ThingNameList": { @@ -6626,7 +6674,7 @@ "TokenSignature": { "base": null, "refs": { - "TestInvokeAuthorizerRequest$tokenSignature": "

The signature made with the token and your custom authentication service's private key.

" + "TestInvokeAuthorizerRequest$tokenSignature": "

The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.

" } }, "Topic": { diff --git a/models/apis/iotevents/2018-07-27/api-2.json b/models/apis/iotevents/2018-07-27/api-2.json index 305b38fef6..2358a0cbe5 100644 --- a/models/apis/iotevents/2018-07-27/api-2.json +++ b/models/apis/iotevents/2018-07-27/api-2.json @@ -274,24 +274,6 @@ {"shape":"ServiceUnavailableException"}, {"shape":"ResourceInUseException"} ] - }, - "VerifyResourcesExistForTagris":{ - "name":"VerifyResourcesExistForTagris", - "http":{ - "method":"GET", - "requestUri":"/internal/tags/resource-status" - }, - "input":{"shape":"TagrisVerifyResourcesExistInput"}, - "output":{"shape":"TagrisVerifyResourcesExistOutput"}, - "errors":[ - {"shape":"TagrisAccessDeniedException"}, - {"shape":"TagrisInternalServiceException"}, - {"shape":"TagrisInvalidArnException"}, - {"shape":"TagrisInvalidParameterException"}, - {"shape":"TagrisPartialResourcesExistResultsException"}, - {"shape":"TagrisThrottledException"} - ], - "internalonly":true } }, "shapes":{ @@ -1145,111 +1127,6 @@ "max":256, "min":0 }, - "TagrisAccessDeniedException":{ - "type":"structure", - "members":{ - "message":{"shape":"TagrisExceptionMessage"} - }, - "exception":true - }, - "TagrisAccountId":{ - "type":"string", - "max":12, - "min":12 - }, - "TagrisAmazonResourceName":{ - "type":"string", - "max":1011, - "min":1 - }, - "TagrisExceptionMessage":{ - "type":"string", - "max":2048, - "min":0 - }, - "TagrisInternalId":{ - "type":"string", - "max":64, - "min":0 - }, - "TagrisInternalServiceException":{ - "type":"structure", - "members":{ - "message":{"shape":"TagrisExceptionMessage"} - }, - "exception":true, - "fault":true - }, - "TagrisInvalidArnException":{ - "type":"structure", - "members":{ - "message":{"shape":"TagrisExceptionMessage"}, - "sweepListItem":{"shape":"TagrisSweepListItem"} - }, - "exception":true - }, - "TagrisInvalidParameterException":{ - "type":"structure", - "members":{ - "message":{"shape":"TagrisExceptionMessage"} - }, - "exception":true - }, - "TagrisPartialResourcesExistResultsException":{ - "type":"structure", - "members":{ - "message":{"shape":"TagrisExceptionMessage"}, - "resourceExistenceInformation":{"shape":"TagrisSweepListResult"} - }, - "exception":true - }, - "TagrisStatus":{ - "type":"string", - "enum":[ - "ACTIVE", - "NOT_ACTIVE" - ] - }, - "TagrisSweepList":{ - "type":"list", - "member":{"shape":"TagrisSweepListItem"} - }, - "TagrisSweepListItem":{ - "type":"structure", - "members":{ - "TagrisAccountId":{"shape":"TagrisAccountId"}, - "TagrisAmazonResourceName":{"shape":"TagrisAmazonResourceName"}, - "TagrisInternalId":{"shape":"TagrisInternalId"}, - "TagrisVersion":{"shape":"TagrisVersion"} - } - }, - "TagrisSweepListResult":{ - "type":"map", - "key":{"shape":"TagrisAmazonResourceName"}, - "value":{"shape":"TagrisStatus"} - }, - "TagrisThrottledException":{ - "type":"structure", - "members":{ - "message":{"shape":"TagrisExceptionMessage"} - }, - "exception":true - }, - "TagrisVerifyResourcesExistInput":{ - "type":"structure", - "required":["TagrisSweepList"], - "members":{ - "TagrisSweepList":{"shape":"TagrisSweepList"} - } - }, - "TagrisVerifyResourcesExistOutput":{ - "type":"structure", - "required":["TagrisSweepListResult"], - "members":{ - "TagrisSweepListResult":{"shape":"TagrisSweepListResult"} - } - }, - "TagrisVersion":{"type":"long"}, "Tags":{ "type":"list", "member":{"shape":"Tag"} diff --git a/models/apis/iotevents/2018-07-27/docs-2.json b/models/apis/iotevents/2018-07-27/docs-2.json index f0470d68a4..35c43a3e7e 100644 --- a/models/apis/iotevents/2018-07-27/docs-2.json +++ b/models/apis/iotevents/2018-07-27/docs-2.json @@ -17,8 +17,7 @@ "TagResource": "

Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.

", "UntagResource": "

Removes the given tags (metadata) from the resource.

", "UpdateDetectorModel": "

Updates a detector model. Detectors (instances) spawned by the previous version are deleted and then re-created as new inputs arrive.

", - "UpdateInput": "

Updates an input.

", - "VerifyResourcesExistForTagris": null + "UpdateInput": "

Updates an input.

" }, "shapes": { "Action": { @@ -528,7 +527,7 @@ "IotSiteWiseAction": { "base": "

Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise.

You must specify either propertyAlias or both assetId and propertyId to identify the target asset property in AWS IoT SiteWise.

For parameters that are string data type, you can specify the following options:

", "refs": { - "Action$iotSiteWise": "

Sends information about the detector model instance and the event that triggered the action to an AWS IoT SiteWise asset property.

" + "Action$iotSiteWise": "

Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .

" } }, "IotTopicPublishAction": { @@ -797,108 +796,6 @@ "Tag$value": "

The tag's value.

" } }, - "TagrisAccessDeniedException": { - "base": null, - "refs": { - } - }, - "TagrisAccountId": { - "base": null, - "refs": { - "TagrisSweepListItem$TagrisAccountId": null - } - }, - "TagrisAmazonResourceName": { - "base": null, - "refs": { - "TagrisSweepListItem$TagrisAmazonResourceName": null, - "TagrisSweepListResult$key": null - } - }, - "TagrisExceptionMessage": { - "base": null, - "refs": { - "TagrisAccessDeniedException$message": null, - "TagrisInternalServiceException$message": null, - "TagrisInvalidArnException$message": null, - "TagrisInvalidParameterException$message": null, - "TagrisPartialResourcesExistResultsException$message": null, - "TagrisThrottledException$message": null - } - }, - "TagrisInternalId": { - "base": null, - "refs": { - "TagrisSweepListItem$TagrisInternalId": null - } - }, - "TagrisInternalServiceException": { - "base": null, - "refs": { - } - }, - "TagrisInvalidArnException": { - "base": null, - "refs": { - } - }, - "TagrisInvalidParameterException": { - "base": null, - "refs": { - } - }, - "TagrisPartialResourcesExistResultsException": { - "base": null, - "refs": { - } - }, - "TagrisStatus": { - "base": null, - "refs": { - "TagrisSweepListResult$value": null - } - }, - "TagrisSweepList": { - "base": null, - "refs": { - "TagrisVerifyResourcesExistInput$TagrisSweepList": null - } - }, - "TagrisSweepListItem": { - "base": null, - "refs": { - "TagrisInvalidArnException$sweepListItem": null, - "TagrisSweepList$member": null - } - }, - "TagrisSweepListResult": { - "base": null, - "refs": { - "TagrisPartialResourcesExistResultsException$resourceExistenceInformation": null, - "TagrisVerifyResourcesExistOutput$TagrisSweepListResult": null - } - }, - "TagrisThrottledException": { - "base": null, - "refs": { - } - }, - "TagrisVerifyResourcesExistInput": { - "base": null, - "refs": { - } - }, - "TagrisVerifyResourcesExistOutput": { - "base": null, - "refs": { - } - }, - "TagrisVersion": { - "base": null, - "refs": { - "TagrisSweepListItem$TagrisVersion": null - } - }, "Tags": { "base": null, "refs": { diff --git a/models/apis/lambda/2015-03-31/docs-2.json b/models/apis/lambda/2015-03-31/docs-2.json index 641d4bf24b..f2d9878382 100644 --- a/models/apis/lambda/2015-03-31/docs-2.json +++ b/models/apis/lambda/2015-03-31/docs-2.json @@ -1500,7 +1500,7 @@ "base": null, "refs": { "CreateFunctionRequest$Timeout": "

The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds.

", - "FunctionConfiguration$Timeout": "

The amount of time that Lambda allows a function to run before stopping it.

", + "FunctionConfiguration$Timeout": "

The amount of time in seconds that Lambda allows a function to run before stopping it.

", "UpdateFunctionConfigurationRequest$Timeout": "

The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds.

" } }, diff --git a/models/apis/lambda/2015-03-31/examples-1.json b/models/apis/lambda/2015-03-31/examples-1.json index ffd758ed55..a60fc3bd04 100644 --- a/models/apis/lambda/2015-03-31/examples-1.json +++ b/models/apis/lambda/2015-03-31/examples-1.json @@ -185,8 +185,8 @@ } }, "description": "The following example creates a function with a deployment package in Amazon S3 and enables X-Ray tracing and environment variable encryption.", - "id": "to-update-an-asynchronous-invocation-configuration-1586492061186", - "title": "To update an asynchronous invocation configuration" + "id": "to-create-a-function-1586492061186", + "title": "To create a function" } ], "DeleteAlias": [ diff --git a/models/apis/mediaconvert/2017-08-29/api-2.json b/models/apis/mediaconvert/2017-08-29/api-2.json index 6435eb5ad8..8a9798e6aa 100644 --- a/models/apis/mediaconvert/2017-08-29/api-2.json +++ b/models/apis/mediaconvert/2017-08-29/api-2.json @@ -2222,6 +2222,10 @@ "MpdSettings": { "shape": "MpdSettings", "locationName": "mpdSettings" + }, + "MxfSettings": { + "shape": "MxfSettings", + "locationName": "mxfSettings" } } }, @@ -6690,6 +6694,22 @@ "UTF16" ] }, + "MxfAfdSignaling": { + "type": "string", + "enum": [ + "NO_COPY", + "COPY_FROM_VIDEO" + ] + }, + "MxfSettings": { + "type": "structure", + "members": { + "AfdSignaling": { + "shape": "MxfAfdSignaling", + "locationName": "afdSignaling" + } + } + }, "NielsenConfiguration": { "type": "structure", "members": { @@ -8898,4 +8918,4 @@ "timestampFormat": "unixTimestamp" } } -} +} \ No newline at end of file diff --git a/models/apis/mediaconvert/2017-08-29/docs-2.json b/models/apis/mediaconvert/2017-08-29/docs-2.json index 9ecac47f46..9482b17768 100644 --- a/models/apis/mediaconvert/2017-08-29/docs-2.json +++ b/models/apis/mediaconvert/2017-08-29/docs-2.json @@ -1664,9 +1664,9 @@ } }, "ImscStylePassthrough": { - "base": "Keep this setting enabled to have MediaConvert use the font style and position information from the captions source in the output. This option is available only when your input captions are CFF-TT, IMSC, SMPTE-TT, or TTML. Disable this setting for simplified output captions.", + "base": "Keep this setting enabled to have MediaConvert use the font style and position information from the captions source in the output. This option is available only when your input captions are IMSC, SMPTE-TT, or TTML. Disable this setting for simplified output captions.", "refs": { - "ImscDestinationSettings$StylePassthrough": "Keep this setting enabled to have MediaConvert use the font style and position information from the captions source in the output. This option is available only when your input captions are CFF-TT, IMSC, SMPTE-TT, or TTML. Disable this setting for simplified output captions." + "ImscDestinationSettings$StylePassthrough": "Keep this setting enabled to have MediaConvert use the font style and position information from the captions source in the output. This option is available only when your input captions are IMSC, SMPTE-TT, or TTML. Disable this setting for simplified output captions." } }, "Input": { @@ -2248,6 +2248,18 @@ "MsSmoothGroupSettings$ManifestEncoding": "Use Manifest encoding (MsSmoothManifestEncoding) to specify the encoding format for the server and client manifest. Valid options are utf8 and utf16." } }, + "MxfAfdSignaling": { + "base": "Optional. When you have AFD signaling set up in your output video stream, use this setting to choose whether to also include it in the MXF wrapper. Choose Don't copy (NO_COPY) to exclude AFD signaling from the MXF wrapper. Choose Copy from video stream (COPY_FROM_VIDEO) to copy the AFD values from the video stream for this output to the MXF wrapper. Regardless of which option you choose, the AFD values remain in the video stream. Related settings: To set up your output to include or exclude AFD values, see AfdSignaling, under VideoDescription. On the console, find AFD signaling under the output's video encoding settings.", + "refs": { + "MxfSettings$AfdSignaling": "Optional. When you have AFD signaling set up in your output video stream, use this setting to choose whether to also include it in the MXF wrapper. Choose Don't copy (NO_COPY) to exclude AFD signaling from the MXF wrapper. Choose Copy from video stream (COPY_FROM_VIDEO) to copy the AFD values from the video stream for this output to the MXF wrapper. Regardless of which option you choose, the AFD values remain in the video stream. Related settings: To set up your output to include or exclude AFD values, see AfdSignaling, under VideoDescription. On the console, find AFD signaling under the output's video encoding settings." + } + }, + "MxfSettings": { + "base": "MXF settings", + "refs": { + "ContainerSettings$MxfSettings": "MXF settings" + } + }, "NielsenConfiguration": { "base": "Settings for your Nielsen configuration. If you don't do Nielsen measurement and analytics, ignore these settings. When you enable Nielsen configuration (nielsenConfiguration), MediaConvert enables PCM to ID3 tagging for all outputs in the job. To enable Nielsen configuration programmatically, include an instance of nielsenConfiguration in your JSON job specification. Even if you don't include any children of nielsenConfiguration, you still enable the setting.", "refs": { @@ -2692,9 +2704,9 @@ } }, "TtmlStylePassthrough": { - "base": "Pass through style and position information from a TTML-like input source (TTML, SMPTE-TT, CFF-TT) to the CFF-TT output or TTML output.", + "base": "Pass through style and position information from a TTML-like input source (TTML, SMPTE-TT) to the TTML output.", "refs": { - "TtmlDestinationSettings$StylePassthrough": "Pass through style and position information from a TTML-like input source (TTML, SMPTE-TT, CFF-TT) to the CFF-TT output or TTML output." + "TtmlDestinationSettings$StylePassthrough": "Pass through style and position information from a TTML-like input source (TTML, SMPTE-TT) to the TTML output." } }, "Type": { @@ -4110,4 +4122,4 @@ } } } -} +} \ No newline at end of file diff --git a/models/apis/schemas/2019-12-02/api-2.json b/models/apis/schemas/2019-12-02/api-2.json index 9c6285f00d..94104a7e18 100644 --- a/models/apis/schemas/2019-12-02/api-2.json +++ b/models/apis/schemas/2019-12-02/api-2.json @@ -169,6 +169,37 @@ } ] }, + "DeleteResourcePolicy": { + "name": "DeleteResourcePolicy", + "http": { + "method": "DELETE", + "requestUri": "/v1/policy", + "responseCode": 204 + }, + "input": { + "shape": "DeleteResourcePolicyRequest" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "UnauthorizedException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + } + ] + }, "DeleteSchema": { "name": "DeleteSchema", "http": { @@ -432,6 +463,40 @@ } ] }, + "GetResourcePolicy": { + "name": "GetResourcePolicy", + "http": { + "method": "GET", + "requestUri": "/v1/policy", + "responseCode": 200 + }, + "input": { + "shape": "GetResourcePolicyRequest" + }, + "output": { + "shape": "GetResourcePolicyResponse" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "UnauthorizedException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + } + ] + }, "ListDiscoverers": { "name": "ListDiscoverers", "http": { @@ -587,22 +652,22 @@ } ] }, - "LockServiceLinkedRole": { - "name": "LockServiceLinkedRole", + "PutCodeBinding": { + "name": "PutCodeBinding", "http": { "method": "POST", - "requestUri": "/slr-deletion/lock", - "responseCode": 200 + "requestUri": "/v1/registries/name/{registryName}/schemas/name/{schemaName}/language/{language}", + "responseCode": 202 }, "input": { - "shape": "LockServiceLinkedRoleRequest" + "shape": "PutCodeBindingRequest" }, "output": { - "shape": "LockServiceLinkedRoleResponse" + "shape": "PutCodeBindingResponse" }, "errors": [ { - "shape": "ServiceUnavailableException" + "shape": "GoneException" }, { "shape": "BadRequestException" @@ -615,33 +680,38 @@ }, { "shape": "ForbiddenException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "TooManyRequestsException" } - ], - "internal": true + ] }, - "PutCodeBinding": { - "name": "PutCodeBinding", + "PutResourcePolicy": { + "name": "PutResourcePolicy", "http": { - "method": "POST", - "requestUri": "/v1/registries/name/{registryName}/schemas/name/{schemaName}/language/{language}", - "responseCode": 202 + "method": "PUT", + "requestUri": "/v1/policy", + "responseCode": 200 }, "input": { - "shape": "PutCodeBindingRequest" + "shape": "PutResourcePolicyRequest" }, "output": { - "shape": "PutCodeBindingResponse" + "shape": "PutResourcePolicyResponse" }, "errors": [ - { - "shape": "GoneException" - }, { "shape": "BadRequestException" }, { "shape": "UnauthorizedException" }, + { + "shape": "PreconditionFailedException" + }, { "shape": "InternalServerErrorException" }, @@ -652,7 +722,7 @@ "shape": "NotFoundException" }, { - "shape": "TooManyRequestsException" + "shape": "ServiceUnavailableException" } ] }, @@ -780,38 +850,6 @@ } ] }, - "UnlockServiceLinkedRole": { - "name": "UnlockServiceLinkedRole", - "http": { - "method": "POST", - "requestUri": "/slr-deletion/unlock", - "responseCode": 200 - }, - "input": { - "shape": "UnlockServiceLinkedRoleRequest" - }, - "output": { - "shape": "UnlockServiceLinkedRoleResponse" - }, - "errors": [ - { - "shape": "ServiceUnavailableException" - }, - { - "shape": "BadRequestException" - }, - { - "shape": "UnauthorizedException" - }, - { - "shape": "InternalServerErrorException" - }, - { - "shape": "ForbiddenException" - } - ], - "internal": true - }, "UntagResource": { "name": "UntagResource", "http": { @@ -1223,6 +1261,16 @@ "RegistryName" ] }, + "DeleteResourcePolicyRequest": { + "type": "structure", + "members": { + "RegistryName": { + "shape": "__string", + "location": "querystring", + "locationName": "registryName" + } + } + }, "DeleteSchemaRequest": { "type": "structure", "members": { @@ -1662,6 +1710,40 @@ "min": 1, "max": 100000 }, + "GetResourcePolicyOutput": { + "type": "structure", + "members": { + "Policy": { + "shape": "__string", + "jsonvalue": true + }, + "RevisionId": { + "shape": "__string" + } + } + }, + "GetResourcePolicyRequest": { + "type": "structure", + "members": { + "RegistryName": { + "shape": "__string", + "location": "querystring", + "locationName": "registryName" + } + } + }, + "GetResourcePolicyResponse": { + "type": "structure", + "members": { + "Policy": { + "shape": "__string", + "jsonvalue": true + }, + "RevisionId": { + "shape": "__string" + } + } + }, "GoneException": { "type": "structure", "members": { @@ -1900,6 +1982,15 @@ } } }, + "ListTagsForResourceOutput": { + "type": "structure", + "members": { + "Tags": { + "shape": "Tags", + "locationName": "tags" + } + } + }, "ListTagsForResourceRequest": { "type": "structure", "members": { @@ -1917,12 +2008,10 @@ "type": "structure", "members": { "Tags": { - "shape": "Tags" + "shape": "Tags", + "locationName": "tags" } - }, - "required": [ - "Tags" - ] + } }, "LockServiceLinkedRoleInput": { "type": "structure", @@ -2001,6 +2090,25 @@ "httpStatusCode": 404 } }, + "PreconditionFailedException": { + "type": "structure", + "members": { + "Code": { + "shape": "__string" + }, + "Message": { + "shape": "__string" + } + }, + "required": [ + "Message", + "Code" + ], + "exception": true, + "error": { + "httpStatusCode": 412 + } + }, "PutCodeBindingRequest": { "type": "structure", "members": { @@ -2048,6 +2156,65 @@ } } }, + "PutResourcePolicyInput": { + "type": "structure", + "members": { + "Policy": { + "shape": "__string", + "jsonvalue": true + }, + "RevisionId": { + "shape": "__string" + } + }, + "required": [ + "Policy" + ] + }, + "PutResourcePolicyOutput": { + "type": "structure", + "members": { + "Policy": { + "shape": "__string", + "jsonvalue": true + }, + "RevisionId": { + "shape": "__string" + } + } + }, + "PutResourcePolicyRequest": { + "type": "structure", + "members": { + "Policy": { + "shape": "__string", + "jsonvalue": true + }, + "RegistryName": { + "shape": "__string", + "location": "querystring", + "locationName": "registryName" + }, + "RevisionId": { + "shape": "__string" + } + }, + "required": [ + "Policy" + ] + }, + "PutResourcePolicyResponse": { + "type": "structure", + "members": { + "Policy": { + "shape": "__string", + "jsonvalue": true + }, + "RevisionId": { + "shape": "__string" + } + } + }, "RegistryOutput": { "type": "structure", "members": { diff --git a/models/apis/schemas/2019-12-02/docs-2.json b/models/apis/schemas/2019-12-02/docs-2.json index f7d3fe4c6b..d01f40a268 100644 --- a/models/apis/schemas/2019-12-02/docs-2.json +++ b/models/apis/schemas/2019-12-02/docs-2.json @@ -1,413 +1,441 @@ { - "version" : "2.0", - "service" : "

AWS EventBridge Schemas

", - "operations" : { - "CreateDiscoverer" : "

Creates a discoverer.

", - "CreateRegistry" : "

Creates a registry.

", - "CreateSchema" : "

Creates a schema definition.

", - "DeleteDiscoverer" : "

Deletes a discoverer.

", - "DeleteRegistry" : "

Deletes a Registry.

", - "DeleteSchema" : "

Delete a schema definition.

", - "DeleteSchemaVersion" : "

Delete the schema version definition

", - "DescribeCodeBinding" : "

Describe the code binding URI.

", - "DescribeDiscoverer" : "

Describes the discoverer.

", - "DescribeRegistry" : "

Describes the registry.

", - "DescribeSchema" : "

Retrieve the schema definition.

", - "GetCodeBindingSource" : "

Get the code binding source URI.

", - "GetDiscoveredSchema" : "

Get the discovered schema that was generated based on sampled events.

", - "ListDiscoverers" : "

List the discoverers.

", - "ListRegistries" : "

List the registries.

", - "ListSchemaVersions" : "

Provides a list of the schema versions and related information.

", - "ListSchemas" : "

List the schemas.

", - "ListTagsForResource" : "

Get tags for resource.

", - "LockServiceLinkedRole" : null, - "PutCodeBinding" : "

Put code binding URI

", - "SearchSchemas" : "

Search the schemas

", - "StartDiscoverer" : "

Starts the discoverer

", - "StopDiscoverer" : "

Stops the discoverer

", - "TagResource" : "

Add tags to a resource.

", - "UnlockServiceLinkedRole" : null, - "UntagResource" : "

Removes tags from a resource.

", - "UpdateDiscoverer" : "

Updates the discoverer

", - "UpdateRegistry" : "

Updates a registry.

", - "UpdateSchema" : "

Updates the schema definition

" + "version": "2.0", + "service": "

Amazon EventBridge Schema Registry

", + "operations": { + "CreateDiscoverer": "

Creates a discoverer.

", + "CreateRegistry": "

Creates a registry.

", + "CreateSchema": "

Creates a schema definition.

Inactive schemas will be deleted after two years.

", + "DeleteDiscoverer": "

Deletes a discoverer.

", + "DeleteRegistry": "

Deletes a Registry.

", + "DeleteResourcePolicy": "

Delete the resource-based policy attached to the specified registry.

", + "DeleteSchema": "

Delete a schema definition.

", + "DeleteSchemaVersion": "

Delete the schema version definition

", + "DescribeCodeBinding": "

Describe the code binding URI.

", + "DescribeDiscoverer": "

Describes the discoverer.

", + "DescribeRegistry": "

Describes the registry.

", + "DescribeSchema": "

Retrieve the schema definition.

", + "GetCodeBindingSource": "

Get the code binding source URI.

", + "GetDiscoveredSchema": "

Get the discovered schema that was generated based on sampled events.

", + "GetResourcePolicy": "

Retrieves the resource-based policy attached to a given registry.

", + "ListDiscoverers": "

List the discoverers.

", + "ListRegistries": "

List the registries.

", + "ListSchemaVersions": "

Provides a list of the schema versions and related information.

", + "ListSchemas": "

List the schemas.

", + "ListTagsForResource": "

Get tags for resource.

", + "PutCodeBinding": "

Put code binding URI

", + "PutResourcePolicy": "

The name of the policy.

", + "SearchSchemas": "

Search the schemas

", + "StartDiscoverer": "

Starts the discoverer

", + "StopDiscoverer": "

Stops the discoverer

", + "TagResource": "

Add tags to a resource.

", + "UntagResource": "

Removes tags from a resource.

", + "UpdateDiscoverer": "

Updates the discoverer

", + "UpdateRegistry": "

Updates a registry.

", + "UpdateSchema": "

Updates the schema definition

Inactive schemas will be deleted after two years.

" }, - "shapes" : { - "BadRequestException" : { - "base" : null, - "refs" : { } - }, - "CodeBindingOutput" : { - "base" : null, - "refs" : { } - }, - "CodeGenerationStatus" : { - "base" : null, - "refs" : { - "CodeBindingOutput$Status" : "

The current status of code binding generation.

" + "shapes": { + "BadRequestException": { + "base": null, + "refs": {} + }, + "CodeBindingOutput": { + "base": null, + "refs": {} + }, + "CodeGenerationStatus": { + "base": null, + "refs": { + "CodeBindingOutput$Status": "

The current status of code binding generation.

" } }, - "ConflictException" : { - "base" : null, - "refs" : { } + "ConflictException": { + "base": null, + "refs": {} }, - "CreateDiscovererInput" : { - "base" : null, - "refs" : { } + "CreateDiscovererInput": { + "base": null, + "refs": {} }, - "CreateRegistryInput" : { - "base" : null, - "refs" : { } + "CreateRegistryInput": { + "base": null, + "refs": {} }, - "CreateSchemaInput" : { - "base" : null, - "refs" : { } + "CreateSchemaInput": { + "base": null, + "refs": {} }, - "DescribeSchemaOutput" : { - "base" : null, - "refs" : { } + "DescribeSchemaOutput": { + "base": null, + "refs": {} }, - "DiscovererOutput" : { - "base" : null, - "refs" : { } + "DiscovererOutput": { + "base": null, + "refs": {} }, - "DiscovererState" : { - "base" : null, - "refs" : { - "DiscovererOutput$State" : "

The state of the discoverer.

", - "DiscovererStateOutput$State" : "

The state of the discoverer.

", - "DiscovererSummary$State" : null + "DiscovererState": { + "base": null, + "refs": { + "DiscovererOutput$State": "

The state of the discoverer.

", + "DiscovererStateOutput$State": "

The state of the discoverer.

", + "DiscovererSummary$State": "

The state of the discoverer.

" } }, - "DiscovererStateOutput" : { - "base" : null, - "refs" : { } + "DiscovererStateOutput": { + "base": null, + "refs": {} }, - "DiscovererSummary" : { - "base" : null, - "refs" : { - "__listOfDiscovererSummary$member" : null + "DiscovererSummary": { + "base": null, + "refs": { + "__listOfDiscovererSummary$member": null } }, - "ErrorOutput" : { - "base" : null, - "refs" : { } + "ErrorOutput": { + "base": null, + "refs": {} }, - "ForbiddenException" : { - "base" : null, - "refs" : { } + "ForbiddenException": { + "base": null, + "refs": {} }, - "GetCodeBindingSourceOutput" : { - "base" : null, - "refs" : { } + "GetCodeBindingSourceOutput": { + "base": null, + "refs": {} }, - "GetDiscoveredSchemaInput" : { - "base" : null, - "refs" : { } + "GetDiscoveredSchemaInput": { + "base": null, + "refs": {} }, - "GetDiscoveredSchemaOutput" : { - "base" : null, - "refs" : { } + "GetDiscoveredSchemaOutput": { + "base": "

", + "refs": {} }, - "GetDiscoveredSchemaVersionItemInput" : { - "base" : null, - "refs" : { - "__listOfGetDiscoveredSchemaVersionItemInput$member" : null + "GetDiscoveredSchemaVersionItemInput": { + "base": null, + "refs": { + "__listOfGetDiscoveredSchemaVersionItemInput$member": null } }, - "GoneException" : { - "base" : null, - "refs" : { } + "GetResourcePolicyOutput": { + "base": "

Information about the policy.

", + "refs": {} }, - "InternalServerErrorException" : { - "base" : null, - "refs" : { } + "GoneException": { + "base": null, + "refs": {} }, - "ListDiscoverersOutput" : { - "base" : null, - "refs" : { } + "InternalServerErrorException": { + "base": null, + "refs": {} }, - "ListRegistriesOutput" : { - "base" : "

List the registries.

", - "refs" : { } + "ListDiscoverersOutput": { + "base": null, + "refs": {} }, - "ListSchemaVersionsOutput" : { - "base" : null, - "refs" : { } + "ListRegistriesOutput": { + "base": "

List the registries.

", + "refs": {} }, - "ListSchemasOutput" : { - "base" : null, - "refs" : { } + "ListSchemaVersionsOutput": { + "base": null, + "refs": {} }, - "LockServiceLinkedRoleInput" : { - "base" : null, - "refs" : { } + "ListSchemasOutput": { + "base": null, + "refs": {} }, - "LockServiceLinkedRoleOutput" : { - "base" : null, - "refs" : { } + "ListTagsForResourceOutput": { + "base": null, + "refs": {} }, - "NotFoundException" : { - "base" : null, - "refs" : { } + "LockServiceLinkedRoleInput": { + "base": null, + "refs": {} }, - "RegistryOutput" : { - "base" : null, - "refs" : { } + "LockServiceLinkedRoleOutput": { + "base": null, + "refs": {} }, - "RegistrySummary" : { - "base" : null, - "refs" : { - "__listOfRegistrySummary$member" : null + "NotFoundException": { + "base": null, + "refs": {} + }, + "PreconditionFailedException": { + "base": null, + "refs": {} + }, + "PutResourcePolicyInput": { + "base": "

Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.

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

The resource-based policy.

", + "refs": {} + }, + "RegistryOutput": { + "base": null, + "refs": {} + }, + "RegistrySummary": { + "base": null, + "refs": { + "__listOfRegistrySummary$member": null } }, - "SchemaOutput" : { - "base" : null, - "refs" : { } + "SchemaOutput": { + "base": null, + "refs": {} }, - "SchemaSummary" : { - "base" : "

A summary of schema details.

", - "refs" : { - "__listOfSchemaSummary$member" : null + "SchemaSummary": { + "base": "

A summary of schema details.

", + "refs": { + "__listOfSchemaSummary$member": null } }, - "SchemaVersionSummary" : { - "base" : null, - "refs" : { - "__listOfSchemaVersionSummary$member" : null + "SchemaVersionSummary": { + "base": null, + "refs": { + "__listOfSchemaVersionSummary$member": null } }, - "SearchSchemaSummary" : { - "base" : null, - "refs" : { - "__listOfSearchSchemaSummary$member" : null + "SearchSchemaSummary": { + "base": null, + "refs": { + "__listOfSearchSchemaSummary$member": null } }, - "SearchSchemaVersionSummary" : { - "base" : null, - "refs" : { - "__listOfSearchSchemaVersionSummary$member" : null + "SearchSchemaVersionSummary": { + "base": null, + "refs": { + "__listOfSearchSchemaVersionSummary$member": null } }, - "SearchSchemasOutput" : { - "base" : null, - "refs" : { } - }, - "ServiceUnavailableException" : { - "base" : null, - "refs" : { } - }, - "TagResourceInput" : { - "base" : null, - "refs" : { } - }, - "Tags" : { - "base" : "

Key-value pairs associated with a resource.

", - "refs" : { - "CreateDiscovererInput$Tags" : "

Tags associated with the resource.

", - "CreateRegistryInput$Tags" : "

Tags to associate with the registry.

", - "CreateSchemaInput$Tags" : "

Tags associated with the schema.

", - "DescribeSchemaOutput$Tags" : "

Tags associated with the resource.

", - "DiscovererOutput$Tags" : "

Tags associated with the resource.

", - "DiscovererSummary$Tags" : "

Tags associated with the resource.

", - "RegistryOutput$Tags" : "

Tags associated with the registry.

", - "RegistrySummary$Tags" : "

Tags associated with the registry.

", - "SchemaOutput$Tags" : null, - "SchemaSummary$Tags" : "

Tags associated with the schema.

", - "TagResourceInput$Tags" : null + "SearchSchemasOutput": { + "base": null, + "refs": {} + }, + "ServiceUnavailableException": { + "base": null, + "refs": {} + }, + "TagResourceInput": { + "base": null, + "refs": {} + }, + "Tags": { + "base": "

Key-value pairs associated with a resource.

", + "refs": { + "CreateDiscovererInput$Tags": "

Tags associated with the resource.

", + "CreateRegistryInput$Tags": "

Tags to associate with the registry.

", + "CreateSchemaInput$Tags": "

Tags associated with the schema.

", + "DescribeSchemaOutput$Tags": "

Tags associated with the resource.

", + "DiscovererOutput$Tags": "

Tags associated with the resource.

", + "DiscovererSummary$Tags": "

Tags associated with the resource.

", + "ListTagsForResourceOutput$Tags": null, + "RegistryOutput$Tags": "

Tags associated with the registry.

", + "RegistrySummary$Tags": "

Tags associated with the registry.

", + "SchemaOutput$Tags": null, + "SchemaSummary$Tags": "

Tags associated with the schema.

", + "TagResourceInput$Tags": "

Tags associated with the resource.

" } }, - "TooManyRequestsException" : { - "base" : null, - "refs" : { } + "TooManyRequestsException": { + "base": null, + "refs": {} }, - "Type" : { - "base" : null, - "refs" : { - "CreateSchemaInput$Type" : null, - "GetDiscoveredSchemaInput$Type" : "

The type of event.

", - "UpdateSchemaInput$Type" : "

The schema type for the events schema.

" + "Type": { + "base": null, + "refs": { + "CreateSchemaInput$Type": "

The type of schema.

", + "GetDiscoveredSchemaInput$Type": "

The type of event.

", + "UpdateSchemaInput$Type": "

The schema type for the events schema.

" } }, - "UnauthorizedException" : { - "base" : null, - "refs" : { } + "UnauthorizedException": { + "base": null, + "refs": {} }, - "UnlockServiceLinkedRoleInput" : { - "base" : null, - "refs" : { } + "UnlockServiceLinkedRoleInput": { + "base": null, + "refs": {} }, - "UpdateDiscovererInput" : { - "base" : null, - "refs" : { } + "UpdateDiscovererInput": { + "base": null, + "refs": {} }, - "UpdateRegistryInput" : { - "base" : null, - "refs" : { } + "UpdateRegistryInput": { + "base": null, + "refs": {} }, - "UpdateSchemaInput" : { - "base" : null, - "refs" : { } + "UpdateSchemaInput": { + "base": null, + "refs": {} }, - "__boolean" : { - "base" : null, - "refs" : { - "LockServiceLinkedRoleOutput$CanBeDeleted" : null + "__boolean": { + "base": null, + "refs": { + "LockServiceLinkedRoleOutput$CanBeDeleted": null } }, - "__integerMin1Max29000" : { - "base" : null, - "refs" : { - "LockServiceLinkedRoleInput$Timeout" : null + "__integerMin1Max29000": { + "base": null, + "refs": { + "LockServiceLinkedRoleInput$Timeout": null } }, - "__listOfDiscovererSummary" : { - "base" : null, - "refs" : { - "ListDiscoverersOutput$Discoverers" : "

An array of DiscovererSummary information.

", - "LockServiceLinkedRoleOutput$RelatedResources" : null + "__listOfDiscovererSummary": { + "base": null, + "refs": { + "ListDiscoverersOutput$Discoverers": "

An array of DiscovererSummary information.

", + "LockServiceLinkedRoleOutput$RelatedResources": null } }, - "__listOfGetDiscoveredSchemaVersionItemInput" : { - "base" : null, - "refs" : { - "GetDiscoveredSchemaInput$Events" : "

An array of strings that

" + "__listOfGetDiscoveredSchemaVersionItemInput": { + "base": null, + "refs": { + "GetDiscoveredSchemaInput$Events": "

An array of strings where each string is a JSON event. These are the events that were used to generate the schema. The array includes a single type of event and has a maximum size of 10 events.

" } }, - "__listOfRegistrySummary" : { - "base" : null, - "refs" : { - "ListRegistriesOutput$Registries" : "

An array of registry summaries.

" + "__listOfRegistrySummary": { + "base": null, + "refs": { + "ListRegistriesOutput$Registries": "

An array of registry summaries.

" } }, - "__listOfSchemaSummary" : { - "base" : null, - "refs" : { - "ListSchemasOutput$Schemas" : "

An array of schema summaries.

" + "__listOfSchemaSummary": { + "base": null, + "refs": { + "ListSchemasOutput$Schemas": "

An array of schema summaries.

" } }, - "__listOfSchemaVersionSummary" : { - "base" : null, - "refs" : { - "ListSchemaVersionsOutput$SchemaVersions" : "

An array of schema version summaries.

" + "__listOfSchemaVersionSummary": { + "base": null, + "refs": { + "ListSchemaVersionsOutput$SchemaVersions": "

An array of schema version summaries.

" } }, - "__listOfSearchSchemaSummary" : { - "base" : null, - "refs" : { - "SearchSchemasOutput$Schemas" : "

An array of SearchSchemaSummary information.

" + "__listOfSearchSchemaSummary": { + "base": null, + "refs": { + "SearchSchemasOutput$Schemas": "

An array of SearchSchemaSummary information.

" } }, - "__listOfSearchSchemaVersionSummary" : { - "base" : null, - "refs" : { - "SearchSchemaSummary$SchemaVersions" : "

An array of schema version summaries.

" + "__listOfSearchSchemaVersionSummary": { + "base": null, + "refs": { + "SearchSchemaSummary$SchemaVersions": "

An array of schema version summaries.

" } }, - "__long" : { - "base" : null, - "refs" : { - "SchemaSummary$VersionCount" : "

The number of versions available for the schema.

" + "__long": { + "base": null, + "refs": { + "SchemaSummary$VersionCount": "

The number of versions available for the schema.

" } }, - "__string" : { - "base" : null, - "refs" : { - "CodeBindingOutput$SchemaVersion" : "

The version number of the schema.

", - "DescribeSchemaOutput$Content" : null, - "DescribeSchemaOutput$Description" : "

The description of the schema.

", - "DescribeSchemaOutput$SchemaArn" : "

The ARN of the schema.

", - "DescribeSchemaOutput$SchemaName" : "

The name of the schema.

", - "DescribeSchemaOutput$SchemaVersion" : "

The version number of the schema

", - "DescribeSchemaOutput$Type" : "

The type of the schema.

", - "DiscovererOutput$Description" : "

The description of the discoverer.

", - "DiscovererOutput$DiscovererArn" : "

The ARN of the discoverer.

", - "DiscovererOutput$DiscovererId" : "

The ID of the discoverer.

", - "DiscovererOutput$SourceArn" : "

The ARN of the event bus.

", - "DiscovererStateOutput$DiscovererId" : "

The ID of the discoverer.

", - "DiscovererSummary$DiscovererArn" : "

The ARN of the discoverer.

", - "DiscovererSummary$DiscovererId" : "

The ID of the discoverer.

", - "DiscovererSummary$SourceArn" : "

The ARN of the event bus.

", - "ErrorOutput$Code" : "

The error code.

", - "ErrorOutput$Message" : "

The message string of the error output.

", - "GetDiscoveredSchemaOutput$Content" : null, - "ListDiscoverersOutput$NextToken" : "

The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

", - "ListRegistriesOutput$NextToken" : "

The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

", - "ListSchemaVersionsOutput$NextToken" : "

The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

", - "ListSchemasOutput$NextToken" : "

The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

", - "RegistryOutput$Description" : "

The description of the registry.

", - "RegistryOutput$RegistryArn" : "

The ARN of the registry.

", - "RegistryOutput$RegistryName" : "

The name of the registry.

", - "RegistrySummary$RegistryArn" : "

The ARN of the registry.

", - "RegistrySummary$RegistryName" : "

The name of the registry.

", - "SchemaOutput$Description" : "

The description of the schema.

", - "SchemaOutput$SchemaArn" : "

The ARN of the schema.

", - "SchemaOutput$SchemaName" : "

The name of the schema.

", - "SchemaOutput$SchemaVersion" : "

The version number of the schema

", - "SchemaOutput$Type" : "

The type of the schema.

", - "SchemaSummary$SchemaArn" : "

The ARN of the schema.

", - "SchemaSummary$SchemaName" : "

The name of the schema.

", - "SchemaVersionSummary$SchemaArn" : "

The ARN of the schema version.

", - "SchemaVersionSummary$SchemaName" : "

The name of the schema.

", - "SchemaVersionSummary$SchemaVersion" : "

The version number of the schema.

", - "SearchSchemaSummary$RegistryName" : "

The name of the registry.

", - "SearchSchemaSummary$SchemaArn" : "

The ARN of the schema.

", - "SearchSchemaSummary$SchemaName" : "

The name of the schema.

", - "SearchSchemaVersionSummary$SchemaVersion" : "

The version number of the schema

", - "SearchSchemasOutput$NextToken" : "

The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

", - "Tags$member" : null + "__string": { + "base": null, + "refs": { + "CodeBindingOutput$SchemaVersion": "

The version number of the schema.

", + "DescribeSchemaOutput$Content": "

The source of the schema definition.

", + "DescribeSchemaOutput$Description": "

The description of the schema.

", + "DescribeSchemaOutput$SchemaArn": "

The ARN of the schema.

", + "DescribeSchemaOutput$SchemaName": "

The name of the schema.

", + "DescribeSchemaOutput$SchemaVersion": "

The version number of the schema

", + "DescribeSchemaOutput$Type": "

The type of the schema.

", + "DiscovererOutput$Description": "

The description of the discoverer.

", + "DiscovererOutput$DiscovererArn": "

The ARN of the discoverer.

", + "DiscovererOutput$DiscovererId": "

The ID of the discoverer.

", + "DiscovererOutput$SourceArn": "

The ARN of the event bus.

", + "DiscovererStateOutput$DiscovererId": "

The ID of the discoverer.

", + "DiscovererSummary$DiscovererArn": "

The ARN of the discoverer.

", + "DiscovererSummary$DiscovererId": "

The ID of the discoverer.

", + "DiscovererSummary$SourceArn": "

The ARN of the event bus.

", + "ErrorOutput$Code": "

The error code.

", + "ErrorOutput$Message": "

The message string of the error output.

", + "GetDiscoveredSchemaOutput$Content": "

The source of the schema definition.

", + "GetResourcePolicyOutput$Policy": "

The resource-based policy.

", + "GetResourcePolicyOutput$RevisionId": "

The revision ID.

", + "ListDiscoverersOutput$NextToken": "

The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

", + "ListRegistriesOutput$NextToken": "

The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

", + "ListSchemaVersionsOutput$NextToken": "

The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

", + "ListSchemasOutput$NextToken": "

The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

", + "PutResourcePolicyInput$Policy": "

The resource-based policy.

", + "PutResourcePolicyInput$RevisionId": "

The revision ID of the policy.

", + "PutResourcePolicyOutput$Policy": "

The resource-based policy.

", + "PutResourcePolicyOutput$RevisionId": "

The revision ID of the policy.

", + "RegistryOutput$Description": "

The description of the registry.

", + "RegistryOutput$RegistryArn": "

The ARN of the registry.

", + "RegistryOutput$RegistryName": "

The name of the registry.

", + "RegistrySummary$RegistryArn": "

The ARN of the registry.

", + "RegistrySummary$RegistryName": "

The name of the registry.

", + "SchemaOutput$Description": "

The description of the schema.

", + "SchemaOutput$SchemaArn": "

The ARN of the schema.

", + "SchemaOutput$SchemaName": "

The name of the schema.

", + "SchemaOutput$SchemaVersion": "

The version number of the schema

", + "SchemaOutput$Type": "

The type of the schema.

", + "SchemaSummary$SchemaArn": "

The ARN of the schema.

", + "SchemaSummary$SchemaName": "

The name of the schema.

", + "SchemaVersionSummary$SchemaArn": "

The ARN of the schema version.

", + "SchemaVersionSummary$SchemaName": "

The name of the schema.

", + "SchemaVersionSummary$SchemaVersion": "

The version number of the schema.

", + "SearchSchemaSummary$RegistryName": "

The name of the registry.

", + "SearchSchemaSummary$SchemaArn": "

The ARN of the schema.

", + "SearchSchemaSummary$SchemaName": "

The name of the schema.

", + "SearchSchemaVersionSummary$SchemaVersion": "

The version number of the schema

", + "SearchSchemasOutput$NextToken": "

The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

", + "Tags$member": null } }, - "__stringMin0Max256" : { - "base" : null, - "refs" : { - "CreateDiscovererInput$Description" : "

A description for the discoverer.

", - "CreateRegistryInput$Description" : "

A description of the registry to be created.

", - "CreateSchemaInput$Description" : "

A description of the schema.

", - "UpdateDiscovererInput$Description" : "

The description of the discoverer to update.

", - "UpdateRegistryInput$Description" : "

The description of the registry to update.

", - "UpdateSchemaInput$Description" : "

The description of the schema.

" + "__stringMin0Max256": { + "base": null, + "refs": { + "CreateDiscovererInput$Description": "

A description for the discoverer.

", + "CreateRegistryInput$Description": "

A description of the registry to be created.

", + "CreateSchemaInput$Description": "

A description of the schema.

", + "UpdateDiscovererInput$Description": "

The description of the discoverer to update.

", + "UpdateRegistryInput$Description": "

The description of the registry to update.

", + "UpdateSchemaInput$Description": "

The description of the schema.

" } }, - "__stringMin0Max36" : { - "base" : null, - "refs" : { - "UpdateSchemaInput$ClientTokenId" : "

The ID of the client token.

" + "__stringMin0Max36": { + "base": null, + "refs": { + "UpdateSchemaInput$ClientTokenId": "

The ID of the client token.

" } }, - "__stringMin1Max100000" : { - "base" : null, - "refs" : { - "CreateSchemaInput$Content" : null, - "UpdateSchemaInput$Content" : "

The source of the schema definition.

" + "__stringMin1Max100000": { + "base": null, + "refs": { + "CreateSchemaInput$Content": "

The source of the schema definition.

", + "UpdateSchemaInput$Content": "

The source of the schema definition.

" } }, - "__stringMin1Max1600" : { - "base" : null, - "refs" : { - "LockServiceLinkedRoleInput$RoleArn" : null, - "LockServiceLinkedRoleOutput$ReasonOfFailure" : null, - "UnlockServiceLinkedRoleInput$RoleArn" : null + "__stringMin1Max1600": { + "base": null, + "refs": { + "LockServiceLinkedRoleInput$RoleArn": null, + "LockServiceLinkedRoleOutput$ReasonOfFailure": null, + "UnlockServiceLinkedRoleInput$RoleArn": null } }, - "__stringMin20Max1600" : { - "base" : null, - "refs" : { - "CreateDiscovererInput$SourceArn" : "

The ARN of the event bus.

" + "__stringMin20Max1600": { + "base": null, + "refs": { + "CreateDiscovererInput$SourceArn": "

The ARN of the event bus.

" } }, - "__timestampIso8601" : { - "base" : null, - "refs" : { - "CodeBindingOutput$CreationDate" : "

The time and date that the code binding was created.

", - "CodeBindingOutput$LastModified" : "

The date and time that code bindings were modified.

", - "DescribeSchemaOutput$LastModified" : "

The date and time that schema was modified.

", - "DescribeSchemaOutput$VersionCreatedDate" : "

The date the schema version was created.

", - "SchemaOutput$LastModified" : "

The date and time that schema was modified.

", - "SchemaOutput$VersionCreatedDate" : "

The date the schema version was created.

", - "SchemaSummary$LastModified" : "

The date and time that schema was modified.

", - "SearchSchemaVersionSummary$CreatedDate" : null + "__timestampIso8601": { + "base": null, + "refs": { + "CodeBindingOutput$CreationDate": "

The time and date that the code binding was created.

", + "CodeBindingOutput$LastModified": "

The date and time that code bindings were modified.

", + "DescribeSchemaOutput$LastModified": "

The date and time that schema was modified.

", + "DescribeSchemaOutput$VersionCreatedDate": "

The date the schema version was created.

", + "SchemaOutput$LastModified": "

The date and time that schema was modified.

", + "SchemaOutput$VersionCreatedDate": "

The date the schema version was created.

", + "SchemaSummary$LastModified": "

The date and time that schema was modified.

", + "SearchSchemaVersionSummary$CreatedDate": "

The date the schema version was created.

" } } } -} \ No newline at end of file +} diff --git a/models/apis/storagegateway/2013-06-30/api-2.json b/models/apis/storagegateway/2013-06-30/api-2.json index 75e6676e60..a14da5ec0a 100644 --- a/models/apis/storagegateway/2013-06-30/api-2.json +++ b/models/apis/storagegateway/2013-06-30/api-2.json @@ -2891,7 +2891,7 @@ }, "StorageClass":{ "type":"string", - "max":20, + "max":50, "min":5 }, "StorageGatewayError":{ diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index e53f82758b..295cd826d9 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -1267,6 +1267,24 @@ "ca-central-1" : { }, "eu-west-1" : { }, "eu-west-2" : { }, + "fips-us-east-1" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "comprehendmedical-fips.us-east-1.amazonaws.com" + }, + "fips-us-east-2" : { + "credentialScope" : { + "region" : "us-east-2" + }, + "hostname" : "comprehendmedical-fips.us-east-2.amazonaws.com" + }, + "fips-us-west-2" : { + "credentialScope" : { + "region" : "us-west-2" + }, + "hostname" : "comprehendmedical-fips.us-west-2.amazonaws.com" + }, "us-east-1" : { }, "us-east-2" : { }, "us-west-2" : { } @@ -3884,6 +3902,36 @@ "eu-west-2" : { }, "eu-west-3" : { }, "me-south-1" : { }, + "rds-fips.ca-central-1" : { + "credentialScope" : { + "region" : "ca-central-1" + }, + "hostname" : "rds-fips.ca-central-1.amazonaws.com" + }, + "rds-fips.us-east-1" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "rds-fips.us-east-1.amazonaws.com" + }, + "rds-fips.us-east-2" : { + "credentialScope" : { + "region" : "us-east-2" + }, + "hostname" : "rds-fips.us-east-2.amazonaws.com" + }, + "rds-fips.us-west-1" : { + "credentialScope" : { + "region" : "us-west-1" + }, + "hostname" : "rds-fips.us-west-1.amazonaws.com" + }, + "rds-fips.us-west-2" : { + "credentialScope" : { + "region" : "us-west-2" + }, + "hostname" : "rds-fips.us-west-2.amazonaws.com" + }, "sa-east-1" : { }, "us-east-1" : { "sslCommonName" : "{service}.{dnsSuffix}" diff --git a/service/iot/api.go b/service/iot/api.go index 411f563502..0a75d6e8d4 100644 --- a/service/iot/api.go +++ b/service/iot/api.go @@ -7203,6 +7203,9 @@ func (c *IoT) DescribeDomainConfigurationRequest(input *DescribeDomainConfigurat // * ThrottlingException // The rate exceeds the limit. // +// * InvalidRequestException +// The request is not valid. +// // * UnauthorizedException // You are not authorized to perform this operation. // @@ -14853,6 +14856,103 @@ func (c *IoT) RegisterCertificateWithContext(ctx aws.Context, input *RegisterCer return out, req.Send() } +const opRegisterCertificateWithoutCA = "RegisterCertificateWithoutCA" + +// RegisterCertificateWithoutCARequest generates a "aws/request.Request" representing the +// client's request for the RegisterCertificateWithoutCA operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RegisterCertificateWithoutCA for more information on using the RegisterCertificateWithoutCA +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RegisterCertificateWithoutCARequest method. +// req, resp := client.RegisterCertificateWithoutCARequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) RegisterCertificateWithoutCARequest(input *RegisterCertificateWithoutCAInput) (req *request.Request, output *RegisterCertificateWithoutCAOutput) { + op := &request.Operation{ + Name: opRegisterCertificateWithoutCA, + HTTPMethod: "POST", + HTTPPath: "/certificate/register-no-ca", + } + + if input == nil { + input = &RegisterCertificateWithoutCAInput{} + } + + output = &RegisterCertificateWithoutCAOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegisterCertificateWithoutCA API operation for AWS IoT. +// +// Register a certificate that does not have a certificate authority (CA). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation RegisterCertificateWithoutCA for usage and error information. +// +// Returned Error Types: +// * ResourceAlreadyExistsException +// The resource already exists. +// +// * InvalidRequestException +// The request is not valid. +// +// * CertificateStateException +// The certificate operation is not allowed. +// +// * CertificateValidationException +// The certificate is invalid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +func (c *IoT) RegisterCertificateWithoutCA(input *RegisterCertificateWithoutCAInput) (*RegisterCertificateWithoutCAOutput, error) { + req, out := c.RegisterCertificateWithoutCARequest(input) + return out, req.Send() +} + +// RegisterCertificateWithoutCAWithContext is the same as RegisterCertificateWithoutCA with the addition of +// the ability to pass a context and additional request options. +// +// See RegisterCertificateWithoutCA for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) RegisterCertificateWithoutCAWithContext(ctx aws.Context, input *RegisterCertificateWithoutCAInput, opts ...request.Option) (*RegisterCertificateWithoutCAOutput, error) { + req, out := c.RegisterCertificateWithoutCARequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opRegisterThing = "RegisterThing" // RegisterThingRequest generates a "aws/request.Request" representing the @@ -15760,9 +15860,6 @@ func (c *IoT) SetV2LoggingLevelRequest(input *SetV2LoggingLevelInput) (req *requ // * ServiceUnavailableException // The service is temporarily unavailable. // -// * LimitExceededException -// A limit has been exceeded. -// func (c *IoT) SetV2LoggingLevel(input *SetV2LoggingLevelInput) (*SetV2LoggingLevelOutput, error) { req, out := c.SetV2LoggingLevelRequest(input) return out, req.Send() @@ -20678,7 +20775,9 @@ type AuthInfo struct { // The resources for which the principal is being authorized to perform the // specified action. - Resources []*string `locationName:"resources" type:"list"` + // + // Resources is a required field + Resources []*string `locationName:"resources" type:"list" required:"true"` } // String returns the string representation @@ -20691,6 +20790,19 @@ func (s AuthInfo) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *AuthInfo) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AuthInfo"} + if s.Resources == nil { + invalidParams.Add(request.NewErrParamRequired("Resources")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetActionType sets the ActionType field's value. func (s *AuthInfo) SetActionType(v string) *AuthInfo { s.ActionType = &v @@ -21810,6 +21922,9 @@ type Certificate struct { // the certificate ID.) CertificateId *string `locationName:"certificateId" min:"64" type:"string"` + // The mode of the certificate. + CertificateMode *string `locationName:"certificateMode" type:"string" enum:"CertificateMode"` + // The date and time the certificate was created. CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` @@ -21841,6 +21956,12 @@ func (s *Certificate) SetCertificateId(v string) *Certificate { return s } +// SetCertificateMode sets the CertificateMode field's value. +func (s *Certificate) SetCertificateMode(v string) *Certificate { + s.CertificateMode = &v + return s +} + // SetCreationDate sets the CreationDate field's value. func (s *Certificate) SetCreationDate(v time.Time) *Certificate { s.CreationDate = &v @@ -21925,6 +22046,9 @@ type CertificateDescription struct { // The ID of the certificate. CertificateId *string `locationName:"certificateId" min:"64" type:"string"` + // The mode of the certificate. + CertificateMode *string `locationName:"certificateMode" type:"string" enum:"CertificateMode"` + // The certificate data, in PEM format. CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"` @@ -21984,6 +22108,12 @@ func (s *CertificateDescription) SetCertificateId(v string) *CertificateDescript return s } +// SetCertificateMode sets the CertificateMode field's value. +func (s *CertificateDescription) SetCertificateMode(v string) *CertificateDescription { + s.CertificateMode = &v + return s +} + // SetCertificatePem sets the CertificatePem field's value. func (s *CertificateDescription) SetCertificatePem(v string) *CertificateDescription { s.CertificatePem = &v @@ -22732,6 +22862,15 @@ type CreateAuthorizerInput struct { // The status of the create authorizer request. Status *string `locationName:"status" type:"string" enum:"AuthorizerStatus"` + // Metadata which can be used to manage the custom authorizer. + // + // For URI Request parameters use format: ...key1=value1&key2=value2... + // + // For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..." + // + // For the cli-input-json file use format: "tags": "key1=value1&key2=value2..." + Tags []*Tag `locationName:"tags" type:"list"` + // The name of the token key used to extract the token from the HTTP headers. TokenKeyName *string `locationName:"tokenKeyName" min:"1" type:"string"` @@ -22765,6 +22904,16 @@ func (s *CreateAuthorizerInput) Validate() error { if s.TokenKeyName != nil && len(*s.TokenKeyName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TokenKeyName", 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 @@ -22796,6 +22945,12 @@ func (s *CreateAuthorizerInput) SetStatus(v string) *CreateAuthorizerInput { return s } +// SetTags sets the Tags field's value. +func (s *CreateAuthorizerInput) SetTags(v []*Tag) *CreateAuthorizerInput { + s.Tags = v + return s +} + // SetTokenKeyName sets the TokenKeyName field's value. func (s *CreateAuthorizerInput) SetTokenKeyName(v string) *CreateAuthorizerInput { s.TokenKeyName = &v @@ -22874,6 +23029,16 @@ func (s *CreateBillingGroupInput) Validate() error { if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 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 @@ -23097,6 +23262,16 @@ func (s *CreateDimensionInput) Validate() error { if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } + 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 @@ -23186,8 +23361,19 @@ type CreateDomainConfigurationInput struct { ServerCertificateArns []*string `locationName:"serverCertificateArns" type:"list"` // The type of service delivered by the endpoint. + // + // AWS IoT Core currently supports only the DATA service type. ServiceType *string `locationName:"serviceType" type:"string" enum:"ServiceType"` + // Metadata which can be used to manage the domain configuration. + // + // For URI Request parameters use format: ...key1=value1&key2=value2... + // + // For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..." + // + // For the cli-input-json file use format: "tags": "key1=value1&key2=value2..." + Tags []*Tag `locationName:"tags" type:"list"` + // The certificate used to validate the server certificate and prove domain // name ownership. This certificate must be signed by a public certificate authority. // This value is not required for AWS-managed domains. @@ -23224,6 +23410,16 @@ func (s *CreateDomainConfigurationInput) Validate() error { invalidParams.AddNested("AuthorizerConfig", 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 @@ -23261,6 +23457,12 @@ func (s *CreateDomainConfigurationInput) SetServiceType(v string) *CreateDomainC return s } +// SetTags sets the Tags field's value. +func (s *CreateDomainConfigurationInput) SetTags(v []*Tag) *CreateDomainConfigurationInput { + s.Tags = v + return s +} + // SetValidationCertificateArn sets the ValidationCertificateArn field's value. func (s *CreateDomainConfigurationInput) SetValidationCertificateArn(v string) *CreateDomainConfigurationInput { s.ValidationCertificateArn = &v @@ -23361,6 +23563,16 @@ func (s *CreateDynamicThingGroupInput) Validate() error { if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 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 @@ -23575,6 +23787,16 @@ func (s *CreateJobInput) Validate() error { invalidParams.AddNested("PresignedUrlConfig", 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 @@ -23821,6 +24043,16 @@ func (s *CreateMitigationActionInput) Validate() error { invalidParams.AddNested("ActionParams", 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 @@ -23991,6 +24223,16 @@ func (s *CreateOTAUpdateInput) Validate() error { } } } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -24137,6 +24379,15 @@ type CreatePolicyInput struct { // // PolicyName is a required field PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` + + // Metadata which can be used to manage the policy. + // + // For URI Request parameters use format: ...key1=value1&key2=value2... + // + // For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..." + // + // For the cli-input-json file use format: "tags": "key1=value1&key2=value2..." + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation @@ -24161,6 +24412,16 @@ func (s *CreatePolicyInput) Validate() error { if s.PolicyName != nil && len(*s.PolicyName) < 1 { invalidParams.Add(request.NewErrParamMinLen("PolicyName", 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 @@ -24180,6 +24441,12 @@ func (s *CreatePolicyInput) SetPolicyName(v string) *CreatePolicyInput { return s } +// SetTags sets the Tags field's value. +func (s *CreatePolicyInput) SetTags(v []*Tag) *CreatePolicyInput { + s.Tags = v + return s +} + // The output from the CreatePolicy operation. type CreatePolicyOutput struct { _ struct{} `type:"structure"` @@ -24450,6 +24717,9 @@ type CreateProvisioningTemplateInput struct { // True to enable the fleet provisioning template, otherwise false. Enabled *bool `locationName:"enabled" type:"boolean"` + // Creates a pre-provisioning hook template. + PreProvisioningHook *ProvisioningHook `locationName:"preProvisioningHook" type:"structure"` + // The role ARN for the role associated with the fleet provisioning template. // This IoT role grants permission to provision a device. // @@ -24504,6 +24774,21 @@ func (s *CreateProvisioningTemplateInput) Validate() error { if s.TemplateName != nil && len(*s.TemplateName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) } + if s.PreProvisioningHook != nil { + if err := s.PreProvisioningHook.Validate(); err != nil { + invalidParams.AddNested("PreProvisioningHook", 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 @@ -24523,6 +24808,12 @@ func (s *CreateProvisioningTemplateInput) SetEnabled(v bool) *CreateProvisioning return s } +// SetPreProvisioningHook sets the PreProvisioningHook field's value. +func (s *CreateProvisioningTemplateInput) SetPreProvisioningHook(v *ProvisioningHook) *CreateProvisioningTemplateInput { + s.PreProvisioningHook = v + return s +} + // SetProvisioningRoleArn sets the ProvisioningRoleArn field's value. func (s *CreateProvisioningTemplateInput) SetProvisioningRoleArn(v string) *CreateProvisioningTemplateInput { s.ProvisioningRoleArn = &v @@ -24719,6 +25010,15 @@ type CreateRoleAliasInput struct { // // RoleArn is a required field RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"` + + // Metadata which can be used to manage the role alias. + // + // For URI Request parameters use format: ...key1=value1&key2=value2... + // + // For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..." + // + // For the cli-input-json file use format: "tags": "key1=value1&key2=value2..." + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation @@ -24749,6 +25049,16 @@ func (s *CreateRoleAliasInput) Validate() error { if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -24774,6 +25084,12 @@ func (s *CreateRoleAliasInput) SetRoleArn(v string) *CreateRoleAliasInput { return s } +// SetTags sets the Tags field's value. +func (s *CreateRoleAliasInput) SetTags(v []*Tag) *CreateRoleAliasInput { + s.Tags = v + return s +} + type CreateRoleAliasOutput struct { _ struct{} `type:"structure"` @@ -24869,6 +25185,16 @@ func (s *CreateScheduledAuditInput) Validate() error { if s.TargetCheckNames == nil { invalidParams.Add(request.NewErrParamRequired("TargetCheckNames")) } + 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 @@ -25022,6 +25348,16 @@ func (s *CreateSecurityProfileInput) Validate() error { } } } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -25170,6 +25506,16 @@ func (s *CreateStreamInput) Validate() error { } } } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -25297,6 +25643,16 @@ func (s *CreateThingGroupInput) Validate() error { if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 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 @@ -25384,6 +25740,10 @@ type CreateThingInput struct { // The name of the thing to create. // + // You can't change a thing's name after you create it. To change a thing's + // name, you must create a new thing, give it the new name, and then delete + // the old thing. + // // ThingName is a required field ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` @@ -25526,6 +25886,16 @@ func (s *CreateThingTypeInput) Validate() error { if s.ThingTypeName != nil && len(*s.ThingTypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ThingTypeName", 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 @@ -29115,6 +29485,9 @@ type DescribeProvisioningTemplateOutput struct { // The date when the fleet provisioning template was last modified. LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"` + // Gets information about a pre-provisioned hook. + PreProvisioningHook *ProvisioningHook `locationName:"preProvisioningHook" type:"structure"` + // The ARN of the role associated with the provisioning template. This IoT role // grants permission to provision a device. ProvisioningRoleArn *string `locationName:"provisioningRoleArn" min:"20" type:"string"` @@ -29169,6 +29542,12 @@ func (s *DescribeProvisioningTemplateOutput) SetLastModifiedDate(v time.Time) *D return s } +// SetPreProvisioningHook sets the PreProvisioningHook field's value. +func (s *DescribeProvisioningTemplateOutput) SetPreProvisioningHook(v *ProvisioningHook) *DescribeProvisioningTemplateOutput { + s.PreProvisioningHook = v + return s +} + // SetProvisioningRoleArn sets the ProvisioningRoleArn field's value. func (s *DescribeProvisioningTemplateOutput) SetProvisioningRoleArn(v string) *DescribeProvisioningTemplateOutput { s.ProvisioningRoleArn = &v @@ -29896,7 +30275,14 @@ type DescribeThingOutput struct { // The name of the billing group the thing belongs to. BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"` - // The default client ID. + // The default MQTT client ID. For a typical device, the thing name is also + // used as the default MQTT client ID. Although we don’t require a mapping + // between a thing's registry name and its use of MQTT client IDs, certificates, + // or shadow state, we recommend that you choose a thing name and use it as + // the MQTT client ID for the registry and the Device Shadow service. + // + // This lets you better organize your AWS IoT fleet without removing the flexibility + // of the underlying device certificate model or shadows. DefaultClientId *string `locationName:"defaultClientId" type:"string"` // The ARN of the thing to describe. @@ -39301,8 +39687,8 @@ type MetricDimension struct { DimensionName *string `locationName:"dimensionName" min:"1" type:"string" required:"true"` // Defines how the dimensionValues of a dimension are interpreted. For example, - // for DimensionType TOPIC_FILTER, with IN operator, a message will be counted - // only if its topic matches one of the topic filters. With NOT_IN Operator, + // for dimension type TOPIC_FILTER, the IN operator, a message will be counted + // only if its topic matches one of the topic filters. With NOT_IN operator, // a message will be counted only if it doesn't match any of the topic filters. // The operator is optional: if it's not provided (is null), it will be interpreted // as IN. @@ -40385,6 +40771,61 @@ func (s *PresignedUrlConfig) SetRoleArn(v string) *PresignedUrlConfig { return s } +// Structure that contains payloadVersion and targetArn. +type ProvisioningHook struct { + _ struct{} `type:"structure"` + + // The payload that was sent to the target function. + // + // Note: Only Lambda functions are currently supported. + PayloadVersion *string `locationName:"payloadVersion" min:"10" type:"string"` + + // The ARN of the target function. + // + // Note: Only Lambda functions are currently supported. + // + // TargetArn is a required field + TargetArn *string `locationName:"targetArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s ProvisioningHook) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisioningHook) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ProvisioningHook) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProvisioningHook"} + if s.PayloadVersion != nil && len(*s.PayloadVersion) < 10 { + invalidParams.Add(request.NewErrParamMinLen("PayloadVersion", 10)) + } + if s.TargetArn == nil { + invalidParams.Add(request.NewErrParamRequired("TargetArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPayloadVersion sets the PayloadVersion field's value. +func (s *ProvisioningHook) SetPayloadVersion(v string) *ProvisioningHook { + s.PayloadVersion = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *ProvisioningHook) SetTargetArn(v string) *ProvisioningHook { + s.TargetArn = &v + return s +} + // A summary of information about a fleet provisioning template. type ProvisioningTemplateSummary struct { _ struct{} `type:"structure"` @@ -40746,6 +41187,15 @@ type RegisterCACertificateInput struct { // A boolean value that specifies if the CA certificate is set to active. SetAsActive *bool `location:"querystring" locationName:"setAsActive" type:"boolean"` + // Metadata which can be used to manage the CA certificate. + // + // For URI Request parameters use format: ...key1=value1&key2=value2... + // + // For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..." + // + // For the cli-input-json file use format: "tags": "key1=value1&key2=value2..." + Tags []*Tag `locationName:"tags" type:"list"` + // The private key verification certificate. // // VerificationCertificate is a required field @@ -40782,6 +41232,16 @@ func (s *RegisterCACertificateInput) Validate() error { invalidParams.AddNested("RegistrationConfig", 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 @@ -40813,6 +41273,12 @@ func (s *RegisterCACertificateInput) SetSetAsActive(v bool) *RegisterCACertifica return s } +// SetTags sets the Tags field's value. +func (s *RegisterCACertificateInput) SetTags(v []*Tag) *RegisterCACertificateInput { + s.Tags = v + return s +} + // SetVerificationCertificate sets the VerificationCertificate field's value. func (s *RegisterCACertificateInput) SetVerificationCertificate(v string) *RegisterCACertificateInput { s.VerificationCertificate = &v @@ -40959,10 +41425,93 @@ func (s *RegisterCertificateOutput) SetCertificateId(v string) *RegisterCertific return s } +type RegisterCertificateWithoutCAInput struct { + _ struct{} `type:"structure"` + + // The certificate data, in PEM format. + // + // CertificatePem is a required field + CertificatePem *string `locationName:"certificatePem" min:"1" type:"string" required:"true"` + + // The status of the register certificate request. + Status *string `locationName:"status" type:"string" enum:"CertificateStatus"` +} + +// String returns the string representation +func (s RegisterCertificateWithoutCAInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegisterCertificateWithoutCAInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RegisterCertificateWithoutCAInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterCertificateWithoutCAInput"} + if s.CertificatePem == nil { + invalidParams.Add(request.NewErrParamRequired("CertificatePem")) + } + if s.CertificatePem != nil && len(*s.CertificatePem) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CertificatePem", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCertificatePem sets the CertificatePem field's value. +func (s *RegisterCertificateWithoutCAInput) SetCertificatePem(v string) *RegisterCertificateWithoutCAInput { + s.CertificatePem = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RegisterCertificateWithoutCAInput) SetStatus(v string) *RegisterCertificateWithoutCAInput { + s.Status = &v + return s +} + +type RegisterCertificateWithoutCAOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the registered certificate. + CertificateArn *string `locationName:"certificateArn" type:"string"` + + // The ID of the registered certificate. (The last part of the certificate ARN + // contains the certificate ID. + CertificateId *string `locationName:"certificateId" min:"64" type:"string"` +} + +// String returns the string representation +func (s RegisterCertificateWithoutCAOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegisterCertificateWithoutCAOutput) GoString() string { + return s.String() +} + +// SetCertificateArn sets the CertificateArn field's value. +func (s *RegisterCertificateWithoutCAOutput) SetCertificateArn(v string) *RegisterCertificateWithoutCAOutput { + s.CertificateArn = &v + return s +} + +// SetCertificateId sets the CertificateId field's value. +func (s *RegisterCertificateWithoutCAOutput) SetCertificateId(v string) *RegisterCertificateWithoutCAOutput { + s.CertificateId = &v + return s +} + type RegisterThingInput struct { _ struct{} `type:"structure"` - // The parameters for provisioning a thing. See Programmatic Provisioning (https://docs.aws.amazon.com/iot/latest/developerguide/programmatic-provisioning.html) + // The parameters for provisioning a thing. See Provisioning Templates (https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html) // for more information. Parameters map[string]*string `locationName:"parameters" type:"map"` @@ -41012,7 +41561,7 @@ func (s *RegisterThingInput) SetTemplateBody(v string) *RegisterThingInput { type RegisterThingOutput struct { _ struct{} `type:"structure"` - // . + // The certificate data, in PEM format. CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"` // ARNs for the generated resources. @@ -44040,10 +44589,12 @@ type Tag struct { _ struct{} `type:"structure"` // The tag's key. - Key *string `type:"string"` + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` // The tag's value. - Value *string `type:"string"` + Value *string `min:"1" type:"string"` } // String returns the string representation @@ -44056,6 +44607,25 @@ func (s Tag) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetKey sets the Key field's value. func (s *Tag) SetKey(v string) *Tag { s.Key = &v @@ -44101,6 +44671,16 @@ func (s *TagResourceInput) Validate() error { if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -44379,6 +44959,16 @@ func (s *TestAuthorizationInput) Validate() error { if s.AuthInfos != nil && len(s.AuthInfos) < 1 { invalidParams.Add(request.NewErrParamMinLen("AuthInfos", 1)) } + if s.AuthInfos != nil { + for i, v := range s.AuthInfos { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AuthInfos", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -44466,7 +45056,7 @@ type TestInvokeAuthorizerInput struct { Token *string `locationName:"token" min:"1" type:"string"` // The signature made with the token and your custom authentication service's - // private key. + // private key. This value must be Base-64-encoded. TokenSignature *string `locationName:"tokenSignature" min:"1" type:"string"` } @@ -47411,10 +48001,16 @@ type UpdateProvisioningTemplateInput struct { // True to enable the fleet provisioning template, otherwise false. Enabled *bool `locationName:"enabled" type:"boolean"` + // Updates the pre-provisioning hook template. + PreProvisioningHook *ProvisioningHook `locationName:"preProvisioningHook" type:"structure"` + // The ARN of the role associated with the provisioning template. This IoT role // grants permission to provision a device. ProvisioningRoleArn *string `locationName:"provisioningRoleArn" min:"20" type:"string"` + // Removes pre-provisioning hook template. + RemovePreProvisioningHook *bool `locationName:"removePreProvisioningHook" type:"boolean"` + // The name of the fleet provisioning template. // // TemplateName is a required field @@ -47443,6 +48039,11 @@ func (s *UpdateProvisioningTemplateInput) Validate() error { if s.TemplateName != nil && len(*s.TemplateName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) } + if s.PreProvisioningHook != nil { + if err := s.PreProvisioningHook.Validate(); err != nil { + invalidParams.AddNested("PreProvisioningHook", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -47468,12 +48069,24 @@ func (s *UpdateProvisioningTemplateInput) SetEnabled(v bool) *UpdateProvisioning return s } +// SetPreProvisioningHook sets the PreProvisioningHook field's value. +func (s *UpdateProvisioningTemplateInput) SetPreProvisioningHook(v *ProvisioningHook) *UpdateProvisioningTemplateInput { + s.PreProvisioningHook = v + return s +} + // SetProvisioningRoleArn sets the ProvisioningRoleArn field's value. func (s *UpdateProvisioningTemplateInput) SetProvisioningRoleArn(v string) *UpdateProvisioningTemplateInput { s.ProvisioningRoleArn = &v return s } +// SetRemovePreProvisioningHook sets the RemovePreProvisioningHook field's value. +func (s *UpdateProvisioningTemplateInput) SetRemovePreProvisioningHook(v bool) *UpdateProvisioningTemplateInput { + s.RemovePreProvisioningHook = &v + return s +} + // SetTemplateName sets the TemplateName field's value. func (s *UpdateProvisioningTemplateInput) SetTemplateName(v string) *UpdateProvisioningTemplateInput { s.TemplateName = &v @@ -48308,6 +48921,9 @@ type UpdateThingInput struct { // The name of the thing to update. // + // You can't change a thing's name. To change a thing's name, you must create + // a new thing, give it the new name, and then delete the old thing. + // // ThingName is a required field ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` @@ -48978,6 +49594,14 @@ const ( CannedAccessControlListLogDeliveryWrite = "log-delivery-write" ) +const ( + // CertificateModeDefault is a CertificateMode enum value + CertificateModeDefault = "DEFAULT" + + // CertificateModeSniOnly is a CertificateMode enum value + CertificateModeSniOnly = "SNI_ONLY" +) + const ( // CertificateStatusActive is a CertificateStatus enum value CertificateStatusActive = "ACTIVE" diff --git a/service/iot/iotiface/interface.go b/service/iot/iotiface/interface.go index 7081cb89a7..3f97c8a6ea 100644 --- a/service/iot/iotiface/interface.go +++ b/service/iot/iotiface/interface.go @@ -716,6 +716,10 @@ type IoTAPI interface { RegisterCertificateWithContext(aws.Context, *iot.RegisterCertificateInput, ...request.Option) (*iot.RegisterCertificateOutput, error) RegisterCertificateRequest(*iot.RegisterCertificateInput) (*request.Request, *iot.RegisterCertificateOutput) + RegisterCertificateWithoutCA(*iot.RegisterCertificateWithoutCAInput) (*iot.RegisterCertificateWithoutCAOutput, error) + RegisterCertificateWithoutCAWithContext(aws.Context, *iot.RegisterCertificateWithoutCAInput, ...request.Option) (*iot.RegisterCertificateWithoutCAOutput, error) + RegisterCertificateWithoutCARequest(*iot.RegisterCertificateWithoutCAInput) (*request.Request, *iot.RegisterCertificateWithoutCAOutput) + RegisterThing(*iot.RegisterThingInput) (*iot.RegisterThingOutput, error) RegisterThingWithContext(aws.Context, *iot.RegisterThingInput, ...request.Option) (*iot.RegisterThingOutput, error) RegisterThingRequest(*iot.RegisterThingInput) (*request.Request, *iot.RegisterThingOutput) diff --git a/service/iotevents/api.go b/service/iotevents/api.go index 9343edba7c..3b5ecfef2b 100644 --- a/service/iotevents/api.go +++ b/service/iotevents/api.go @@ -1506,92 +1506,6 @@ func (c *IoTEvents) UpdateInputWithContext(ctx aws.Context, input *UpdateInputIn return out, req.Send() } -const opVerifyResourcesExistForTagris = "VerifyResourcesExistForTagris" - -// VerifyResourcesExistForTagrisRequest generates a "aws/request.Request" representing the -// client's request for the VerifyResourcesExistForTagris operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See VerifyResourcesExistForTagris for more information on using the VerifyResourcesExistForTagris -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the VerifyResourcesExistForTagrisRequest method. -// req, resp := client.VerifyResourcesExistForTagrisRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/VerifyResourcesExistForTagris -func (c *IoTEvents) VerifyResourcesExistForTagrisRequest(input *VerifyResourcesExistForTagrisInput) (req *request.Request, output *VerifyResourcesExistForTagrisOutput) { - op := &request.Operation{ - Name: opVerifyResourcesExistForTagris, - HTTPMethod: "GET", - HTTPPath: "/internal/tags/resource-status", - } - - if input == nil { - input = &VerifyResourcesExistForTagrisInput{} - } - - output = &VerifyResourcesExistForTagrisOutput{} - req = c.newRequest(op, input, output) - return -} - -// VerifyResourcesExistForTagris API operation for AWS IoT Events. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS IoT Events's -// API operation VerifyResourcesExistForTagris for usage and error information. -// -// Returned Error Types: -// * TagrisAccessDeniedException -// -// * TagrisInternalServiceException -// -// * TagrisInvalidArnException -// -// * TagrisInvalidParameterException -// -// * TagrisPartialResourcesExistResultsException -// -// * TagrisThrottledException -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/VerifyResourcesExistForTagris -func (c *IoTEvents) VerifyResourcesExistForTagris(input *VerifyResourcesExistForTagrisInput) (*VerifyResourcesExistForTagrisOutput, error) { - req, out := c.VerifyResourcesExistForTagrisRequest(input) - return out, req.Send() -} - -// VerifyResourcesExistForTagrisWithContext is the same as VerifyResourcesExistForTagris with the addition of -// the ability to pass a context and additional request options. -// -// See VerifyResourcesExistForTagris for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *IoTEvents) VerifyResourcesExistForTagrisWithContext(ctx aws.Context, input *VerifyResourcesExistForTagrisInput, opts ...request.Option) (*VerifyResourcesExistForTagrisOutput, error) { - req, out := c.VerifyResourcesExistForTagrisRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - // Sends an AWS IoT Events input, passing in information about the detector // model instance and the event that triggered the action. type Action struct { @@ -1684,7 +1598,7 @@ type ActionData struct { IotEvents *Action `locationName:"iotEvents" type:"structure"` // Sends information about the detector model instance and the event that triggered - // the action to an AWS IoT SiteWise asset property. + // the action to an asset property in AWS IoT SiteWise . IotSiteWise *IotSiteWiseAction `locationName:"iotSiteWise" type:"structure"` // Publishes an MQTT message with the given topic to the AWS IoT message broker. @@ -5587,402 +5501,6 @@ func (s TagResourceOutput) GoString() string { return s.String() } -type TagrisAccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s TagrisAccessDeniedException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TagrisAccessDeniedException) GoString() string { - return s.String() -} - -func newErrorTagrisAccessDeniedException(v protocol.ResponseMetadata) error { - return &TagrisAccessDeniedException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *TagrisAccessDeniedException) Code() string { - return "TagrisAccessDeniedException" -} - -// Message returns the exception's message. -func (s *TagrisAccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *TagrisAccessDeniedException) OrigErr() error { - return nil -} - -func (s *TagrisAccessDeniedException) 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 *TagrisAccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *TagrisAccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID -} - -type TagrisInternalServiceException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s TagrisInternalServiceException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TagrisInternalServiceException) GoString() string { - return s.String() -} - -func newErrorTagrisInternalServiceException(v protocol.ResponseMetadata) error { - return &TagrisInternalServiceException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *TagrisInternalServiceException) Code() string { - return "TagrisInternalServiceException" -} - -// Message returns the exception's message. -func (s *TagrisInternalServiceException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *TagrisInternalServiceException) OrigErr() error { - return nil -} - -func (s *TagrisInternalServiceException) 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 *TagrisInternalServiceException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *TagrisInternalServiceException) RequestID() string { - return s.RespMetadata.RequestID -} - -type TagrisInvalidArnException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` - - SweepListItem *TagrisSweepListItem `locationName:"sweepListItem" type:"structure"` -} - -// String returns the string representation -func (s TagrisInvalidArnException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TagrisInvalidArnException) GoString() string { - return s.String() -} - -func newErrorTagrisInvalidArnException(v protocol.ResponseMetadata) error { - return &TagrisInvalidArnException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *TagrisInvalidArnException) Code() string { - return "TagrisInvalidArnException" -} - -// Message returns the exception's message. -func (s *TagrisInvalidArnException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *TagrisInvalidArnException) OrigErr() error { - return nil -} - -func (s *TagrisInvalidArnException) 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 *TagrisInvalidArnException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *TagrisInvalidArnException) RequestID() string { - return s.RespMetadata.RequestID -} - -type TagrisInvalidParameterException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s TagrisInvalidParameterException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TagrisInvalidParameterException) GoString() string { - return s.String() -} - -func newErrorTagrisInvalidParameterException(v protocol.ResponseMetadata) error { - return &TagrisInvalidParameterException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *TagrisInvalidParameterException) Code() string { - return "TagrisInvalidParameterException" -} - -// Message returns the exception's message. -func (s *TagrisInvalidParameterException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *TagrisInvalidParameterException) OrigErr() error { - return nil -} - -func (s *TagrisInvalidParameterException) 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 *TagrisInvalidParameterException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *TagrisInvalidParameterException) RequestID() string { - return s.RespMetadata.RequestID -} - -type TagrisPartialResourcesExistResultsException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` - - ResourceExistenceInformation map[string]*string `locationName:"resourceExistenceInformation" type:"map"` -} - -// String returns the string representation -func (s TagrisPartialResourcesExistResultsException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TagrisPartialResourcesExistResultsException) GoString() string { - return s.String() -} - -func newErrorTagrisPartialResourcesExistResultsException(v protocol.ResponseMetadata) error { - return &TagrisPartialResourcesExistResultsException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *TagrisPartialResourcesExistResultsException) Code() string { - return "TagrisPartialResourcesExistResultsException" -} - -// Message returns the exception's message. -func (s *TagrisPartialResourcesExistResultsException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *TagrisPartialResourcesExistResultsException) OrigErr() error { - return nil -} - -func (s *TagrisPartialResourcesExistResultsException) 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 *TagrisPartialResourcesExistResultsException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *TagrisPartialResourcesExistResultsException) RequestID() string { - return s.RespMetadata.RequestID -} - -type TagrisSweepListItem struct { - _ struct{} `type:"structure"` - - TagrisAccountId *string `min:"12" type:"string"` - - TagrisAmazonResourceName *string `min:"1" type:"string"` - - TagrisInternalId *string `type:"string"` - - TagrisVersion *int64 `type:"long"` -} - -// String returns the string representation -func (s TagrisSweepListItem) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TagrisSweepListItem) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TagrisSweepListItem) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TagrisSweepListItem"} - if s.TagrisAccountId != nil && len(*s.TagrisAccountId) < 12 { - invalidParams.Add(request.NewErrParamMinLen("TagrisAccountId", 12)) - } - if s.TagrisAmazonResourceName != nil && len(*s.TagrisAmazonResourceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagrisAmazonResourceName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetTagrisAccountId sets the TagrisAccountId field's value. -func (s *TagrisSweepListItem) SetTagrisAccountId(v string) *TagrisSweepListItem { - s.TagrisAccountId = &v - return s -} - -// SetTagrisAmazonResourceName sets the TagrisAmazonResourceName field's value. -func (s *TagrisSweepListItem) SetTagrisAmazonResourceName(v string) *TagrisSweepListItem { - s.TagrisAmazonResourceName = &v - return s -} - -// SetTagrisInternalId sets the TagrisInternalId field's value. -func (s *TagrisSweepListItem) SetTagrisInternalId(v string) *TagrisSweepListItem { - s.TagrisInternalId = &v - return s -} - -// SetTagrisVersion sets the TagrisVersion field's value. -func (s *TagrisSweepListItem) SetTagrisVersion(v int64) *TagrisSweepListItem { - s.TagrisVersion = &v - return s -} - -type TagrisThrottledException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s TagrisThrottledException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TagrisThrottledException) GoString() string { - return s.String() -} - -func newErrorTagrisThrottledException(v protocol.ResponseMetadata) error { - return &TagrisThrottledException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *TagrisThrottledException) Code() string { - return "TagrisThrottledException" -} - -// Message returns the exception's message. -func (s *TagrisThrottledException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *TagrisThrottledException) OrigErr() error { - return nil -} - -func (s *TagrisThrottledException) 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 *TagrisThrottledException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *TagrisThrottledException) RequestID() string { - return s.RespMetadata.RequestID -} - // The request could not be completed due to throttling. type ThrottlingException struct { _ struct{} `type:"structure"` @@ -6469,75 +5987,6 @@ func (s *UpdateInputOutput) SetInputConfiguration(v *InputConfiguration) *Update return s } -type VerifyResourcesExistForTagrisInput struct { - _ struct{} `type:"structure"` - - // TagrisSweepList is a required field - TagrisSweepList []*TagrisSweepListItem `type:"list" required:"true"` -} - -// String returns the string representation -func (s VerifyResourcesExistForTagrisInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s VerifyResourcesExistForTagrisInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *VerifyResourcesExistForTagrisInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VerifyResourcesExistForTagrisInput"} - if s.TagrisSweepList == nil { - invalidParams.Add(request.NewErrParamRequired("TagrisSweepList")) - } - if s.TagrisSweepList != nil { - for i, v := range s.TagrisSweepList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagrisSweepList", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetTagrisSweepList sets the TagrisSweepList field's value. -func (s *VerifyResourcesExistForTagrisInput) SetTagrisSweepList(v []*TagrisSweepListItem) *VerifyResourcesExistForTagrisInput { - s.TagrisSweepList = v - return s -} - -type VerifyResourcesExistForTagrisOutput struct { - _ struct{} `type:"structure"` - - // TagrisSweepListResult is a required field - TagrisSweepListResult map[string]*string `type:"map" required:"true"` -} - -// String returns the string representation -func (s VerifyResourcesExistForTagrisOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s VerifyResourcesExistForTagrisOutput) GoString() string { - return s.String() -} - -// SetTagrisSweepListResult sets the TagrisSweepListResult field's value. -func (s *VerifyResourcesExistForTagrisOutput) SetTagrisSweepListResult(v map[string]*string) *VerifyResourcesExistForTagrisOutput { - s.TagrisSweepListResult = v - return s -} - const ( // DetectorModelVersionStatusActive is a DetectorModelVersionStatus enum value DetectorModelVersionStatusActive = "ACTIVE" @@ -6601,11 +6050,3 @@ const ( // PayloadTypeJson is a PayloadType enum value PayloadTypeJson = "JSON" ) - -const ( - // TagrisStatusActive is a TagrisStatus enum value - TagrisStatusActive = "ACTIVE" - - // TagrisStatusNotActive is a TagrisStatus enum value - TagrisStatusNotActive = "NOT_ACTIVE" -) diff --git a/service/iotevents/errors.go b/service/iotevents/errors.go index 88e17a8103..b7a246810a 100644 --- a/service/iotevents/errors.go +++ b/service/iotevents/errors.go @@ -50,30 +50,6 @@ const ( // The service is currently unavailable. ErrCodeServiceUnavailableException = "ServiceUnavailableException" - // ErrCodeTagrisAccessDeniedException for service response error code - // "TagrisAccessDeniedException". - ErrCodeTagrisAccessDeniedException = "TagrisAccessDeniedException" - - // ErrCodeTagrisInternalServiceException for service response error code - // "TagrisInternalServiceException". - ErrCodeTagrisInternalServiceException = "TagrisInternalServiceException" - - // ErrCodeTagrisInvalidArnException for service response error code - // "TagrisInvalidArnException". - ErrCodeTagrisInvalidArnException = "TagrisInvalidArnException" - - // ErrCodeTagrisInvalidParameterException for service response error code - // "TagrisInvalidParameterException". - ErrCodeTagrisInvalidParameterException = "TagrisInvalidParameterException" - - // ErrCodeTagrisPartialResourcesExistResultsException for service response error code - // "TagrisPartialResourcesExistResultsException". - ErrCodeTagrisPartialResourcesExistResultsException = "TagrisPartialResourcesExistResultsException" - - // ErrCodeTagrisThrottledException for service response error code - // "TagrisThrottledException". - ErrCodeTagrisThrottledException = "TagrisThrottledException" - // ErrCodeThrottlingException for service response error code // "ThrottlingException". // @@ -88,19 +64,13 @@ const ( ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ - "InternalFailureException": newErrorInternalFailureException, - "InvalidRequestException": newErrorInvalidRequestException, - "LimitExceededException": newErrorLimitExceededException, - "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, - "ResourceInUseException": newErrorResourceInUseException, - "ResourceNotFoundException": newErrorResourceNotFoundException, - "ServiceUnavailableException": newErrorServiceUnavailableException, - "TagrisAccessDeniedException": newErrorTagrisAccessDeniedException, - "TagrisInternalServiceException": newErrorTagrisInternalServiceException, - "TagrisInvalidArnException": newErrorTagrisInvalidArnException, - "TagrisInvalidParameterException": newErrorTagrisInvalidParameterException, - "TagrisPartialResourcesExistResultsException": newErrorTagrisPartialResourcesExistResultsException, - "TagrisThrottledException": newErrorTagrisThrottledException, - "ThrottlingException": newErrorThrottlingException, - "UnsupportedOperationException": newErrorUnsupportedOperationException, + "InternalFailureException": newErrorInternalFailureException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "ThrottlingException": newErrorThrottlingException, + "UnsupportedOperationException": newErrorUnsupportedOperationException, } diff --git a/service/iotevents/ioteventsiface/interface.go b/service/iotevents/ioteventsiface/interface.go index 614522d75a..c48d6354e3 100644 --- a/service/iotevents/ioteventsiface/interface.go +++ b/service/iotevents/ioteventsiface/interface.go @@ -123,10 +123,6 @@ type IoTEventsAPI interface { UpdateInput(*iotevents.UpdateInputInput) (*iotevents.UpdateInputOutput, error) UpdateInputWithContext(aws.Context, *iotevents.UpdateInputInput, ...request.Option) (*iotevents.UpdateInputOutput, error) UpdateInputRequest(*iotevents.UpdateInputInput) (*request.Request, *iotevents.UpdateInputOutput) - - VerifyResourcesExistForTagris(*iotevents.VerifyResourcesExistForTagrisInput) (*iotevents.VerifyResourcesExistForTagrisOutput, error) - VerifyResourcesExistForTagrisWithContext(aws.Context, *iotevents.VerifyResourcesExistForTagrisInput, ...request.Option) (*iotevents.VerifyResourcesExistForTagrisOutput, error) - VerifyResourcesExistForTagrisRequest(*iotevents.VerifyResourcesExistForTagrisInput) (*request.Request, *iotevents.VerifyResourcesExistForTagrisOutput) } var _ IoTEventsAPI = (*iotevents.IoTEvents)(nil) diff --git a/service/lambda/api.go b/service/lambda/api.go index 96939ffbf7..e1495de85c 100644 --- a/service/lambda/api.go +++ b/service/lambda/api.go @@ -7582,7 +7582,8 @@ type FunctionConfiguration struct { // you can't invoke or modify the function. StateReasonCode *string `type:"string" enum:"StateReasonCode"` - // The amount of time that Lambda allows a function to run before stopping it. + // The amount of time in seconds that Lambda allows a function to run before + // stopping it. Timeout *int64 `min:"1" type:"integer"` // The function's AWS X-Ray tracing configuration. diff --git a/service/lambda/examples_test.go b/service/lambda/examples_test.go index 1ae2e2fb3b..890bc1f10d 100644 --- a/service/lambda/examples_test.go +++ b/service/lambda/examples_test.go @@ -245,7 +245,7 @@ func ExampleLambda_CreateEventSourceMapping_shared00() { fmt.Println(result) } -// To update an asynchronous invocation configuration +// To create a function // // The following example creates a function with a deployment package in Amazon S3 and // enables X-Ray tracing and environment variable encryption. diff --git a/service/mediaconvert/api.go b/service/mediaconvert/api.go index fe9054bc09..3e7bff6c79 100644 --- a/service/mediaconvert/api.go +++ b/service/mediaconvert/api.go @@ -5496,6 +5496,9 @@ type ContainerSettings struct { // Settings for MP4 segments in DASH MpdSettings *MpdSettings `locationName:"mpdSettings" type:"structure"` + + // MXF settings + MxfSettings *MxfSettings `locationName:"mxfSettings" type:"structure"` } // String returns the string representation @@ -5576,6 +5579,12 @@ func (s *ContainerSettings) SetMpdSettings(v *MpdSettings) *ContainerSettings { return s } +// SetMxfSettings sets the MxfSettings field's value. +func (s *ContainerSettings) SetMxfSettings(v *MxfSettings) *ContainerSettings { + s.MxfSettings = v + return s +} + // Send your create job request with your job settings and IAM role. Optionally, // include user metadata and the ARN for the queue. type CreateJobInput struct { @@ -10822,8 +10831,8 @@ type ImscDestinationSettings struct { // Keep this setting enabled to have MediaConvert use the font style and position // information from the captions source in the output. This option is available - // only when your input captions are CFF-TT, IMSC, SMPTE-TT, or TTML. Disable - // this setting for simplified output captions. + // only when your input captions are IMSC, SMPTE-TT, or TTML. Disable this setting + // for simplified output captions. StylePassthrough *string `locationName:"stylePassthrough" type:"string" enum:"ImscStylePassthrough"` } @@ -14903,6 +14912,38 @@ func (s *MsSmoothGroupSettings) SetManifestEncoding(v string) *MsSmoothGroupSett return s } +// MXF settings +type MxfSettings struct { + _ struct{} `type:"structure"` + + // Optional. When you have AFD signaling set up in your output video stream, + // use this setting to choose whether to also include it in the MXF wrapper. + // Choose Don't copy (NO_COPY) to exclude AFD signaling from the MXF wrapper. + // Choose Copy from video stream (COPY_FROM_VIDEO) to copy the AFD values from + // the video stream for this output to the MXF wrapper. Regardless of which + // option you choose, the AFD values remain in the video stream. Related settings: + // To set up your output to include or exclude AFD values, see AfdSignaling, + // under VideoDescription. On the console, find AFD signaling under the output's + // video encoding settings. + AfdSignaling *string `locationName:"afdSignaling" type:"string" enum:"MxfAfdSignaling"` +} + +// String returns the string representation +func (s MxfSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MxfSettings) GoString() string { + return s.String() +} + +// SetAfdSignaling sets the AfdSignaling field's value. +func (s *MxfSettings) SetAfdSignaling(v string) *MxfSettings { + s.AfdSignaling = &v + return s +} + // Settings for your Nielsen configuration. If you don't do Nielsen measurement // and analytics, ignore these settings. When you enable Nielsen configuration // (nielsenConfiguration), MediaConvert enables PCM to ID3 tagging for all outputs @@ -17331,7 +17372,7 @@ type TtmlDestinationSettings struct { _ struct{} `type:"structure"` // Pass through style and position information from a TTML-like input source - // (TTML, SMPTE-TT, CFF-TT) to the CFF-TT output or TTML output. + // (TTML, SMPTE-TT) to the TTML output. StylePassthrough *string `locationName:"stylePassthrough" type:"string" enum:"TtmlStylePassthrough"` } @@ -21075,8 +21116,8 @@ const ( // Keep this setting enabled to have MediaConvert use the font style and position // information from the captions source in the output. This option is available -// only when your input captions are CFF-TT, IMSC, SMPTE-TT, or TTML. Disable -// this setting for simplified output captions. +// only when your input captions are IMSC, SMPTE-TT, or TTML. Disable this setting +// for simplified output captions. const ( // ImscStylePassthroughEnabled is a ImscStylePassthrough enum value ImscStylePassthroughEnabled = "ENABLED" @@ -22408,6 +22449,23 @@ const ( MsSmoothManifestEncodingUtf16 = "UTF16" ) +// Optional. When you have AFD signaling set up in your output video stream, +// use this setting to choose whether to also include it in the MXF wrapper. +// Choose Don't copy (NO_COPY) to exclude AFD signaling from the MXF wrapper. +// Choose Copy from video stream (COPY_FROM_VIDEO) to copy the AFD values from +// the video stream for this output to the MXF wrapper. Regardless of which +// option you choose, the AFD values remain in the video stream. Related settings: +// To set up your output to include or exclude AFD values, see AfdSignaling, +// under VideoDescription. On the console, find AFD signaling under the output's +// video encoding settings. +const ( + // MxfAfdSignalingNoCopy is a MxfAfdSignaling enum value + MxfAfdSignalingNoCopy = "NO_COPY" + + // MxfAfdSignalingCopyFromVideo is a MxfAfdSignaling enum value + MxfAfdSignalingCopyFromVideo = "COPY_FROM_VIDEO" +) + // Use Noise reducer filter (NoiseReducerFilter) to select one of the following // spatial image filtering functions. To use this setting, you must also enable // Noise reducer (NoiseReducer). * Bilateral preserves edges while reducing @@ -22900,7 +22958,7 @@ const ( ) // Pass through style and position information from a TTML-like input source -// (TTML, SMPTE-TT, CFF-TT) to the CFF-TT output or TTML output. +// (TTML, SMPTE-TT) to the TTML output. const ( // TtmlStylePassthroughEnabled is a TtmlStylePassthrough enum value TtmlStylePassthroughEnabled = "ENABLED" diff --git a/service/schemas/api.go b/service/schemas/api.go index 0b2a15dc58..2d32801687 100644 --- a/service/schemas/api.go +++ b/service/schemas/api.go @@ -235,6 +235,8 @@ func (c *Schemas) CreateSchemaRequest(input *CreateSchemaInput) (req *request.Re // // Creates a schema definition. // +// Inactive schemas will be deleted after two years. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -451,6 +453,95 @@ func (c *Schemas) DeleteRegistryWithContext(ctx aws.Context, input *DeleteRegist 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/schemas-2019-12-02/DeleteResourcePolicy +func (c *Schemas) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput) (req *request.Request, output *DeleteResourcePolicyOutput) { + op := &request.Operation{ + Name: opDeleteResourcePolicy, + HTTPMethod: "DELETE", + HTTPPath: "/v1/policy", + } + + if input == nil { + input = &DeleteResourcePolicyInput{} + } + + output = &DeleteResourcePolicyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteResourcePolicy API operation for Schemas. +// +// Delete the resource-based policy attached to the specified registry. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Schemas's +// API operation DeleteResourcePolicy for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// +// * UnauthorizedException +// +// * InternalServerErrorException +// +// * ForbiddenException +// +// * NotFoundException +// +// * ServiceUnavailableException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DeleteResourcePolicy +func (c *Schemas) 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 *Schemas) 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 opDeleteSchema = "DeleteSchema" // DeleteSchemaRequest generates a "aws/request.Request" representing the @@ -1155,6 +1246,94 @@ func (c *Schemas) GetDiscoveredSchemaWithContext(ctx aws.Context, input *GetDisc return out, req.Send() } +const opGetResourcePolicy = "GetResourcePolicy" + +// GetResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the GetResourcePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResourcePolicy for more information on using the GetResourcePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetResourcePolicyRequest method. +// req, resp := client.GetResourcePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/GetResourcePolicy +func (c *Schemas) GetResourcePolicyRequest(input *GetResourcePolicyInput) (req *request.Request, output *GetResourcePolicyOutput) { + op := &request.Operation{ + Name: opGetResourcePolicy, + HTTPMethod: "GET", + HTTPPath: "/v1/policy", + } + + if input == nil { + input = &GetResourcePolicyInput{} + } + + output = &GetResourcePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResourcePolicy API operation for Schemas. +// +// Retrieves the resource-based policy attached to a given registry. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Schemas's +// API operation GetResourcePolicy for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// +// * UnauthorizedException +// +// * InternalServerErrorException +// +// * ForbiddenException +// +// * NotFoundException +// +// * ServiceUnavailableException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/GetResourcePolicy +func (c *Schemas) GetResourcePolicy(input *GetResourcePolicyInput) (*GetResourcePolicyOutput, error) { + req, out := c.GetResourcePolicyRequest(input) + return out, req.Send() +} + +// GetResourcePolicyWithContext is the same as GetResourcePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See GetResourcePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Schemas) GetResourcePolicyWithContext(ctx aws.Context, input *GetResourcePolicyInput, opts ...request.Option) (*GetResourcePolicyOutput, error) { + req, out := c.GetResourcePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListDiscoverers = "ListDiscoverers" // ListDiscoverersRequest generates a "aws/request.Request" representing the @@ -1817,59 +1996,61 @@ func (c *Schemas) ListTagsForResourceWithContext(ctx aws.Context, input *ListTag return out, req.Send() } -const opLockServiceLinkedRole = "LockServiceLinkedRole" +const opPutCodeBinding = "PutCodeBinding" -// LockServiceLinkedRoleRequest generates a "aws/request.Request" representing the -// client's request for the LockServiceLinkedRole operation. The "output" return +// PutCodeBindingRequest generates a "aws/request.Request" representing the +// client's request for the PutCodeBinding operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See LockServiceLinkedRole for more information on using the LockServiceLinkedRole +// See PutCodeBinding for more information on using the PutCodeBinding // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the LockServiceLinkedRoleRequest method. -// req, resp := client.LockServiceLinkedRoleRequest(params) +// // Example sending a request using the PutCodeBindingRequest method. +// req, resp := client.PutCodeBindingRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/LockServiceLinkedRole -func (c *Schemas) LockServiceLinkedRoleRequest(input *LockServiceLinkedRoleInput) (req *request.Request, output *LockServiceLinkedRoleOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PutCodeBinding +func (c *Schemas) PutCodeBindingRequest(input *PutCodeBindingInput) (req *request.Request, output *PutCodeBindingOutput) { op := &request.Operation{ - Name: opLockServiceLinkedRole, + Name: opPutCodeBinding, HTTPMethod: "POST", - HTTPPath: "/slr-deletion/lock", + HTTPPath: "/v1/registries/name/{registryName}/schemas/name/{schemaName}/language/{language}", } if input == nil { - input = &LockServiceLinkedRoleInput{} + input = &PutCodeBindingInput{} } - output = &LockServiceLinkedRoleOutput{} + output = &PutCodeBindingOutput{} req = c.newRequest(op, input, output) return } -// LockServiceLinkedRole API operation for Schemas. +// PutCodeBinding API operation for Schemas. +// +// Put code binding URI // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Schemas's -// API operation LockServiceLinkedRole for usage and error information. +// API operation PutCodeBinding for usage and error information. // // Returned Error Types: -// * ServiceUnavailableException +// * GoneException // // * BadRequestException // @@ -1879,113 +2060,117 @@ func (c *Schemas) LockServiceLinkedRoleRequest(input *LockServiceLinkedRoleInput // // * ForbiddenException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/LockServiceLinkedRole -func (c *Schemas) LockServiceLinkedRole(input *LockServiceLinkedRoleInput) (*LockServiceLinkedRoleOutput, error) { - req, out := c.LockServiceLinkedRoleRequest(input) +// * NotFoundException +// +// * TooManyRequestsException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PutCodeBinding +func (c *Schemas) PutCodeBinding(input *PutCodeBindingInput) (*PutCodeBindingOutput, error) { + req, out := c.PutCodeBindingRequest(input) return out, req.Send() } -// LockServiceLinkedRoleWithContext is the same as LockServiceLinkedRole with the addition of +// PutCodeBindingWithContext is the same as PutCodeBinding with the addition of // the ability to pass a context and additional request options. // -// See LockServiceLinkedRole for details on how to use this API operation. +// See PutCodeBinding for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Schemas) LockServiceLinkedRoleWithContext(ctx aws.Context, input *LockServiceLinkedRoleInput, opts ...request.Option) (*LockServiceLinkedRoleOutput, error) { - req, out := c.LockServiceLinkedRoleRequest(input) +func (c *Schemas) PutCodeBindingWithContext(ctx aws.Context, input *PutCodeBindingInput, opts ...request.Option) (*PutCodeBindingOutput, error) { + req, out := c.PutCodeBindingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutCodeBinding = "PutCodeBinding" +const opPutResourcePolicy = "PutResourcePolicy" -// PutCodeBindingRequest generates a "aws/request.Request" representing the -// client's request for the PutCodeBinding 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 PutCodeBinding for more information on using the PutCodeBinding +// 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 PutCodeBindingRequest method. -// req, resp := client.PutCodeBindingRequest(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/schemas-2019-12-02/PutCodeBinding -func (c *Schemas) PutCodeBindingRequest(input *PutCodeBindingInput) (req *request.Request, output *PutCodeBindingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PutResourcePolicy +func (c *Schemas) PutResourcePolicyRequest(input *PutResourcePolicyInput) (req *request.Request, output *PutResourcePolicyOutput) { op := &request.Operation{ - Name: opPutCodeBinding, - HTTPMethod: "POST", - HTTPPath: "/v1/registries/name/{registryName}/schemas/name/{schemaName}/language/{language}", + Name: opPutResourcePolicy, + HTTPMethod: "PUT", + HTTPPath: "/v1/policy", } if input == nil { - input = &PutCodeBindingInput{} + input = &PutResourcePolicyInput{} } - output = &PutCodeBindingOutput{} + output = &PutResourcePolicyOutput{} req = c.newRequest(op, input, output) return } -// PutCodeBinding API operation for Schemas. +// PutResourcePolicy API operation for Schemas. // -// Put code binding URI +// The name of the policy. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Schemas's -// API operation PutCodeBinding for usage and error information. +// API operation PutResourcePolicy for usage and error information. // // Returned Error Types: -// * GoneException -// // * BadRequestException // // * UnauthorizedException // +// * PreconditionFailedException +// // * InternalServerErrorException // // * ForbiddenException // // * NotFoundException // -// * TooManyRequestsException +// * ServiceUnavailableException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PutCodeBinding -func (c *Schemas) PutCodeBinding(input *PutCodeBindingInput) (*PutCodeBindingOutput, error) { - req, out := c.PutCodeBindingRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PutResourcePolicy +func (c *Schemas) PutResourcePolicy(input *PutResourcePolicyInput) (*PutResourcePolicyOutput, error) { + req, out := c.PutResourcePolicyRequest(input) return out, req.Send() } -// PutCodeBindingWithContext is the same as PutCodeBinding 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 PutCodeBinding 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 *Schemas) PutCodeBindingWithContext(ctx aws.Context, input *PutCodeBindingInput, opts ...request.Option) (*PutCodeBindingOutput, error) { - req, out := c.PutCodeBindingRequest(input) +func (c *Schemas) 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() @@ -2396,91 +2581,6 @@ func (c *Schemas) TagResourceWithContext(ctx aws.Context, input *TagResourceInpu return out, req.Send() } -const opUnlockServiceLinkedRole = "UnlockServiceLinkedRole" - -// UnlockServiceLinkedRoleRequest generates a "aws/request.Request" representing the -// client's request for the UnlockServiceLinkedRole operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UnlockServiceLinkedRole for more information on using the UnlockServiceLinkedRole -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the UnlockServiceLinkedRoleRequest method. -// req, resp := client.UnlockServiceLinkedRoleRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/UnlockServiceLinkedRole -func (c *Schemas) UnlockServiceLinkedRoleRequest(input *UnlockServiceLinkedRoleInput) (req *request.Request, output *UnlockServiceLinkedRoleOutput) { - op := &request.Operation{ - Name: opUnlockServiceLinkedRole, - HTTPMethod: "POST", - HTTPPath: "/slr-deletion/unlock", - } - - if input == nil { - input = &UnlockServiceLinkedRoleInput{} - } - - output = &UnlockServiceLinkedRoleOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// UnlockServiceLinkedRole API operation for Schemas. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Schemas's -// API operation UnlockServiceLinkedRole for usage and error information. -// -// Returned Error Types: -// * ServiceUnavailableException -// -// * BadRequestException -// -// * UnauthorizedException -// -// * InternalServerErrorException -// -// * ForbiddenException -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/UnlockServiceLinkedRole -func (c *Schemas) UnlockServiceLinkedRole(input *UnlockServiceLinkedRoleInput) (*UnlockServiceLinkedRoleOutput, error) { - req, out := c.UnlockServiceLinkedRoleRequest(input) - return out, req.Send() -} - -// UnlockServiceLinkedRoleWithContext is the same as UnlockServiceLinkedRole with the addition of -// the ability to pass a context and additional request options. -// -// See UnlockServiceLinkedRole for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *Schemas) UnlockServiceLinkedRoleWithContext(ctx aws.Context, input *UnlockServiceLinkedRoleInput, opts ...request.Option) (*UnlockServiceLinkedRoleOutput, error) { - req, out := c.UnlockServiceLinkedRoleRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the @@ -2788,6 +2888,8 @@ func (c *Schemas) UpdateSchemaRequest(input *UpdateSchemaInput) (req *request.Re // // Updates the schema definition // +// Inactive schemas will be deleted after two years. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -3447,6 +3549,42 @@ func (s DeleteRegistryOutput) GoString() string { return s.String() } +type DeleteResourcePolicyInput struct { + _ struct{} `type:"structure"` + + RegistryName *string `location:"querystring" locationName:"registryName" type:"string"` +} + +// String returns the string representation +func (s DeleteResourcePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResourcePolicyInput) GoString() string { + return s.String() +} + +// SetRegistryName sets the RegistryName field's value. +func (s *DeleteResourcePolicyInput) SetRegistryName(v string) *DeleteResourcePolicyInput { + s.RegistryName = &v + return s +} + +type DeleteResourcePolicyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteResourcePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResourcePolicyOutput) GoString() string { + return s.String() +} + type DeleteSchemaInput struct { _ struct{} `type:"structure"` @@ -4070,6 +4208,7 @@ type DiscovererSummary struct { // The ARN of the event bus. SourceArn *string `type:"string"` + // The state of the discoverer. State *string `type:"string" enum:"DiscovererState"` // Tags associated with the resource. @@ -4345,6 +4484,58 @@ func (s *GetDiscoveredSchemaOutput) SetContent(v string) *GetDiscoveredSchemaOut return s } +type GetResourcePolicyInput struct { + _ struct{} `type:"structure"` + + RegistryName *string `location:"querystring" locationName:"registryName" type:"string"` +} + +// String returns the string representation +func (s GetResourcePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourcePolicyInput) GoString() string { + return s.String() +} + +// SetRegistryName sets the RegistryName field's value. +func (s *GetResourcePolicyInput) SetRegistryName(v string) *GetResourcePolicyInput { + s.RegistryName = &v + return s +} + +type GetResourcePolicyOutput struct { + _ struct{} `type:"structure"` + + Policy aws.JSONValue `type:"jsonvalue"` + + RevisionId *string `type:"string"` +} + +// String returns the string representation +func (s GetResourcePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourcePolicyOutput) GoString() string { + return s.String() +} + +// SetPolicy sets the Policy field's value. +func (s *GetResourcePolicyOutput) SetPolicy(v aws.JSONValue) *GetResourcePolicyOutput { + s.Policy = v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *GetResourcePolicyOutput) SetRevisionId(v string) *GetResourcePolicyOutput { + s.RevisionId = &v + return s +} + type GoneException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -4847,9 +5038,7 @@ type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` // Key-value pairs associated with a resource. - // - // Tags is a required field - Tags map[string]*string `type:"map" required:"true"` + Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation @@ -4868,99 +5057,64 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe return s } -type LockServiceLinkedRoleInput struct { - _ struct{} `type:"structure"` +type NotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // RoleArn is a required field - RoleArn *string `min:"1" type:"string" required:"true"` + Code_ *string `locationName:"Code" type:"string"` - // Timeout is a required field - Timeout *int64 `min:"1" type:"integer" required:"true"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s LockServiceLinkedRoleInput) String() string { +func (s NotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LockServiceLinkedRoleInput) GoString() string { +func (s NotFoundException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LockServiceLinkedRoleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LockServiceLinkedRoleInput"} - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.RoleArn != nil && len(*s.RoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) - } - if s.Timeout == nil { - invalidParams.Add(request.NewErrParamRequired("Timeout")) - } - if s.Timeout != nil && *s.Timeout < 1 { - invalidParams.Add(request.NewErrParamMinValue("Timeout", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + RespMetadata: v, } - return nil -} - -// SetRoleArn sets the RoleArn field's value. -func (s *LockServiceLinkedRoleInput) SetRoleArn(v string) *LockServiceLinkedRoleInput { - s.RoleArn = &v - return s } -// SetTimeout sets the Timeout field's value. -func (s *LockServiceLinkedRoleInput) SetTimeout(v int64) *LockServiceLinkedRoleInput { - s.Timeout = &v - return s -} - -type LockServiceLinkedRoleOutput struct { - _ struct{} `type:"structure"` - - CanBeDeleted *bool `type:"boolean"` - - ReasonOfFailure *string `min:"1" type:"string"` - - RelatedResources []*DiscovererSummary `type:"list"` +// Code returns the exception type name. +func (s *NotFoundException) Code() string { + return "NotFoundException" } -// String returns the string representation -func (s LockServiceLinkedRoleOutput) String() string { - return awsutil.Prettify(s) +// Message returns the exception's message. +func (s *NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// GoString returns the string representation -func (s LockServiceLinkedRoleOutput) GoString() string { - return s.String() +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *NotFoundException) OrigErr() error { + return nil } -// SetCanBeDeleted sets the CanBeDeleted field's value. -func (s *LockServiceLinkedRoleOutput) SetCanBeDeleted(v bool) *LockServiceLinkedRoleOutput { - s.CanBeDeleted = &v - return s +func (s *NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetReasonOfFailure sets the ReasonOfFailure field's value. -func (s *LockServiceLinkedRoleOutput) SetReasonOfFailure(v string) *LockServiceLinkedRoleOutput { - s.ReasonOfFailure = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *NotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetRelatedResources sets the RelatedResources field's value. -func (s *LockServiceLinkedRoleOutput) SetRelatedResources(v []*DiscovererSummary) *LockServiceLinkedRoleOutput { - s.RelatedResources = v - return s +// RequestID returns the service's response RequestID for request. +func (s *NotFoundException) RequestID() string { + return s.RespMetadata.RequestID } -type NotFoundException struct { +type PreconditionFailedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -4970,28 +5124,28 @@ type NotFoundException struct { } // String returns the string representation -func (s NotFoundException) String() string { +func (s PreconditionFailedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NotFoundException) GoString() string { +func (s PreconditionFailedException) GoString() string { return s.String() } -func newErrorNotFoundException(v protocol.ResponseMetadata) error { - return &NotFoundException{ +func newErrorPreconditionFailedException(v protocol.ResponseMetadata) error { + return &PreconditionFailedException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *NotFoundException) Code() string { - return "NotFoundException" +func (s *PreconditionFailedException) Code() string { + return "PreconditionFailedException" } // Message returns the exception's message. -func (s *NotFoundException) Message() string { +func (s *PreconditionFailedException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -4999,21 +5153,21 @@ func (s *NotFoundException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *NotFoundException) OrigErr() error { +func (s *PreconditionFailedException) OrigErr() error { return nil } -func (s *NotFoundException) Error() string { +func (s *PreconditionFailedException) 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 *NotFoundException) StatusCode() int { +func (s *PreconditionFailedException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *NotFoundException) RequestID() string { +func (s *PreconditionFailedException) RequestID() string { return s.RespMetadata.RequestID } @@ -5140,6 +5294,88 @@ func (s *PutCodeBindingOutput) SetStatus(v string) *PutCodeBindingOutput { return s } +type PutResourcePolicyInput struct { + _ struct{} `type:"structure"` + + // Policy is a required field + Policy aws.JSONValue `type:"jsonvalue" required:"true"` + + RegistryName *string `location:"querystring" locationName:"registryName" type:"string"` + + RevisionId *string `type:"string"` +} + +// String returns the string representation +func (s PutResourcePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutResourcePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutResourcePolicyInput"} + if s.Policy == nil { + invalidParams.Add(request.NewErrParamRequired("Policy")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPolicy sets the Policy field's value. +func (s *PutResourcePolicyInput) SetPolicy(v aws.JSONValue) *PutResourcePolicyInput { + s.Policy = v + return s +} + +// SetRegistryName sets the RegistryName field's value. +func (s *PutResourcePolicyInput) SetRegistryName(v string) *PutResourcePolicyInput { + s.RegistryName = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *PutResourcePolicyInput) SetRevisionId(v string) *PutResourcePolicyInput { + s.RevisionId = &v + return s +} + +type PutResourcePolicyOutput struct { + _ struct{} `type:"structure"` + + Policy aws.JSONValue `type:"jsonvalue"` + + RevisionId *string `type:"string"` +} + +// String returns the string representation +func (s PutResourcePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutResourcePolicyOutput) GoString() string { + return s.String() +} + +// SetPolicy sets the Policy field's value. +func (s *PutResourcePolicyOutput) SetPolicy(v aws.JSONValue) *PutResourcePolicyOutput { + s.Policy = v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *PutResourcePolicyOutput) SetRevisionId(v string) *PutResourcePolicyOutput { + s.RevisionId = &v + return s +} + type RegistrySummary struct { _ struct{} `type:"structure"` @@ -5335,6 +5571,7 @@ func (s *SearchSchemaSummary) SetSchemaVersions(v []*SearchSchemaVersionSummary) type SearchSchemaVersionSummary struct { _ struct{} `type:"structure"` + // The date the schema version was created. CreatedDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The version number of the schema @@ -5836,59 +6073,6 @@ func (s *UnauthorizedException) RequestID() string { return s.RespMetadata.RequestID } -type UnlockServiceLinkedRoleInput struct { - _ struct{} `type:"structure"` - - // RoleArn is a required field - RoleArn *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s UnlockServiceLinkedRoleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UnlockServiceLinkedRoleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UnlockServiceLinkedRoleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UnlockServiceLinkedRoleInput"} - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.RoleArn != nil && len(*s.RoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetRoleArn sets the RoleArn field's value. -func (s *UnlockServiceLinkedRoleInput) SetRoleArn(v string) *UnlockServiceLinkedRoleInput { - s.RoleArn = &v - return s -} - -type UnlockServiceLinkedRoleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UnlockServiceLinkedRoleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UnlockServiceLinkedRoleOutput) GoString() string { - return s.String() -} - type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/schemas/doc.go b/service/schemas/doc.go index 4c3cf917f5..67fd4291b9 100644 --- a/service/schemas/doc.go +++ b/service/schemas/doc.go @@ -3,7 +3,7 @@ // Package schemas provides the client and types for making API // requests to Schemas. // -// AWS EventBridge Schemas +// Amazon EventBridge Schema Registry // // See https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02 for more information on this service. // diff --git a/service/schemas/errors.go b/service/schemas/errors.go index 5048d2eb36..13e2ff8c64 100644 --- a/service/schemas/errors.go +++ b/service/schemas/errors.go @@ -32,6 +32,10 @@ const ( // "NotFoundException". ErrCodeNotFoundException = "NotFoundException" + // ErrCodePreconditionFailedException for service response error code + // "PreconditionFailedException". + ErrCodePreconditionFailedException = "PreconditionFailedException" + // ErrCodeServiceUnavailableException for service response error code // "ServiceUnavailableException". ErrCodeServiceUnavailableException = "ServiceUnavailableException" @@ -52,6 +56,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "GoneException": newErrorGoneException, "InternalServerErrorException": newErrorInternalServerErrorException, "NotFoundException": newErrorNotFoundException, + "PreconditionFailedException": newErrorPreconditionFailedException, "ServiceUnavailableException": newErrorServiceUnavailableException, "TooManyRequestsException": newErrorTooManyRequestsException, "UnauthorizedException": newErrorUnauthorizedException, diff --git a/service/schemas/schemasiface/interface.go b/service/schemas/schemasiface/interface.go index 1c8103ae62..ada114ed75 100644 --- a/service/schemas/schemasiface/interface.go +++ b/service/schemas/schemasiface/interface.go @@ -80,6 +80,10 @@ type SchemasAPI interface { DeleteRegistryWithContext(aws.Context, *schemas.DeleteRegistryInput, ...request.Option) (*schemas.DeleteRegistryOutput, error) DeleteRegistryRequest(*schemas.DeleteRegistryInput) (*request.Request, *schemas.DeleteRegistryOutput) + DeleteResourcePolicy(*schemas.DeleteResourcePolicyInput) (*schemas.DeleteResourcePolicyOutput, error) + DeleteResourcePolicyWithContext(aws.Context, *schemas.DeleteResourcePolicyInput, ...request.Option) (*schemas.DeleteResourcePolicyOutput, error) + DeleteResourcePolicyRequest(*schemas.DeleteResourcePolicyInput) (*request.Request, *schemas.DeleteResourcePolicyOutput) + DeleteSchema(*schemas.DeleteSchemaInput) (*schemas.DeleteSchemaOutput, error) DeleteSchemaWithContext(aws.Context, *schemas.DeleteSchemaInput, ...request.Option) (*schemas.DeleteSchemaOutput, error) DeleteSchemaRequest(*schemas.DeleteSchemaInput) (*request.Request, *schemas.DeleteSchemaOutput) @@ -112,6 +116,10 @@ type SchemasAPI interface { GetDiscoveredSchemaWithContext(aws.Context, *schemas.GetDiscoveredSchemaInput, ...request.Option) (*schemas.GetDiscoveredSchemaOutput, error) GetDiscoveredSchemaRequest(*schemas.GetDiscoveredSchemaInput) (*request.Request, *schemas.GetDiscoveredSchemaOutput) + GetResourcePolicy(*schemas.GetResourcePolicyInput) (*schemas.GetResourcePolicyOutput, error) + GetResourcePolicyWithContext(aws.Context, *schemas.GetResourcePolicyInput, ...request.Option) (*schemas.GetResourcePolicyOutput, error) + GetResourcePolicyRequest(*schemas.GetResourcePolicyInput) (*request.Request, *schemas.GetResourcePolicyOutput) + ListDiscoverers(*schemas.ListDiscoverersInput) (*schemas.ListDiscoverersOutput, error) ListDiscoverersWithContext(aws.Context, *schemas.ListDiscoverersInput, ...request.Option) (*schemas.ListDiscoverersOutput, error) ListDiscoverersRequest(*schemas.ListDiscoverersInput) (*request.Request, *schemas.ListDiscoverersOutput) @@ -144,14 +152,14 @@ type SchemasAPI interface { ListTagsForResourceWithContext(aws.Context, *schemas.ListTagsForResourceInput, ...request.Option) (*schemas.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*schemas.ListTagsForResourceInput) (*request.Request, *schemas.ListTagsForResourceOutput) - LockServiceLinkedRole(*schemas.LockServiceLinkedRoleInput) (*schemas.LockServiceLinkedRoleOutput, error) - LockServiceLinkedRoleWithContext(aws.Context, *schemas.LockServiceLinkedRoleInput, ...request.Option) (*schemas.LockServiceLinkedRoleOutput, error) - LockServiceLinkedRoleRequest(*schemas.LockServiceLinkedRoleInput) (*request.Request, *schemas.LockServiceLinkedRoleOutput) - PutCodeBinding(*schemas.PutCodeBindingInput) (*schemas.PutCodeBindingOutput, error) PutCodeBindingWithContext(aws.Context, *schemas.PutCodeBindingInput, ...request.Option) (*schemas.PutCodeBindingOutput, error) PutCodeBindingRequest(*schemas.PutCodeBindingInput) (*request.Request, *schemas.PutCodeBindingOutput) + PutResourcePolicy(*schemas.PutResourcePolicyInput) (*schemas.PutResourcePolicyOutput, error) + PutResourcePolicyWithContext(aws.Context, *schemas.PutResourcePolicyInput, ...request.Option) (*schemas.PutResourcePolicyOutput, error) + PutResourcePolicyRequest(*schemas.PutResourcePolicyInput) (*request.Request, *schemas.PutResourcePolicyOutput) + SearchSchemas(*schemas.SearchSchemasInput) (*schemas.SearchSchemasOutput, error) SearchSchemasWithContext(aws.Context, *schemas.SearchSchemasInput, ...request.Option) (*schemas.SearchSchemasOutput, error) SearchSchemasRequest(*schemas.SearchSchemasInput) (*request.Request, *schemas.SearchSchemasOutput) @@ -171,10 +179,6 @@ type SchemasAPI interface { TagResourceWithContext(aws.Context, *schemas.TagResourceInput, ...request.Option) (*schemas.TagResourceOutput, error) TagResourceRequest(*schemas.TagResourceInput) (*request.Request, *schemas.TagResourceOutput) - UnlockServiceLinkedRole(*schemas.UnlockServiceLinkedRoleInput) (*schemas.UnlockServiceLinkedRoleOutput, error) - UnlockServiceLinkedRoleWithContext(aws.Context, *schemas.UnlockServiceLinkedRoleInput, ...request.Option) (*schemas.UnlockServiceLinkedRoleOutput, error) - UnlockServiceLinkedRoleRequest(*schemas.UnlockServiceLinkedRoleInput) (*request.Request, *schemas.UnlockServiceLinkedRoleOutput) - UntagResource(*schemas.UntagResourceInput) (*schemas.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *schemas.UntagResourceInput, ...request.Option) (*schemas.UntagResourceOutput, error) UntagResourceRequest(*schemas.UntagResourceInput) (*request.Request, *schemas.UntagResourceOutput)