From 14ebfbd6f287d16eb1afdad9e1248bd108e70d56 Mon Sep 17 00:00:00 2001 From: sbiscigl Date: Fri, 18 Nov 2022 16:05:24 -0500 Subject: [PATCH] Remove old model files for ssm map. --- .../346985bfda9f4c02bf4ac84ef79ae433.json | 8 + codegen/sdk-codegen/aws-models/ssmsap.json | 2584 ----------------- service/ssmsap/CHANGELOG.md | 5 - service/ssmsap/api_client.go | 2 +- .../ssmsap/api_op_DeleteResourcePermission.go | 1 + .../ssmsap/api_op_DeregisterApplication.go | 2 + service/ssmsap/api_op_GetApplication.go | 2 + service/ssmsap/api_op_GetComponent.go | 2 + service/ssmsap/api_op_GetDatabase.go | 2 + service/ssmsap/api_op_GetOperation.go | 1 + .../ssmsap/api_op_GetResourcePermission.go | 1 + service/ssmsap/api_op_ListApplications.go | 1 + service/ssmsap/api_op_ListComponents.go | 1 + service/ssmsap/api_op_ListDatabases.go | 2 + service/ssmsap/api_op_ListTagsForResource.go | 2 + .../ssmsap/api_op_PutResourcePermission.go | 1 + service/ssmsap/api_op_RegisterApplication.go | 6 + service/ssmsap/api_op_TagResource.go | 1 + service/ssmsap/api_op_UntagResource.go | 4 +- service/ssmsap/doc.go | 4 + .../ssmsap/internal/endpoints/endpoints.go | 2 +- 21 files changed, 42 insertions(+), 2592 deletions(-) create mode 100644 .changelog/346985bfda9f4c02bf4ac84ef79ae433.json delete mode 100644 codegen/sdk-codegen/aws-models/ssmsap.json delete mode 100644 service/ssmsap/CHANGELOG.md diff --git a/.changelog/346985bfda9f4c02bf4ac84ef79ae433.json b/.changelog/346985bfda9f4c02bf4ac84ef79ae433.json new file mode 100644 index 00000000000..7daa7ef7e69 --- /dev/null +++ b/.changelog/346985bfda9f4c02bf4ac84ef79ae433.json @@ -0,0 +1,8 @@ +{ + "id": "346985bf-da9f-4c02-bf4a-c84ef79ae433", + "type": "bugfix", + "description": "Removes old model file for ssm sap and uses the new model file to regenerate client", + "modules": [ + "service/ssmsap" + ] +} \ No newline at end of file diff --git a/codegen/sdk-codegen/aws-models/ssmsap.json b/codegen/sdk-codegen/aws-models/ssmsap.json deleted file mode 100644 index 8c9969b33a1..00000000000 --- a/codegen/sdk-codegen/aws-models/ssmsap.json +++ /dev/null @@ -1,2584 +0,0 @@ -{ - "smithy": "2.0", - "shapes": { - "com.amazonaws.ssmsap#AppRegistryArn": { - "type": "string", - "traits": { - "smithy.api#pattern": "^arn:aws:servicecatalog:[a-z0-9:\\/-]+$" - } - }, - "com.amazonaws.ssmsap#Application": { - "type": "structure", - "members": { - "Id": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Type": { - "target": "com.amazonaws.ssmsap#ApplicationType", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Arn": { - "target": "com.amazonaws.ssmsap#SsmSapArn", - "traits": { - "smithy.api#documentation": "

" - } - }, - "AppRegistryArn": { - "target": "com.amazonaws.ssmsap#AppRegistryArn", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Status": { - "target": "com.amazonaws.ssmsap#ApplicationStatus", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Components": { - "target": "com.amazonaws.ssmsap#ComponentIdList", - "traits": { - "smithy.api#documentation": "

" - } - }, - "LastUpdated": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

" - } - }, - "StatusMessage": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - } - }, - "traits": { - "smithy.api#documentation": "

" - } - }, - "com.amazonaws.ssmsap#ApplicationCredential": { - "type": "structure", - "members": { - "DatabaseName": { - "target": "com.amazonaws.ssmsap#DatabaseName", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - }, - "CredentialType": { - "target": "com.amazonaws.ssmsap#CredentialType", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - }, - "SecretId": { - "target": "com.amazonaws.ssmsap#SecretId", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

" - } - }, - "com.amazonaws.ssmsap#ApplicationCredentialList": { - "type": "list", - "member": { - "target": "com.amazonaws.ssmsap#ApplicationCredential" - }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 20 - } - } - }, - "com.amazonaws.ssmsap#ApplicationId": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[\\w\\d]{1,50}$" - } - }, - "com.amazonaws.ssmsap#ApplicationStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "ACTIVATED", - "name": "ACTIVATED" - }, - { - "value": "STARTING", - "name": "STARTING" - }, - { - "value": "STOPPED", - "name": "STOPPED" - }, - { - "value": "STOPPING", - "name": "STOPPING" - }, - { - "value": "FAILED", - "name": "FAILED" - }, - { - "value": "REGISTERING", - "name": "REGISTERING" - }, - { - "value": "DELETING", - "name": "DELETING" - }, - { - "value": "UNKNOWN", - "name": "UNKNOWN" - } - ] - } - }, - "com.amazonaws.ssmsap#ApplicationSummary": { - "type": "structure", - "members": { - "Id": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Type": { - "target": "com.amazonaws.ssmsap#ApplicationType", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Arn": { - "target": "com.amazonaws.ssmsap#SsmSapArn", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Tags": { - "target": "com.amazonaws.ssmsap#TagMap", - "traits": { - "smithy.api#documentation": "

" - } - } - }, - "traits": { - "smithy.api#documentation": "

" - } - }, - "com.amazonaws.ssmsap#ApplicationSummaryList": { - "type": "list", - "member": { - "target": "com.amazonaws.ssmsap#ApplicationSummary" - } - }, - "com.amazonaws.ssmsap#ApplicationType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "HANA", - "name": "HANA" - } - ] - } - }, - "com.amazonaws.ssmsap#Arn": { - "type": "string", - "traits": { - "smithy.api#pattern": "^arn:(.+:){2,4}.+$|^arn:(.+:){1,3}.+\\/.+$" - } - }, - "com.amazonaws.ssmsap#Component": { - "type": "structure", - "members": { - "ComponentId": { - "target": "com.amazonaws.ssmsap#ComponentId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ComponentType": { - "target": "com.amazonaws.ssmsap#ComponentType", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Status": { - "target": "com.amazonaws.ssmsap#ComponentStatus", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Databases": { - "target": "com.amazonaws.ssmsap#DatabaseIdList", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Hosts": { - "target": "com.amazonaws.ssmsap#HostList", - "traits": { - "smithy.api#documentation": "

" - } - }, - "PrimaryHost": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - }, - "LastUpdated": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

" - } - } - }, - "traits": { - "smithy.api#documentation": "

" - } - }, - "com.amazonaws.ssmsap#ComponentId": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[\\w\\d-]+$" - } - }, - "com.amazonaws.ssmsap#ComponentIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.ssmsap#ComponentId" - } - }, - "com.amazonaws.ssmsap#ComponentStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "ACTIVATED", - "name": "ACTIVATED" - } - ] - } - }, - "com.amazonaws.ssmsap#ComponentSummary": { - "type": "structure", - "members": { - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ComponentId": { - "target": "com.amazonaws.ssmsap#ComponentId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ComponentType": { - "target": "com.amazonaws.ssmsap#ComponentType", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Tags": { - "target": "com.amazonaws.ssmsap#TagMap", - "traits": { - "smithy.api#documentation": "

" - } - } - }, - "traits": { - "smithy.api#documentation": "

" - } - }, - "com.amazonaws.ssmsap#ComponentSummaryList": { - "type": "list", - "member": { - "target": "com.amazonaws.ssmsap#ComponentSummary" - } - }, - "com.amazonaws.ssmsap#ComponentType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "HANA", - "name": "HANA" - } - ] - } - }, - "com.amazonaws.ssmsap#ConflictException": { - "type": "structure", - "members": { - "Message": { - "target": "smithy.api#String" - } - }, - "traits": { - "smithy.api#documentation": "

", - "smithy.api#error": "client", - "smithy.api#httpError": 409 - } - }, - "com.amazonaws.ssmsap#CredentialType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "ADMIN", - "name": "ADMIN" - } - ] - } - }, - "com.amazonaws.ssmsap#Database": { - "type": "structure", - "members": { - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ComponentId": { - "target": "com.amazonaws.ssmsap#ComponentId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Credentials": { - "target": "com.amazonaws.ssmsap#ApplicationCredentialList", - "traits": { - "smithy.api#documentation": "

" - } - }, - "DatabaseId": { - "target": "com.amazonaws.ssmsap#DatabaseId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "DatabaseName": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - }, - "DatabaseType": { - "target": "com.amazonaws.ssmsap#DatabaseType", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Arn": { - "target": "com.amazonaws.ssmsap#SsmSapArn", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Status": { - "target": "com.amazonaws.ssmsap#DatabaseStatus", - "traits": { - "smithy.api#documentation": "

" - } - }, - "PrimaryHost": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - }, - "SQLPort": { - "target": "smithy.api#Integer", - "traits": { - "smithy.api#documentation": "

" - } - }, - "LastUpdated": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

" - } - } - }, - "traits": { - "smithy.api#documentation": "

" - } - }, - "com.amazonaws.ssmsap#DatabaseId": { - "type": "string", - "traits": { - "smithy.api#pattern": "[\\w\\d]+$" - } - }, - "com.amazonaws.ssmsap#DatabaseIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.ssmsap#DatabaseId" - } - }, - "com.amazonaws.ssmsap#DatabaseName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - } - } - }, - "com.amazonaws.ssmsap#DatabaseStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "RUNNING", - "name": "RUNNING" - }, - { - "value": "STARTING", - "name": "STARTING" - }, - { - "value": "STOPPED", - "name": "STOPPED" - }, - { - "value": "WARNING", - "name": "WARNING" - }, - { - "value": "UNKNOWN", - "name": "UNKNOWN" - } - ] - } - }, - "com.amazonaws.ssmsap#DatabaseSummary": { - "type": "structure", - "members": { - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ComponentId": { - "target": "com.amazonaws.ssmsap#ComponentId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "DatabaseId": { - "target": "com.amazonaws.ssmsap#DatabaseId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "DatabaseType": { - "target": "com.amazonaws.ssmsap#DatabaseType", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Arn": { - "target": "com.amazonaws.ssmsap#SsmSapArn", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Tags": { - "target": "com.amazonaws.ssmsap#TagMap", - "traits": { - "smithy.api#documentation": "

" - } - } - }, - "traits": { - "smithy.api#documentation": "

" - } - }, - "com.amazonaws.ssmsap#DatabaseSummaryList": { - "type": "list", - "member": { - "target": "com.amazonaws.ssmsap#DatabaseSummary" - } - }, - "com.amazonaws.ssmsap#DatabaseType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "SYSTEM", - "name": "SYSTEM" - }, - { - "value": "TENANT", - "name": "TENANT" - } - ] - } - }, - "com.amazonaws.ssmsap#DeleteResourcePermission": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#DeleteResourcePermissionInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#DeleteResourcePermissionOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/delete-resource-permission" - } - } - }, - "com.amazonaws.ssmsap#DeleteResourcePermissionInput": { - "type": "structure", - "members": { - "ActionType": { - "target": "com.amazonaws.ssmsap#PermissionActionType", - "traits": { - "smithy.api#documentation": "

" - } - }, - "SourceResourceArn": { - "target": "com.amazonaws.ssmsap#Arn", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ResourceArn": { - "target": "com.amazonaws.ssmsap#Arn", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ssmsap#DeleteResourcePermissionOutput": { - "type": "structure", - "members": { - "Policy": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#DeregisterApplication": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#DeregisterApplicationInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#DeregisterApplicationOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/deregister-application" - } - } - }, - "com.amazonaws.ssmsap#DeregisterApplicationInput": { - "type": "structure", - "members": { - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ssmsap#DeregisterApplicationOutput": { - "type": "structure", - "members": {} - }, - "com.amazonaws.ssmsap#GetApplication": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#GetApplicationInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#GetApplicationOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/get-application" - }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.ssmsap#GetApplicationInput": { - "type": "structure", - "members": { - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ApplicationArn": { - "target": "com.amazonaws.ssmsap#SsmSapArn", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#GetApplicationOutput": { - "type": "structure", - "members": { - "Application": { - "target": "com.amazonaws.ssmsap#Application", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Tags": { - "target": "com.amazonaws.ssmsap#TagMap", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#GetComponent": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#GetComponentInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#GetComponentOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/get-component" - }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.ssmsap#GetComponentInput": { - "type": "structure", - "members": { - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - }, - "ComponentId": { - "target": "com.amazonaws.ssmsap#ComponentId", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ssmsap#GetComponentOutput": { - "type": "structure", - "members": { - "Component": { - "target": "com.amazonaws.ssmsap#Component", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#GetDatabase": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#GetDatabaseInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#GetDatabaseOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/get-database" - }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.ssmsap#GetDatabaseInput": { - "type": "structure", - "members": { - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ComponentId": { - "target": "com.amazonaws.ssmsap#ComponentId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "DatabaseId": { - "target": "com.amazonaws.ssmsap#DatabaseId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "DatabaseArn": { - "target": "com.amazonaws.ssmsap#SsmSapArn", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#GetDatabaseOutput": { - "type": "structure", - "members": { - "Database": { - "target": "com.amazonaws.ssmsap#Database", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Tags": { - "target": "com.amazonaws.ssmsap#TagMap", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#GetOperation": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#GetOperationInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#GetOperationOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/get-operation" - }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.ssmsap#GetOperationInput": { - "type": "structure", - "members": { - "OperationId": { - "target": "com.amazonaws.ssmsap#OperationId", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ssmsap#GetOperationOutput": { - "type": "structure", - "members": { - "Operation": { - "target": "com.amazonaws.ssmsap#Operation", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#GetResourcePermission": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#GetResourcePermissionInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#GetResourcePermissionOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/get-resource-permission" - } - } - }, - "com.amazonaws.ssmsap#GetResourcePermissionInput": { - "type": "structure", - "members": { - "ActionType": { - "target": "com.amazonaws.ssmsap#PermissionActionType", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ResourceArn": { - "target": "com.amazonaws.ssmsap#Arn", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ssmsap#GetResourcePermissionOutput": { - "type": "structure", - "members": { - "Policy": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#Host": { - "type": "structure", - "members": { - "HostName": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - }, - "HostRole": { - "target": "com.amazonaws.ssmsap#HostRole", - "traits": { - "smithy.api#documentation": "

" - } - }, - "HostIp": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - }, - "InstanceId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - } - }, - "traits": { - "smithy.api#documentation": "

" - } - }, - "com.amazonaws.ssmsap#HostList": { - "type": "list", - "member": { - "target": "com.amazonaws.ssmsap#Host" - } - }, - "com.amazonaws.ssmsap#HostRole": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "LEADER", - "name": "LEADER" - }, - { - "value": "WORKER", - "name": "WORKER" - }, - { - "value": "STANDBY", - "name": "STANDBY" - }, - { - "value": "UNKNOWN", - "name": "UNKNOWN" - } - ] - } - }, - "com.amazonaws.ssmsap#InstanceId": { - "type": "string", - "traits": { - "smithy.api#pattern": "^i-[\\w\\d]{8}$|^i-[\\w\\d]{17}$" - } - }, - "com.amazonaws.ssmsap#InstanceList": { - "type": "list", - "member": { - "target": "com.amazonaws.ssmsap#InstanceId" - }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 1 - } - } - }, - "com.amazonaws.ssmsap#InternalServerException": { - "type": "structure", - "members": { - "Message": { - "target": "smithy.api#String" - } - }, - "traits": { - "smithy.api#documentation": "

", - "smithy.api#error": "server", - "smithy.api#httpError": 500 - } - }, - "com.amazonaws.ssmsap#ListApplications": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#ListApplicationsInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#ListApplicationsOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/list-applications" - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults", - "items": "Applications" - }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.ssmsap#ListApplicationsInput": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.ssmsap#NextToken", - "traits": { - "smithy.api#documentation": "

" - } - }, - "MaxResults": { - "target": "com.amazonaws.ssmsap#MaxResults", - "traits": { - "smithy.api#default": null, - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#ListApplicationsOutput": { - "type": "structure", - "members": { - "Applications": { - "target": "com.amazonaws.ssmsap#ApplicationSummaryList", - "traits": { - "smithy.api#documentation": "

" - } - }, - "NextToken": { - "target": "com.amazonaws.ssmsap#NextToken", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#ListComponents": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#ListComponentsInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#ListComponentsOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/list-components" - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults", - "items": "Components" - }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.ssmsap#ListComponentsInput": { - "type": "structure", - "members": { - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "NextToken": { - "target": "com.amazonaws.ssmsap#NextToken", - "traits": { - "smithy.api#documentation": "

" - } - }, - "MaxResults": { - "target": "com.amazonaws.ssmsap#MaxResults", - "traits": { - "smithy.api#default": null, - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#ListComponentsOutput": { - "type": "structure", - "members": { - "Components": { - "target": "com.amazonaws.ssmsap#ComponentSummaryList", - "traits": { - "smithy.api#documentation": "

" - } - }, - "NextToken": { - "target": "com.amazonaws.ssmsap#NextToken", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#ListDatabases": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#ListDatabasesInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#ListDatabasesOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/list-databases" - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults", - "items": "Databases" - }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.ssmsap#ListDatabasesInput": { - "type": "structure", - "members": { - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ComponentId": { - "target": "com.amazonaws.ssmsap#ComponentId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "NextToken": { - "target": "com.amazonaws.ssmsap#NextToken", - "traits": { - "smithy.api#documentation": "

" - } - }, - "MaxResults": { - "target": "com.amazonaws.ssmsap#MaxResults", - "traits": { - "smithy.api#default": null, - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#ListDatabasesOutput": { - "type": "structure", - "members": { - "Databases": { - "target": "com.amazonaws.ssmsap#DatabaseSummaryList", - "traits": { - "smithy.api#documentation": "

" - } - }, - "NextToken": { - "target": "com.amazonaws.ssmsap#NextToken", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#ListTagsForResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#ListTagsForResourceRequest" - }, - "output": { - "target": "com.amazonaws.ssmsap#ListTagsForResourceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#ConflictException" - }, - { - "target": "com.amazonaws.ssmsap#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "method": "GET", - "uri": "/tags/{resourceArn}" - }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.ssmsap#ListTagsForResourceRequest": { - "type": "structure", - "members": { - "resourceArn": { - "target": "com.amazonaws.ssmsap#SsmSapArn", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ssmsap#ListTagsForResourceResponse": { - "type": "structure", - "members": { - "tags": { - "target": "com.amazonaws.ssmsap#TagMap", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#MaxResults": { - "type": "integer", - "traits": { - "smithy.api#default": 0, - "smithy.api#range": { - "min": 1, - "max": 50 - } - } - }, - "com.amazonaws.ssmsap#NextToken": { - "type": "string", - "traits": { - "smithy.api#pattern": "^.{16,1024}$" - } - }, - "com.amazonaws.ssmsap#Operation": { - "type": "structure", - "members": { - "Id": { - "target": "com.amazonaws.ssmsap#OperationId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Type": { - "target": "com.amazonaws.ssmsap#OperationType", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Status": { - "target": "com.amazonaws.ssmsap#OperationStatus", - "traits": { - "smithy.api#documentation": "

" - } - }, - "StatusMessage": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Properties": { - "target": "com.amazonaws.ssmsap#OperationProperties", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ResourceType": { - "target": "com.amazonaws.ssmsap#ResourceType", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ResourceId": { - "target": "com.amazonaws.ssmsap#ResourceId", - "traits": { - "smithy.api#documentation": "

" - } - }, - "ResourceArn": { - "target": "com.amazonaws.ssmsap#Arn", - "traits": { - "smithy.api#documentation": "

" - } - }, - "StartTime": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

" - } - }, - "EndTime": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

" - } - }, - "LastUpdatedTime": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

" - } - } - }, - "traits": { - "smithy.api#documentation": "

" - } - }, - "com.amazonaws.ssmsap#OperationId": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$" - } - }, - "com.amazonaws.ssmsap#OperationIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.ssmsap#OperationId" - } - }, - "com.amazonaws.ssmsap#OperationProperties": { - "type": "map", - "key": { - "target": "smithy.api#String" - }, - "value": { - "target": "smithy.api#String" - }, - "traits": { - "smithy.api#sparse": {} - } - }, - "com.amazonaws.ssmsap#OperationStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "INPROGRESS", - "name": "INPROGRESS" - }, - { - "value": "SUCCESS", - "name": "SUCCESS" - }, - { - "value": "ERROR", - "name": "ERROR" - } - ] - } - }, - "com.amazonaws.ssmsap#OperationType": { - "type": "string" - }, - "com.amazonaws.ssmsap#PermissionActionType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "RESTORE", - "name": "RESTORE" - } - ] - } - }, - "com.amazonaws.ssmsap#PutResourcePermission": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#PutResourcePermissionInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#PutResourcePermissionOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/put-resource-permission" - } - } - }, - "com.amazonaws.ssmsap#PutResourcePermissionInput": { - "type": "structure", - "members": { - "ActionType": { - "target": "com.amazonaws.ssmsap#PermissionActionType", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - }, - "SourceResourceArn": { - "target": "com.amazonaws.ssmsap#Arn", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - }, - "ResourceArn": { - "target": "com.amazonaws.ssmsap#Arn", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ssmsap#PutResourcePermissionOutput": { - "type": "structure", - "members": { - "Policy": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#RegisterApplication": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#RegisterApplicationInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#RegisterApplicationOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#ConflictException" - }, - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/register-application" - } - } - }, - "com.amazonaws.ssmsap#RegisterApplicationInput": { - "type": "structure", - "members": { - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - }, - "ApplicationType": { - "target": "com.amazonaws.ssmsap#ApplicationType", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - }, - "Instances": { - "target": "com.amazonaws.ssmsap#InstanceList", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - }, - "SapInstanceNumber": { - "target": "com.amazonaws.ssmsap#SAPInstanceNumber", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Sid": { - "target": "com.amazonaws.ssmsap#SID", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Tags": { - "target": "com.amazonaws.ssmsap#TagMap", - "traits": { - "smithy.api#documentation": "

" - } - }, - "Credentials": { - "target": "com.amazonaws.ssmsap#ApplicationCredentialList", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ssmsap#RegisterApplicationOutput": { - "type": "structure", - "members": { - "Application": { - "target": "com.amazonaws.ssmsap#Application", - "traits": { - "smithy.api#documentation": "

" - } - }, - "OperationId": { - "target": "com.amazonaws.ssmsap#OperationId", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#ResourceId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 64 - } - } - }, - "com.amazonaws.ssmsap#ResourceNotFoundException": { - "type": "structure", - "members": { - "Message": { - "target": "smithy.api#String" - } - }, - "traits": { - "smithy.api#documentation": "

", - "smithy.api#error": "client", - "smithy.api#httpError": 404 - } - }, - "com.amazonaws.ssmsap#ResourceType": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 64 - } - } - }, - "com.amazonaws.ssmsap#SAPInstanceNumber": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[0-9]{2}$" - } - }, - "com.amazonaws.ssmsap#SID": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[A-Z][A-Z0-9]{2}$" - } - }, - "com.amazonaws.ssmsap#SecretId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.ssmsap#SsmSap": { - "type": "service", - "version": "2018-05-10", - "operations": [ - { - "target": "com.amazonaws.ssmsap#DeleteResourcePermission" - }, - { - "target": "com.amazonaws.ssmsap#DeregisterApplication" - }, - { - "target": "com.amazonaws.ssmsap#GetApplication" - }, - { - "target": "com.amazonaws.ssmsap#GetComponent" - }, - { - "target": "com.amazonaws.ssmsap#GetDatabase" - }, - { - "target": "com.amazonaws.ssmsap#GetOperation" - }, - { - "target": "com.amazonaws.ssmsap#GetResourcePermission" - }, - { - "target": "com.amazonaws.ssmsap#ListApplications" - }, - { - "target": "com.amazonaws.ssmsap#ListComponents" - }, - { - "target": "com.amazonaws.ssmsap#ListDatabases" - }, - { - "target": "com.amazonaws.ssmsap#ListTagsForResource" - }, - { - "target": "com.amazonaws.ssmsap#PutResourcePermission" - }, - { - "target": "com.amazonaws.ssmsap#RegisterApplication" - }, - { - "target": "com.amazonaws.ssmsap#TagResource" - }, - { - "target": "com.amazonaws.ssmsap#UntagResource" - }, - { - "target": "com.amazonaws.ssmsap#UpdateApplicationSettings" - } - ], - "traits": { - "aws.api#service": { - "sdkId": "SsmSap", - "arnNamespace": "ssm-sap", - "cloudTrailEventSource": "ssm-sap.amazonaws.com", - "endpointPrefix": "ssm-sap" - }, - "aws.auth#sigv4": { - "name": "ssm-sap" - }, - "aws.protocols#restJson1": {}, - "smithy.api#cors": { - "additionalAllowedHeaders": [ - "content-type", - "x-amz-date", - "authorization", - "x-api-key", - "x-amz-security-token", - "x-amz-content-sha256", - "x-amz-user-agent" - ], - "origin": "*" - }, - "smithy.api#documentation": "

", - "smithy.api#title": "AWS Systems Manager for SAP", - "smithy.rules#endpointRuleSet": { - "version": "1.0", - "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" - }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "Boolean" - }, - "UseFIPS": { - "builtIn": "AWS::UseFIPS", - "required": true, - "default": false, - "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - "type": "Boolean" - }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "String" - } - }, - "rules": [ - { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - }, - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://ssm-sap-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://ssm-sap-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://ssm-sap.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } - ] - }, - { - "conditions": [], - "endpoint": { - "url": "https://ssm-sap.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] - }, - "smithy.rules#endpointTests": { - "testCases": [ - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap.us-gov-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-iso-east-1" - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-iso-east-1" - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-iso-east-1" - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-iso-east-1" - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap-fips.us-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-east-1" - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-east-1" - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap.us-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-east-1" - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap.us-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-east-1" - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-isob-east-1" - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap-fips.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-isob-east-1" - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-isob-east-1" - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://ssm-sap.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-isob-east-1" - } - }, - { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-east-1", - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", - "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-east-1", - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", - "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-east-1", - "Endpoint": "https://example.com" - } - } - ], - "version": "1.0" - } - } - }, - "com.amazonaws.ssmsap#SsmSapArn": { - "type": "string", - "traits": { - "smithy.api#pattern": "^arn:(.+:){2,4}.+$|^arn:(.+:){1,3}.+\\/.+$" - } - }, - "com.amazonaws.ssmsap#TagKey": { - "type": "string", - "traits": { - "smithy.api#pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$" - } - }, - "com.amazonaws.ssmsap#TagKeyList": { - "type": "list", - "member": { - "target": "com.amazonaws.ssmsap#TagKey" - } - }, - "com.amazonaws.ssmsap#TagMap": { - "type": "map", - "key": { - "target": "com.amazonaws.ssmsap#TagKey" - }, - "value": { - "target": "com.amazonaws.ssmsap#TagValue" - } - }, - "com.amazonaws.ssmsap#TagResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#TagResourceRequest" - }, - "output": { - "target": "com.amazonaws.ssmsap#TagResourceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#ConflictException" - }, - { - "target": "com.amazonaws.ssmsap#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "method": "POST", - "uri": "/tags/{resourceArn}" - } - } - }, - "com.amazonaws.ssmsap#TagResourceRequest": { - "type": "structure", - "members": { - "resourceArn": { - "target": "com.amazonaws.ssmsap#SsmSapArn", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "tags": { - "target": "com.amazonaws.ssmsap#TagMap", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ssmsap#TagResourceResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.ssmsap#TagValue": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 - } - } - }, - "com.amazonaws.ssmsap#UntagResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#UntagResourceRequest" - }, - "output": { - "target": "com.amazonaws.ssmsap#UntagResourceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#ConflictException" - }, - { - "target": "com.amazonaws.ssmsap#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "method": "DELETE", - "uri": "/tags/{resourceArn}" - }, - "smithy.api#idempotent": {} - } - }, - "com.amazonaws.ssmsap#UntagResourceRequest": { - "type": "structure", - "members": { - "resourceArn": { - "target": "com.amazonaws.ssmsap#SsmSapArn", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "tagKeys": { - "target": "com.amazonaws.ssmsap#TagKeyList", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#httpQuery": "tagKeys", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ssmsap#UntagResourceResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.ssmsap#UpdateApplicationSettings": { - "type": "operation", - "input": { - "target": "com.amazonaws.ssmsap#UpdateApplicationSettingsInput" - }, - "output": { - "target": "com.amazonaws.ssmsap#UpdateApplicationSettingsOutput" - }, - "errors": [ - { - "target": "com.amazonaws.ssmsap#InternalServerException" - }, - { - "target": "com.amazonaws.ssmsap#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.ssmsap#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

", - "smithy.api#http": { - "code": 200, - "method": "POST", - "uri": "/update-application-settings" - } - } - }, - "com.amazonaws.ssmsap#UpdateApplicationSettingsInput": { - "type": "structure", - "members": { - "ApplicationId": { - "target": "com.amazonaws.ssmsap#ApplicationId", - "traits": { - "smithy.api#documentation": "

", - "smithy.api#required": {} - } - }, - "CredentialsToAddOrUpdate": { - "target": "com.amazonaws.ssmsap#ApplicationCredentialList", - "traits": { - "smithy.api#documentation": "

" - } - }, - "CredentialsToRemove": { - "target": "com.amazonaws.ssmsap#ApplicationCredentialList", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#UpdateApplicationSettingsOutput": { - "type": "structure", - "members": { - "Message": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

" - } - }, - "OperationIds": { - "target": "com.amazonaws.ssmsap#OperationIdList", - "traits": { - "smithy.api#documentation": "

" - } - } - } - }, - "com.amazonaws.ssmsap#ValidationException": { - "type": "structure", - "members": { - "Message": { - "target": "smithy.api#String" - } - }, - "traits": { - "smithy.api#documentation": "

", - "smithy.api#error": "client", - "smithy.api#httpError": 400 - } - } - } -} \ No newline at end of file diff --git a/service/ssmsap/CHANGELOG.md b/service/ssmsap/CHANGELOG.md deleted file mode 100644 index 3f0bf769e6c..00000000000 --- a/service/ssmsap/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -# v1.0.0 (2022-11-15) - -* **Release**: New AWS service client module -* **Feature**: AWS Systems Manager for SAP provides simplified operations and management of SAP applications such as SAP HANA. With this release, SAP customers and partners can automate and simplify their SAP system administration tasks such as backup/restore of SAP HANA. - diff --git a/service/ssmsap/api_client.go b/service/ssmsap/api_client.go index 2a7c5ccb419..9bfe6546e98 100644 --- a/service/ssmsap/api_client.go +++ b/service/ssmsap/api_client.go @@ -21,7 +21,7 @@ import ( "time" ) -const ServiceID = "SsmSap" +const ServiceID = "Ssm Sap" const ServiceAPIVersion = "2018-05-10" // Client provides the API client to make operations call for AWS Systems Manager diff --git a/service/ssmsap/api_op_DeleteResourcePermission.go b/service/ssmsap/api_op_DeleteResourcePermission.go index 4921f41c024..e0edd738446 100644 --- a/service/ssmsap/api_op_DeleteResourcePermission.go +++ b/service/ssmsap/api_op_DeleteResourcePermission.go @@ -11,6 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Removes permissions associated with the target database. func (c *Client) DeleteResourcePermission(ctx context.Context, params *DeleteResourcePermissionInput, optFns ...func(*Options)) (*DeleteResourcePermissionOutput, error) { if params == nil { params = &DeleteResourcePermissionInput{} diff --git a/service/ssmsap/api_op_DeregisterApplication.go b/service/ssmsap/api_op_DeregisterApplication.go index 2c89b8ab566..e719d25b78e 100644 --- a/service/ssmsap/api_op_DeregisterApplication.go +++ b/service/ssmsap/api_op_DeregisterApplication.go @@ -10,6 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Deregister an SAP application with AWS Systems Manager for SAP. This action does +// not affect the existing setup of your SAP workloads on Amazon EC2. func (c *Client) DeregisterApplication(ctx context.Context, params *DeregisterApplicationInput, optFns ...func(*Options)) (*DeregisterApplicationOutput, error) { if params == nil { params = &DeregisterApplicationInput{} diff --git a/service/ssmsap/api_op_GetApplication.go b/service/ssmsap/api_op_GetApplication.go index 56b13f10843..e1aa2ddc545 100644 --- a/service/ssmsap/api_op_GetApplication.go +++ b/service/ssmsap/api_op_GetApplication.go @@ -11,6 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Gets an application registered with AWS Systems Manager for SAP. It also returns +// the components of the application. func (c *Client) GetApplication(ctx context.Context, params *GetApplicationInput, optFns ...func(*Options)) (*GetApplicationOutput, error) { if params == nil { params = &GetApplicationInput{} diff --git a/service/ssmsap/api_op_GetComponent.go b/service/ssmsap/api_op_GetComponent.go index 3c8b1716b1d..e566a0ea651 100644 --- a/service/ssmsap/api_op_GetComponent.go +++ b/service/ssmsap/api_op_GetComponent.go @@ -11,6 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Gets the component of an application registered with AWS Systems Manager for +// SAP. func (c *Client) GetComponent(ctx context.Context, params *GetComponentInput, optFns ...func(*Options)) (*GetComponentOutput, error) { if params == nil { params = &GetComponentInput{} diff --git a/service/ssmsap/api_op_GetDatabase.go b/service/ssmsap/api_op_GetDatabase.go index 7e4c655bc04..9a09b083106 100644 --- a/service/ssmsap/api_op_GetDatabase.go +++ b/service/ssmsap/api_op_GetDatabase.go @@ -11,6 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Gets the SAP HANA database of an application registered with AWS Systems Manager +// for SAP. func (c *Client) GetDatabase(ctx context.Context, params *GetDatabaseInput, optFns ...func(*Options)) (*GetDatabaseOutput, error) { if params == nil { params = &GetDatabaseInput{} diff --git a/service/ssmsap/api_op_GetOperation.go b/service/ssmsap/api_op_GetOperation.go index e1954d27ac9..f6bcd037649 100644 --- a/service/ssmsap/api_op_GetOperation.go +++ b/service/ssmsap/api_op_GetOperation.go @@ -11,6 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Gets the details of an operation by specifying the operation ID. func (c *Client) GetOperation(ctx context.Context, params *GetOperationInput, optFns ...func(*Options)) (*GetOperationOutput, error) { if params == nil { params = &GetOperationInput{} diff --git a/service/ssmsap/api_op_GetResourcePermission.go b/service/ssmsap/api_op_GetResourcePermission.go index 10de989cab3..087db2db043 100644 --- a/service/ssmsap/api_op_GetResourcePermission.go +++ b/service/ssmsap/api_op_GetResourcePermission.go @@ -11,6 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Gets permissions associated with the target database. func (c *Client) GetResourcePermission(ctx context.Context, params *GetResourcePermissionInput, optFns ...func(*Options)) (*GetResourcePermissionOutput, error) { if params == nil { params = &GetResourcePermissionInput{} diff --git a/service/ssmsap/api_op_ListApplications.go b/service/ssmsap/api_op_ListApplications.go index e443ea10e99..e1acb5fb2c2 100644 --- a/service/ssmsap/api_op_ListApplications.go +++ b/service/ssmsap/api_op_ListApplications.go @@ -12,6 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Lists all the applications registered with AWS Systems Manager for SAP. func (c *Client) ListApplications(ctx context.Context, params *ListApplicationsInput, optFns ...func(*Options)) (*ListApplicationsOutput, error) { if params == nil { params = &ListApplicationsInput{} diff --git a/service/ssmsap/api_op_ListComponents.go b/service/ssmsap/api_op_ListComponents.go index f5b35c74e46..43df71f98c9 100644 --- a/service/ssmsap/api_op_ListComponents.go +++ b/service/ssmsap/api_op_ListComponents.go @@ -12,6 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Lists all the components registered with AWS Systems Manager for SAP. func (c *Client) ListComponents(ctx context.Context, params *ListComponentsInput, optFns ...func(*Options)) (*ListComponentsOutput, error) { if params == nil { params = &ListComponentsInput{} diff --git a/service/ssmsap/api_op_ListDatabases.go b/service/ssmsap/api_op_ListDatabases.go index 9fa53016139..3f3c147e42e 100644 --- a/service/ssmsap/api_op_ListDatabases.go +++ b/service/ssmsap/api_op_ListDatabases.go @@ -12,6 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Lists the SAP HANA databases of an application registered with AWS Systems +// Manager for SAP. func (c *Client) ListDatabases(ctx context.Context, params *ListDatabasesInput, optFns ...func(*Options)) (*ListDatabasesOutput, error) { if params == nil { params = &ListDatabasesInput{} diff --git a/service/ssmsap/api_op_ListTagsForResource.go b/service/ssmsap/api_op_ListTagsForResource.go index ca6cfdf8db9..d6a06b43b77 100644 --- a/service/ssmsap/api_op_ListTagsForResource.go +++ b/service/ssmsap/api_op_ListTagsForResource.go @@ -10,6 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Lists all tags on an SAP HANA application and/or database registered with AWS +// Systems Manager for SAP. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} diff --git a/service/ssmsap/api_op_PutResourcePermission.go b/service/ssmsap/api_op_PutResourcePermission.go index f4e01fb4bfe..7bed03f8be4 100644 --- a/service/ssmsap/api_op_PutResourcePermission.go +++ b/service/ssmsap/api_op_PutResourcePermission.go @@ -11,6 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Adds permissions to the target database. func (c *Client) PutResourcePermission(ctx context.Context, params *PutResourcePermissionInput, optFns ...func(*Options)) (*PutResourcePermissionOutput, error) { if params == nil { params = &PutResourcePermissionInput{} diff --git a/service/ssmsap/api_op_RegisterApplication.go b/service/ssmsap/api_op_RegisterApplication.go index cec07aeb57e..8f36f2a882b 100644 --- a/service/ssmsap/api_op_RegisterApplication.go +++ b/service/ssmsap/api_op_RegisterApplication.go @@ -11,6 +11,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Register an SAP application with AWS Systems Manager for SAP. You must meet the +// following requirements before registering. The SAP application you want to +// register with AWS Systems Manager for SAP is running on Amazon EC2. AWS Systems +// Manager Agent must be setup on an Amazon EC2 instance along with the required +// IAM permissions. Amazon EC2 instance(s) must have access to the secrets created +// in AWS Secrets Manager to manage SAP applications and components. func (c *Client) RegisterApplication(ctx context.Context, params *RegisterApplicationInput, optFns ...func(*Options)) (*RegisterApplicationOutput, error) { if params == nil { params = &RegisterApplicationInput{} diff --git a/service/ssmsap/api_op_TagResource.go b/service/ssmsap/api_op_TagResource.go index 5611a2ae982..2a796246ca6 100644 --- a/service/ssmsap/api_op_TagResource.go +++ b/service/ssmsap/api_op_TagResource.go @@ -10,6 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Creates tag for a resource by specifying the ARN. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/ssmsap/api_op_UntagResource.go b/service/ssmsap/api_op_UntagResource.go index aadd8e02587..3a8372be792 100644 --- a/service/ssmsap/api_op_UntagResource.go +++ b/service/ssmsap/api_op_UntagResource.go @@ -10,6 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Delete the tags for a resource. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} @@ -32,7 +33,8 @@ type UntagResourceInput struct { // This member is required. ResourceArn *string - // + // Adds/updates or removes credentials for applications registered with AWS Systems + // Manager for SAP. // // This member is required. TagKeys []string diff --git a/service/ssmsap/doc.go b/service/ssmsap/doc.go index 7dcc6ae63de..2910161dd28 100644 --- a/service/ssmsap/doc.go +++ b/service/ssmsap/doc.go @@ -2,4 +2,8 @@ // Package ssmsap provides the API client, operations, and parameter types for AWS // Systems Manager for SAP. +// +// This API reference provides descriptions, syntax, and other details about each +// of the actions and data types for AWS Systems Manager for SAP. The topic for +// each action shows the API request parameters and responses. package ssmsap diff --git a/service/ssmsap/internal/endpoints/endpoints.go b/service/ssmsap/internal/endpoints/endpoints.go index 29c41e5425f..4025cc21d2b 100644 --- a/service/ssmsap/internal/endpoints/endpoints.go +++ b/service/ssmsap/internal/endpoints/endpoints.go @@ -62,7 +62,7 @@ func transformToSharedOptions(options Options) endpoints.Options { } } -// Resolver SsmSap endpoint resolver +// Resolver Ssm Sap endpoint resolver type Resolver struct { partitions endpoints.Partitions }