CfnConfigurationProps Struct
Properties for defining a CfnConfiguration.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_msk as msk } from 'aws-cdk-lib';
const cfnConfigurationProps: msk.CfnConfigurationProps = {
name: 'name',
serverProperties: 'serverProperties',
// the properties below are optional
description: 'description',
kafkaVersionsList: ['kafkaVersionsList'],
latestRevision: {
creationTime: 'creationTime',
description: 'description',
revision: 123,
},
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_msk as msk
cfn_configuration_props = msk.CfnConfigurationProps(
name="name",
server_properties="serverProperties",
# the properties below are optional
description="description",
kafka_versions_list=["kafkaVersionsList"],
latest_revision=msk.CfnConfiguration.LatestRevisionProperty(
creation_time="creationTime",
description="description",
revision=123
)
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.msk.*;
CfnConfigurationProps cfnConfigurationProps = CfnConfigurationProps.builder()
.name("name")
.serverProperties("serverProperties")
// the properties below are optional
.description("description")
.kafkaVersionsList(List.of("kafkaVersionsList"))
.latestRevision(LatestRevisionProperty.builder()
.creationTime("creationTime")
.description("description")
.revision(123)
.build())
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MSK;
var cfnConfigurationProps = new CfnConfigurationProps {
Name = "name",
ServerProperties = "serverProperties",
// the properties below are optional
Description = "description",
KafkaVersionsList = new [] { "kafkaVersionsList" },
LatestRevision = new LatestRevisionProperty {
CreationTime = "creationTime",
Description = "description",
Revision = 123
}
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnConfigurationProps := &CfnConfigurationProps{
Name: jsii.String("name"),
ServerProperties: jsii.String("serverProperties"),
// the properties below are optional
Description: jsii.String("description"),
KafkaVersionsList: []*string{
jsii.String("kafkaVersionsList"),
},
LatestRevision: &LatestRevisionProperty{
CreationTime: jsii.String("creationTime"),
Description: jsii.String("description"),
Revision: jsii.Number(123),
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #kafkaVersionsListoptionalstring[]kafka_versions_listoptionaltyping.List[str]kafkaVersionsListoptionalList<String>KafkaVersionsListoptionalstring[]KafkaVersionsListoptional*[]*string #notes
When you update the KafkaVersionsList property, CloudFormation recreates a new configuration with the updated property before deleting the old configuration. Such an update requires a resource replacement . To successfully update KafkaVersionsList , you must also update the Name property in the same operation.
If your configuration is attached with any clusters created using the AWS Management Console or AWS CLI , you'll need to manually delete the old configuration from the console after the update completes.
For more information, see Can’t update KafkaVersionsList in MSK configuration in the Amazon MSK Developer Guide .
latestRevisionoptionalIResolvable | CfnConfiguration.latest_revisionoptionaltyping.Union[IResolvable, LatestRevisionProperty]latestRevisionoptionalIResolvableLatestRevisionoptionalIResolvableLatestRevisionoptionalinterface{} #Configuration names are strings that match the regex "^[0-9A-Za-z][0-9A-Za-z-]{0,}$".
serverPropertiesstringserver_propertiesstrserverPropertiesStringServerPropertiesstringServerProperties*string required #