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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnScheduledAudit(Construct scope, String id, CfnScheduledAuditProps props) Create a newAWS::IoT::ScheduledAudit.protectedCfnScheduledAudit(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnScheduledAudit(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 thefrequencyis "MONTHLY").The day of the week on which the scheduled audit is run (if thefrequencyis "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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDayOfMonth(String value) The day of the month on which the scheduled audit is run (if thefrequencyis "MONTHLY").voidsetDayOfWeek(String value) The day of the week on which the scheduled audit is run (if thefrequencyis "WEEKLY" or "BIWEEKLY").voidsetFrequency(String value) How often the scheduled audit occurs.voidsetScheduledAuditName(String value) The name of the scheduled audit.voidsetTargetCheckNames(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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrScheduledAuditArn
The ARN of the scheduled audit. -
getCfnProperties
- Overrides:
getCfnPropertiesin 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
DescribeAccountAuditConfigurationto see the list of all checks, including those that are enabled or useUpdateAccountAuditConfigurationto select which checks are enabled.)The following checks are currently aviable:
AUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECKCA_CERTIFICATE_EXPIRING_CHECKCA_CERTIFICATE_KEY_QUALITY_CHECKCONFLICTING_CLIENT_IDS_CHECKDEVICE_CERTIFICATE_EXPIRING_CHECKDEVICE_CERTIFICATE_KEY_QUALITY_CHECKDEVICE_CERTIFICATE_SHARED_CHECKIOT_POLICY_OVERLY_PERMISSIVE_CHECKIOT_ROLE_ALIAS_ALLOWS_ACCESS_TO_UNUSED_SERVICES_CHECKIOT_ROLE_ALIAS_OVERLY_PERMISSIVE_CHECKLOGGING_DISABLED_CHECKREVOKED_CA_CERTIFICATE_STILL_ACTIVE_CHECKREVOKED_DEVICE_CERTIFICATE_STILL_ACTIVE_CHECKUNAUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECK
-
setTargetCheckNames
Which checks are performed during the scheduled audit.Checks must be enabled for your account. (Use
DescribeAccountAuditConfigurationto see the list of all checks, including those that are enabled or useUpdateAccountAuditConfigurationto select which checks are enabled.)The following checks are currently aviable:
AUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECKCA_CERTIFICATE_EXPIRING_CHECKCA_CERTIFICATE_KEY_QUALITY_CHECKCONFLICTING_CLIENT_IDS_CHECKDEVICE_CERTIFICATE_EXPIRING_CHECKDEVICE_CERTIFICATE_KEY_QUALITY_CHECKDEVICE_CERTIFICATE_SHARED_CHECKIOT_POLICY_OVERLY_PERMISSIVE_CHECKIOT_ROLE_ALIAS_ALLOWS_ACCESS_TO_UNUSED_SERVICES_CHECKIOT_ROLE_ALIAS_OVERLY_PERMISSIVE_CHECKLOGGING_DISABLED_CHECKREVOKED_CA_CERTIFICATE_STILL_ACTIVE_CHECKREVOKED_DEVICE_CERTIFICATE_STILL_ACTIVE_CHECKUNAUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECK
-
getDayOfMonth
The day of the month on which the scheduled audit is run (if thefrequencyis "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 thefrequencyis "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 thefrequencyis "WEEKLY" or "BIWEEKLY"). -
setDayOfWeek
The day of the week on which the scheduled audit is run (if thefrequencyis "WEEKLY" or "BIWEEKLY"). -
getScheduledAuditName
The name of the scheduled audit. -
setScheduledAuditName
The name of the scheduled audit.
-