@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.875Z") @Stability(value=Stable) public class CfnScheduledAudit extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnScheduledAudit.Builder
A fluent builder for
CfnScheduledAudit. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnScheduledAudit(software.constructs.Construct scope,
String id,
CfnScheduledAuditProps props)
Create a new `AWS::IoT::ScheduledAudit`.
|
protected |
CfnScheduledAudit(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnScheduledAudit(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrScheduledAuditArn()
The ARN of the scheduled audit.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDayOfMonth()
The day of the month on which the scheduled audit is run (if the `frequency` is "MONTHLY").
|
String |
getDayOfWeek()
The day of the week on which the scheduled audit is run (if the `frequency` is "WEEKLY" or "BIWEEKLY").
|
String |
getFrequency()
How often the scheduled audit occurs.
|
String |
getScheduledAuditName()
The name of the scheduled audit.
|
TagManager |
getTags()
Metadata that can be used to manage the scheduled audit.
|
List<String> |
getTargetCheckNames()
Which checks are performed during the scheduled audit.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDayOfMonth(String value)
The day of the month on which the scheduled audit is run (if the `frequency` is "MONTHLY").
|
void |
setDayOfWeek(String value)
The day of the week on which the scheduled audit is run (if the `frequency` 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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnScheduledAudit(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnScheduledAudit(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnScheduledAudit(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnScheduledAuditProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrScheduledAuditArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getFrequency()
@Stability(value=Stable)
public void setFrequency(@NotNull
String value)
@Stability(value=Stable) @NotNull public List<String> getTargetCheckNames()
Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration to 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@Stability(value=Stable)
public void setTargetCheckNames(@NotNull
List<String> value)
Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration to 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@Stability(value=Stable) @Nullable public String getDayOfMonth()
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.
@Stability(value=Stable)
public void setDayOfMonth(@Nullable
String value)
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.
@Stability(value=Stable) @Nullable public String getDayOfWeek()
@Stability(value=Stable)
public void setDayOfWeek(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getScheduledAuditName()
@Stability(value=Stable)
public void setScheduledAuditName(@Nullable
String value)
Copyright © 2022. All rights reserved.