@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:19.549Z") @Stability(value=Stable) public class CfnCanary extends CfnResource implements IInspectable
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.synthetics.*;
CfnCanary cfnCanary = CfnCanary.Builder.create(this, "MyCfnCanary")
.artifactS3Location("artifactS3Location")
.code(CodeProperty.builder()
.handler("handler")
// the properties below are optional
.s3Bucket("s3Bucket")
.s3Key("s3Key")
.s3ObjectVersion("s3ObjectVersion")
.script("script")
.build())
.executionRoleArn("executionRoleArn")
.name("name")
.runtimeVersion("runtimeVersion")
.schedule(ScheduleProperty.builder()
.expression("expression")
// the properties below are optional
.durationInSeconds("durationInSeconds")
.build())
.startCanaryAfterCreation(false)
// the properties below are optional
.artifactConfig(ArtifactConfigProperty.builder()
.s3Encryption(S3EncryptionProperty.builder()
.encryptionMode("encryptionMode")
.kmsKeyArn("kmsKeyArn")
.build())
.build())
.failureRetentionPeriod(123)
.runConfig(RunConfigProperty.builder()
.activeTracing(false)
.environmentVariables(Map.of(
"environmentVariablesKey", "environmentVariables"))
.memoryInMb(123)
.timeoutInSeconds(123)
.build())
.successRetentionPeriod(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.visualReference(VisualReferenceProperty.builder()
.baseCanaryRunId("baseCanaryRunId")
// the properties below are optional
.baseScreenshots(List.of(BaseScreenshotProperty.builder()
.screenshotName("screenshotName")
// the properties below are optional
.ignoreCoordinates(List.of("ignoreCoordinates"))
.build()))
.build())
.vpcConfig(VPCConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
// the properties below are optional
.vpcId("vpcId")
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnCanary.ArtifactConfigProperty
Example:
|
static interface |
CfnCanary.BaseScreenshotProperty
Example:
|
static class |
CfnCanary.Builder
A fluent builder for
CfnCanary. |
static interface |
CfnCanary.CodeProperty
Example:
|
static interface |
CfnCanary.RunConfigProperty
Example:
|
static interface |
CfnCanary.S3EncryptionProperty
Example:
|
static interface |
CfnCanary.ScheduleProperty
Example:
|
static interface |
CfnCanary.VisualReferenceProperty
Example:
|
static interface |
CfnCanary.VPCConfigProperty
Example:
|
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 |
|---|---|
|
CfnCanary(software.constructs.Construct scope,
String id,
CfnCanaryProps props)
Create a new `AWS::Synthetics::Canary`.
|
protected |
CfnCanary(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCanary(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getArtifactConfig()
`AWS::Synthetics::Canary.ArtifactConfig`.
|
String |
getArtifactS3Location()
`AWS::Synthetics::Canary.ArtifactS3Location`.
|
String |
getAttrId() |
String |
getAttrState() |
protected Map<String,Object> |
getCfnProperties() |
Object |
getCode()
`AWS::Synthetics::Canary.Code`.
|
String |
getExecutionRoleArn()
`AWS::Synthetics::Canary.ExecutionRoleArn`.
|
Number |
getFailureRetentionPeriod()
`AWS::Synthetics::Canary.FailureRetentionPeriod`.
|
String |
getName()
`AWS::Synthetics::Canary.Name`.
|
Object |
getRunConfig()
`AWS::Synthetics::Canary.RunConfig`.
|
String |
getRuntimeVersion()
`AWS::Synthetics::Canary.RuntimeVersion`.
|
Object |
getSchedule()
`AWS::Synthetics::Canary.Schedule`.
|
Object |
getStartCanaryAfterCreation()
`AWS::Synthetics::Canary.StartCanaryAfterCreation`.
|
Number |
getSuccessRetentionPeriod()
`AWS::Synthetics::Canary.SuccessRetentionPeriod`.
|
TagManager |
getTags()
`AWS::Synthetics::Canary.Tags`.
|
Object |
getVisualReference()
`AWS::Synthetics::Canary.VisualReference`.
|
Object |
getVpcConfig()
`AWS::Synthetics::Canary.VPCConfig`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setArtifactConfig(CfnCanary.ArtifactConfigProperty value)
`AWS::Synthetics::Canary.ArtifactConfig`.
|
void |
setArtifactConfig(IResolvable value)
`AWS::Synthetics::Canary.ArtifactConfig`.
|
void |
setArtifactS3Location(String value)
`AWS::Synthetics::Canary.ArtifactS3Location`.
|
void |
setCode(CfnCanary.CodeProperty value)
`AWS::Synthetics::Canary.Code`.
|
void |
setCode(IResolvable value)
`AWS::Synthetics::Canary.Code`.
|
void |
setExecutionRoleArn(String value)
`AWS::Synthetics::Canary.ExecutionRoleArn`.
|
void |
setFailureRetentionPeriod(Number value)
`AWS::Synthetics::Canary.FailureRetentionPeriod`.
|
void |
setName(String value)
`AWS::Synthetics::Canary.Name`.
|
void |
setRunConfig(CfnCanary.RunConfigProperty value)
`AWS::Synthetics::Canary.RunConfig`.
|
void |
setRunConfig(IResolvable value)
`AWS::Synthetics::Canary.RunConfig`.
|
void |
setRuntimeVersion(String value)
`AWS::Synthetics::Canary.RuntimeVersion`.
|
void |
setSchedule(CfnCanary.ScheduleProperty value)
`AWS::Synthetics::Canary.Schedule`.
|
void |
setSchedule(IResolvable value)
`AWS::Synthetics::Canary.Schedule`.
|
void |
setStartCanaryAfterCreation(Boolean value)
`AWS::Synthetics::Canary.StartCanaryAfterCreation`.
|
void |
setStartCanaryAfterCreation(IResolvable value)
`AWS::Synthetics::Canary.StartCanaryAfterCreation`.
|
void |
setSuccessRetentionPeriod(Number value)
`AWS::Synthetics::Canary.SuccessRetentionPeriod`.
|
void |
setVisualReference(CfnCanary.VisualReferenceProperty value)
`AWS::Synthetics::Canary.VisualReference`.
|
void |
setVisualReference(IResolvable value)
`AWS::Synthetics::Canary.VisualReference`.
|
void |
setVpcConfig(CfnCanary.VPCConfigProperty value)
`AWS::Synthetics::Canary.VPCConfig`.
|
void |
setVpcConfig(IResolvable value)
`AWS::Synthetics::Canary.VPCConfig`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, 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 CfnCanary(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCanary(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnCanary(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnCanaryProps 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) @Nullable public Object getArtifactConfig()
@Stability(value=Stable)
public void setArtifactConfig(@Nullable
CfnCanary.ArtifactConfigProperty value)
@Stability(value=Stable)
public void setArtifactConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public String getArtifactS3Location()
@Stability(value=Stable)
public void setArtifactS3Location(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull public String getAttrState()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getCode()
@Stability(value=Stable)
public void setCode(@NotNull
CfnCanary.CodeProperty value)
@Stability(value=Stable)
public void setCode(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getExecutionRoleArn()
@Stability(value=Stable)
public void setExecutionRoleArn(@NotNull
String value)
@Stability(value=Stable) @Nullable public Number getFailureRetentionPeriod()
@Stability(value=Stable)
public void setFailureRetentionPeriod(@Nullable
Number value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getRunConfig()
@Stability(value=Stable)
public void setRunConfig(@Nullable
CfnCanary.RunConfigProperty value)
@Stability(value=Stable)
public void setRunConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public String getRuntimeVersion()
@Stability(value=Stable)
public void setRuntimeVersion(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getSchedule()
@Stability(value=Stable)
public void setSchedule(@NotNull
CfnCanary.ScheduleProperty value)
@Stability(value=Stable)
public void setSchedule(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public Object getStartCanaryAfterCreation()
@Stability(value=Stable)
public void setStartCanaryAfterCreation(@NotNull
Boolean value)
@Stability(value=Stable)
public void setStartCanaryAfterCreation(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public Number getSuccessRetentionPeriod()
@Stability(value=Stable)
public void setSuccessRetentionPeriod(@Nullable
Number value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public Object getVisualReference()
@Stability(value=Stable)
public void setVisualReference(@Nullable
CfnCanary.VisualReferenceProperty value)
@Stability(value=Stable)
public void setVisualReference(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getVpcConfig()
@Stability(value=Stable)
public void setVpcConfig(@Nullable
CfnCanary.VPCConfigProperty value)
@Stability(value=Stable)
public void setVpcConfig(@Nullable
IResolvable value)
Copyright © 2021. All rights reserved.