We recommend new projects start with resources from the AWS provider.
aws-native.synthetics.getCanary
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Synthetics::Canary
Using getCanary
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCanary(args: GetCanaryArgs, opts?: InvokeOptions): Promise<GetCanaryResult>
function getCanaryOutput(args: GetCanaryOutputArgs, opts?: InvokeOptions): Output<GetCanaryResult>
def get_canary(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCanaryResult
def get_canary_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCanaryResult]
func LookupCanary(ctx *Context, args *LookupCanaryArgs, opts ...InvokeOption) (*LookupCanaryResult, error)
func LookupCanaryOutput(ctx *Context, args *LookupCanaryOutputArgs, opts ...InvokeOption) LookupCanaryResultOutput
> Note: This function is named LookupCanary
in the Go SDK.
public static class GetCanary
{
public static Task<GetCanaryResult> InvokeAsync(GetCanaryArgs args, InvokeOptions? opts = null)
public static Output<GetCanaryResult> Invoke(GetCanaryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCanaryResult> getCanary(GetCanaryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:synthetics:getCanary
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Name of the canary.
- Name string
- Name of the canary.
- name String
- Name of the canary.
- name string
- Name of the canary.
- name str
- Name of the canary.
- name String
- Name of the canary.
getCanary Result
The following output properties are available:
- Artifact
Config Pulumi.Aws Native. Synthetics. Outputs. Canary Artifact Config - Provide artifact configuration
- Artifact
S3Location string - Provide the s3 bucket output location for test results
- Code
Pulumi.
Aws Native. Synthetics. Outputs. Canary Code - Provide the canary script source
- Execution
Role stringArn - Lambda Execution role used to run your canaries
- Failure
Retention intPeriod - Retention period of failed canary runs represented in number of days
- Id string
- Id of the canary
- Run
Config Pulumi.Aws Native. Synthetics. Outputs. Canary Run Config - Provide canary run configuration
- Runtime
Version string - Runtime version of Synthetics Library
- Schedule
Pulumi.
Aws Native. Synthetics. Outputs. Canary Schedule - Frequency to run your canaries
- State string
- State of the canary
- Success
Retention intPeriod - Retention period of successful canary runs represented in number of days
- List<Pulumi.
Aws Native. Outputs. Tag> - The list of key-value pairs that are associated with the canary.
- Vpc
Config Pulumi.Aws Native. Synthetics. Outputs. Canary Vpc Config - Provide VPC Configuration if enabled.
- Artifact
Config CanaryArtifact Config - Provide artifact configuration
- Artifact
S3Location string - Provide the s3 bucket output location for test results
- Code
Canary
Code - Provide the canary script source
- Execution
Role stringArn - Lambda Execution role used to run your canaries
- Failure
Retention intPeriod - Retention period of failed canary runs represented in number of days
- Id string
- Id of the canary
- Run
Config CanaryRun Config - Provide canary run configuration
- Runtime
Version string - Runtime version of Synthetics Library
- Schedule
Canary
Schedule - Frequency to run your canaries
- State string
- State of the canary
- Success
Retention intPeriod - Retention period of successful canary runs represented in number of days
- Tag
- The list of key-value pairs that are associated with the canary.
- Vpc
Config CanaryVpc Config - Provide VPC Configuration if enabled.
- artifact
Config CanaryArtifact Config - Provide artifact configuration
- artifact
S3Location String - Provide the s3 bucket output location for test results
- code
Canary
Code - Provide the canary script source
- execution
Role StringArn - Lambda Execution role used to run your canaries
- failure
Retention IntegerPeriod - Retention period of failed canary runs represented in number of days
- id String
- Id of the canary
- run
Config CanaryRun Config - Provide canary run configuration
- runtime
Version String - Runtime version of Synthetics Library
- schedule
Canary
Schedule - Frequency to run your canaries
- state String
- State of the canary
- success
Retention IntegerPeriod - Retention period of successful canary runs represented in number of days
- List<Tag>
- The list of key-value pairs that are associated with the canary.
- vpc
Config CanaryVpc Config - Provide VPC Configuration if enabled.
- artifact
Config CanaryArtifact Config - Provide artifact configuration
- artifact
S3Location string - Provide the s3 bucket output location for test results
- code
Canary
Code - Provide the canary script source
- execution
Role stringArn - Lambda Execution role used to run your canaries
- failure
Retention numberPeriod - Retention period of failed canary runs represented in number of days
- id string
- Id of the canary
- run
Config CanaryRun Config - Provide canary run configuration
- runtime
Version string - Runtime version of Synthetics Library
- schedule
Canary
Schedule - Frequency to run your canaries
- state string
- State of the canary
- success
Retention numberPeriod - Retention period of successful canary runs represented in number of days
- Tag[]
- The list of key-value pairs that are associated with the canary.
- vpc
Config CanaryVpc Config - Provide VPC Configuration if enabled.
- artifact_
config CanaryArtifact Config - Provide artifact configuration
- artifact_
s3_ strlocation - Provide the s3 bucket output location for test results
- code
Canary
Code - Provide the canary script source
- execution_
role_ strarn - Lambda Execution role used to run your canaries
- failure_
retention_ intperiod - Retention period of failed canary runs represented in number of days
- id str
- Id of the canary
- run_
config CanaryRun Config - Provide canary run configuration
- runtime_
version str - Runtime version of Synthetics Library
- schedule
Canary
Schedule - Frequency to run your canaries
- state str
- State of the canary
- success_
retention_ intperiod - Retention period of successful canary runs represented in number of days
- Sequence[root_Tag]
- The list of key-value pairs that are associated with the canary.
- vpc_
config CanaryVpc Config - Provide VPC Configuration if enabled.
- artifact
Config Property Map - Provide artifact configuration
- artifact
S3Location String - Provide the s3 bucket output location for test results
- code Property Map
- Provide the canary script source
- execution
Role StringArn - Lambda Execution role used to run your canaries
- failure
Retention NumberPeriod - Retention period of failed canary runs represented in number of days
- id String
- Id of the canary
- run
Config Property Map - Provide canary run configuration
- runtime
Version String - Runtime version of Synthetics Library
- schedule Property Map
- Frequency to run your canaries
- state String
- State of the canary
- success
Retention NumberPeriod - Retention period of successful canary runs represented in number of days
- List<Property Map>
- The list of key-value pairs that are associated with the canary.
- vpc
Config Property Map - Provide VPC Configuration if enabled.
Supporting Types
CanaryArtifactConfig
- S3Encryption
Pulumi.
Aws Native. Synthetics. Inputs. Canary S3Encryption - Encryption configuration for uploading artifacts to S3
- S3Encryption
Canary
S3Encryption - Encryption configuration for uploading artifacts to S3
- s3Encryption
Canary
S3Encryption - Encryption configuration for uploading artifacts to S3
- s3Encryption
Canary
S3Encryption - Encryption configuration for uploading artifacts to S3
- s3_
encryption CanaryS3Encryption - Encryption configuration for uploading artifacts to S3
- s3Encryption Property Map
- Encryption configuration for uploading artifacts to S3
CanaryCode
- Handler string
- The entry point to use for the source code when running the canary. For canaries that use the
syn-python-selenium-1.0
runtime or asyn-nodejs.puppeteer
runtime earlier thansyn-nodejs.puppeteer-3.4
, the handler must be specified as*fileName* .handler
. Forsyn-python-selenium-1.1
,syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be specified as*fileName* . *functionName*
, or you can specify a folder where canary scripts reside as*folder* / *fileName* . *functionName*
. - S3Bucket string
- If your canary script is located in S3, specify the bucket name here. The bucket must already exist.
- S3Key string
- The S3 key of your script. For more information, see Working with Amazon S3 Objects .
- S3Object
Version string - The S3 version ID of your script.
- Script string
- If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the script in plain text. It can be up to 5 MB.
- Source
Location stringArn - The ARN of the Lambda layer where Synthetics stores the canary script code.
- Handler string
- The entry point to use for the source code when running the canary. For canaries that use the
syn-python-selenium-1.0
runtime or asyn-nodejs.puppeteer
runtime earlier thansyn-nodejs.puppeteer-3.4
, the handler must be specified as*fileName* .handler
. Forsyn-python-selenium-1.1
,syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be specified as*fileName* . *functionName*
, or you can specify a folder where canary scripts reside as*folder* / *fileName* . *functionName*
. - S3Bucket string
- If your canary script is located in S3, specify the bucket name here. The bucket must already exist.
- S3Key string
- The S3 key of your script. For more information, see Working with Amazon S3 Objects .
- S3Object
Version string - The S3 version ID of your script.
- Script string
- If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the script in plain text. It can be up to 5 MB.
- Source
Location stringArn - The ARN of the Lambda layer where Synthetics stores the canary script code.
- handler String
- The entry point to use for the source code when running the canary. For canaries that use the
syn-python-selenium-1.0
runtime or asyn-nodejs.puppeteer
runtime earlier thansyn-nodejs.puppeteer-3.4
, the handler must be specified as*fileName* .handler
. Forsyn-python-selenium-1.1
,syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be specified as*fileName* . *functionName*
, or you can specify a folder where canary scripts reside as*folder* / *fileName* . *functionName*
. - s3Bucket String
- If your canary script is located in S3, specify the bucket name here. The bucket must already exist.
- s3Key String
- The S3 key of your script. For more information, see Working with Amazon S3 Objects .
- s3Object
Version String - The S3 version ID of your script.
- script String
- If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the script in plain text. It can be up to 5 MB.
- source
Location StringArn - The ARN of the Lambda layer where Synthetics stores the canary script code.
- handler string
- The entry point to use for the source code when running the canary. For canaries that use the
syn-python-selenium-1.0
runtime or asyn-nodejs.puppeteer
runtime earlier thansyn-nodejs.puppeteer-3.4
, the handler must be specified as*fileName* .handler
. Forsyn-python-selenium-1.1
,syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be specified as*fileName* . *functionName*
, or you can specify a folder where canary scripts reside as*folder* / *fileName* . *functionName*
. - s3Bucket string
- If your canary script is located in S3, specify the bucket name here. The bucket must already exist.
- s3Key string
- The S3 key of your script. For more information, see Working with Amazon S3 Objects .
- s3Object
Version string - The S3 version ID of your script.
- script string
- If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the script in plain text. It can be up to 5 MB.
- source
Location stringArn - The ARN of the Lambda layer where Synthetics stores the canary script code.
- handler str
- The entry point to use for the source code when running the canary. For canaries that use the
syn-python-selenium-1.0
runtime or asyn-nodejs.puppeteer
runtime earlier thansyn-nodejs.puppeteer-3.4
, the handler must be specified as*fileName* .handler
. Forsyn-python-selenium-1.1
,syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be specified as*fileName* . *functionName*
, or you can specify a folder where canary scripts reside as*folder* / *fileName* . *functionName*
. - s3_
bucket str - If your canary script is located in S3, specify the bucket name here. The bucket must already exist.
- s3_
key str - The S3 key of your script. For more information, see Working with Amazon S3 Objects .
- s3_
object_ strversion - The S3 version ID of your script.
- script str
- If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the script in plain text. It can be up to 5 MB.
- source_
location_ strarn - The ARN of the Lambda layer where Synthetics stores the canary script code.
- handler String
- The entry point to use for the source code when running the canary. For canaries that use the
syn-python-selenium-1.0
runtime or asyn-nodejs.puppeteer
runtime earlier thansyn-nodejs.puppeteer-3.4
, the handler must be specified as*fileName* .handler
. Forsyn-python-selenium-1.1
,syn-nodejs.puppeteer-3.4
, and later runtimes, the handler can be specified as*fileName* . *functionName*
, or you can specify a folder where canary scripts reside as*folder* / *fileName* . *functionName*
. - s3Bucket String
- If your canary script is located in S3, specify the bucket name here. The bucket must already exist.
- s3Key String
- The S3 key of your script. For more information, see Working with Amazon S3 Objects .
- s3Object
Version String - The S3 version ID of your script.
- script String
- If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the script in plain text. It can be up to 5 MB.
- source
Location StringArn - The ARN of the Lambda layer where Synthetics stores the canary script code.
CanaryRunConfig
- Active
Tracing bool - Enable active tracing if set to true
- Environment
Variables Dictionary<string, string> - Environment variable key-value pairs.
- Memory
In intMb - Provide maximum memory available for canary in MB
- Timeout
In intSeconds - Provide maximum canary timeout per run in seconds
- Active
Tracing bool - Enable active tracing if set to true
- Environment
Variables map[string]string - Environment variable key-value pairs.
- Memory
In intMb - Provide maximum memory available for canary in MB
- Timeout
In intSeconds - Provide maximum canary timeout per run in seconds
- active
Tracing Boolean - Enable active tracing if set to true
- environment
Variables Map<String,String> - Environment variable key-value pairs.
- memory
In IntegerMb - Provide maximum memory available for canary in MB
- timeout
In IntegerSeconds - Provide maximum canary timeout per run in seconds
- active
Tracing boolean - Enable active tracing if set to true
- environment
Variables {[key: string]: string} - Environment variable key-value pairs.
- memory
In numberMb - Provide maximum memory available for canary in MB
- timeout
In numberSeconds - Provide maximum canary timeout per run in seconds
- active_
tracing bool - Enable active tracing if set to true
- environment_
variables Mapping[str, str] - Environment variable key-value pairs.
- memory_
in_ intmb - Provide maximum memory available for canary in MB
- timeout_
in_ intseconds - Provide maximum canary timeout per run in seconds
- active
Tracing Boolean - Enable active tracing if set to true
- environment
Variables Map<String> - Environment variable key-value pairs.
- memory
In NumberMb - Provide maximum memory available for canary in MB
- timeout
In NumberSeconds - Provide maximum canary timeout per run in seconds
CanaryS3Encryption
- Encryption
Mode string - Encryption mode for encrypting artifacts when uploading to S3. Valid values: SSE_S3 and SSE_KMS.
- Kms
Key stringArn - KMS key Arn for encrypting artifacts when uploading to S3. You must specify KMS key Arn for SSE_KMS encryption mode only.
- Encryption
Mode string - Encryption mode for encrypting artifacts when uploading to S3. Valid values: SSE_S3 and SSE_KMS.
- Kms
Key stringArn - KMS key Arn for encrypting artifacts when uploading to S3. You must specify KMS key Arn for SSE_KMS encryption mode only.
- encryption
Mode String - Encryption mode for encrypting artifacts when uploading to S3. Valid values: SSE_S3 and SSE_KMS.
- kms
Key StringArn - KMS key Arn for encrypting artifacts when uploading to S3. You must specify KMS key Arn for SSE_KMS encryption mode only.
- encryption
Mode string - Encryption mode for encrypting artifacts when uploading to S3. Valid values: SSE_S3 and SSE_KMS.
- kms
Key stringArn - KMS key Arn for encrypting artifacts when uploading to S3. You must specify KMS key Arn for SSE_KMS encryption mode only.
- encryption_
mode str - Encryption mode for encrypting artifacts when uploading to S3. Valid values: SSE_S3 and SSE_KMS.
- kms_
key_ strarn - KMS key Arn for encrypting artifacts when uploading to S3. You must specify KMS key Arn for SSE_KMS encryption mode only.
- encryption
Mode String - Encryption mode for encrypting artifacts when uploading to S3. Valid values: SSE_S3 and SSE_KMS.
- kms
Key StringArn - KMS key Arn for encrypting artifacts when uploading to S3. You must specify KMS key Arn for SSE_KMS encryption mode only.
CanarySchedule
- Expression string
A
rate
expression or acron
expression that defines how often the canary is to run.For a rate expression, The syntax is
rate( *number unit* )
. unit can beminute
,minutes
, orhour
.For example,
rate(1 minute)
runs the canary once a minute,rate(10 minutes)
runs it once every 10 minutes, andrate(1 hour)
runs it once every hour. You can specify a frequency betweenrate(1 minute)
andrate(1 hour)
.Specifying
rate(0 minute)
orrate(0 hour)
is a special value that causes the canary to run only once when it is started.Use
cron( *expression* )
to specify a cron expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see Scheduling canary runs using cron .- Duration
In stringSeconds - How long, in seconds, for the canary to continue making regular runs according to the schedule in the
Expression
value. If you specify 0, the canary continues making runs until you stop it. If you omit this field, the default of 0 is used.
- Expression string
A
rate
expression or acron
expression that defines how often the canary is to run.For a rate expression, The syntax is
rate( *number unit* )
. unit can beminute
,minutes
, orhour
.For example,
rate(1 minute)
runs the canary once a minute,rate(10 minutes)
runs it once every 10 minutes, andrate(1 hour)
runs it once every hour. You can specify a frequency betweenrate(1 minute)
andrate(1 hour)
.Specifying
rate(0 minute)
orrate(0 hour)
is a special value that causes the canary to run only once when it is started.Use
cron( *expression* )
to specify a cron expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see Scheduling canary runs using cron .- Duration
In stringSeconds - How long, in seconds, for the canary to continue making regular runs according to the schedule in the
Expression
value. If you specify 0, the canary continues making runs until you stop it. If you omit this field, the default of 0 is used.
- expression String
A
rate
expression or acron
expression that defines how often the canary is to run.For a rate expression, The syntax is
rate( *number unit* )
. unit can beminute
,minutes
, orhour
.For example,
rate(1 minute)
runs the canary once a minute,rate(10 minutes)
runs it once every 10 minutes, andrate(1 hour)
runs it once every hour. You can specify a frequency betweenrate(1 minute)
andrate(1 hour)
.Specifying
rate(0 minute)
orrate(0 hour)
is a special value that causes the canary to run only once when it is started.Use
cron( *expression* )
to specify a cron expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see Scheduling canary runs using cron .- duration
In StringSeconds - How long, in seconds, for the canary to continue making regular runs according to the schedule in the
Expression
value. If you specify 0, the canary continues making runs until you stop it. If you omit this field, the default of 0 is used.
- expression string
A
rate
expression or acron
expression that defines how often the canary is to run.For a rate expression, The syntax is
rate( *number unit* )
. unit can beminute
,minutes
, orhour
.For example,
rate(1 minute)
runs the canary once a minute,rate(10 minutes)
runs it once every 10 minutes, andrate(1 hour)
runs it once every hour. You can specify a frequency betweenrate(1 minute)
andrate(1 hour)
.Specifying
rate(0 minute)
orrate(0 hour)
is a special value that causes the canary to run only once when it is started.Use
cron( *expression* )
to specify a cron expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see Scheduling canary runs using cron .- duration
In stringSeconds - How long, in seconds, for the canary to continue making regular runs according to the schedule in the
Expression
value. If you specify 0, the canary continues making runs until you stop it. If you omit this field, the default of 0 is used.
- expression str
A
rate
expression or acron
expression that defines how often the canary is to run.For a rate expression, The syntax is
rate( *number unit* )
. unit can beminute
,minutes
, orhour
.For example,
rate(1 minute)
runs the canary once a minute,rate(10 minutes)
runs it once every 10 minutes, andrate(1 hour)
runs it once every hour. You can specify a frequency betweenrate(1 minute)
andrate(1 hour)
.Specifying
rate(0 minute)
orrate(0 hour)
is a special value that causes the canary to run only once when it is started.Use
cron( *expression* )
to specify a cron expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see Scheduling canary runs using cron .- duration_
in_ strseconds - How long, in seconds, for the canary to continue making regular runs according to the schedule in the
Expression
value. If you specify 0, the canary continues making runs until you stop it. If you omit this field, the default of 0 is used.
- expression String
A
rate
expression or acron
expression that defines how often the canary is to run.For a rate expression, The syntax is
rate( *number unit* )
. unit can beminute
,minutes
, orhour
.For example,
rate(1 minute)
runs the canary once a minute,rate(10 minutes)
runs it once every 10 minutes, andrate(1 hour)
runs it once every hour. You can specify a frequency betweenrate(1 minute)
andrate(1 hour)
.Specifying
rate(0 minute)
orrate(0 hour)
is a special value that causes the canary to run only once when it is started.Use
cron( *expression* )
to specify a cron expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see Scheduling canary runs using cron .- duration
In StringSeconds - How long, in seconds, for the canary to continue making regular runs according to the schedule in the
Expression
value. If you specify 0, the canary continues making runs until you stop it. If you omit this field, the default of 0 is used.
CanaryVpcConfig
- Security
Group List<string>Ids - The IDs of the security groups for this canary.
- Subnet
Ids List<string> - The IDs of the subnets where this canary is to run.
- Vpc
Id string - The ID of the VPC where this canary is to run.
- Security
Group []stringIds - The IDs of the security groups for this canary.
- Subnet
Ids []string - The IDs of the subnets where this canary is to run.
- Vpc
Id string - The ID of the VPC where this canary is to run.
- security
Group List<String>Ids - The IDs of the security groups for this canary.
- subnet
Ids List<String> - The IDs of the subnets where this canary is to run.
- vpc
Id String - The ID of the VPC where this canary is to run.
- security
Group string[]Ids - The IDs of the security groups for this canary.
- subnet
Ids string[] - The IDs of the subnets where this canary is to run.
- vpc
Id string - The ID of the VPC where this canary is to run.
- security_
group_ Sequence[str]ids - The IDs of the security groups for this canary.
- subnet_
ids Sequence[str] - The IDs of the subnets where this canary is to run.
- vpc_
id str - The ID of the VPC where this canary is to run.
- security
Group List<String>Ids - The IDs of the security groups for this canary.
- subnet
Ids List<String> - The IDs of the subnets where this canary is to run.
- vpc
Id String - The ID of the VPC where this canary is to run.
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.