Class CfnScheduledAudit
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::IoT::ScheduledAudit
.
Use the AWS::IoT::ScheduledAudit
resource to create a scheduled audit that is run at a specified time interval. For API reference, see CreateScheduleAudit and for general information, see Audit .
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.iot.*; CfnScheduledAudit cfnScheduledAudit = CfnScheduledAudit.Builder.create(this, "MyCfnScheduledAudit") .frequency("frequency") .targetCheckNames(List.of("targetCheckNames")) // the properties below are optional .dayOfMonth("dayOfMonth") .dayOfWeek("dayOfWeek") .scheduledAuditName("scheduledAuditName") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnScheduledAudit
(Construct scope, String id, CfnScheduledAuditProps props) Create a newAWS::IoT::ScheduledAudit
.protected
CfnScheduledAudit
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnScheduledAudit
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the scheduled audit.The day of the month on which the scheduled audit is run (if thefrequency
is "MONTHLY").The day of the week on which the scheduled audit is run (if thefrequency
is "WEEKLY" or "BIWEEKLY").How often the scheduled audit occurs.The name of the scheduled audit.getTags()
Metadata that can be used to manage the scheduled audit.Which checks are performed during the scheduled audit.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDayOfMonth
(String value) The day of the month on which the scheduled audit is run (if thefrequency
is "MONTHLY").void
setDayOfWeek
(String value) The day of the week on which the scheduled audit is run (if thefrequency
is "WEEKLY" or "BIWEEKLY").void
setFrequency
(String value) How often the scheduled audit occurs.void
setScheduledAuditName
(String value) The name of the scheduled audit.void
setTargetCheckNames
(List<String> value) Which checks are performed during the scheduled audit.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnScheduledAudit
protected CfnScheduledAudit(software.amazon.jsii.JsiiObjectRef objRef) -
CfnScheduledAudit
protected CfnScheduledAudit(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnScheduledAudit
@Stability(Stable) public CfnScheduledAudit(@NotNull Construct scope, @NotNull String id, @NotNull CfnScheduledAuditProps props) Create a newAWS::IoT::ScheduledAudit
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrScheduledAuditArn
The ARN of the scheduled audit. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Metadata that can be used to manage the scheduled audit. -
getFrequency
How often the scheduled audit occurs. -
setFrequency
How often the scheduled audit occurs. -
getTargetCheckNames
Which checks are performed during the scheduled audit.Checks must be enabled for your account. (Use
DescribeAccountAuditConfiguration
to see the list of all checks, including those that are enabled or useUpdateAccountAuditConfiguration
to select which checks are enabled.)The following checks are currently aviable:
AUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECK
CA_CERTIFICATE_EXPIRING_CHECK
CA_CERTIFICATE_KEY_QUALITY_CHECK
CONFLICTING_CLIENT_IDS_CHECK
DEVICE_CERTIFICATE_EXPIRING_CHECK
DEVICE_CERTIFICATE_KEY_QUALITY_CHECK
DEVICE_CERTIFICATE_SHARED_CHECK
IOT_POLICY_OVERLY_PERMISSIVE_CHECK
IOT_ROLE_ALIAS_ALLOWS_ACCESS_TO_UNUSED_SERVICES_CHECK
IOT_ROLE_ALIAS_OVERLY_PERMISSIVE_CHECK
LOGGING_DISABLED_CHECK
REVOKED_CA_CERTIFICATE_STILL_ACTIVE_CHECK
REVOKED_DEVICE_CERTIFICATE_STILL_ACTIVE_CHECK
UNAUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECK
-
setTargetCheckNames
Which checks are performed during the scheduled audit.Checks must be enabled for your account. (Use
DescribeAccountAuditConfiguration
to see the list of all checks, including those that are enabled or useUpdateAccountAuditConfiguration
to select which checks are enabled.)The following checks are currently aviable:
AUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECK
CA_CERTIFICATE_EXPIRING_CHECK
CA_CERTIFICATE_KEY_QUALITY_CHECK
CONFLICTING_CLIENT_IDS_CHECK
DEVICE_CERTIFICATE_EXPIRING_CHECK
DEVICE_CERTIFICATE_KEY_QUALITY_CHECK
DEVICE_CERTIFICATE_SHARED_CHECK
IOT_POLICY_OVERLY_PERMISSIVE_CHECK
IOT_ROLE_ALIAS_ALLOWS_ACCESS_TO_UNUSED_SERVICES_CHECK
IOT_ROLE_ALIAS_OVERLY_PERMISSIVE_CHECK
LOGGING_DISABLED_CHECK
REVOKED_CA_CERTIFICATE_STILL_ACTIVE_CHECK
REVOKED_DEVICE_CERTIFICATE_STILL_ACTIVE_CHECK
UNAUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECK
-
getDayOfMonth
The day of the month on which the scheduled audit is run (if thefrequency
is "MONTHLY").If days 29-31 are specified, and the month does not have that many days, the audit takes place on the "LAST" day of the month.
-
setDayOfMonth
The day of the month on which the scheduled audit is run (if thefrequency
is "MONTHLY").If days 29-31 are specified, and the month does not have that many days, the audit takes place on the "LAST" day of the month.
-
getDayOfWeek
The day of the week on which the scheduled audit is run (if thefrequency
is "WEEKLY" or "BIWEEKLY"). -
setDayOfWeek
The day of the week on which the scheduled audit is run (if thefrequency
is "WEEKLY" or "BIWEEKLY"). -
getScheduledAuditName
The name of the scheduled audit. -
setScheduledAuditName
The name of the scheduled audit.
-