CfnEnabledBaselineProps Struct
Properties for defining a CfnEnabledBaseline.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_controltower as controltower } from 'aws-cdk-lib';
declare const value: any;
const cfnEnabledBaselineProps: controltower.CfnEnabledBaselineProps = {
baselineIdentifier: 'baselineIdentifier',
baselineVersion: 'baselineVersion',
targetIdentifier: 'targetIdentifier',
// the properties below are optional
parameters: [{
key: 'key',
value: value,
}],
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_controltower as controltower
# value: Any
cfn_enabled_baseline_props = controltower.CfnEnabledBaselineProps(
baseline_identifier="baselineIdentifier",
baseline_version="baselineVersion",
target_identifier="targetIdentifier",
# the properties below are optional
parameters=[controltower.CfnEnabledBaseline.ParameterProperty(
key="key",
value=value
)],
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.controltower.*;
Object value;
CfnEnabledBaselineProps cfnEnabledBaselineProps = CfnEnabledBaselineProps.builder()
.baselineIdentifier("baselineIdentifier")
.baselineVersion("baselineVersion")
.targetIdentifier("targetIdentifier")
// the properties below are optional
.parameters(List.of(ParameterProperty.builder()
.key("key")
.value(value)
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// 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.ControlTower;
var value;
var cfnEnabledBaselineProps = new CfnEnabledBaselineProps {
BaselineIdentifier = "baselineIdentifier",
BaselineVersion = "baselineVersion",
TargetIdentifier = "targetIdentifier",
// the properties below are optional
Parameters = new [] { new ParameterProperty {
Key = "key",
Value = value
} },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// 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"
var value interface{}
cfnEnabledBaselineProps := &CfnEnabledBaselineProps{
BaselineIdentifier: jsii.String("baselineIdentifier"),
BaselineVersion: jsii.String("baselineVersion"),
TargetIdentifier: jsii.String("targetIdentifier"),
// the properties below are optional
Parameters: []interface{}{
&ParameterProperty{
Key: jsii.String("key"),
Value: value,
},
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
baselineIdentifierstringbaseline_identifierstrbaselineIdentifierStringBaselineIdentifierstringBaselineIdentifier*string required #The specific `Baseline` enabled as part of the `EnabledBaseline` resource.
baselineVersionstringbaseline_versionstrbaselineVersionStringBaselineVersionstringBaselineVersion*string required #The enabled version of the `Baseline` .
parametersoptionalIResolvable | IResolvable | CfnEnabledBaseline.parametersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ParameterProperty]]]parametersoptionalIResolvableParametersoptionalIResolvableParametersoptionalinterface{} #Shows the parameters that are applied when enabling this `Baseline` .
targetIdentifierstringtarget_identifierstrtargetIdentifierStringTargetIdentifierstringTargetIdentifier*string required #The target on which to enable the `Baseline` .