Class CfnHostedConfigurationVersion.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.CfnHostedConfigurationVersion.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHostedConfigurationVersion>
- Enclosing class:
- CfnHostedConfigurationVersion
@Stability(Stable)
public static final class CfnHostedConfigurationVersion.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHostedConfigurationVersion>
A fluent builder for
CfnHostedConfigurationVersion
.-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The application ID.build()
configurationProfileId
(String configurationProfileId) The configuration profile ID.The content of the configuration or the configuration data.contentType
(String contentType) A standard MIME type describing the format of the configuration content.description
(String description) A description of the configuration.latestVersionNumber
(Number latestVersionNumber) An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version.versionLabel
(String versionLabel) A user-defined label for an AWS AppConfig hosted configuration version.
-
Method Details
-
create
@Stability(Stable) public static CfnHostedConfigurationVersion.Builder create(Construct scope, String id) - Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnHostedConfigurationVersion.Builder
.
-
applicationId
The application ID.- Parameters:
applicationId
- The application ID. This parameter is required.- Returns:
this
-
configurationProfileId
@Stability(Stable) public CfnHostedConfigurationVersion.Builder configurationProfileId(String configurationProfileId) The configuration profile ID.- Parameters:
configurationProfileId
- The configuration profile ID. This parameter is required.- Returns:
this
-
content
The content of the configuration or the configuration data.- Parameters:
content
- The content of the configuration or the configuration data. This parameter is required.- Returns:
this
-
contentType
A standard MIME type describing the format of the configuration content.For more information, see Content-Type .
- Parameters:
contentType
- A standard MIME type describing the format of the configuration content. This parameter is required.- Returns:
this
-
description
A description of the configuration.- Parameters:
description
- A description of the configuration. This parameter is required.- Returns:
this
-
latestVersionNumber
@Stability(Stable) public CfnHostedConfigurationVersion.Builder latestVersionNumber(Number latestVersionNumber) An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version.To ensure your data is not overwritten when creating multiple hosted configuration versions in rapid succession, specify the version number of the latest hosted configuration version.
- Parameters:
latestVersionNumber
- An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version. This parameter is required.- Returns:
this
-
versionLabel
A user-defined label for an AWS AppConfig hosted configuration version.- Parameters:
versionLabel
- A user-defined label for an AWS AppConfig hosted configuration version. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnHostedConfigurationVersion>
- Returns:
- a newly built instance of
CfnHostedConfigurationVersion
.
-