Class CfnAccountAuditConfiguration.Builder

java.lang.Object
software.amazon.awscdk.services.iot.CfnAccountAuditConfiguration.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccountAuditConfiguration>
Enclosing class:
CfnAccountAuditConfiguration

@Stability(Stable) public static final class CfnAccountAuditConfiguration.Builder extends Object implements software.amazon.jsii.Builder<CfnAccountAuditConfiguration>
A fluent builder for CfnAccountAuditConfiguration.
  • Method Details

    • create

      @Stability(Stable) public static CfnAccountAuditConfiguration.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnAccountAuditConfiguration.Builder.
    • accountId

      @Stability(Stable) public CfnAccountAuditConfiguration.Builder accountId(String accountId)
      The ID of the account.

      You can use the expression !Sub "${AWS::AccountId}" to use your account ID.

      Parameters:
      accountId - The ID of the account. This parameter is required.
      Returns:
      this
    • auditCheckConfigurations

      @Stability(Stable) public CfnAccountAuditConfiguration.Builder auditCheckConfigurations(CfnAccountAuditConfiguration.AuditCheckConfigurationsProperty auditCheckConfigurations)
      Specifies which audit checks are enabled and disabled for this account.

      Some data collection might start immediately when certain checks are enabled. When a check is disabled, any data collected so far in relation to the check is deleted. To disable a check, set the value of the Enabled: key to false .

      If an enabled check is removed from the template, it will also be disabled.

      You can't disable a check if it's used by any scheduled audit. You must delete the check from the scheduled audit or delete the scheduled audit itself to disable the check.

      For more information on avialbe auidt checks see AWS::IoT::AccountAuditConfiguration AuditCheckConfigurations

      Parameters:
      auditCheckConfigurations - Specifies which audit checks are enabled and disabled for this account. This parameter is required.
      Returns:
      this
    • auditCheckConfigurations

      @Stability(Stable) public CfnAccountAuditConfiguration.Builder auditCheckConfigurations(IResolvable auditCheckConfigurations)
      Specifies which audit checks are enabled and disabled for this account.

      Some data collection might start immediately when certain checks are enabled. When a check is disabled, any data collected so far in relation to the check is deleted. To disable a check, set the value of the Enabled: key to false .

      If an enabled check is removed from the template, it will also be disabled.

      You can't disable a check if it's used by any scheduled audit. You must delete the check from the scheduled audit or delete the scheduled audit itself to disable the check.

      For more information on avialbe auidt checks see AWS::IoT::AccountAuditConfiguration AuditCheckConfigurations

      Parameters:
      auditCheckConfigurations - Specifies which audit checks are enabled and disabled for this account. This parameter is required.
      Returns:
      this
    • roleArn

      @Stability(Stable) public CfnAccountAuditConfiguration.Builder roleArn(String roleArn)
      The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT to access information about your devices, policies, certificates, and other items as required when performing an audit.

      Parameters:
      roleArn - The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT to access information about your devices, policies, certificates, and other items as required when performing an audit. This parameter is required.
      Returns:
      this
    • auditNotificationTargetConfigurations

      @Stability(Stable) public CfnAccountAuditConfiguration.Builder auditNotificationTargetConfigurations(IResolvable auditNotificationTargetConfigurations)
      Information about the targets to which audit notifications are sent.

      Parameters:
      auditNotificationTargetConfigurations - Information about the targets to which audit notifications are sent. This parameter is required.
      Returns:
      this
    • auditNotificationTargetConfigurations

      @Stability(Stable) public CfnAccountAuditConfiguration.Builder auditNotificationTargetConfigurations(CfnAccountAuditConfiguration.AuditNotificationTargetConfigurationsProperty auditNotificationTargetConfigurations)
      Information about the targets to which audit notifications are sent.

      Parameters:
      auditNotificationTargetConfigurations - Information about the targets to which audit notifications are sent. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAccountAuditConfiguration build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAccountAuditConfiguration>
      Returns:
      a newly built instance of CfnAccountAuditConfiguration.