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