@datafire/amazonaws_synthetics
v5.0.0
Published
DataFire integration for Synthetics
Downloads
3
Readme
@datafire/amazonaws_synthetics
Client library for Synthetics
Installation and Usage
npm install --save @datafire/amazonaws_synthetics
let amazonaws_synthetics = require('@datafire/amazonaws_synthetics').create({
accessKeyId: "",
secretAccessKey: "",
region: ""
});
.then(data => {
console.log(data);
});
Description
Amazon CloudWatch Synthetics You can use Amazon CloudWatch Synthetics to continually monitor your services. You can create and manage canaries, which are modular, lightweight scripts that monitor your endpoints and APIs from the outside-in. You can set up your canaries to run 24 hours a day, once per minute. The canaries help you check the availability and latency of your web services and troubleshoot anomalies by investigating load time data, screenshots of the UI, logs, and metrics. The canaries seamlessly integrate with CloudWatch ServiceLens to help you trace the causes of impacted nodes in your applications. For more information, see Using ServiceLens to Monitor the Health of Your Applications in the Amazon CloudWatch User Guide. Before you create and manage canaries, be aware of the security considerations. For more information, see Security Considerations for Synthetics Canaries.
Actions
DescribeCanaries
amazonaws_synthetics.DescribeCanaries({}, context)
Input
- input
object
- MaxResults
string
- NextToken
string
- MaxResults
integer
: Specify this parameter to limit how many canaries are returned each time you use the DescribeCanaries operation. If you omit this parameter, the default of 100 is used. - NextToken
string
: A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results.
- MaxResults
Output
- output DescribeCanariesResponse
DescribeCanariesLastRun
amazonaws_synthetics.DescribeCanariesLastRun({}, context)
Input
- input
object
- MaxResults
string
- NextToken
string
- MaxResults
integer
: Specify this parameter to limit how many runs are returned each time you use the DescribeLastRun operation. If you omit this parameter, the default of 100 is used. - NextToken
string
: A token that indicates that there is more data available. You can use this token in a subsequent DescribeCanaries operation to retrieve the next set of results.
- MaxResults
Output
CreateCanary
amazonaws_synthetics.CreateCanary({
"Name": "",
"Code": {},
"ArtifactS3Location": "",
"ExecutionRoleArn": "",
"Schedule": {},
"RuntimeVersion": ""
}, context)
Input
- input
object
- ArtifactS3Location required
string
: The location in Amazon S3 where Synthetics stores artifacts from the test runs of this canary. Artifacts include the log file, screenshots, and HAR files. - Code required
object
: Use this structure to input your script code for the canary. This structure contains the Lambda handler with the location where the canary should start running the script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included. If the script was passed into the canary directly, the script code is contained in the value of Zipfile.- Handler
- S3Bucket
- S3Key
- S3Version
- ZipFile
- ExecutionRoleArn required
string
: The ARN of the IAM role to be used to run the canary. This role must already exist, and must include lambda.amazonaws.com as a principal in the trust policy. The role must also have the following permissions: s3:PutObject s3:GetBucketLocation s3:ListAllMyBuckets cloudwatch:PutMetricData logs:CreateLogGroup logs:CreateLogStream logs:PutLogEvents - FailureRetentionPeriodInDays
integer
: The number of days to retain data about failed runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days. - Name required
string
: The name for this canary. Be sure to give it a descriptive name that distinguishes it from other canaries in your account. Do not include secrets or proprietary information in your canary names. The canary name makes up part of the canary ARN, and the ARN is included in outbound calls over the internet. For more information, see Security Considerations for Synthetics Canaries. - RunConfig
object
: A structure that contains input information for a canary run.- ActiveTracing
- EnvironmentVariables
- MemoryInMB
- TimeoutInSeconds
- RuntimeVersion required
string
: Specifies the runtime version to use for the canary. For a list of valid runtime versions and more information about runtime versions, see Canary Runtime Versions. - Schedule required
object
: This structure specifies how often a canary is to make runs and the date and time when it should stop making runs.- DurationInSeconds
- Expression
- SuccessRetentionPeriodInDays
integer
: The number of days to retain data about successful runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days. - Tags
object
: A list of key-value pairs to associate with the canary. You can associate as many as 50 tags with a canary. Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values. - VpcConfig
object
: If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC.- SecurityGroupIds
- items SecurityGroupId
- SubnetIds
- items SubnetId
- SecurityGroupIds
- ArtifactS3Location required
Output
- output CreateCanaryResponse
DeleteCanary
amazonaws_synthetics.DeleteCanary({
"name": ""
}, context)
Input
- input
object
- name required
string
- name required
Output
- output DeleteCanaryResponse
GetCanary
amazonaws_synthetics.GetCanary({
"name": ""
}, context)
Input
- input
object
- name required
string
- name required
Output
- output GetCanaryResponse
UpdateCanary
amazonaws_synthetics.UpdateCanary({
"name": ""
}, context)
Input
- input
object
- name required
string
- Code
object
: Use this structure to input your script code for the canary. This structure contains the Lambda handler with the location where the canary should start running the script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included. If the script was passed into the canary directly, the script code is contained in the value of Zipfile.- Handler
- S3Bucket
- S3Key
- S3Version
- ZipFile
- ExecutionRoleArn
string
: The ARN of the IAM role to be used to run the canary. This role must already exist, and must include lambda.amazonaws.com as a principal in the trust policy. The role must also have the following permissions: s3:PutObject s3:GetBucketLocation s3:ListAllMyBuckets cloudwatch:PutMetricData logs:CreateLogGroup logs:CreateLogStream logs:CreateLogStream - FailureRetentionPeriodInDays
integer
: The number of days to retain data about failed runs of this canary. - RunConfig
object
: A structure that contains input information for a canary run.- ActiveTracing
- EnvironmentVariables
- MemoryInMB
- TimeoutInSeconds
- RuntimeVersion
string
: Specifies the runtime version to use for the canary. For a list of valid runtime versions and for more information about runtime versions, see Canary Runtime Versions. - Schedule
object
: This structure specifies how often a canary is to make runs and the date and time when it should stop making runs.- DurationInSeconds
- Expression
- SuccessRetentionPeriodInDays
integer
: The number of days to retain data about successful runs of this canary. - VpcConfig
object
: If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC.- SecurityGroupIds
- items SecurityGroupId
- SubnetIds
- items SubnetId
- SecurityGroupIds
- name required
Output
- output UpdateCanaryResponse
GetCanaryRuns
amazonaws_synthetics.GetCanaryRuns({
"name": ""
}, context)
Input
- input
object
- name required
string
- MaxResults
string
- NextToken
string
- MaxResults
integer
: Specify this parameter to limit how many runs are returned each time you use the GetCanaryRuns operation. If you omit this parameter, the default of 100 is used. - NextToken
string
: A token that indicates that there is more data available. You can use this token in a subsequent GetCanaryRuns operation to retrieve the next set of results.
- name required
Output
- output GetCanaryRunsResponse
StartCanary
amazonaws_synthetics.StartCanary({
"name": ""
}, context)
Input
- input
object
- name required
string
- name required
Output
- output StartCanaryResponse
StopCanary
amazonaws_synthetics.StopCanary({
"name": ""
}, context)
Input
- input
object
- name required
string
- name required
Output
- output StopCanaryResponse
DescribeRuntimeVersions
amazonaws_synthetics.DescribeRuntimeVersions({}, context)
Input
- input
object
- MaxResults
string
- NextToken
string
- MaxResults
integer
: Specify this parameter to limit how many runs are returned each time you use the DescribeRuntimeVersions operation. If you omit this parameter, the default of 100 is used. - NextToken
string
: A token that indicates that there is more data available. You can use this token in a subsequent DescribeRuntimeVersions operation to retrieve the next set of results.
- MaxResults
Output
ListTagsForResource
amazonaws_synthetics.ListTagsForResource({
"resourceArn": ""
}, context)
Input
- input
object
- resourceArn required
string
- resourceArn required
Output
- output ListTagsForResourceResponse
TagResource
amazonaws_synthetics.TagResource({
"resourceArn": "",
"Tags": {}
}, context)
Input
- input
object
- resourceArn required
string
- Tags required
object
: The list of key-value pairs to associate with the canary.
- resourceArn required
Output
- output TagResourceResponse
UntagResource
amazonaws_synthetics.UntagResource({
"resourceArn": "",
"tagKeys": []
}, context)
Input
- input
object
- resourceArn required
string
- tagKeys required
array
- resourceArn required
Output
- output UntagResourceResponse
Definitions
Blob
- Blob
string
Canaries
- Canaries
array
- items Canary
CanariesLastRun
- CanariesLastRun
array
- items CanaryLastRun
Canary
- Canary
object
: This structure contains all information about one canary in your account.- ArtifactS3Location
- Code CanaryCodeOutput
- EngineArn
- ExecutionRoleArn
- FailureRetentionPeriodInDays
- Id
- Name
- RunConfig CanaryRunConfigOutput
- RuntimeVersion
- Schedule
- DurationInSeconds
- Expression
- Status
- State
- StateReason
- StateReasonCode
- SuccessRetentionPeriodInDays
- Tags
- Timeline
- Created
- LastModified
- LastStarted
- LastStopped
- VpcConfig VpcConfigOutput
CanaryArn
- CanaryArn
string
CanaryCodeInput
- CanaryCodeInput
object
: Use this structure to input your script code for the canary. This structure contains the Lambda handler with the location where the canary should start running the script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included. If the script was passed into the canary directly, the script code is contained in the value of Zipfile.- Handler required
- S3Bucket
- S3Key
- S3Version
- ZipFile
CanaryCodeOutput
- CanaryCodeOutput
object
: This structure contains information about the canary's Lambda handler and where its code is stored by CloudWatch Synthetics.- Handler
- SourceLocationArn
CanaryLastRun
- CanaryLastRun
object
: This structure contains information about the most recent run of a single canary.- CanaryName
- LastRun
- ArtifactS3Location
- Id
- Name
- Status
- State
- StateReason
- StateReasonCode
- Timeline
- Completed
- Started
CanaryName
- CanaryName
string
CanaryRun
- CanaryRun
object
: This structure contains the details about one run of one canary.- ArtifactS3Location
- Id
- Name
- Status
- State
- StateReason
- StateReasonCode
- Timeline
- Completed
- Started
CanaryRunConfigInput
- CanaryRunConfigInput
object
: A structure that contains input information for a canary run.- ActiveTracing
- EnvironmentVariables
- MemoryInMB
- TimeoutInSeconds
CanaryRunConfigOutput
- CanaryRunConfigOutput
object
: A structure that contains information about a canary run.- ActiveTracing
- MemoryInMB
- TimeoutInSeconds
CanaryRunState
- CanaryRunState
string
(values: RUNNING, PASSED, FAILED)
CanaryRunStateReasonCode
- CanaryRunStateReasonCode
string
(values: CANARY_FAILURE, EXECUTION_FAILURE)
CanaryRunStatus
- CanaryRunStatus
object
: This structure contains the status information about a canary run.- State
- StateReason
- StateReasonCode
CanaryRunTimeline
- CanaryRunTimeline
object
: This structure contains the start and end times of a single canary run.- Completed
- Started
CanaryRuns
- CanaryRuns
array
- items CanaryRun
CanaryScheduleInput
- CanaryScheduleInput
object
: This structure specifies how often a canary is to make runs and the date and time when it should stop making runs.- DurationInSeconds
- Expression required
CanaryScheduleOutput
- CanaryScheduleOutput
object
: How long, in seconds, for the canary to continue making regular runs according to the schedule in the Expression value.- DurationInSeconds
- Expression
CanaryState
- CanaryState
string
(values: CREATING, READY, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR, DELETING)
CanaryStateReasonCode
- CanaryStateReasonCode
string
(values: INVALID_PERMISSIONS)
CanaryStatus
- CanaryStatus
object
: A structure that contains the current state of the canary.- State
- StateReason
- StateReasonCode
CanaryTimeline
- CanaryTimeline
object
: This structure contains information about when the canary was created and modified.- Created
- LastModified
- LastStarted
- LastStopped
ConflictException
CreateCanaryRequest
- CreateCanaryRequest
object
- ArtifactS3Location required
- Code required
- Handler required
- S3Bucket
- S3Key
- S3Version
- ZipFile
- ExecutionRoleArn required
- FailureRetentionPeriodInDays
- Name required
- RunConfig
- ActiveTracing
- EnvironmentVariables
- MemoryInMB
- TimeoutInSeconds
- RuntimeVersion required
- Schedule required
- DurationInSeconds
- Expression required
- SuccessRetentionPeriodInDays
- Tags
- VpcConfig
- SecurityGroupIds
- items SecurityGroupId
- SubnetIds
- items SubnetId
- SecurityGroupIds
CreateCanaryResponse
- CreateCanaryResponse
object
- Canary
- ArtifactS3Location
- Code CanaryCodeOutput
- EngineArn
- ExecutionRoleArn
- FailureRetentionPeriodInDays
- Id
- Name
- RunConfig CanaryRunConfigOutput
- RuntimeVersion
- Schedule
- DurationInSeconds
- Expression
- Status
- State
- StateReason
- StateReasonCode
- SuccessRetentionPeriodInDays
- Tags
- Timeline
- Created
- LastModified
- LastStarted
- LastStopped
- VpcConfig VpcConfigOutput
- Canary
DeleteCanaryRequest
- DeleteCanaryRequest
object
DeleteCanaryResponse
- DeleteCanaryResponse
object
DescribeCanariesLastRunRequest
- DescribeCanariesLastRunRequest
object
- MaxResults
- NextToken
DescribeCanariesLastRunResponse
- DescribeCanariesLastRunResponse
object
- CanariesLastRun
- items CanaryLastRun
- NextToken
- CanariesLastRun
DescribeCanariesRequest
- DescribeCanariesRequest
object
- MaxResults
- NextToken
DescribeCanariesResponse
- DescribeCanariesResponse
object
- Canaries
- items Canary
- NextToken
- Canaries
DescribeRuntimeVersionsRequest
- DescribeRuntimeVersionsRequest
object
- MaxResults
- NextToken
DescribeRuntimeVersionsResponse
- DescribeRuntimeVersionsResponse
object
- NextToken
- RuntimeVersions
- items RuntimeVersion
EnvironmentVariableName
- EnvironmentVariableName
string
EnvironmentVariableValue
- EnvironmentVariableValue
string
EnvironmentVariablesMap
- EnvironmentVariablesMap
object
FunctionArn
- FunctionArn
string
GetCanaryRequest
- GetCanaryRequest
object
GetCanaryResponse
- GetCanaryResponse
object
- Canary
- ArtifactS3Location
- Code CanaryCodeOutput
- EngineArn
- ExecutionRoleArn
- FailureRetentionPeriodInDays
- Id
- Name
- RunConfig CanaryRunConfigOutput
- RuntimeVersion
- Schedule
- DurationInSeconds
- Expression
- Status
- State
- StateReason
- StateReasonCode
- SuccessRetentionPeriodInDays
- Tags
- Timeline
- Created
- LastModified
- LastStarted
- LastStopped
- VpcConfig VpcConfigOutput
- Canary
GetCanaryRunsRequest
- GetCanaryRunsRequest
object
- MaxResults
- NextToken
GetCanaryRunsResponse
- GetCanaryRunsResponse
object
- CanaryRuns
- items CanaryRun
- NextToken
- CanaryRuns
InternalServerException
ListTagsForResourceRequest
- ListTagsForResourceRequest
object
ListTagsForResourceResponse
- ListTagsForResourceResponse
object
- Tags
MaxCanaryResults
- MaxCanaryResults
integer
MaxFifteenMinutesInSeconds
- MaxFifteenMinutesInSeconds
integer
MaxOneYearInSeconds
- MaxOneYearInSeconds
integer
MaxSize100
- MaxSize100
integer
MaxSize1024
- MaxSize1024
integer
MaxSize3008
- MaxSize3008
integer
NullableBoolean
- NullableBoolean
boolean
ResourceNotFoundException
RoleArn
- RoleArn
string
RuntimeVersion
- RuntimeVersion
object
: This structure contains information about one canary runtime version. For more information about runtime versions, see Canary Runtime Versions.- DeprecationDate
- Description
- ReleaseDate
- VersionName
RuntimeVersionList
- RuntimeVersionList
array
- items RuntimeVersion
SecurityGroupId
- SecurityGroupId
string
SecurityGroupIds
- SecurityGroupIds
array
- items SecurityGroupId
StartCanaryRequest
- StartCanaryRequest
object
StartCanaryResponse
- StartCanaryResponse
object
StopCanaryRequest
- StopCanaryRequest
object
StopCanaryResponse
- StopCanaryResponse
object
String
- String
string
SubnetId
- SubnetId
string
SubnetIds
- SubnetIds
array
- items SubnetId
TagKey
- TagKey
string
TagKeyList
- TagKeyList
array
- items TagKey
TagMap
- TagMap
object
TagResourceRequest
- TagResourceRequest
object
- Tags required
TagResourceResponse
- TagResourceResponse
object
TagValue
- TagValue
string
Timestamp
- Timestamp
string
Token
- Token
string
UUID
- UUID
string
UntagResourceRequest
- UntagResourceRequest
object
UntagResourceResponse
- UntagResourceResponse
object
UpdateCanaryRequest
- UpdateCanaryRequest
object
- Code
- Handler required
- S3Bucket
- S3Key
- S3Version
- ZipFile
- ExecutionRoleArn
- FailureRetentionPeriodInDays
- RunConfig
- ActiveTracing
- EnvironmentVariables
- MemoryInMB
- TimeoutInSeconds
- RuntimeVersion
- Schedule
- DurationInSeconds
- Expression required
- SuccessRetentionPeriodInDays
- VpcConfig
- SecurityGroupIds
- items SecurityGroupId
- SubnetIds
- items SubnetId
- SecurityGroupIds
- Code
UpdateCanaryResponse
- UpdateCanaryResponse
object
ValidationException
VpcConfigInput
- VpcConfigInput
object
: If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC.- SecurityGroupIds
- items SecurityGroupId
- SubnetIds
- items SubnetId
- SecurityGroupIds
VpcConfigOutput
- VpcConfigOutput
object
: If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC.- SecurityGroupIds
- items SecurityGroupId
- SubnetIds
- items SubnetId
- VpcId
- SecurityGroupIds
VpcId
- VpcId
string