Class CfnConnector

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

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-08-10T14:51:11.897Z") @Stability(Stable) public class CfnConnector extends CfnResource implements IInspectable, IConnectorRef, ITaggableV2
Creates a connector to a third-party cloud provider in Security Hub CSPM.

A connector establishes a connection between Security Hub CSPM and a third-party cloud provider, enabling Security Hub CSPM to ingest security findings and resource data from the connected environment.

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.securityhub.*;
 CfnConnector cfnConnector = CfnConnector.Builder.create(this, "MyCfnConnector")
         .name("name")
         .provider(ProviderProperty.builder()
                 .azure(AzureProviderConfigurationProperty.builder()
                         .awsConfigConnectorArn("awsConfigConnectorArn")
                         .azureRegions(List.of("azureRegions"))
                         .scopeConfiguration(AzureScopeConfigurationProperty.builder()
                                 .scopeType("scopeType")
                                 // the properties below are optional
                                 .scopeValues(List.of("scopeValues"))
                                 .build())
                         .build())
                 .build())
         // the properties below are optional
         .description("description")
         .tags(Map.of(
                 "tagsKey", "tags"))
         .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

    • CfnConnector

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

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

      @Stability(Stable) public CfnConnector(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnConnectorProps props)
      Create a new AWS::SecurityHub::Connector.

      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

    • arnForConnector

      @Stability(Stable) @NotNull public static String arnForConnector(@NotNull IConnectorRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnConnector

      @Stability(Stable) @NotNull public static Boolean isCfnConnector(@NotNull Object x)
      Checks whether the given object is a CfnConnector.

      Parameters:
      x - This parameter is required.
    • 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.
    • getAttrConnectorArn

      @Stability(Stable) @NotNull public String getAttrConnectorArn()
    • getAttrConnectorId

      @Stability(Stable) @NotNull public String getAttrConnectorId()
    • getAttrConnectorStatus

      @Stability(Stable) @NotNull public String getAttrConnectorStatus()
      The status of the connector.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp formatted in ISO8601.
    • getAttrCreatedBy

      @Stability(Stable) @NotNull public String getAttrCreatedBy()
    • getAttrEnablementStatus

      @Stability(Stable) @NotNull public String getAttrEnablementStatus()
      The enablement status of the connector.
    • getAttrIssues

      @Stability(Stable) @NotNull public IResolvable getAttrIssues()
    • getAttrLastCheckedAt

      @Stability(Stable) @NotNull public String getAttrLastCheckedAt()
      The timestamp formatted in ISO8601.
    • getAttrLastUpdatedAt

      @Stability(Stable) @NotNull public String getAttrLastUpdatedAt()
      The timestamp formatted in ISO8601.
    • getAttrMessage

      @Stability(Stable) @NotNull public String getAttrMessage()
    • getCdkTagManager

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

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

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getConnectorRef

      @Stability(Stable) @NotNull public ConnectorReference getConnectorRef()
      A reference to a Connector resource.
      Specified by:
      getConnectorRef in interface IConnectorRef
    • getName

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

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the connector.
    • getProvider

      @Stability(Stable) @NotNull public Object getProvider()
    • setProvider

      @Stability(Stable) public void setProvider(@NotNull IResolvable value)
    • setProvider

      @Stability(Stable) public void setProvider(@NotNull CfnConnector.ProviderProperty value)
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the connector.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the connector.
    • getTags

      @Stability(Stable) @Nullable public Map<String,String> getTags()
      A key-value pair to associate with a resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable Map<String,String> value)
      A key-value pair to associate with a resource.