Class CfnTrustAnchor

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:08.572Z") @Stability(Stable) public class CfnTrustAnchor extends CfnResource implements IInspectable, ITaggable
Creates a TrustAnchor.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.rolesanywhere.*;
 CfnTrustAnchor cfnTrustAnchor = CfnTrustAnchor.Builder.create(this, "MyCfnTrustAnchor")
         .name("name")
         .source(SourceProperty.builder()
                 .sourceData(SourceDataProperty.builder()
                         .acmPcaArn("acmPcaArn")
                         .x509CertificateData("x509CertificateData")
                         .build())
                 .sourceType("sourceType")
                 .build())
         // the properties below are optional
         .enabled(false)
         .notificationSettings(List.of(NotificationSettingProperty.builder()
                 .enabled(false)
                 .event("event")
                 // the properties below are optional
                 .channel("channel")
                 .threshold(123)
                 .build()))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnTrustAnchor

      protected CfnTrustAnchor(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnTrustAnchor

      protected CfnTrustAnchor(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnTrustAnchor

      @Stability(Stable) public CfnTrustAnchor(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTrustAnchorProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrTrustAnchorArn

      @Stability(Stable) @NotNull public String getAttrTrustAnchorArn()
      The ARN of the trust anchor.
    • getAttrTrustAnchorId

      @Stability(Stable) @NotNull public String getAttrTrustAnchorId()
      The unique identifier of the trust anchor.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the trust anchor.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the trust anchor.
    • getSource

      @Stability(Stable) @NotNull public Object getSource()
      The trust anchor type and its related certificate data.
    • setSource

      @Stability(Stable) public void setSource(@NotNull IResolvable value)
      The trust anchor type and its related certificate data.
    • setSource

      @Stability(Stable) public void setSource(@NotNull CfnTrustAnchor.SourceProperty value)
      The trust anchor type and its related certificate data.
    • getEnabled

      @Stability(Stable) @Nullable public Object getEnabled()
      Indicates whether the trust anchor is enabled.
    • setEnabled

      @Stability(Stable) public void setEnabled(@Nullable Boolean value)
      Indicates whether the trust anchor is enabled.
    • setEnabled

      @Stability(Stable) public void setEnabled(@Nullable IResolvable value)
      Indicates whether the trust anchor is enabled.
    • getNotificationSettings

      @Stability(Stable) @Nullable public Object getNotificationSettings()
      A list of notification settings to be associated to the trust anchor.
    • setNotificationSettings

      @Stability(Stable) public void setNotificationSettings(@Nullable IResolvable value)
      A list of notification settings to be associated to the trust anchor.
    • setNotificationSettings

      @Stability(Stable) public void setNotificationSettings(@Nullable List<Object> value)
      A list of notification settings to be associated to the trust anchor.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The tags to attach to the trust anchor.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The tags to attach to the trust anchor.