• 沒有找到結果。

Amazon EventBridge

N/A
N/A
Protected

Academic year: 2022

Share "Amazon EventBridge"

Copied!
262
0
0

加載中.... (立即查看全文)

全文

(1)

Amazon EventBridge

API Reference

API Version 2015-10-07

(2)

Amazon EventBridge: API Reference

Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.

Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.

(3)

Table of Contents

Amazon EventBridge API Reference ... 1

Actions ... 2

ActivateEventSource ... 4

Request Syntax ... 4

Request Parameters ... 4

Response Elements ... 4

Errors ... 4

See Also ... 5

CancelReplay ... 6

Request Syntax ... 6

Request Parameters ... 6

Response Syntax ... 6

Response Elements ... 6

Errors ... 7

See Also ... 7

CreateApiDestination ... 9

Request Syntax ... 9

Request Parameters ... 9

Response Syntax ... 10

Response Elements ... 10

Errors ... 11

See Also ... 11

CreateArchive ... 12

Request Syntax ... 12

Request Parameters ... 12

Response Syntax ... 13

Response Elements ... 13

Errors ... 14

See Also ... 14

CreateConnection ... 15

Request Syntax ... 15

Request Parameters ... 16

Response Syntax ... 17

Response Elements ... 17

Errors ... 17

See Also ... 18

CreateEventBus ... 19

Request Syntax ... 19

Request Parameters ... 19

Response Syntax ... 20

Response Elements ... 20

Errors ... 20

See Also ... 21

CreatePartnerEventSource ... 22

Request Syntax ... 22

Request Parameters ... 22

Response Syntax ... 23

Response Elements ... 23

Errors ... 23

See Also ... 24

DeactivateEventSource ... 25

Request Syntax ... 25

Request Parameters ... 25

Response Elements ... 25

(4)

Errors ... 25

See Also ... 26

DeauthorizeConnection ... 27

Request Syntax ... 27

Request Parameters ... 27

Response Syntax ... 27

Response Elements ... 27

Errors ... 28

See Also ... 28

DeleteApiDestination ... 30

Request Syntax ... 30

Request Parameters ... 30

Response Elements ... 30

Errors ... 30

See Also ... 31

DeleteArchive ... 32

Request Syntax ... 32

Request Parameters ... 32

Response Elements ... 32

Errors ... 32

See Also ... 33

DeleteConnection ... 34

Request Syntax ... 34

Request Parameters ... 34

Response Syntax ... 34

Response Elements ... 34

Errors ... 35

See Also ... 35

DeleteEventBus ... 37

Request Syntax ... 37

Request Parameters ... 37

Response Elements ... 37

Errors ... 37

See Also ... 37

DeletePartnerEventSource ... 39

Request Syntax ... 39

Request Parameters ... 39

Response Elements ... 39

Errors ... 39

See Also ... 40

DeleteRule ... 41

Request Syntax ... 41

Request Parameters ... 41

Response Elements ... 42

Errors ... 42

Examples ... 42

See Also ... 43

DescribeApiDestination ... 44

Request Syntax ... 44

Request Parameters ... 44

Response Syntax ... 44

Response Elements ... 44

Errors ... 46

See Also ... 46

DescribeArchive ... 47

Request Syntax ... 47

Request Parameters ... 47

(5)

Response Syntax ... 47

Response Elements ... 47

Errors ... 49

See Also ... 49

DescribeConnection ... 50

Request Syntax ... 50

Request Parameters ... 50

Response Syntax ... 50

Response Elements ... 51

Errors ... 53

See Also ... 53

DescribeEventBus ... 54

Request Syntax ... 54

Request Parameters ... 54

Response Syntax ... 54

Response Elements ... 54

Errors ... 55

Examples ... 55

See Also ... 56

DescribeEventSource ... 57

Request Syntax ... 57

Request Parameters ... 57

Response Syntax ... 57

Response Elements ... 57

Errors ... 58

See Also ... 58

DescribePartnerEventSource ... 60

Request Syntax ... 60

Request Parameters ... 60

Response Syntax ... 60

Response Elements ... 60

Errors ... 61

See Also ... 61

DescribeReplay ... 62

Request Syntax ... 62

Request Parameters ... 62

Response Syntax ... 62

Response Elements ... 63

Errors ... 64

See Also ... 64

DescribeRule ... 66

Request Syntax ... 66

Request Parameters ... 66

Response Syntax ... 66

Response Elements ... 67

Errors ... 68

Examples ... 68

See Also ... 69

DisableRule ... 70

Request Syntax ... 70

Request Parameters ... 70

Response Elements ... 70

Errors ... 70

Examples ... 71

See Also ... 72

EnableRule ... 73

Request Syntax ... 73

(6)

Request Parameters ... 73

Response Elements ... 73

Errors ... 73

Examples ... 74

See Also ... 75

ListApiDestinations ... 76

Request Syntax ... 76

Request Parameters ... 76

Response Syntax ... 77

Response Elements ... 77

Errors ... 77

See Also ... 77

ListArchives ... 79

Request Syntax ... 79

Request Parameters ... 79

Response Syntax ... 80

Response Elements ... 80

Errors ... 80

See Also ... 81

ListConnections ... 82

Request Syntax ... 82

Request Parameters ... 82

Response Syntax ... 83

Response Elements ... 83

Errors ... 83

See Also ... 83

ListEventBuses ... 85

Request Syntax ... 85

Request Parameters ... 85

Response Syntax ... 85

Response Elements ... 86

Errors ... 86

See Also ... 86

ListEventSources ... 87

Request Syntax ... 87

Request Parameters ... 87

Response Syntax ... 87

Response Elements ... 88

Errors ... 88

See Also ... 88

ListPartnerEventSourceAccounts ... 90

Request Syntax ... 90

Request Parameters ... 90

Response Syntax ... 90

Response Elements ... 91

Errors ... 91

See Also ... 91

ListPartnerEventSources ... 93

Request Syntax ... 93

Request Parameters ... 93

Response Syntax ... 93

Response Elements ... 94

Errors ... 94

See Also ... 94

ListReplays ... 96

Request Syntax ... 96

Request Parameters ... 96

(7)

Response Syntax ... 97

Response Elements ... 97

Errors ... 97

See Also ... 98

ListRuleNamesByTarget ... 99

Request Syntax ... 99

Request Parameters ... 99

Response Syntax ... 100

Response Elements ... 100

Errors ... 100

Examples ... 100

See Also ... 101

ListRules ... 102

Request Syntax ... 102

Request Parameters ... 102

Response Syntax ... 103

Response Elements ... 103

Errors ... 103

Examples ... 104

See Also ... 104

ListTagsForResource ... 106

Request Syntax ... 106

Request Parameters ... 106

Response Syntax ... 106

Response Elements ... 106

Errors ... 106

Examples ... 107

See Also ... 107

ListTargetsByRule ... 109

Request Syntax ... 109

Request Parameters ... 109

Response Syntax ... 110

Response Elements ... 111

Errors ... 112

Examples ... 112

See Also ... 113

PutEvents ... 114

Request Syntax ... 114

Request Parameters ... 114

Response Syntax ... 114

Response Elements ... 114

Errors ... 115

Examples ... 115

See Also ... 116

PutPartnerEvents ... 117

Request Syntax ... 117

Request Parameters ... 117

Response Syntax ... 117

Response Elements ... 117

Errors ... 118

See Also ... 118

PutPermission ... 119

Request Syntax ... 119

Request Parameters ... 119

Response Elements ... 121

Errors ... 121

Examples ... 121

(8)

See Also ... 122

PutRule ... 123

Request Syntax ... 123

Request Parameters ... 124

Response Syntax ... 125

Response Elements ... 125

Errors ... 125

Examples ... 126

See Also ... 127

PutTargets ... 128

Request Syntax ... 129

Request Parameters ... 131

Response Syntax ... 132

Response Elements ... 132

Errors ... 132

Examples ... 133

See Also ... 140

RemovePermission ... 141

Request Syntax ... 141

Request Parameters ... 141

Response Elements ... 141

Errors ... 142

See Also ... 142

RemoveTargets ... 143

Request Syntax ... 143

Request Parameters ... 143

Response Syntax ... 144

Response Elements ... 144

Errors ... 144

Examples ... 145

See Also ... 146

StartReplay ... 147

Request Syntax ... 147

Request Parameters ... 147

Response Syntax ... 148

Response Elements ... 148

Errors ... 149

See Also ... 149

TagResource ... 151

Request Syntax ... 151

Request Parameters ... 151

Response Elements ... 151

Errors ... 152

Examples ... 152

See Also ... 153

TestEventPattern ... 154

Request Syntax ... 154

Request Parameters ... 154

Response Syntax ... 154

Response Elements ... 155

Errors ... 155

Examples ... 155

See Also ... 156

UntagResource ... 157

Request Syntax ... 157

Request Parameters ... 157

Response Elements ... 157

(9)

Errors ... 157

Examples ... 158

See Also ... 158

UpdateApiDestination ... 160

Request Syntax ... 160

Request Parameters ... 160

Response Syntax ... 161

Response Elements ... 161

Errors ... 162

See Also ... 162

UpdateArchive ... 163

Request Syntax ... 163

Request Parameters ... 163

Response Syntax ... 164

Response Elements ... 164

Errors ... 164

See Also ... 165

UpdateConnection ... 166

Request Syntax ... 166

Request Parameters ... 167

Response Syntax ... 168

Response Elements ... 168

Errors ... 168

See Also ... 169

Data Types ... 170

ApiDestination ... 172

Contents ... 172

See Also ... 173

Archive ... 174

Contents ... 174

See Also ... 175

AwsVpcConfiguration ... 176

Contents ... 176

See Also ... 176

BatchArrayProperties ... 177

Contents ... 177

See Also ... 177

BatchParameters ... 178

Contents ... 178

See Also ... 178

BatchRetryStrategy ... 179

Contents ... 179

See Also ... 179

CapacityProviderStrategyItem ... 180

Contents ... 180

See Also ... 180

Condition ... 181

Contents ... 181

See Also ... 181

Connection ... 182

Contents ... 182

See Also ... 183

ConnectionApiKeyAuthResponseParameters ... 184

Contents ... 184

See Also ... 184

ConnectionAuthResponseParameters ... 185

Contents ... 185

(10)

See Also ... 185

ConnectionBasicAuthResponseParameters ... 186

Contents ... 186

See Also ... 186

ConnectionBodyParameter ... 187

Contents ... 187

See Also ... 187

ConnectionHeaderParameter ... 188

Contents ... 188

See Also ... 188

ConnectionHttpParameters ... 189

Contents ... 189

See Also ... 189

ConnectionOAuthClientResponseParameters ... 190

Contents ... 190

See Also ... 190

ConnectionOAuthResponseParameters ... 191

Contents ... 191

See Also ... 191

ConnectionQueryStringParameter ... 192

Contents ... 192

See Also ... 192

CreateConnectionApiKeyAuthRequestParameters ... 193

Contents ... 193

See Also ... 193

CreateConnectionAuthRequestParameters ... 194

Contents ... 194

See Also ... 194

CreateConnectionBasicAuthRequestParameters ... 195

Contents ... 195

See Also ... 195

CreateConnectionOAuthClientRequestParameters ... 196

Contents ... 196

See Also ... 196

CreateConnectionOAuthRequestParameters ... 197

Contents ... 197

See Also ... 197

DeadLetterConfig ... 198

Contents ... 198

See Also ... 198

EcsParameters ... 199

Contents ... 199

See Also ... 201

EventBus ... 202

Contents ... 202

See Also ... 202

EventSource ... 203

Contents ... 203

See Also ... 204

HttpParameters ... 205

Contents ... 205

See Also ... 205

InputTransformer ... 207

Contents ... 207

See Also ... 208

KinesisParameters ... 209

Contents ... 209

(11)

See Also ... 209

NetworkConfiguration ... 210

Contents ... 210

See Also ... 210

PartnerEventSource ... 211

Contents ... 211

See Also ... 211

PartnerEventSourceAccount ... 212

Contents ... 212

See Also ... 212

PlacementConstraint ... 213

Contents ... 213

See Also ... 213

PlacementStrategy ... 214

Contents ... 214

See Also ... 214

PutEventsRequestEntry ... 215

Contents ... 215

See Also ... 216

PutEventsResultEntry ... 217

Contents ... 217

See Also ... 217

PutPartnerEventsRequestEntry ... 218

Contents ... 218

See Also ... 218

PutPartnerEventsResultEntry ... 220

Contents ... 220

See Also ... 220

PutTargetsResultEntry ... 221

Contents ... 221

See Also ... 221

RedshiftDataParameters ... 222

Contents ... 222

See Also ... 223

RemoveTargetsResultEntry ... 224

Contents ... 224

See Also ... 224

Replay ... 225

Contents ... 225

See Also ... 226

ReplayDestination ... 227

Contents ... 227

See Also ... 227

RetryPolicy ... 228

Contents ... 228

See Also ... 228

Rule ... 229

Contents ... 229

See Also ... 230

RunCommandParameters ... 231

Contents ... 231

See Also ... 231

RunCommandTarget ... 232

Contents ... 232

See Also ... 232

SageMakerPipelineParameter ... 233

Contents ... 233

(12)

See Also ... 233

SageMakerPipelineParameters ... 234

Contents ... 234

See Also ... 234

SqsParameters ... 235

Contents ... 235

See Also ... 235

Tag ... 236

Contents ... 236

See Also ... 236

Target ... 237

Contents ... 237

See Also ... 239

UpdateConnectionApiKeyAuthRequestParameters ... 240

Contents ... 240

See Also ... 240

UpdateConnectionAuthRequestParameters ... 241

Contents ... 241

See Also ... 241

UpdateConnectionBasicAuthRequestParameters ... 242

Contents ... 242

See Also ... 242

UpdateConnectionOAuthClientRequestParameters ... 243

Contents ... 243

See Also ... 243

UpdateConnectionOAuthRequestParameters ... 244

Contents ... 244

See Also ... 244

Making API Requests ... 245

EventBridge Endpoints ... 245

Query Parameters ... 245

Request Identifiers ... 245

Query API Authentication ... 245

Available Libraries ... 245

Common Parameters ... 247

Common Errors ... 249

(13)

Amazon EventBridge API Reference

Amazon EventBridge is a serverless event bus service that makes it easy to connect your applications with data from a variety of sources.

EventBridge was formerly known as Amazon CloudWatch Events. EventBridge expands on the capabilities of CloudWatch Events, adding support for processing events from software-as-a-service (SaaS) partner applications and making it easier for you to process events from your own applications.

EventBridge starts with the same set of APIs as CloudWatch Events and adds new APIs. EventBridge also offers more functionality both in the API and on the console.

Use the following links to get started using the EventBridge API:

• Actions (p. 2): An alphabetical list of all EventBridge actions

• Data Types (p. 170): An alphabetical list of all EventBridge data types

• Common Parameters (p. 247): Parameters that all Query actions can use

• Common Errors (p. 249): Client and server errors that all actions can return

• Regions and Endpoints: Supported Regions and endpoints for all AWS products

Alternatively, you can use one of the AWS SDKs to access EventBridge using an API that is tailored to your programming language or platform.

Developers in the AWS developer community also provide their own libraries, which you can find at the following AWS developer centers:

• Java Developer Center

• JavaScript Developer Center

• AWS Mobile Services

• PHP Developer Center

• Python Developer Center

• Ruby Developer Center

• Windows and .NET Developer Center

(14)

Actions

The following actions are supported:

• ActivateEventSource (p. 4)

• CancelReplay (p. 6)

• CreateApiDestination (p. 9)

• CreateArchive (p. 12)

• CreateConnection (p. 15)

• CreateEventBus (p. 19)

• CreatePartnerEventSource (p. 22)

• DeactivateEventSource (p. 25)

• DeauthorizeConnection (p. 27)

• DeleteApiDestination (p. 30)

• DeleteArchive (p. 32)

• DeleteConnection (p. 34)

• DeleteEventBus (p. 37)

• DeletePartnerEventSource (p. 39)

• DeleteRule (p. 41)

• DescribeApiDestination (p. 44)

• DescribeArchive (p. 47)

• DescribeConnection (p. 50)

• DescribeEventBus (p. 54)

• DescribeEventSource (p. 57)

• DescribePartnerEventSource (p. 60)

• DescribeReplay (p. 62)

• DescribeRule (p. 66)

• DisableRule (p. 70)

• EnableRule (p. 73)

• ListApiDestinations (p. 76)

• ListArchives (p. 79)

• ListConnections (p. 82)

• ListEventBuses (p. 85)

• ListEventSources (p. 87)

• ListPartnerEventSourceAccounts (p. 90)

• ListPartnerEventSources (p. 93)

• ListReplays (p. 96)

• ListRuleNamesByTarget (p. 99)

• ListRules (p. 102)

• ListTagsForResource (p. 106)

• ListTargetsByRule (p. 109)

• PutEvents (p. 114)

• PutPartnerEvents (p. 117)

• PutPermission (p. 119)

(15)

• PutRule (p. 123)

• PutTargets (p. 128)

• RemovePermission (p. 141)

• RemoveTargets (p. 143)

• StartReplay (p. 147)

• TagResource (p. 151)

• TestEventPattern (p. 154)

• UntagResource (p. 157)

• UpdateApiDestination (p. 160)

• UpdateArchive (p. 163)

• UpdateConnection (p. 166)

(16)

ActivateEventSource

ActivateEventSource

Activates a partner event source that has been deactivated. Once activated, your matching event bus will start receiving events from the event source.

Request Syntax

{

"Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

Name (p. 4)

The name of the partner event source to activate.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}

Required: Yes

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 InvalidStateException

The specified state is not a valid state for an event source.

HTTP Status Code: 400

(17)

See Also

OperationDisabledException

The operation you are attempting is not available in this region.

HTTP Status Code: 400 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(18)

CancelReplay

CancelReplay

Cancels the specified replay.

Request Syntax

{ "ReplayName": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

ReplayName (p. 6)

The name of the replay to cancel.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [\.\-_A-Za-z0-9]+

Required: Yes

Response Syntax

{

"ReplayArn": "string", "State": "string", "StateReason": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ReplayArn (p. 6)

The ARN of the replay to cancel.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:.+\/[\.\-_A- Za-z0-9]+$

(19)

Errors

State (p. 6)

The current state of the replay.

Type: String

Valid Values: STARTING | RUNNING | CANCELLING | COMPLETED | CANCELLED | FAILED StateReason (p. 6)

The reason that the replay is in the current state.

Type: String

Length Constraints: Maximum length of 512.

Pattern: .*

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 IllegalStatusException

An error occurred because a replay can be canceled only when the state is Running or Starting.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

(20)

See Also

• AWS SDK for Ruby V3

(21)

CreateApiDestination

CreateApiDestination

Creates an API destination, which is an HTTP invocation endpoint configured as a target for events.

Request Syntax

{

"ConnectionArn": "string", "Description": "string", "HttpMethod": "string",

"InvocationEndpoint": "string",

"InvocationRateLimitPerSecond": number, "Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

ConnectionArn (p. 9)

The ARN of the connection to use for the API destination. The destination endpoint must support the authorization type specified for the connection.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection\/

[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$

Required: Yes Description (p. 9)

A description for the API destination to create.

Type: String

Length Constraints: Maximum length of 512.

Pattern: .*

Required: No HttpMethod (p. 9)

The method to use for the request to the HTTP invocation endpoint.

Type: String

Valid Values: POST | GET | HEAD | OPTIONS | PUT | PATCH | DELETE Required: Yes

InvocationEndpoint (p. 9)

The URL to the HTTP invocation endpoint for the API destination.

(22)

Response Syntax

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: ^((%[0-9A-Fa-f]{2}|[-()_.!~*';/?:@\x26=+$,A-Za-z0-9])+)([).!';/?:,])?

$

Required: Yes

InvocationRateLimitPerSecond (p. 9)

The maximum number of requests per second to send to the HTTP invocation endpoint.

Type: Integer

Valid Range: Minimum value of 1.

Required: No Name (p. 9)

The name for the API destination to create.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [\.\-_A-Za-z0-9]+

Required: Yes

Response Syntax

{

"ApiDestinationArn": "string", "ApiDestinationState": "string", "CreationTime": number,

"LastModifiedTime": number }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ApiDestinationArn (p. 10)

The ARN of the API destination that was created by the request.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:api- destination\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$

ApiDestinationState (p. 10)

The state of the API destination that was created by the request.

(23)

Errors

Type: String

Valid Values: ACTIVE | INACTIVE CreationTime (p. 10)

A time stamp indicating the time that the API destination was created.

Type: Timestamp LastModifiedTime (p. 10)

A time stamp indicating the time that the API destination was last modified.

Type: Timestamp

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 LimitExceededException

The request failed because it attempted to create resource beyond the allowed service quota.

HTTP Status Code: 400 ResourceAlreadyExistsException

The resource you are trying to create already exists.

HTTP Status Code: 400 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(24)

CreateArchive

CreateArchive

Creates an archive of events with the specified settings. When you create an archive, incoming events might not immediately start being sent to the archive. Allow a short period of time for changes to take effect. If you do not specify a pattern to filter events sent to the archive, all events are sent to the archive except replayed events. Replayed events are not sent to an archive.

Request Syntax

{ "ArchiveName": "string", "Description": "string", "EventPattern": "string", "EventSourceArn": "string", "RetentionDays": number }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

ArchiveName (p. 12)

The name for the archive to create.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 48.

Pattern: [\.\-_A-Za-z0-9]+

Required: Yes Description (p. 12)

A description for the archive.

Type: String

Length Constraints: Maximum length of 512.

Pattern: .*

Required: No EventPattern (p. 12)

An event pattern to use to filter events sent to the archive.

Type: String Required: No EventSourceArn (p. 12)

The ARN of the event bus that sends events to the archive.

(25)

Response Syntax

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Required: Yes RetentionDays (p. 12)

The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely

Type: Integer

Valid Range: Minimum value of 0.

Required: No

Response Syntax

{ "ArchiveArn": "string", "CreationTime": number, "State": "string", "StateReason": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ArchiveArn (p. 13)

The ARN of the archive that was created.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:.+\/.+$

CreationTime (p. 13)

The time at which the archive was created.

Type: Timestamp State (p. 13)

The state of the archive that was created.

Type: String

Valid Values: ENABLED | DISABLED | CREATING | UPDATING | CREATE_FAILED | UPDATE_FAILED

StateReason (p. 13)

The reason that the archive is in the state.

Type: String

(26)

Errors

Length Constraints: Maximum length of 512.

Pattern: .*

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 InvalidEventPatternException

The event pattern is not valid.

HTTP Status Code: 400 LimitExceededException

The request failed because it attempted to create resource beyond the allowed service quota.

HTTP Status Code: 400 ResourceAlreadyExistsException

The resource you are trying to create already exists.

HTTP Status Code: 400 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(27)

CreateConnection

CreateConnection

Creates a connection. A connection defines the authorization type and credentials to use for authorization with an API destination HTTP endpoint.

Request Syntax

{ "AuthorizationType": "string", "AuthParameters": {

"ApiKeyAuthParameters": { "ApiKeyName": "string", "ApiKeyValue": "string"

},

"BasicAuthParameters": { "Password": "string", "Username": "string"

},

"InvocationHttpParameters": { "BodyParameters": [ {

"IsValueSecret": boolean, "Key": "string",

"Value": "string"

} ],

"HeaderParameters": [ {

"IsValueSecret": boolean, "Key": "string",

"Value": "string"

} ],

"QueryStringParameters": [ {

"IsValueSecret": boolean, "Key": "string",

"Value": "string"

} ] },

"OAuthParameters": {

"AuthorizationEndpoint": "string", "ClientParameters": {

"ClientID": "string", "ClientSecret": "string"

},

"HttpMethod": "string", "OAuthHttpParameters": { "BodyParameters": [ {

"IsValueSecret": boolean, "Key": "string",

"Value": "string"

} ],

"HeaderParameters": [ {

"IsValueSecret": boolean, "Key": "string",

"Value": "string"

}

(28)

Request Parameters

],

"QueryStringParameters": [ {

"IsValueSecret": boolean, "Key": "string",

"Value": "string"

} ] } } },

"Description": "string", "Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

AuthorizationType (p. 15)

The type of authorization to use for the connection.

Type: String

Valid Values: BASIC | OAUTH_CLIENT_CREDENTIALS | API_KEY Required: Yes

AuthParameters (p. 15)

A CreateConnectionAuthRequestParameters object that contains the authorization parameters to use to authorize with the endpoint.

Type: CreateConnectionAuthRequestParameters (p. 194) object Required: Yes

Description (p. 15)

A description for the connection to create.

Type: String

Length Constraints: Maximum length of 512.

Pattern: .*

Required: No Name (p. 15)

The name for the connection to create.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [\.\-_A-Za-z0-9]+

Required: Yes

(29)

Response Syntax

Response Syntax

{

"ConnectionArn": "string", "ConnectionState": "string", "CreationTime": number, "LastModifiedTime": number }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ConnectionArn (p. 17)

The ARN of the connection that was created by the request.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection\/

[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$

ConnectionState (p. 17)

The state of the connection that was created by the request.

Type: String

Valid Values: CREATING | UPDATING | DELETING | AUTHORIZED | DEAUTHORIZED | AUTHORIZING | DEAUTHORIZING

CreationTime (p. 17)

A time stamp for the time that the connection was created.

Type: Timestamp LastModifiedTime (p. 17)

A time stamp for the time that the connection was last updated.

Type: Timestamp

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 LimitExceededException

The request failed because it attempted to create resource beyond the allowed service quota.

(30)

See Also

HTTP Status Code: 400 ResourceAlreadyExistsException

The resource you are trying to create already exists.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(31)

CreateEventBus

CreateEventBus

Creates a new event bus within your account. This can be a custom event bus which you can use to receive events from your custom applications and services, or it can be a partner event bus which can be matched to a partner event source.

Request Syntax

{ "EventSourceName": "string", "Name": "string",

"Tags": [ {

"Key": "string", "Value": "string"

} ]}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

EventSourceName (p. 19)

If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}

Required: No Name (p. 19)

The name of the new event bus.

Event bus names cannot contain the / character. You can't use the name default for a custom event bus, as this name is already used for your account's default event bus.

If this is a partner event bus, the name must exactly match the name of the partner event source that this event bus is matched to.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: [/\.\-_A-Za-z0-9]+

Required: Yes Tags (p. 19)

Tags to associate with the event bus.

(32)

Response Syntax

Type: Array of Tag (p. 236) objects Required: No

Response Syntax

{ "EventBusArn": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

EventBusArn (p. 20)

The ARN of the new event bus.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 InvalidStateException

The specified state is not a valid state for an event source.

HTTP Status Code: 400 LimitExceededException

The request failed because it attempted to create resource beyond the allowed service quota.

HTTP Status Code: 400 OperationDisabledException

The operation you are attempting is not available in this region.

HTTP Status Code: 400 ResourceAlreadyExistsException

The resource you are trying to create already exists.

(33)

See Also

HTTP Status Code: 400 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(34)

CreatePartnerEventSource

CreatePartnerEventSource

Called by an SaaS partner to create a partner event source. This operation is not used by AWS customers.

Each partner event source can be used by one AWS account to create a matching partner event bus in that AWS account. A SaaS partner must create one partner event source for each AWS account that wants to receive those event types.

A partner event source creates events based on resources within the SaaS partner's service or application.

An AWS account that creates a partner event bus that matches the partner event source can use that event bus to receive events from the partner, and then process them using AWS Events rules and targets.

Partner event source names follow this format:

partner_name/event_namespace/event_name

partner_name is determined during partner registration and identifies the partner to AWS customers.

event_namespace is determined by the partner and is a way for the partner to categorize their events.

event_name is determined by the partner, and should uniquely identify an event-generating resource within the partner system. The combination of event_namespace and event_name should help AWS customers decide whether to create an event bus to receive these events.

Request Syntax

{ "Account": "string", "Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

Account (p. 22)

The AWS account ID that is permitted to create a matching partner event bus for this partner event source.

Type: String

Length Constraints: Fixed length of 12.

Pattern: \d{12}

Required: Yes Name (p. 22)

The name of the partner event source. This name must be unique and must be in the format partner_name/event_namespace/event_name . The AWS account that wants to use this partner event source must create a partner event bus with a name that matches the name of the partner event source.

(35)

Response Syntax

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}

Required: Yes

Response Syntax

{ "EventSourceArn": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

EventSourceArn (p. 23)

The ARN of the partner event source.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 LimitExceededException

The request failed because it attempted to create resource beyond the allowed service quota.

HTTP Status Code: 400 OperationDisabledException

The operation you are attempting is not available in this region.

HTTP Status Code: 400 ResourceAlreadyExistsException

The resource you are trying to create already exists.

HTTP Status Code: 400

(36)

See Also

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(37)

DeactivateEventSource

DeactivateEventSource

You can use this operation to temporarily stop receiving events from the specified partner event source.

The matching event bus is not deleted.

When you deactivate a partner event source, the source goes into PENDING state. If it remains in PENDING state for more than two weeks, it is deleted.

To activate a deactivated partner event source, use ActivateEventSource.

Request Syntax

{

"Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

Name (p. 25)

The name of the partner event source to deactivate.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}

Required: Yes

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500

(38)

See Also

InvalidStateException

The specified state is not a valid state for an event source.

HTTP Status Code: 400 OperationDisabledException

The operation you are attempting is not available in this region.

HTTP Status Code: 400 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(39)

DeauthorizeConnection

DeauthorizeConnection

Removes all authorization parameters from the connection. This lets you remove the secret from the connection so you can reuse it without having to create a new connection.

Request Syntax

{ "Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

Name (p. 27)

The name of the connection to remove authorization from.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [\.\-_A-Za-z0-9]+

Required: Yes

Response Syntax

{

"ConnectionArn": "string", "ConnectionState": "string", "CreationTime": number, "LastAuthorizedTime": number, "LastModifiedTime": number }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ConnectionArn (p. 27)

The ARN of the connection that authorization was removed from.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

(40)

Errors

Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection\/

[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$

ConnectionState (p. 27) The state of the connection.

Type: String

Valid Values: CREATING | UPDATING | DELETING | AUTHORIZED | DEAUTHORIZED | AUTHORIZING | DEAUTHORIZING

CreationTime (p. 27)

A time stamp for the time that the connection was created.

Type: Timestamp LastAuthorizedTime (p. 27)

A time stamp for the time that the connection was last authorized.

Type: Timestamp LastModifiedTime (p. 27)

A time stamp for the time that the connection was last updated.

Type: Timestamp

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

(41)

See Also

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(42)

DeleteApiDestination

DeleteApiDestination

Deletes the specified API destination.

Request Syntax

{ "Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

Name (p. 30)

The name of the destination to delete.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [\.\-_A-Za-z0-9]+

Required: Yes

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

(43)

See Also

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(44)

DeleteArchive

DeleteArchive

Deletes the specified archive.

Request Syntax

{ "ArchiveName": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

ArchiveName (p. 32)

The name of the archive to delete.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 48.

Pattern: [\.\-_A-Za-z0-9]+

Required: Yes

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

(45)

See Also

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(46)

DeleteConnection

DeleteConnection

Deletes a connection.

Request Syntax

{

"Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

Name (p. 34)

The name of the connection to delete.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [\.\-_A-Za-z0-9]+

Required: Yes

Response Syntax

{

"ConnectionArn": "string", "ConnectionState": "string", "CreationTime": number, "LastAuthorizedTime": number, "LastModifiedTime": number }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ConnectionArn (p. 34)

The ARN of the connection that was deleted.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection\/

[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$

(47)

Errors

ConnectionState (p. 34)

The state of the connection before it was deleted.

Type: String

Valid Values: CREATING | UPDATING | DELETING | AUTHORIZED | DEAUTHORIZED | AUTHORIZING | DEAUTHORIZING

CreationTime (p. 34)

A time stamp for the time that the connection was created.

Type: Timestamp LastAuthorizedTime (p. 34)

A time stamp for the time that the connection was last authorized before it wa deleted.

Type: Timestamp LastModifiedTime (p. 34)

A time stamp for the time that the connection was last modified before it was deleted.

Type: Timestamp

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

(48)

See Also

• AWS SDK for Python

• AWS SDK for Ruby V3

(49)

DeleteEventBus

DeleteEventBus

Deletes the specified custom event bus or partner event bus. All rules associated with this event bus need to be deleted. You can't delete your account's default event bus.

Request Syntax

{

"Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

Name (p. 37)

The name of the event bus to delete.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: [/\.\-_A-Za-z0-9]+

Required: Yes

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

(50)

See Also

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(51)

DeletePartnerEventSource

DeletePartnerEventSource

This operation is used by SaaS partners to delete a partner event source. This operation is not used by AWS customers.

When you delete an event source, the status of the corresponding partner event bus in the AWS customer account becomes DELETED.

Request Syntax

{ "Account": "string", "Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

Account (p. 39)

The AWS account ID of the AWS customer that the event source was created for.

Type: String

Length Constraints: Fixed length of 12.

Pattern: \d{12}

Required: Yes Name (p. 39)

The name of the event source to delete.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}

Required: Yes

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

(52)

See Also

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 OperationDisabledException

The operation you are attempting is not available in this region.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(53)

DeleteRule

DeleteRule

Deletes the specified rule.

Before you can delete the rule, you must remove all targets, using RemoveTargets.

When you delete a rule, incoming events might continue to match to the deleted rule. Allow a short period of time for changes to take effect.

If you call delete rule multiple times for the same rule, all calls will succeed. When you call delete rule for a non-existent custom eventbus, ResourceNotFoundException is returned.

Managed rules are rules created and managed by another AWS service on your behalf. These rules are created by those other AWS services to support functionality in those services. You can delete these rules using the Force option, but you should do so only if you are sure the other service is not still using that rule.

Request Syntax

{

"EventBusName": "string", "Force": boolean,

"Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

EventBusName (p. 41)

The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus\/)?

[/\.\-_A-Za-z0-9]+

Required: No Force (p. 41)

If this is a managed rule, created by an AWS service on your behalf, you must specify Force as True to delete the rule. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response.

Type: Boolean Required: No Name (p. 41)

The name of the rule.

(54)

Response Elements

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [\.\-_A-Za-z0-9]+

Required: Yes

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

ConcurrentModificationException

There is concurrent modification on a rule, target, archive, or replay.

HTTP Status Code: 400 InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 ManagedRuleException

This rule was created by an AWS service on behalf of your account. It is managed by that service.

If you see this error in response to DeleteRule or RemoveTargets, you can use the Force

parameter in those calls to delete the rule or remove targets from the rule. You cannot modify these managed rules by using DisableRule, EnableRule, PutTargets, PutRule, TagResource, or UntagResource.

HTTP Status Code: 400 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

Examples

Deletes a rule named "test"

The following is an example of a DeleteRule request.

Sample Request

POST / HTTP/1.1

Host: events.<region>.<domain>

x-amz-Date: <Date>

Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-

type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<Signature>

User-Agent: <UserAgentString>

(55)

See Also

Content-Type: application/x-amz-json-1.1 Content-Length: <PayloadSizeBytes>

Connection: Keep-Alive

X-Amz-Target: AWSEvents.DeleteRule {

"Name": "test"

}

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: <RequestId>

Content-Type: application/x-amz-json-1.1 Content-Length: <PayloadSizeBytes>

Date: <Date>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(56)

DescribeApiDestination

DescribeApiDestination

Retrieves details about an API destination.

Request Syntax

{

"Name": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 247).

The request accepts the following data in JSON format.

Name (p. 44)

The name of the API destination to retrieve.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [\.\-_A-Za-z0-9]+

Required: Yes

Response Syntax

{ "ApiDestinationArn": "string", "ApiDestinationState": "string", "ConnectionArn": "string", "CreationTime": number, "Description": "string", "HttpMethod": "string",

"InvocationEndpoint": "string",

"InvocationRateLimitPerSecond": number, "LastModifiedTime": number,

"Name": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ApiDestinationArn (p. 44)

The ARN of the API destination retrieved.

Type: String

(57)

Response Elements

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:api- destination\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$

ApiDestinationState (p. 44)

The state of the API destination retrieved.

Type: String

Valid Values: ACTIVE | INACTIVE ConnectionArn (p. 44)

The ARN of the connection specified for the API destination retrieved.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection\/

[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$

CreationTime (p. 44)

A time stamp for the time that the API destination was created.

Type: Timestamp Description (p. 44)

The description for the API destination retrieved.

Type: String

Length Constraints: Maximum length of 512.

Pattern: .*

HttpMethod (p. 44)

The method to use to connect to the HTTP endpoint.

Type: String

Valid Values: POST | GET | HEAD | OPTIONS | PUT | PATCH | DELETE InvocationEndpoint (p. 44)

The URL to use to connect to the HTTP endpoint.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: ^((%[0-9A-Fa-f]{2}|[-()_.!~*';/?:@\x26=+$,A-Za-z0-9])+)([).!';/?:,])?

$

InvocationRateLimitPerSecond (p. 44)

The maximum number of invocations per second to specified for the API destination. Note that if you set the invocation rate maximum to a value lower the rate necessary to send all events received on to the destination HTTP endpoint, some events may not be delivered within the 24-hour retry window. If you plan to set the rate lower than the rate necessary to deliver all events, consider using a dead-letter queue to catch events that are not delivered within 24 hours.

(58)

Errors

Type: Integer

Valid Range: Minimum value of 1.

LastModifiedTime (p. 44)

A time stamp for the time that the API destination was last modified.

Type: Timestamp Name (p. 44)

The name of the API destination retrieved.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [\.\-_A-Za-z0-9]+

Errors

For information about the errors that are common to all actions, see Common Errors (p. 249).

InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500 ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

參考文獻

相關文件

vertices’ edges, in this shortest path, the left edge must be relaxed before the right edge.  One phase of improvement

Depending on the specified transfer protocol and data format, this action may return the InstanceID of an AVTransport service that the Control Point can use to control the flow of

EQUIPAMENTO SOCIAL A CARGO DO INSTITUTO DE ACÇÃO SOCIAL, Nº DE UTENTES E PESSOAL SOCIAL SERVICE FACILITIES OF SOCIAL WELFARE BUREAU, NUMBER OF USERS AND STAFF. ᑇؾ N

(3)In principle, one of the documents from either of the preceding paragraphs must be submitted, but if the performance is to take place in the next 30 days and the venue is not

Teachers may consider the school’s aims and conditions or even the language environment to select the most appropriate approach according to students’ need and ability; or develop

Now, nearly all of the current flows through wire S since it has a much lower resistance than the light bulb. The light bulb does not glow because the current flowing through it

Schools will be requested to report their use of the OITG through the ITE4 annual surveys to review the effectiveness of

Microphone and 600 ohm line conduits shall be mechanically and electrically connected to receptacle boxes and electrically grounded to the audio system ground point.. Lines in