Class CfnConfigurationProfileMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.appconfig.mixins.CfnConfigurationProfileMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigurationProfileMixinProps>
- Enclosing interface:
CfnConfigurationProfileMixinProps
@Stability(Stable)
public static final class CfnConfigurationProfileMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConfigurationProfileMixinProps>
A builder for
CfnConfigurationProfileMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationId(String applicationId) Sets the value ofCfnConfigurationProfileMixinProps.getApplicationId()build()Builds the configured instance.deletionProtectionCheck(String deletionProtectionCheck) Sets the value ofCfnConfigurationProfileMixinProps.getDeletionProtectionCheck()description(String description) Sets the value ofCfnConfigurationProfileMixinProps.getDescription()kmsKeyIdentifier(String kmsKeyIdentifier) Sets the value ofCfnConfigurationProfileMixinProps.getKmsKeyIdentifier()locationUri(String locationUri) Sets the value ofCfnConfigurationProfileMixinProps.getLocationUri()Sets the value ofCfnConfigurationProfileMixinProps.getName()retrievalRoleArn(String retrievalRoleArn) Sets the value ofCfnConfigurationProfileMixinProps.getRetrievalRoleArn()Sets the value ofCfnConfigurationProfileMixinProps.getTags()Sets the value ofCfnConfigurationProfileMixinProps.getType()validators(List<? extends Object> validators) Sets the value ofCfnConfigurationProfileMixinProps.getValidators()validators(IResolvable validators) Sets the value ofCfnConfigurationProfileMixinProps.getValidators()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationId
@Stability(Stable) public CfnConfigurationProfileMixinProps.Builder applicationId(String applicationId) Sets the value ofCfnConfigurationProfileMixinProps.getApplicationId()- Parameters:
applicationId- The application ID.- Returns:
this
-
deletionProtectionCheck
@Stability(Stable) public CfnConfigurationProfileMixinProps.Builder deletionProtectionCheck(String deletionProtectionCheck) Sets the value ofCfnConfigurationProfileMixinProps.getDeletionProtectionCheck()- Parameters:
deletionProtectionCheck- A parameter to configure deletion protection. Deletion protection prevents a user from deleting a configuration profile if your application has called either GetLatestConfiguration or GetConfiguration for the configuration profile during the specified interval.This parameter supports the following values:
BYPASS: Instructs AWS AppConfig to bypass the deletion protection check and delete a configuration profile even if deletion protection would have otherwise prevented it.APPLY: Instructs the deletion protection check to run, even if deletion protection is disabled at the account level.APPLYalso forces the deletion protection check to run against resources created in the past hour, which are normally excluded from deletion protection checks.ACCOUNT_DEFAULT: The default setting, which instructs AWS AppConfig to implement the deletion protection value specified in theUpdateAccountSettingsAPI.
- Returns:
this
-
description
Sets the value ofCfnConfigurationProfileMixinProps.getDescription()- Parameters:
description- A description of the configuration profile.- Returns:
this
-
kmsKeyIdentifier
@Stability(Stable) public CfnConfigurationProfileMixinProps.Builder kmsKeyIdentifier(String kmsKeyIdentifier) Sets the value ofCfnConfigurationProfileMixinProps.getKmsKeyIdentifier()- Parameters:
kmsKeyIdentifier- The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.- Returns:
this
-
locationUri
Sets the value ofCfnConfigurationProfileMixinProps.getLocationUri()- Parameters:
locationUri- A URI to locate the configuration. You can specify the following:.- For the AWS AppConfig hosted configuration store and for feature flags, specify
hosted. - For an AWS Systems Manager Parameter Store parameter, specify either the parameter name in the format
ssm-parameter://<parameter name>or the ARN. - For an AWS CodePipeline pipeline, specify the URI in the following format:
codepipeline://. - For an AWS Secrets Manager secret, specify the URI in the following format:
secretsmanager://. - For an Amazon S3 object, specify the URI in the following format:
s3://<bucket>/<objectKey>. Here is an example:s3://amzn-s3-demo-bucket/my-app/us-east-1/my-config.json - For an SSM document, specify either the document name in the format
ssm-document://<document name>or the Amazon Resource Name (ARN).
- For the AWS AppConfig hosted configuration store and for feature flags, specify
- Returns:
this
-
name
Sets the value ofCfnConfigurationProfileMixinProps.getName()- Parameters:
name- A name for the configuration profile.- Returns:
this
-
retrievalRoleArn
@Stability(Stable) public CfnConfigurationProfileMixinProps.Builder retrievalRoleArn(String retrievalRoleArn) Sets the value ofCfnConfigurationProfileMixinProps.getRetrievalRoleArn()- Parameters:
retrievalRoleArn- The ARN of an IAM role with permission to access the configuration at the specifiedLocationUri.A retrieval role ARN is not required for configurations stored in AWS CodePipeline or the AWS AppConfig hosted configuration store. It is required for all other sources that store your configuration.
- Returns:
this
-
tags
@Stability(Stable) public CfnConfigurationProfileMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnConfigurationProfileMixinProps.getTags()- Parameters:
tags- Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.- Returns:
this
-
type
Sets the value ofCfnConfigurationProfileMixinProps.getType()- Parameters:
type- The type of configurations contained in the profile. AWS AppConfig supportsfeature flagsandfreeformconfigurations. We recommend you create feature flag configurations to enable or disable new features and freeform configurations to distribute configurations to an application. When calling this API, enter one of the following values forType:AWS.AppConfig.FeatureFlagsAWS.Freeform- Returns:
this
-
validators
@Stability(Stable) public CfnConfigurationProfileMixinProps.Builder validators(IResolvable validators) Sets the value ofCfnConfigurationProfileMixinProps.getValidators()- Parameters:
validators- A list of methods for validating the configuration.- Returns:
this
-
validators
@Stability(Stable) public CfnConfigurationProfileMixinProps.Builder validators(List<? extends Object> validators) Sets the value ofCfnConfigurationProfileMixinProps.getValidators()- Parameters:
validators- A list of methods for validating the configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConfigurationProfileMixinProps>- Returns:
- a new instance of
CfnConfigurationProfileMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-