Show / Hide Table of Contents

Class ApiDestinationProps

The event API Destination properties.

Inheritance
object
ApiDestinationProps
Implements
IApiDestinationProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ApiDestinationProps : IApiDestinationProps
Syntax (vb)
Public Class ApiDestinationProps Implements IApiDestinationProps
Remarks

ExampleMetadata: infused

Examples
var connection = new Connection(this, "Connection", new ConnectionProps {
                Authorization = Authorization.ApiKey("x-api-key", SecretValue.SecretsManager("ApiSecretName")),
                Description = "Connection with API Key x-api-key"
            });

            var destination = new ApiDestination(this, "Destination", new ApiDestinationProps {
                Connection = connection,
                Endpoint = "https://example.com",
                Description = "Calling example.com with API key x-api-key"
            });

            var rule = new Rule(this, "Rule", new RuleProps {
                Schedule = Schedule.Rate(Duration.Minutes(1)),
                Targets = new [] { new ApiDestination(destination) }
            });

Synopsis

Constructors

ApiDestinationProps()

The event API Destination properties.

Properties

ApiDestinationName

The name for the API destination.

Connection

The ARN of the connection to use for the API destination.

Description

A description for the API destination.

Endpoint

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

HttpMethod

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

RateLimitPerSecond

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

Constructors

ApiDestinationProps()

The event API Destination properties.

public ApiDestinationProps()
Remarks

ExampleMetadata: infused

Examples
var connection = new Connection(this, "Connection", new ConnectionProps {
                Authorization = Authorization.ApiKey("x-api-key", SecretValue.SecretsManager("ApiSecretName")),
                Description = "Connection with API Key x-api-key"
            });

            var destination = new ApiDestination(this, "Destination", new ApiDestinationProps {
                Connection = connection,
                Endpoint = "https://example.com",
                Description = "Calling example.com with API key x-api-key"
            });

            var rule = new Rule(this, "Rule", new RuleProps {
                Schedule = Schedule.Rate(Duration.Minutes(1)),
                Targets = new [] { new ApiDestination(destination) }
            });

Properties

ApiDestinationName

The name for the API destination.

public string? ApiDestinationName { get; set; }
Property Value

string

Remarks

Default: - A unique name will be generated

Connection

The ARN of the connection to use for the API destination.

public IConnectionRef Connection { get; set; }
Property Value

IConnectionRef

Remarks

ExampleMetadata: infused

Description

A description for the API destination.

public string? Description { get; set; }
Property Value

string

Remarks

Default: - none

Endpoint

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

public string Endpoint { get; set; }
Property Value

string

Remarks

ExampleMetadata: infused

HttpMethod

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

public HttpMethod? HttpMethod { get; set; }
Property Value

HttpMethod?

Remarks

Default: HttpMethod.POST

RateLimitPerSecond

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

public double? RateLimitPerSecond { get; set; }
Property Value

double?

Remarks

Default: - Not rate limited

Implements

IApiDestinationProps
Back to top Generated by DocFX