Class HttpEndpointConfig.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.HttpEndpointConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpEndpointConfig>
- Enclosing interface:
HttpEndpointConfig
@Stability(Stable)
public static final class HttpEndpointConfig.Builder
extends Object
implements software.amazon.jsii.Builder<HttpEndpointConfig>
A builder for
HttpEndpointConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessKey(SecretValue accessKey) Sets the value ofHttpEndpointConfig.getAccessKey()build()Builds the configured instance.Sets the value ofHttpEndpointConfig.getName()Sets the value ofHttpEndpointConfig.getSecret()Sets the value ofHttpEndpointConfig.getUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
url
Sets the value ofHttpEndpointConfig.getUrl()- Parameters:
url- The URL of the Http endpoint selected as the destination. This parameter is required.- Returns:
this
-
accessKey
Sets the value ofHttpEndpointConfig.getAccessKey()- Parameters:
accessKey- The access key used to authenticate with the Http endpoint. Used only whensecretis not set. If bothaccessKeyandsecretare provided,secret(AWS Secrets Manager) takes precedence and this value is ignored. The access key is rendered into the CloudFormation template.- Returns:
this
-
name
Sets the value ofHttpEndpointConfig.getName()- Parameters:
name- The name of the Http endpoint selected as the destination.- Returns:
this
-
secret
Sets the value ofHttpEndpointConfig.getSecret()- Parameters:
secret- A Secrets Manager secret used to authenticate with the Http endpoint. When set, Firehose retrieves the credential from AWS Secrets Manager, and this takes precedence overaccessKey.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpEndpointConfig>- Returns:
- a new instance of
HttpEndpointConfig - Throws:
NullPointerException- if any required attribute was not provided
-