@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.253Z") @Stability(value=Stable) public class CfnConnection extends CfnResource implements IInspectable
Creates a connection. A connection defines the authorization type and credentials to use for authorization with an API destination HTTP endpoint.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.*;
CfnConnection cfnConnection = CfnConnection.Builder.create(this, "MyCfnConnection")
.authorizationType("authorizationType")
.authParameters(AuthParametersProperty.builder()
.apiKeyAuthParameters(ApiKeyAuthParametersProperty.builder()
.apiKeyName("apiKeyName")
.apiKeyValue("apiKeyValue")
.build())
.basicAuthParameters(BasicAuthParametersProperty.builder()
.password("password")
.username("username")
.build())
.invocationHttpParameters(ConnectionHttpParametersProperty.builder()
.bodyParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.headerParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.queryStringParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.build())
.oAuthParameters(OAuthParametersProperty.builder()
.authorizationEndpoint("authorizationEndpoint")
.clientParameters(ClientParametersProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.build())
.httpMethod("httpMethod")
// the properties below are optional
.oAuthHttpParameters(ConnectionHttpParametersProperty.builder()
.bodyParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.headerParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.queryStringParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.build())
.build())
.build())
// the properties below are optional
.description("description")
.name("name")
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnConnection.ApiKeyAuthParametersProperty
Contains the API key authorization parameters for the connection.
|
static interface |
CfnConnection.AuthParametersProperty
Contains the authorization parameters to use for the connection.
|
static interface |
CfnConnection.BasicAuthParametersProperty
Contains the Basic authorization parameters for the connection.
|
static class |
CfnConnection.Builder
A fluent builder for
CfnConnection. |
static interface |
CfnConnection.ClientParametersProperty
Contains the OAuth authorization parameters to use for the connection.
|
static interface |
CfnConnection.ConnectionHttpParametersProperty
Contains additional parameters for the connection.
|
static interface |
CfnConnection.OAuthParametersProperty
Contains the OAuth authorization parameters to use for the connection.
|
static interface |
CfnConnection.ParameterProperty
Additional query string parameter for the connection.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnConnection(software.constructs.Construct scope,
String id,
CfnConnectionProps props)
Create a new `AWS::Events::Connection`.
|
protected |
CfnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnConnection(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The ARN of the connection that was created by the request.
|
String |
getAttrSecretArn()
The ARN for the secret created for the connection.
|
String |
getAuthorizationType()
The type of authorization to use for the connection.
|
Object |
getAuthParameters()
A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description for the connection to create.
|
String |
getName()
The name for the connection to create.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAuthorizationType(String value)
The type of authorization to use for the connection.
|
void |
setAuthParameters(CfnConnection.AuthParametersProperty value)
A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint.
|
void |
setAuthParameters(IResolvable value)
A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint.
|
void |
setDescription(String value)
A description for the connection to create.
|
void |
setName(String value)
The name for the connection to create.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnConnection(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnConnection(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnConnectionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrSecretArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getAuthorizationType()
OAUTH tokens are refreshed when a 401 or 407 response is returned.
@Stability(value=Stable)
public void setAuthorizationType(@NotNull
String value)
OAUTH tokens are refreshed when a 401 or 407 response is returned.
@Stability(value=Stable) @NotNull public Object getAuthParameters()
@Stability(value=Stable)
public void setAuthParameters(@NotNull
CfnConnection.AuthParametersProperty value)
@Stability(value=Stable)
public void setAuthParameters(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable)
public void setName(@Nullable
String value)
Copyright © 2022. All rights reserved.