Class CfnLifecyclePolicy.AmiExclusionRulesProperty
Defines criteria for AMIs that are excluded from lifecycle actions.
Inheritance
Namespace: Amazon.CDK.AWS.ImageBuilder
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AmiExclusionRulesProperty : Object, CfnLifecyclePolicy.IAmiExclusionRulesProperty
Syntax (vb)
Public Class AmiExclusionRulesProperty
Inherits Object
Implements CfnLifecyclePolicy.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
Constructors
AmiExclusionRulesProperty() |
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. |
Constructors
AmiExclusionRulesProperty()
public AmiExclusionRulesProperty()
Properties
IsPublic
Configures whether public AMIs are excluded from the lifecycle action.
public object IsPublic { get; set; }
Property Value
System.Object
Remarks
LastLaunched
Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
public object LastLaunched { get; set; }
Property Value
System.Object
Remarks
Regions
Configures AWS Region s that are excluded from the lifecycle action.
public string[] Regions { get; set; }
Property Value
System.String[]
Remarks
SharedAccounts
Specifies AWS account s whose resources are excluded from the lifecycle action.
public string[] SharedAccounts { get; set; }
Property Value
System.String[]
Remarks
TagMap
Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
public object TagMap { get; set; }
Property Value
System.Object