Class CfnSecurityControl

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

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:09.794Z") @Stability(Stable) public class CfnSecurityControl extends CfnResource implements IInspectable
The AWS::SecurityHub::SecurityControl resource specifies custom parameter values for an AWS Security Hub control.

For a list of controls that support custom parameters, see Security Hub controls reference . You can also use this resource to specify the use of default parameter values for a control. For more information about custom parameters, see Custom control parameters in the AWS Security Hub User Guide .

Tags aren't supported for this resource.

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.*;
 CfnSecurityControl cfnSecurityControl = CfnSecurityControl.Builder.create(this, "MyCfnSecurityControl")
         .parameters(Map.of(
                 "parametersKey", ParameterConfigurationProperty.builder()
                         .valueType("valueType")
                         .build()))
         // the properties below are optional
         .lastUpdateReason("lastUpdateReason")
         .securityControlArn("securityControlArn")
         .securityControlId("securityControlId")
         .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

    • CfnSecurityControl

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

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

      @Stability(Stable) public CfnSecurityControl(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSecurityControlProps 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.
    • getCfnProperties

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

      @Stability(Stable) @NotNull public Object getParameters()
      An object that identifies the name of a control parameter, its current value, and whether it has been customized.
    • setParameters

      @Stability(Stable) public void setParameters(@NotNull IResolvable value)
      An object that identifies the name of a control parameter, its current value, and whether it has been customized.
    • setParameters

      @Stability(Stable) public void setParameters(@NotNull Map<String,Object> value)
      An object that identifies the name of a control parameter, its current value, and whether it has been customized.
    • getLastUpdateReason

      @Stability(Stable) @Nullable public String getLastUpdateReason()
      The most recent reason for updating the customizable properties of a security control.
    • setLastUpdateReason

      @Stability(Stable) public void setLastUpdateReason(@Nullable String value)
      The most recent reason for updating the customizable properties of a security control.
    • getSecurityControlArn

      @Stability(Stable) @Nullable public String getSecurityControlArn()
      The Amazon Resource Name (ARN) for a security control across standards, such as arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1 . This parameter doesn't mention a specific standard.
    • setSecurityControlArn

      @Stability(Stable) public void setSecurityControlArn(@Nullable String value)
      The Amazon Resource Name (ARN) for a security control across standards, such as arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1 . This parameter doesn't mention a specific standard.
    • getSecurityControlId

      @Stability(Stable) @Nullable public String getSecurityControlId()
      The unique identifier of a security control across standards.
    • setSecurityControlId

      @Stability(Stable) public void setSecurityControlId(@Nullable String value)
      The unique identifier of a security control across standards.