Interface CfnLifecyclePolicy.IAmiExclusionRulesProperty
Defines criteria for AMIs that are excluded from lifecycle actions.
Namespace: Amazon.CDK.AWS.ImageBuilder
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAmiExclusionRulesProperty
Syntax (vb)
Public Interface IAmiExclusionRulesProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder;
var amiExclusionRulesProperty = new AmiExclusionRulesProperty {
IsPublic = false,
LastLaunched = new LastLaunchedProperty {
Unit = "unit",
Value = 123
},
Regions = new [] { "regions" },
SharedAccounts = new [] { "sharedAccounts" },
TagMap = new Dictionary<string, string> {
{ "tagMapKey", "tagMap" }
}
};
Synopsis
Properties
IsPublic | Configures whether public AMIs are excluded from the lifecycle action. |
LastLaunched | Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions. |
Regions | Configures AWS Region s that are excluded from the lifecycle action. |
SharedAccounts | Specifies AWS account s whose resources are excluded from the lifecycle action. |
TagMap | Lists tags that should be excluded from lifecycle actions for the AMIs that have them. |
Properties
IsPublic
Configures whether public AMIs are excluded from the lifecycle action.
virtual object IsPublic { get; }
Property Value
System.Object
Remarks
LastLaunched
Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
virtual object LastLaunched { get; }
Property Value
System.Object
Remarks
Regions
Configures AWS Region s that are excluded from the lifecycle action.
virtual string[] Regions { get; }
Property Value
System.String[]
Remarks
SharedAccounts
Specifies AWS account s whose resources are excluded from the lifecycle action.
virtual string[] SharedAccounts { get; }
Property Value
System.String[]
Remarks
TagMap
Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
virtual object TagMap { get; }
Property Value
System.Object