CfnDeploymentProps Struct
Properties for defining a CfnDeployment.
| 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_networksecuritymanager as networksecuritymanager } from 'aws-cdk-lib';
const cfnDeploymentProps: networksecuritymanager.CfnDeploymentProps = {
deploymentName: 'deploymentName',
// the properties below are optional
associatedPolicyList: [{
policyArn: 'policyArn',
}],
associatedScopeList: [{
scopeArn: 'scopeArn',
}],
deploymentConfiguration: {
enableCrossAccountVisibility: false,
},
deploymentDescription: 'deploymentDescription',
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_networksecuritymanager as networksecuritymanager
cfn_deployment_props = networksecuritymanager.CfnDeploymentProps(
deployment_name="deploymentName",
# the properties below are optional
associated_policy_list=[networksecuritymanager.CfnDeployment.AssociatedPolicyProperty(
policy_arn="policyArn"
)],
associated_scope_list=[networksecuritymanager.CfnDeployment.AssociatedScopeProperty(
scope_arn="scopeArn"
)],
deployment_configuration=networksecuritymanager.CfnDeployment.DeploymentConfigurationProperty(
enable_cross_account_visibility=False
),
deployment_description="deploymentDescription",
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.networksecuritymanager.*;
CfnDeploymentProps cfnDeploymentProps = CfnDeploymentProps.builder()
.deploymentName("deploymentName")
// the properties below are optional
.associatedPolicyList(List.of(AssociatedPolicyProperty.builder()
.policyArn("policyArn")
.build()))
.associatedScopeList(List.of(AssociatedScopeProperty.builder()
.scopeArn("scopeArn")
.build()))
.deploymentConfiguration(DeploymentConfigurationProperty.builder()
.enableCrossAccountVisibility(false)
.build())
.deploymentDescription("deploymentDescription")
.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.NetworkSecurityManager;
var cfnDeploymentProps = new CfnDeploymentProps {
DeploymentName = "deploymentName",
// the properties below are optional
AssociatedPolicyList = new [] { new AssociatedPolicyProperty {
PolicyArn = "policyArn"
} },
AssociatedScopeList = new [] { new AssociatedScopeProperty {
ScopeArn = "scopeArn"
} },
DeploymentConfiguration = new DeploymentConfigurationProperty {
EnableCrossAccountVisibility = false
},
DeploymentDescription = "deploymentDescription",
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"
cfnDeploymentProps := &CfnDeploymentProps{
DeploymentName: jsii.String("deploymentName"),
// the properties below are optional
AssociatedPolicyList: []interface{}{
&AssociatedPolicyProperty{
PolicyArn: jsii.String("policyArn"),
},
},
AssociatedScopeList: []interface{}{
&AssociatedScopeProperty{
ScopeArn: jsii.String("scopeArn"),
},
},
DeploymentConfiguration: &DeploymentConfigurationProperty{
EnableCrossAccountVisibility: jsii.Boolean(false),
},
DeploymentDescription: jsii.String("deploymentDescription"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
associatedPolicyListoptionalIResolvable | IResolvable | CfnDeployment.associated_policy_listoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AssociatedPolicyProperty]]]associatedPolicyListoptionalIResolvableAssociatedPolicyListoptionalIResolvableAssociatedPolicyListoptionalinterface{} #List of policies associated with this deployment.
associatedScopeListoptionalIResolvable | IResolvable | CfnDeployment.associated_scope_listoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AssociatedScopeProperty]]]associatedScopeListoptionalIResolvableAssociatedScopeListoptionalIResolvableAssociatedScopeListoptionalinterface{} #List of scopes associated with this deployment.
deploymentConfigurationoptionalIResolvable | CfnDeployment.deployment_configurationoptionaltyping.Union[IResolvable, DeploymentConfigurationProperty]deploymentConfigurationoptionalIResolvableDeploymentConfigurationoptionalIResolvableDeploymentConfigurationoptionalinterface{} #Configuration settings for the deployment.
deploymentDescriptionoptionalstringdeployment_descriptionoptionalstrdeploymentDescriptionoptionalStringDeploymentDescriptionoptionalstringDeploymentDescriptionoptional*string #A description of the deployment.
deploymentNamestringdeployment_namestrdeploymentNameStringDeploymentNamestringDeploymentName*string required #The name of the deployment.