Class CfnTrustAnchor

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:35.020Z") @Stability(Stable) public class CfnTrustAnchor extends CfnResource implements IInspectable
A CloudFormation AWS::RolesAnywhere::TrustAnchor.

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)
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • 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 Construct scope, @NotNull String id, @NotNull CfnTrustAnchorProps props)
      Create a new AWS::RolesAnywhere::TrustAnchor.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      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()
      The tags to attach to the trust anchor.
    • 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.