Skip to content
v2.278.0

ProposedSegmentChangeProperty ​

Struct External

Describes a proposed segment change.

In some cases, the segment change must first be evaluated and accepted.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkmanager as networkmanager } from 'aws-cdk-lib';
const proposedSegmentChangeProperty: networkmanager.CfnTransitGatewayRouteTableAttachment.ProposedSegmentChangeProperty = {
  attachmentPolicyRuleNumber: 123,
  segmentName: 'segmentName',
  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_networkmanager as networkmanager

proposed_segment_change_property = networkmanager.CfnTransitGatewayRouteTableAttachment.ProposedSegmentChangeProperty(
    attachment_policy_rule_number=123,
    segment_name="segmentName",
    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.networkmanager.*;

ProposedSegmentChangeProperty proposedSegmentChangeProperty = ProposedSegmentChangeProperty.builder()
        .attachmentPolicyRuleNumber(123)
        .segmentName("segmentName")
        .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.NetworkManager;

var proposedSegmentChangeProperty = new ProposedSegmentChangeProperty {
    AttachmentPolicyRuleNumber = 123,
    SegmentName = "segmentName",
    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"

proposedSegmentChangeProperty := &ProposedSegmentChangeProperty{
	AttachmentPolicyRuleNumber: jsii.Number(123),
	SegmentName: jsii.String("segmentName"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

attachmentPolicyRuleNumberoptionalnumberattachment_policy_rule_numberoptionalint | floatattachmentPolicyRuleNumberoptionalNumberAttachmentPolicyRuleNumberoptionaldoubleAttachmentPolicyRuleNumberoptional*float64 #
The rule number in the policy document that applies to this change.
segmentNameoptionalstringsegment_nameoptionalstrsegmentNameoptionalStringSegmentNameoptionalstringSegmentNameoptional*string #
The name of the segment to change.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The list of key-value tags that changed for the segment.