Class CfnConnectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnConnectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectionProps>
- Enclosing interface:
CfnConnectionProps
@Stability(Stable)
public static final class CfnConnectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectionProps>
A builder for
CfnConnectionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizationType(String authorizationType) Sets the value ofCfnConnectionProps.getAuthorizationType()authParameters(IResolvable authParameters) Sets the value ofCfnConnectionProps.getAuthParameters()authParameters(CfnConnection.AuthParametersProperty authParameters) Sets the value ofCfnConnectionProps.getAuthParameters()build()Builds the configured instance.description(String description) Sets the value ofCfnConnectionProps.getDescription()invocationConnectivityParameters(IResolvable invocationConnectivityParameters) Sets the value ofCfnConnectionProps.getInvocationConnectivityParameters()invocationConnectivityParameters(CfnConnection.InvocationConnectivityParametersProperty invocationConnectivityParameters) Sets the value ofCfnConnectionProps.getInvocationConnectivityParameters()kmsKeyIdentifier(String kmsKeyIdentifier) Sets the value ofCfnConnectionProps.getKmsKeyIdentifier()Sets the value ofCfnConnectionProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationType
Sets the value ofCfnConnectionProps.getAuthorizationType()- Parameters:
authorizationType- The type of authorization to use for the connection.OAUTH tokens are refreshed when a 401 or 407 response is returned.
- Returns:
this
-
authParameters
Sets the value ofCfnConnectionProps.getAuthParameters()- Parameters:
authParameters- The authorization parameters to use to authorize with the endpoint. You must include only authorization parameters for theAuthorizationTypeyou specify.- Returns:
this
-
authParameters
@Stability(Stable) public CfnConnectionProps.Builder authParameters(CfnConnection.AuthParametersProperty authParameters) Sets the value ofCfnConnectionProps.getAuthParameters()- Parameters:
authParameters- The authorization parameters to use to authorize with the endpoint. You must include only authorization parameters for theAuthorizationTypeyou specify.- Returns:
this
-
description
Sets the value ofCfnConnectionProps.getDescription()- Parameters:
description- A description for the connection to create.- Returns:
this
-
invocationConnectivityParameters
@Stability(Stable) public CfnConnectionProps.Builder invocationConnectivityParameters(IResolvable invocationConnectivityParameters) Sets the value ofCfnConnectionProps.getInvocationConnectivityParameters()- Parameters:
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 .- Returns:
this
-
invocationConnectivityParameters
@Stability(Stable) public CfnConnectionProps.Builder invocationConnectivityParameters(CfnConnection.InvocationConnectivityParametersProperty invocationConnectivityParameters) Sets the value ofCfnConnectionProps.getInvocationConnectivityParameters()- Parameters:
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 .- Returns:
this
-
kmsKeyIdentifier
Sets the value ofCfnConnectionProps.getKmsKeyIdentifier()- Parameters:
kmsKeyIdentifier- The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt this connection. The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN.If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to encrypt the connection.
For more information, see Identify and view keys in the AWS Key Management Service Developer Guide .
- Returns:
this
-
name
Sets the value ofCfnConnectionProps.getName()- Parameters:
name- The name for the connection to create.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnectionProps>- Returns:
- a new instance of
CfnConnectionProps - Throws:
NullPointerException- if any required attribute was not provided
-