cdk-stepfunctions-patterns
Version:
A set of Step Functions high-level patterns.
1,361 lines • 31.3 kB
JSON
{
"version": "2.0",
"metadata": {
"apiVersion": "2017-08-08",
"endpointPrefix": "connect",
"jsonVersion": "1.1",
"protocol": "rest-json",
"serviceAbbreviation": "Amazon Connect",
"serviceFullName": "Amazon Connect Service",
"serviceId": "Connect",
"signatureVersion": "v4",
"signingName": "connect",
"uid": "connect-2017-08-08"
},
"operations": {
"CreateUser": {
"http": {
"method": "PUT",
"requestUri": "/users/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"Username",
"PhoneConfig",
"SecurityProfileIds",
"RoutingProfileId",
"InstanceId"
],
"members": {
"Username": {},
"Password": {},
"IdentityInfo": {
"shape": "S4"
},
"PhoneConfig": {
"shape": "S8"
},
"DirectoryUserId": {},
"SecurityProfileIds": {
"shape": "Se"
},
"RoutingProfileId": {},
"HierarchyGroupId": {},
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"Tags": {
"shape": "Sj"
}
}
},
"output": {
"type": "structure",
"members": {
"UserId": {},
"UserArn": {}
}
}
},
"DeleteUser": {
"http": {
"method": "DELETE",
"requestUri": "/users/{InstanceId}/{UserId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId",
"UserId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"UserId": {
"location": "uri",
"locationName": "UserId"
}
}
}
},
"DescribeUser": {
"http": {
"method": "GET",
"requestUri": "/users/{InstanceId}/{UserId}"
},
"input": {
"type": "structure",
"required": [
"UserId",
"InstanceId"
],
"members": {
"UserId": {
"location": "uri",
"locationName": "UserId"
},
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
}
}
},
"output": {
"type": "structure",
"members": {
"User": {
"type": "structure",
"members": {
"Id": {},
"Arn": {},
"Username": {},
"IdentityInfo": {
"shape": "S4"
},
"PhoneConfig": {
"shape": "S8"
},
"DirectoryUserId": {},
"SecurityProfileIds": {
"shape": "Se"
},
"RoutingProfileId": {},
"HierarchyGroupId": {},
"Tags": {
"shape": "Sj"
}
}
}
}
}
},
"DescribeUserHierarchyGroup": {
"http": {
"method": "GET",
"requestUri": "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}"
},
"input": {
"type": "structure",
"required": [
"HierarchyGroupId",
"InstanceId"
],
"members": {
"HierarchyGroupId": {
"location": "uri",
"locationName": "HierarchyGroupId"
},
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
}
}
},
"output": {
"type": "structure",
"members": {
"HierarchyGroup": {
"type": "structure",
"members": {
"Id": {},
"Arn": {},
"Name": {},
"LevelId": {},
"HierarchyPath": {
"type": "structure",
"members": {
"LevelOne": {
"shape": "Sz"
},
"LevelTwo": {
"shape": "Sz"
},
"LevelThree": {
"shape": "Sz"
},
"LevelFour": {
"shape": "Sz"
},
"LevelFive": {
"shape": "Sz"
}
}
}
}
}
}
}
},
"DescribeUserHierarchyStructure": {
"http": {
"method": "GET",
"requestUri": "/user-hierarchy-structure/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
}
}
},
"output": {
"type": "structure",
"members": {
"HierarchyStructure": {
"type": "structure",
"members": {
"LevelOne": {
"shape": "S13"
},
"LevelTwo": {
"shape": "S13"
},
"LevelThree": {
"shape": "S13"
},
"LevelFour": {
"shape": "S13"
},
"LevelFive": {
"shape": "S13"
}
}
}
}
}
},
"GetContactAttributes": {
"http": {
"method": "GET",
"requestUri": "/contact/attributes/{InstanceId}/{InitialContactId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId",
"InitialContactId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"InitialContactId": {
"location": "uri",
"locationName": "InitialContactId"
}
}
},
"output": {
"type": "structure",
"members": {
"Attributes": {
"shape": "S18"
}
}
}
},
"GetCurrentMetricData": {
"http": {
"requestUri": "/metrics/current/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId",
"Filters",
"CurrentMetrics"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"Filters": {
"shape": "S1c"
},
"Groupings": {
"shape": "S1h"
},
"CurrentMetrics": {
"type": "list",
"member": {
"shape": "S1k"
}
},
"NextToken": {},
"MaxResults": {
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"NextToken": {},
"MetricResults": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Dimensions": {
"shape": "S1s"
},
"Collections": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Metric": {
"shape": "S1k"
},
"Value": {
"type": "double"
}
}
}
}
}
}
},
"DataSnapshotTime": {
"type": "timestamp"
}
}
}
},
"GetFederationToken": {
"http": {
"method": "GET",
"requestUri": "/user/federate/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
}
}
},
"output": {
"type": "structure",
"members": {
"Credentials": {
"type": "structure",
"members": {
"AccessToken": {
"shape": "S21"
},
"AccessTokenExpiration": {
"type": "timestamp"
},
"RefreshToken": {
"shape": "S21"
},
"RefreshTokenExpiration": {
"type": "timestamp"
}
}
}
}
}
},
"GetMetricData": {
"http": {
"requestUri": "/metrics/historical/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId",
"StartTime",
"EndTime",
"Filters",
"HistoricalMetrics"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"StartTime": {
"type": "timestamp"
},
"EndTime": {
"type": "timestamp"
},
"Filters": {
"shape": "S1c"
},
"Groupings": {
"shape": "S1h"
},
"HistoricalMetrics": {
"type": "list",
"member": {
"shape": "S24"
}
},
"NextToken": {},
"MaxResults": {
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"NextToken": {},
"MetricResults": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Dimensions": {
"shape": "S1s"
},
"Collections": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Metric": {
"shape": "S24"
},
"Value": {
"type": "double"
}
}
}
}
}
}
}
}
}
},
"ListContactFlows": {
"http": {
"method": "GET",
"requestUri": "/contact-flows-summary/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"ContactFlowTypes": {
"location": "querystring",
"locationName": "contactFlowTypes",
"type": "list",
"member": {}
},
"NextToken": {
"location": "querystring",
"locationName": "nextToken"
},
"MaxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"ContactFlowSummaryList": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Id": {},
"Arn": {},
"Name": {},
"ContactFlowType": {}
}
}
},
"NextToken": {}
}
}
},
"ListHoursOfOperations": {
"http": {
"method": "GET",
"requestUri": "/hours-of-operations-summary/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"NextToken": {
"location": "querystring",
"locationName": "nextToken"
},
"MaxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"HoursOfOperationSummaryList": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Id": {},
"Arn": {},
"Name": {}
}
}
},
"NextToken": {}
}
}
},
"ListPhoneNumbers": {
"http": {
"method": "GET",
"requestUri": "/phone-numbers-summary/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"PhoneNumberTypes": {
"location": "querystring",
"locationName": "phoneNumberTypes",
"type": "list",
"member": {}
},
"PhoneNumberCountryCodes": {
"location": "querystring",
"locationName": "phoneNumberCountryCodes",
"type": "list",
"member": {}
},
"NextToken": {
"location": "querystring",
"locationName": "nextToken"
},
"MaxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"PhoneNumberSummaryList": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Id": {},
"Arn": {},
"PhoneNumber": {},
"PhoneNumberType": {},
"PhoneNumberCountryCode": {}
}
}
},
"NextToken": {}
}
}
},
"ListQueues": {
"http": {
"method": "GET",
"requestUri": "/queues-summary/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"QueueTypes": {
"location": "querystring",
"locationName": "queueTypes",
"type": "list",
"member": {}
},
"NextToken": {
"location": "querystring",
"locationName": "nextToken"
},
"MaxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"QueueSummaryList": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Id": {},
"Arn": {},
"Name": {},
"QueueType": {}
}
}
},
"NextToken": {}
}
}
},
"ListRoutingProfiles": {
"http": {
"method": "GET",
"requestUri": "/routing-profiles-summary/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"NextToken": {
"location": "querystring",
"locationName": "nextToken"
},
"MaxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"RoutingProfileSummaryList": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Id": {},
"Arn": {},
"Name": {}
}
}
},
"NextToken": {}
}
}
},
"ListSecurityProfiles": {
"http": {
"method": "GET",
"requestUri": "/security-profiles-summary/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"NextToken": {
"location": "querystring",
"locationName": "nextToken"
},
"MaxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"SecurityProfileSummaryList": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Id": {},
"Arn": {},
"Name": {}
}
}
},
"NextToken": {}
}
}
},
"ListTagsForResource": {
"http": {
"method": "GET",
"requestUri": "/tags/{resourceArn}"
},
"input": {
"type": "structure",
"required": [
"resourceArn"
],
"members": {
"resourceArn": {
"location": "uri",
"locationName": "resourceArn"
}
}
},
"output": {
"type": "structure",
"members": {
"tags": {
"shape": "Sj"
}
}
}
},
"ListUserHierarchyGroups": {
"http": {
"method": "GET",
"requestUri": "/user-hierarchy-groups-summary/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"NextToken": {
"location": "querystring",
"locationName": "nextToken"
},
"MaxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"UserHierarchyGroupSummaryList": {
"type": "list",
"member": {
"shape": "Sz"
}
},
"NextToken": {}
}
}
},
"ListUsers": {
"http": {
"method": "GET",
"requestUri": "/users-summary/{InstanceId}"
},
"input": {
"type": "structure",
"required": [
"InstanceId"
],
"members": {
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
},
"NextToken": {
"location": "querystring",
"locationName": "nextToken"
},
"MaxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"UserSummaryList": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Id": {},
"Arn": {},
"Username": {}
}
}
},
"NextToken": {}
}
}
},
"ResumeContactRecording": {
"http": {
"requestUri": "/contact/resume-recording"
},
"input": {
"type": "structure",
"required": [
"InstanceId",
"ContactId",
"InitialContactId"
],
"members": {
"InstanceId": {},
"ContactId": {},
"InitialContactId": {}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"StartChatContact": {
"http": {
"method": "PUT",
"requestUri": "/contact/chat"
},
"input": {
"type": "structure",
"required": [
"InstanceId",
"ContactFlowId",
"ParticipantDetails"
],
"members": {
"InstanceId": {},
"ContactFlowId": {},
"Attributes": {
"shape": "S18"
},
"ParticipantDetails": {
"type": "structure",
"required": [
"DisplayName"
],
"members": {
"DisplayName": {}
}
},
"InitialMessage": {
"type": "structure",
"required": [
"ContentType",
"Content"
],
"members": {
"ContentType": {},
"Content": {}
}
},
"ClientToken": {
"idempotencyToken": true
}
}
},
"output": {
"type": "structure",
"members": {
"ContactId": {},
"ParticipantId": {},
"ParticipantToken": {}
}
}
},
"StartContactRecording": {
"http": {
"requestUri": "/contact/start-recording"
},
"input": {
"type": "structure",
"required": [
"InstanceId",
"ContactId",
"InitialContactId",
"VoiceRecordingConfiguration"
],
"members": {
"InstanceId": {},
"ContactId": {},
"InitialContactId": {},
"VoiceRecordingConfiguration": {
"type": "structure",
"members": {
"VoiceRecordingTrack": {}
}
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"StartOutboundVoiceContact": {
"http": {
"method": "PUT",
"requestUri": "/contact/outbound-voice"
},
"input": {
"type": "structure",
"required": [
"DestinationPhoneNumber",
"ContactFlowId",
"InstanceId"
],
"members": {
"DestinationPhoneNumber": {},
"ContactFlowId": {},
"InstanceId": {},
"ClientToken": {
"idempotencyToken": true
},
"SourcePhoneNumber": {},
"QueueId": {},
"Attributes": {
"shape": "S18"
}
}
},
"output": {
"type": "structure",
"members": {
"ContactId": {}
}
}
},
"StopContact": {
"http": {
"requestUri": "/contact/stop"
},
"input": {
"type": "structure",
"required": [
"ContactId",
"InstanceId"
],
"members": {
"ContactId": {},
"InstanceId": {}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"StopContactRecording": {
"http": {
"requestUri": "/contact/stop-recording"
},
"input": {
"type": "structure",
"required": [
"InstanceId",
"ContactId",
"InitialContactId"
],
"members": {
"InstanceId": {},
"ContactId": {},
"InitialContactId": {}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"SuspendContactRecording": {
"http": {
"requestUri": "/contact/suspend-recording"
},
"input": {
"type": "structure",
"required": [
"InstanceId",
"ContactId",
"InitialContactId"
],
"members": {
"InstanceId": {},
"ContactId": {},
"InitialContactId": {}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"TagResource": {
"http": {
"requestUri": "/tags/{resourceArn}"
},
"input": {
"type": "structure",
"required": [
"resourceArn",
"tags"
],
"members": {
"resourceArn": {
"location": "uri",
"locationName": "resourceArn"
},
"tags": {
"shape": "Sj"
}
}
}
},
"UntagResource": {
"http": {
"method": "DELETE",
"requestUri": "/tags/{resourceArn}"
},
"input": {
"type": "structure",
"required": [
"resourceArn",
"tagKeys"
],
"members": {
"resourceArn": {
"location": "uri",
"locationName": "resourceArn"
},
"tagKeys": {
"location": "querystring",
"locationName": "tagKeys",
"type": "list",
"member": {}
}
}
}
},
"UpdateContactAttributes": {
"http": {
"requestUri": "/contact/attributes"
},
"input": {
"type": "structure",
"required": [
"InitialContactId",
"InstanceId",
"Attributes"
],
"members": {
"InitialContactId": {},
"InstanceId": {},
"Attributes": {
"shape": "S18"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"UpdateUserHierarchy": {
"http": {
"requestUri": "/users/{InstanceId}/{UserId}/hierarchy"
},
"input": {
"type": "structure",
"required": [
"UserId",
"InstanceId"
],
"members": {
"HierarchyGroupId": {},
"UserId": {
"location": "uri",
"locationName": "UserId"
},
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
}
}
}
},
"UpdateUserIdentityInfo": {
"http": {
"requestUri": "/users/{InstanceId}/{UserId}/identity-info"
},
"input": {
"type": "structure",
"required": [
"IdentityInfo",
"UserId",
"InstanceId"
],
"members": {
"IdentityInfo": {
"shape": "S4"
},
"UserId": {
"location": "uri",
"locationName": "UserId"
},
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
}
}
}
},
"UpdateUserPhoneConfig": {
"http": {
"requestUri": "/users/{InstanceId}/{UserId}/phone-config"
},
"input": {
"type": "structure",
"required": [
"PhoneConfig",
"UserId",
"InstanceId"
],
"members": {
"PhoneConfig": {
"shape": "S8"
},
"UserId": {
"location": "uri",
"locationName": "UserId"
},
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
}
}
}
},
"UpdateUserRoutingProfile": {
"http": {
"requestUri": "/users/{InstanceId}/{UserId}/routing-profile"
},
"input": {
"type": "structure",
"required": [
"RoutingProfileId",
"UserId",
"InstanceId"
],
"members": {
"RoutingProfileId": {},
"UserId": {
"location": "uri",
"locationName": "UserId"
},
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
}
}
}
},
"UpdateUserSecurityProfiles": {
"http": {
"requestUri": "/users/{InstanceId}/{UserId}/security-profiles"
},
"input": {
"type": "structure",
"required": [
"SecurityProfileIds",
"UserId",
"InstanceId"
],
"members": {
"SecurityProfileIds": {
"shape": "Se"
},
"UserId": {
"location": "uri",
"locationName": "UserId"
},
"InstanceId": {
"location": "uri",
"locationName": "InstanceId"
}
}
}
}
},
"shapes": {
"S4": {
"type": "structure",
"members": {
"FirstName": {},
"LastName": {},
"Email": {}
}
},
"S8": {
"type": "structure",
"required": [
"PhoneType"
],
"members": {
"PhoneType": {},
"AutoAccept": {
"type": "boolean"
},
"AfterContactWorkTimeLimit": {
"type": "integer"
},
"DeskPhoneNumber": {}
}
},
"Se": {
"type": "list",
"member": {}
},
"Sj": {
"type": "map",
"key": {},
"value": {}
},
"Sz": {
"type": "structure",
"members": {
"Id": {},
"Arn": {},
"Name": {}
}
},
"S13": {
"type": "structure",
"members": {
"Id": {},
"Arn": {},
"Name": {}
}
},
"S18": {
"type": "map",
"key": {},
"value": {}
},
"S1c": {
"type": "structure",
"members": {
"Queues": {
"type": "list",
"member": {}
},
"Channels": {
"type": "list",
"member": {}
}
}
},
"S1h": {
"type": "list",
"member": {}
},
"S1k": {
"type": "structure",
"members": {
"Name": {},
"Unit": {}
}
},
"S1s": {
"type": "structure",
"members": {
"Queue": {
"type": "structure",
"members": {
"Id": {},
"Arn": {}
}
},
"Channel": {}
}
},
"S21": {
"type": "string",
"sensitive": true
},
"S24": {
"type": "structure",
"members": {
"Name": {},
"Threshold": {
"type": "structure",
"members": {
"Comparison": {},
"ThresholdValue": {
"type": "double"
}
}
},
"Statistic": {},
"Unit": {}
}
}
}
}