Class CfnDeliveryStream.SecretsManagerConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SecretsManagerConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryStream.SecretsManagerConfigurationProperty>
- Enclosing interface:
CfnDeliveryStream.SecretsManagerConfigurationProperty
@Stability(Stable)
public static final class CfnDeliveryStream.SecretsManagerConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryStream.SecretsManagerConfigurationProperty>
A builder for
CfnDeliveryStream.SecretsManagerConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDeliveryStream.SecretsManagerConfigurationProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnDeliveryStream.SecretsManagerConfigurationProperty.getEnabled()
Sets the value ofCfnDeliveryStream.SecretsManagerConfigurationProperty.getRoleArn()
Sets the value ofCfnDeliveryStream.SecretsManagerConfigurationProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnDeliveryStream.SecretsManagerConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnDeliveryStream.SecretsManagerConfigurationProperty.getEnabled()
- Parameters:
enabled
- Specifies whether you want to use the secrets manager feature. This parameter is required. When set asTrue
the secrets manager configuration overwrites the existing secrets in the destination configuration. When it's set toFalse
Firehose falls back to the credentials in the destination configuration.- Returns:
this
-
enabled
@Stability(Stable) public CfnDeliveryStream.SecretsManagerConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnDeliveryStream.SecretsManagerConfigurationProperty.getEnabled()
- Parameters:
enabled
- Specifies whether you want to use the secrets manager feature. This parameter is required. When set asTrue
the secrets manager configuration overwrites the existing secrets in the destination configuration. When it's set toFalse
Firehose falls back to the credentials in the destination configuration.- Returns:
this
-
roleArn
@Stability(Stable) public CfnDeliveryStream.SecretsManagerConfigurationProperty.Builder roleArn(String roleArn) Sets the value ofCfnDeliveryStream.SecretsManagerConfigurationProperty.getRoleArn()
- Parameters:
roleArn
- Specifies the role that Firehose assumes when calling the Secrets Manager API operation. When you provide the role, it overrides any destination specific role defined in the destination configuration. If you do not provide the then we use the destination specific role. This parameter is required for Splunk.- Returns:
this
-
secretArn
@Stability(Stable) public CfnDeliveryStream.SecretsManagerConfigurationProperty.Builder secretArn(String secretArn) Sets the value ofCfnDeliveryStream.SecretsManagerConfigurationProperty.getSecretArn()
- Parameters:
secretArn
- The ARN of the secret that stores your credentials. It must be in the same region as the Firehose stream and the role. The secret ARN can reside in a different account than the Firehose stream and role as Firehose supports cross-account secret access. This parameter is required when Enabled is set toTrue
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeliveryStream.SecretsManagerConfigurationProperty>
- Returns:
- a new instance of
CfnDeliveryStream.SecretsManagerConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-