Class CfnConnection.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnConnection.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnection>
- Enclosing class:
CfnConnection
@Stability(Stable)
public static final class CfnConnection.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnection>
A fluent builder for
CfnConnection.-
Method Summary
Modifier and TypeMethodDescriptionauthorizationType(String authorizationType) The type of authorization to use for the connection.authParameters(IResolvable authParameters) The authorization parameters to use to authorize with the endpoint.authParameters(CfnConnection.AuthParametersProperty authParameters) The authorization parameters to use to authorize with the endpoint.build()static CfnConnection.Builderdescription(String description) A description for the connection to create.invocationConnectivityParameters(IResolvable invocationConnectivityParameters) For connections to private APIs, the parameters to use for invoking the API.invocationConnectivityParameters(CfnConnection.InvocationConnectivityParametersProperty invocationConnectivityParameters) For connections to private APIs, the parameters to use for invoking the API.kmsKeyIdentifier(String kmsKeyIdentifier) The name for the connection to create.
-
Method Details
-
create
@Stability(Stable) public static CfnConnection.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnConnection.Builder.
-
authorizationType
The type of authorization to use for the connection.OAUTH tokens are refreshed when a 401 or 407 response is returned.
- Parameters:
authorizationType- The type of authorization to use for the connection. This parameter is required.- Returns:
this- See Also:
-
authParameters
The authorization parameters to use to authorize with the endpoint.You must include only authorization parameters for the
AuthorizationTypeyou specify.- Parameters:
authParameters- The authorization parameters to use to authorize with the endpoint. This parameter is required.- Returns:
this- See Also:
-
authParameters
@Stability(Stable) public CfnConnection.Builder authParameters(CfnConnection.AuthParametersProperty authParameters) The authorization parameters to use to authorize with the endpoint.You must include only authorization parameters for the
AuthorizationTypeyou specify.- Parameters:
authParameters- The authorization parameters to use to authorize with the endpoint. This parameter is required.- Returns:
this- See Also:
-
description
A description for the connection to create.- Parameters:
description- A description for the connection to create. This parameter is required.- Returns:
this- See Also:
-
invocationConnectivityParameters
@Stability(Stable) public CfnConnection.Builder invocationConnectivityParameters(IResolvable invocationConnectivityParameters) For connections to private APIs, the parameters to use for invoking the API.For more information, see Connecting to private APIs in the Amazon EventBridge User Guide .
- Parameters:
invocationConnectivityParameters- For connections to private APIs, the parameters to use for invoking the API. This parameter is required.- Returns:
this- See Also:
-
invocationConnectivityParameters
@Stability(Stable) public CfnConnection.Builder invocationConnectivityParameters(CfnConnection.InvocationConnectivityParametersProperty invocationConnectivityParameters) For connections to private APIs, the parameters to use for invoking the API.For more information, see Connecting to private APIs in the Amazon EventBridge User Guide .
- Parameters:
invocationConnectivityParameters- For connections to private APIs, the parameters to use for invoking the API. This parameter is required.- Returns:
this- See Also:
-
kmsKeyIdentifier
- Parameters:
kmsKeyIdentifier- This parameter is required.- Returns:
this- See Also:
-
name
The name for the connection to create.- Parameters:
name- The name for the connection to create. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnection>- Returns:
- a newly built instance of
CfnConnection.
-