@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.302Z") @Stability(value=Stable) public class Connection extends Resource implements IConnection
Example:
Connection connection = Connection.Builder.create(this, "Connection")
.authorization(Authorization.apiKey("x-api-key", SecretValue.secretsManager("ApiSecretName")))
.description("Connection with API Key x-api-key")
.build();
ApiDestination destination = ApiDestination.Builder.create(this, "Destination")
.connection(connection)
.endpoint("https://example.com")
.description("Calling example.com with API key x-api-key")
.build();
Rule rule = Rule.Builder.create(this, "Rule")
.schedule(Schedule.rate(Duration.minutes(1)))
.targets(List.of(new ApiDestination(destination)))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
Connection.Builder
A fluent builder for
Connection. |
software.amazon.jsii.JsiiObject.InitializationModeIConnection.Jsii$Default, IConnection.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Connection(software.constructs.Construct scope,
String id,
ConnectionProps props) |
protected |
Connection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Connection(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IConnection |
fromConnectionAttributes(software.constructs.Construct scope,
String id,
ConnectionAttributes attrs)
Import an existing connection resource.
|
static IConnection |
fromEventBusArn(software.constructs.Construct scope,
String id,
String connectionArn,
String connectionSecretArn)
Import an existing connection resource.
|
String |
getConnectionArn()
The ARN of the connection created.
|
String |
getConnectionName()
The Name for the connection.
|
String |
getConnectionSecretArn()
The ARN for the secret created for the connection.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected Connection(software.amazon.jsii.JsiiObjectRef objRef)
protected Connection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Connection(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ConnectionProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IConnection fromConnectionAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ConnectionAttributes attrs)
scope - Parent construct. This parameter is required.id - Construct ID. This parameter is required.attrs - Imported connection properties. This parameter is required.@Stability(value=Stable) @NotNull public static IConnection fromEventBusArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String connectionArn, @NotNull String connectionSecretArn)
scope - Parent construct. This parameter is required.id - Construct ID. This parameter is required.connectionArn - ARN of imported connection. This parameter is required.connectionSecretArn - This parameter is required.@Stability(value=Stable) @NotNull public String getConnectionArn()
getConnectionArn in interface IConnection@Stability(value=Stable) @NotNull public String getConnectionName()
getConnectionName in interface IConnection@Stability(value=Stable) @NotNull public String getConnectionSecretArn()
getConnectionSecretArn in interface IConnectionCopyright © 2022. All rights reserved.