Documentation ¶
Overview ¶
Package synthetics provides the API client, operations, and parameter types for Synthetics.
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 Applicationsin 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.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AssociateResourceInput
- type AssociateResourceOutput
- type AuthResolverParameters
- type AuthSchemeResolver
- type Client
- func (c *Client) AssociateResource(ctx context.Context, params *AssociateResourceInput, optFns ...func(*Options)) (*AssociateResourceOutput, error)
- func (c *Client) CreateCanary(ctx context.Context, params *CreateCanaryInput, optFns ...func(*Options)) (*CreateCanaryOutput, error)
- func (c *Client) CreateGroup(ctx context.Context, params *CreateGroupInput, optFns ...func(*Options)) (*CreateGroupOutput, error)
- func (c *Client) DeleteCanary(ctx context.Context, params *DeleteCanaryInput, optFns ...func(*Options)) (*DeleteCanaryOutput, error)
- func (c *Client) DeleteGroup(ctx context.Context, params *DeleteGroupInput, optFns ...func(*Options)) (*DeleteGroupOutput, error)
- func (c *Client) DescribeCanaries(ctx context.Context, params *DescribeCanariesInput, optFns ...func(*Options)) (*DescribeCanariesOutput, error)
- func (c *Client) DescribeCanariesLastRun(ctx context.Context, params *DescribeCanariesLastRunInput, ...) (*DescribeCanariesLastRunOutput, error)
- func (c *Client) DescribeRuntimeVersions(ctx context.Context, params *DescribeRuntimeVersionsInput, ...) (*DescribeRuntimeVersionsOutput, error)
- func (c *Client) DisassociateResource(ctx context.Context, params *DisassociateResourceInput, ...) (*DisassociateResourceOutput, error)
- func (c *Client) GetCanary(ctx context.Context, params *GetCanaryInput, optFns ...func(*Options)) (*GetCanaryOutput, error)
- func (c *Client) GetCanaryRuns(ctx context.Context, params *GetCanaryRunsInput, optFns ...func(*Options)) (*GetCanaryRunsOutput, error)
- func (c *Client) GetGroup(ctx context.Context, params *GetGroupInput, optFns ...func(*Options)) (*GetGroupOutput, error)
- func (c *Client) ListAssociatedGroups(ctx context.Context, params *ListAssociatedGroupsInput, ...) (*ListAssociatedGroupsOutput, error)
- func (c *Client) ListGroupResources(ctx context.Context, params *ListGroupResourcesInput, optFns ...func(*Options)) (*ListGroupResourcesOutput, error)
- func (c *Client) ListGroups(ctx context.Context, params *ListGroupsInput, optFns ...func(*Options)) (*ListGroupsOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) Options() Options
- func (c *Client) StartCanary(ctx context.Context, params *StartCanaryInput, optFns ...func(*Options)) (*StartCanaryOutput, error)
- func (c *Client) StopCanary(ctx context.Context, params *StopCanaryInput, optFns ...func(*Options)) (*StopCanaryOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateCanary(ctx context.Context, params *UpdateCanaryInput, optFns ...func(*Options)) (*UpdateCanaryOutput, error)
- type CreateCanaryInput
- type CreateCanaryOutput
- type CreateGroupInput
- type CreateGroupOutput
- type DeleteCanaryInput
- type DeleteCanaryOutput
- type DeleteGroupInput
- type DeleteGroupOutput
- type DescribeCanariesAPIClient
- type DescribeCanariesInput
- type DescribeCanariesLastRunAPIClient
- type DescribeCanariesLastRunInput
- type DescribeCanariesLastRunOutput
- type DescribeCanariesLastRunPaginator
- type DescribeCanariesLastRunPaginatorOptions
- type DescribeCanariesOutput
- type DescribeCanariesPaginator
- type DescribeCanariesPaginatorOptions
- type DescribeRuntimeVersionsAPIClient
- type DescribeRuntimeVersionsInput
- type DescribeRuntimeVersionsOutput
- type DescribeRuntimeVersionsPaginator
- type DescribeRuntimeVersionsPaginatorOptions
- type DisassociateResourceInput
- type DisassociateResourceOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetCanaryInput
- type GetCanaryOutput
- type GetCanaryRunsAPIClient
- type GetCanaryRunsInput
- type GetCanaryRunsOutput
- type GetCanaryRunsPaginator
- type GetCanaryRunsPaginatorOptions
- type GetGroupInput
- type GetGroupOutput
- type HTTPClient
- type HTTPSignerV4
- type ListAssociatedGroupsAPIClient
- type ListAssociatedGroupsInput
- type ListAssociatedGroupsOutput
- type ListAssociatedGroupsPaginator
- type ListAssociatedGroupsPaginatorOptions
- type ListGroupResourcesAPIClient
- type ListGroupResourcesInput
- type ListGroupResourcesOutput
- type ListGroupResourcesPaginator
- type ListGroupResourcesPaginatorOptions
- type ListGroupsAPIClient
- type ListGroupsInput
- type ListGroupsOutput
- type ListGroupsPaginator
- type ListGroupsPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type ResolveEndpoint
- type StartCanaryInput
- type StartCanaryOutput
- type StopCanaryInput
- type StopCanaryOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateCanaryInput
- type UpdateCanaryOutput
Constants ¶
const ServiceAPIVersion = "2017-10-11"
const ServiceID = "synthetics"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.
To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AssociateResourceInput ¶
type AssociateResourceInput struct { // Specifies the group. You can specify the group name, the ARN, or the group ID // as the GroupIdentifier . // // This member is required. GroupIdentifier *string // The ARN of the canary that you want to associate with the specified group. // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type AssociateResourceOutput ¶
type AssociateResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type AuthResolverParameters ¶
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for Synthetics.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) AssociateResource ¶
func (c *Client) AssociateResource(ctx context.Context, params *AssociateResourceInput, optFns ...func(*Options)) (*AssociateResourceOutput, error)
Associates a canary with a group. Using groups can help you with managing and automating your canaries, and you can also view aggregated run results and statistics for all canaries in a group.
You must run this operation in the Region where the canary exists.
func (*Client) CreateCanary ¶
func (c *Client) CreateCanary(ctx context.Context, params *CreateCanaryInput, optFns ...func(*Options)) (*CreateCanaryOutput, error)
Creates a canary. Canaries are scripts that monitor your endpoints and APIs from the outside-in. 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. You can set up a canary to run continuously or just once.
Do not use CreateCanary to modify an existing canary. Use UpdateCanary instead.
To create canaries, you must have the CloudWatchSyntheticsFullAccess policy. If you are creating a new IAM role for the canary, you also need the iam:CreateRole , iam:CreatePolicy and iam:AttachRolePolicy permissions. For more information, see Necessary Roles and Permissions.
Do not include secrets or proprietary information in your canary names. The canary name makes up part of the Amazon Resource Name (ARN) for the canary, and the ARN is included in outbound calls over the internet. For more information, see Security Considerations for Synthetics Canaries.
func (*Client) CreateGroup ¶
func (c *Client) CreateGroup(ctx context.Context, params *CreateGroupInput, optFns ...func(*Options)) (*CreateGroupOutput, error)
Creates a group which you can use to associate canaries with each other, including cross-Region canaries. Using groups can help you with managing and automating your canaries, and you can also view aggregated run results and statistics for all canaries in a group.
Groups are global resources. When you create a group, it is replicated across Amazon Web Services Regions, and you can view it and add canaries to it from any Region. Although the group ARN format reflects the Region name where it was created, a group is not constrained to any Region. This means that you can put canaries from multiple Regions into the same group, and then use that group to view and manage all of those canaries in a single view.
Groups are supported in all Regions except the Regions that are disabled by default. For more information about these Regions, see Enabling a Region.
Each group can contain as many as 10 canaries. You can have as many as 20 groups in your account. Any single canary can be a member of up to 10 groups.
func (*Client) DeleteCanary ¶
func (c *Client) DeleteCanary(ctx context.Context, params *DeleteCanaryInput, optFns ...func(*Options)) (*DeleteCanaryOutput, error)
Permanently deletes the specified canary.
If you specify DeleteLambda to true , CloudWatch Synthetics also deletes the Lambda functions and layers that are used by the canary.
Other resources used and created by the canary are not automatically deleted. After you delete a canary that you do not intend to use again, you should also delete the following:
The CloudWatch alarms created for this canary. These alarms have a name of Synthetics-SharpDrop-Alarm-MyCanaryName .
Amazon S3 objects and buckets, such as the canary's artifact location.
IAM roles created for the canary. If they were created in the console, these roles have the name role/service-role/CloudWatchSyntheticsRole-MyCanaryName .
CloudWatch Logs log groups created for the canary. These logs groups have the name /aws/lambda/cwsyn-MyCanaryName .
Before you delete a canary, you might want to use GetCanary to display the information about this canary. Make note of the information returned by this operation so that you can delete these resources after you delete the canary.
func (*Client) DeleteGroup ¶
func (c *Client) DeleteGroup(ctx context.Context, params *DeleteGroupInput, optFns ...func(*Options)) (*DeleteGroupOutput, error)
Deletes a group. The group doesn't need to be empty to be deleted. If there are canaries in the group, they are not deleted when you delete the group.
Groups are a global resource that appear in all Regions, but the request to delete a group must be made from its home Region. You can find the home Region of a group within its ARN.
func (*Client) DescribeCanaries ¶
func (c *Client) DescribeCanaries(ctx context.Context, params *DescribeCanariesInput, optFns ...func(*Options)) (*DescribeCanariesOutput, error)
This operation returns a list of the canaries in your account, along with full details about each canary.
This operation supports resource-level authorization using an IAM policy and the Names parameter. If you specify the Names parameter, the operation is successful only if you have authorization to view all the canaries that you specify in your request. If you do not have permission to view any of the canaries, the request fails with a 403 response.
You are required to use the Names parameter if you are logged on to a user or role that has an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries.
func (*Client) DescribeCanariesLastRun ¶
func (c *Client) DescribeCanariesLastRun(ctx context.Context, params *DescribeCanariesLastRunInput, optFns ...func(*Options)) (*DescribeCanariesLastRunOutput, error)
Use this operation to see information from the most recent run of each canary that you have created.
This operation supports resource-level authorization using an IAM policy and the Names parameter. If you specify the Names parameter, the operation is successful only if you have authorization to view all the canaries that you specify in your request. If you do not have permission to view any of the canaries, the request fails with a 403 response.
You are required to use the Names parameter if you are logged on to a user or role that has an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries.
func (*Client) DescribeRuntimeVersions ¶
func (c *Client) DescribeRuntimeVersions(ctx context.Context, params *DescribeRuntimeVersionsInput, optFns ...func(*Options)) (*DescribeRuntimeVersionsOutput, error)
Returns a list of Synthetics canary runtime versions. For more information, see Canary Runtime Versions .
func (*Client) DisassociateResource ¶
func (c *Client) DisassociateResource(ctx context.Context, params *DisassociateResourceInput, optFns ...func(*Options)) (*DisassociateResourceOutput, error)
Removes a canary from a group. You must run this operation in the Region where the canary exists.
func (*Client) GetCanary ¶
func (c *Client) GetCanary(ctx context.Context, params *GetCanaryInput, optFns ...func(*Options)) (*GetCanaryOutput, error)
Retrieves complete information about one canary. You must specify the name of the canary that you want. To get a list of canaries and their names, use DescribeCanaries.
func (*Client) GetCanaryRuns ¶
func (c *Client) GetCanaryRuns(ctx context.Context, params *GetCanaryRunsInput, optFns ...func(*Options)) (*GetCanaryRunsOutput, error)
Retrieves a list of runs for a specified canary.
func (*Client) GetGroup ¶
func (c *Client) GetGroup(ctx context.Context, params *GetGroupInput, optFns ...func(*Options)) (*GetGroupOutput, error)
Returns information about one group. Groups are a global resource, so you can use this operation from any Region.
func (*Client) ListAssociatedGroups ¶
func (c *Client) ListAssociatedGroups(ctx context.Context, params *ListAssociatedGroupsInput, optFns ...func(*Options)) (*ListAssociatedGroupsOutput, error)
Returns a list of the groups that the specified canary is associated with. The canary that you specify must be in the current Region.
func (*Client) ListGroupResources ¶
func (c *Client) ListGroupResources(ctx context.Context, params *ListGroupResourcesInput, optFns ...func(*Options)) (*ListGroupResourcesOutput, error)
This operation returns a list of the ARNs of the canaries that are associated with the specified group.
func (*Client) ListGroups ¶
func (c *Client) ListGroups(ctx context.Context, params *ListGroupsInput, optFns ...func(*Options)) (*ListGroupsOutput, error)
Returns a list of all groups in the account, displaying their names, unique IDs, and ARNs. The groups from all Regions are returned.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Displays the tags associated with a canary or group.
func (*Client) Options ¶
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) StartCanary ¶
func (c *Client) StartCanary(ctx context.Context, params *StartCanaryInput, optFns ...func(*Options)) (*StartCanaryOutput, error)
Use this operation to run a canary that has already been created. The frequency of the canary runs is determined by the value of the canary's Schedule . To see a canary's schedule, use GetCanary.
func (*Client) StopCanary ¶
func (c *Client) StopCanary(ctx context.Context, params *StopCanaryInput, optFns ...func(*Options)) (*StopCanaryOutput, error)
Stops the canary to prevent all future runs. If the canary is currently running,the run that is in progress completes on its own, publishes metrics, and uploads artifacts, but it is not recorded in Synthetics as a completed run.
You can use StartCanary to start it running again with the canary’s current schedule at any point in the future.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Assigns one or more tags (key-value pairs) to the specified canary or group.
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 resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can use the TagResource action with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
You can associate as many as 50 tags with a canary or group.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes one or more tags from the specified resource.
func (*Client) UpdateCanary ¶
func (c *Client) UpdateCanary(ctx context.Context, params *UpdateCanaryInput, optFns ...func(*Options)) (*UpdateCanaryOutput, error)
Updates the configuration of a canary that has already been created.
You can't use this operation to update the tags of an existing canary. To change the tags of an existing canary, use TagResource.
type CreateCanaryInput ¶
type CreateCanaryInput struct { // 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. The // name of the S3 bucket can't include a period (.). // // This member is required. ArtifactS3Location *string // A structure that includes the entry point from which the canary should start // running your script. If the script is stored in an S3 bucket, the bucket name, // key, and version are also included. // // This member is required. Code *types.CanaryCodeInput // 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 // // This member is required. ExecutionRoleArn *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]. // // [Security Considerations for Synthetics Canaries]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html // // This member is required. Name *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]. // // [Canary Runtime Versions]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html // // This member is required. RuntimeVersion *string // A structure that contains information about how often the canary is to run and // when these test runs are to stop. // // This member is required. Schedule *types.CanaryScheduleInput // A structure that contains the configuration for canary artifacts, including the // encryption-at-rest settings for artifacts that the canary uploads to Amazon S3. ArtifactConfig *types.ArtifactConfigInput // 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. FailureRetentionPeriodInDays *int32 // A structure that contains the configuration for individual canary runs, such as // timeout value and environment variables. // // The environment variables keys and values are not encrypted. Do not store // sensitive information in this field. RunConfig *types.CanaryRunConfigInput // 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. SuccessRetentionPeriodInDays *int32 // 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. Tags map[string]string // If this canary is to test an endpoint in a VPC, this structure contains // information about the subnet and security groups of the VPC endpoint. For more // information, see [Running a Canary in a VPC]. // // [Running a Canary in a VPC]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html VpcConfig *types.VpcConfigInput // contains filtered or unexported fields }
type CreateCanaryOutput ¶
type CreateCanaryOutput struct { // The full details about the canary you have created. Canary *types.Canary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateGroupInput ¶
type CreateGroupInput struct { // The name for the group. It can include any Unicode characters. // // The names for all groups in your account, across all Regions, must be unique. // // This member is required. Name *string // A list of key-value pairs to associate with the group. You can associate as // many as 50 tags with a group. // // 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. Tags map[string]string // contains filtered or unexported fields }
type CreateGroupOutput ¶
type CreateGroupOutput struct { // A structure that contains information about the group that was just created. Group *types.Group // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteCanaryInput ¶
type DeleteCanaryInput struct { // The name of the canary that you want to delete. To find the names of your // canaries, use [DescribeCanaries]. // // [DescribeCanaries]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html // // This member is required. Name *string // Specifies whether to also delete the Lambda functions and layers used by this // canary. The default is false. // // Type: Boolean DeleteLambda bool // contains filtered or unexported fields }
type DeleteCanaryOutput ¶
type DeleteCanaryOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteGroupInput ¶
type DeleteGroupInput struct { // Specifies which group to delete. You can specify the group name, the ARN, or // the group ID as the GroupIdentifier . // // This member is required. GroupIdentifier *string // contains filtered or unexported fields }
type DeleteGroupOutput ¶
type DeleteGroupOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeCanariesAPIClient ¶
type DescribeCanariesAPIClient interface {
DescribeCanaries(context.Context, *DescribeCanariesInput, ...func(*Options)) (*DescribeCanariesOutput, error)
}
DescribeCanariesAPIClient is a client that implements the DescribeCanaries operation.
type DescribeCanariesInput ¶
type DescribeCanariesInput struct { // 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. MaxResults *int32 // Use this parameter to return only canaries that match the names that you // specify here. You can specify as many as five canary names. // // If you specify this parameter, the operation is successful only if you have // authorization to view all the canaries that you specify in your request. If you // do not have permission to view any of the canaries, the request fails with a 403 // response. // // You are required to use this parameter if you are logged on to a user or role // that has an IAM policy that restricts which canaries that you are allowed to // view. For more information, see [Limiting a user to viewing specific canaries]. // // [Limiting a user to viewing specific canaries]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Restricted.html Names []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. NextToken *string // contains filtered or unexported fields }
type DescribeCanariesLastRunAPIClient ¶
type DescribeCanariesLastRunAPIClient interface {
DescribeCanariesLastRun(context.Context, *DescribeCanariesLastRunInput, ...func(*Options)) (*DescribeCanariesLastRunOutput, error)
}
DescribeCanariesLastRunAPIClient is a client that implements the DescribeCanariesLastRun operation.
type DescribeCanariesLastRunInput ¶
type DescribeCanariesLastRunInput struct { // 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. MaxResults *int32 // Use this parameter to return only canaries that match the names that you // specify here. You can specify as many as five canary names. // // If you specify this parameter, the operation is successful only if you have // authorization to view all the canaries that you specify in your request. If you // do not have permission to view any of the canaries, the request fails with a 403 // response. // // You are required to use the Names parameter if you are logged on to a user or // role that has an IAM policy that restricts which canaries that you are allowed // to view. For more information, see [Limiting a user to viewing specific canaries]. // // [Limiting a user to viewing specific canaries]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Restricted.html Names []string // A token that indicates that there is more data available. You can use this // token in a subsequent DescribeCanariesLastRun operation to retrieve the next // set of results. NextToken *string // contains filtered or unexported fields }
type DescribeCanariesLastRunOutput ¶
type DescribeCanariesLastRunOutput struct { // An array that contains the information from the most recent run of each canary. CanariesLastRun []types.CanaryLastRun // A token that indicates that there is more data available. You can use this // token in a subsequent DescribeCanariesLastRun operation to retrieve the next // set of results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeCanariesLastRunPaginator ¶
type DescribeCanariesLastRunPaginator struct {
// contains filtered or unexported fields
}
DescribeCanariesLastRunPaginator is a paginator for DescribeCanariesLastRun
func NewDescribeCanariesLastRunPaginator ¶
func NewDescribeCanariesLastRunPaginator(client DescribeCanariesLastRunAPIClient, params *DescribeCanariesLastRunInput, optFns ...func(*DescribeCanariesLastRunPaginatorOptions)) *DescribeCanariesLastRunPaginator
NewDescribeCanariesLastRunPaginator returns a new DescribeCanariesLastRunPaginator
func (*DescribeCanariesLastRunPaginator) HasMorePages ¶
func (p *DescribeCanariesLastRunPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeCanariesLastRunPaginator) NextPage ¶
func (p *DescribeCanariesLastRunPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCanariesLastRunOutput, error)
NextPage retrieves the next DescribeCanariesLastRun page.
type DescribeCanariesLastRunPaginatorOptions ¶
type DescribeCanariesLastRunPaginatorOptions struct { // 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. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeCanariesLastRunPaginatorOptions is the paginator options for DescribeCanariesLastRun
type DescribeCanariesOutput ¶
type DescribeCanariesOutput struct { // Returns an array. Each item in the array contains the full information about // one canary. Canaries []types.Canary // 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. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeCanariesPaginator ¶
type DescribeCanariesPaginator struct {
// contains filtered or unexported fields
}
DescribeCanariesPaginator is a paginator for DescribeCanaries
func NewDescribeCanariesPaginator ¶
func NewDescribeCanariesPaginator(client DescribeCanariesAPIClient, params *DescribeCanariesInput, optFns ...func(*DescribeCanariesPaginatorOptions)) *DescribeCanariesPaginator
NewDescribeCanariesPaginator returns a new DescribeCanariesPaginator
func (*DescribeCanariesPaginator) HasMorePages ¶
func (p *DescribeCanariesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeCanariesPaginator) NextPage ¶
func (p *DescribeCanariesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCanariesOutput, error)
NextPage retrieves the next DescribeCanaries page.
type DescribeCanariesPaginatorOptions ¶
type DescribeCanariesPaginatorOptions struct { // 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. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeCanariesPaginatorOptions is the paginator options for DescribeCanaries
type DescribeRuntimeVersionsAPIClient ¶
type DescribeRuntimeVersionsAPIClient interface {
DescribeRuntimeVersions(context.Context, *DescribeRuntimeVersionsInput, ...func(*Options)) (*DescribeRuntimeVersionsOutput, error)
}
DescribeRuntimeVersionsAPIClient is a client that implements the DescribeRuntimeVersions operation.
type DescribeRuntimeVersionsInput ¶
type DescribeRuntimeVersionsInput struct { // 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. MaxResults *int32 // 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. NextToken *string // contains filtered or unexported fields }
type DescribeRuntimeVersionsOutput ¶
type DescribeRuntimeVersionsOutput struct { // 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. NextToken *string // An array of objects that display the details about each Synthetics canary // runtime version. RuntimeVersions []types.RuntimeVersion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeRuntimeVersionsPaginator ¶
type DescribeRuntimeVersionsPaginator struct {
// contains filtered or unexported fields
}
DescribeRuntimeVersionsPaginator is a paginator for DescribeRuntimeVersions
func NewDescribeRuntimeVersionsPaginator ¶
func NewDescribeRuntimeVersionsPaginator(client DescribeRuntimeVersionsAPIClient, params *DescribeRuntimeVersionsInput, optFns ...func(*DescribeRuntimeVersionsPaginatorOptions)) *DescribeRuntimeVersionsPaginator
NewDescribeRuntimeVersionsPaginator returns a new DescribeRuntimeVersionsPaginator
func (*DescribeRuntimeVersionsPaginator) HasMorePages ¶
func (p *DescribeRuntimeVersionsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeRuntimeVersionsPaginator) NextPage ¶
func (p *DescribeRuntimeVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeRuntimeVersionsOutput, error)
NextPage retrieves the next DescribeRuntimeVersions page.
type DescribeRuntimeVersionsPaginatorOptions ¶
type DescribeRuntimeVersionsPaginatorOptions struct { // 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. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeRuntimeVersionsPaginatorOptions is the paginator options for DescribeRuntimeVersions
type DisassociateResourceInput ¶
type DisassociateResourceInput struct { // Specifies the group. You can specify the group name, the ARN, or the group ID // as the GroupIdentifier . // // This member is required. GroupIdentifier *string // The ARN of the canary that you want to remove from the specified group. // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type DisassociateResourceOutput ¶
type DisassociateResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetCanaryInput ¶
type GetCanaryInput struct { // The name of the canary that you want details for. // // This member is required. Name *string // contains filtered or unexported fields }
type GetCanaryOutput ¶
type GetCanaryOutput struct { // A structure that contains the full information about the canary. Canary *types.Canary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetCanaryRunsAPIClient ¶
type GetCanaryRunsAPIClient interface {
GetCanaryRuns(context.Context, *GetCanaryRunsInput, ...func(*Options)) (*GetCanaryRunsOutput, error)
}
GetCanaryRunsAPIClient is a client that implements the GetCanaryRuns operation.
type GetCanaryRunsInput ¶
type GetCanaryRunsInput struct { // The name of the canary that you want to see runs for. // // This member is required. Name *string // 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. MaxResults *int32 // 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. NextToken *string // contains filtered or unexported fields }
type GetCanaryRunsOutput ¶
type GetCanaryRunsOutput struct { // An array of structures. Each structure contains the details of one of the // retrieved canary runs. CanaryRuns []types.CanaryRun // 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. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetCanaryRunsPaginator ¶
type GetCanaryRunsPaginator struct {
// contains filtered or unexported fields
}
GetCanaryRunsPaginator is a paginator for GetCanaryRuns
func NewGetCanaryRunsPaginator ¶
func NewGetCanaryRunsPaginator(client GetCanaryRunsAPIClient, params *GetCanaryRunsInput, optFns ...func(*GetCanaryRunsPaginatorOptions)) *GetCanaryRunsPaginator
NewGetCanaryRunsPaginator returns a new GetCanaryRunsPaginator
func (*GetCanaryRunsPaginator) HasMorePages ¶
func (p *GetCanaryRunsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetCanaryRunsPaginator) NextPage ¶
func (p *GetCanaryRunsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetCanaryRunsOutput, error)
NextPage retrieves the next GetCanaryRuns page.
type GetCanaryRunsPaginatorOptions ¶
type GetCanaryRunsPaginatorOptions struct { // 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. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetCanaryRunsPaginatorOptions is the paginator options for GetCanaryRuns
type GetGroupInput ¶
type GetGroupInput struct { // Specifies the group to return information for. You can specify the group name, // the ARN, or the group ID as the GroupIdentifier . // // This member is required. GroupIdentifier *string // contains filtered or unexported fields }
type GetGroupOutput ¶
type GetGroupOutput struct { // A structure that contains information about the group. Group *types.Group // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type ListAssociatedGroupsAPIClient ¶
type ListAssociatedGroupsAPIClient interface {
ListAssociatedGroups(context.Context, *ListAssociatedGroupsInput, ...func(*Options)) (*ListAssociatedGroupsOutput, error)
}
ListAssociatedGroupsAPIClient is a client that implements the ListAssociatedGroups operation.
type ListAssociatedGroupsInput ¶
type ListAssociatedGroupsInput struct { // The ARN of the canary that you want to view groups for. // // This member is required. ResourceArn *string // Specify this parameter to limit how many groups are returned each time you use // the ListAssociatedGroups operation. If you omit this parameter, the default of // 20 is used. MaxResults *int32 // 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. NextToken *string // contains filtered or unexported fields }
type ListAssociatedGroupsOutput ¶
type ListAssociatedGroupsOutput struct { // An array of structures that contain information about the groups that this // canary is associated with. Groups []types.GroupSummary // A token that indicates that there is more data available. You can use this // token in a subsequent ListAssociatedGroups operation to retrieve the next set // of results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListAssociatedGroupsPaginator ¶
type ListAssociatedGroupsPaginator struct {
// contains filtered or unexported fields
}
ListAssociatedGroupsPaginator is a paginator for ListAssociatedGroups
func NewListAssociatedGroupsPaginator ¶
func NewListAssociatedGroupsPaginator(client ListAssociatedGroupsAPIClient, params *ListAssociatedGroupsInput, optFns ...func(*ListAssociatedGroupsPaginatorOptions)) *ListAssociatedGroupsPaginator
NewListAssociatedGroupsPaginator returns a new ListAssociatedGroupsPaginator
func (*ListAssociatedGroupsPaginator) HasMorePages ¶
func (p *ListAssociatedGroupsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListAssociatedGroupsPaginator) NextPage ¶
func (p *ListAssociatedGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAssociatedGroupsOutput, error)
NextPage retrieves the next ListAssociatedGroups page.
type ListAssociatedGroupsPaginatorOptions ¶
type ListAssociatedGroupsPaginatorOptions struct { // Specify this parameter to limit how many groups are returned each time you use // the ListAssociatedGroups operation. If you omit this parameter, the default of // 20 is used. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListAssociatedGroupsPaginatorOptions is the paginator options for ListAssociatedGroups
type ListGroupResourcesAPIClient ¶
type ListGroupResourcesAPIClient interface {
ListGroupResources(context.Context, *ListGroupResourcesInput, ...func(*Options)) (*ListGroupResourcesOutput, error)
}
ListGroupResourcesAPIClient is a client that implements the ListGroupResources operation.
type ListGroupResourcesInput ¶
type ListGroupResourcesInput struct { // Specifies the group to return information for. You can specify the group name, // the ARN, or the group ID as the GroupIdentifier . // // This member is required. GroupIdentifier *string // Specify this parameter to limit how many canary ARNs are returned each time you // use the ListGroupResources operation. If you omit this parameter, the default // of 20 is used. MaxResults *int32 // 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. NextToken *string // contains filtered or unexported fields }
type ListGroupResourcesOutput ¶
type ListGroupResourcesOutput struct { // A token that indicates that there is more data available. You can use this // token in a subsequent ListGroupResources operation to retrieve the next set of // results. NextToken *string // An array of ARNs. These ARNs are for the canaries that are associated with the // group. Resources []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListGroupResourcesPaginator ¶
type ListGroupResourcesPaginator struct {
// contains filtered or unexported fields
}
ListGroupResourcesPaginator is a paginator for ListGroupResources
func NewListGroupResourcesPaginator ¶
func NewListGroupResourcesPaginator(client ListGroupResourcesAPIClient, params *ListGroupResourcesInput, optFns ...func(*ListGroupResourcesPaginatorOptions)) *ListGroupResourcesPaginator
NewListGroupResourcesPaginator returns a new ListGroupResourcesPaginator
func (*ListGroupResourcesPaginator) HasMorePages ¶
func (p *ListGroupResourcesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListGroupResourcesPaginator) NextPage ¶
func (p *ListGroupResourcesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListGroupResourcesOutput, error)
NextPage retrieves the next ListGroupResources page.
type ListGroupResourcesPaginatorOptions ¶
type ListGroupResourcesPaginatorOptions struct { // Specify this parameter to limit how many canary ARNs are returned each time you // use the ListGroupResources operation. If you omit this parameter, the default // of 20 is used. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListGroupResourcesPaginatorOptions is the paginator options for ListGroupResources
type ListGroupsAPIClient ¶
type ListGroupsAPIClient interface {
ListGroups(context.Context, *ListGroupsInput, ...func(*Options)) (*ListGroupsOutput, error)
}
ListGroupsAPIClient is a client that implements the ListGroups operation.
type ListGroupsInput ¶
type ListGroupsInput struct { // Specify this parameter to limit how many groups are returned each time you use // the ListGroups operation. If you omit this parameter, the default of 20 is used. MaxResults *int32 // 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. NextToken *string // contains filtered or unexported fields }
type ListGroupsOutput ¶
type ListGroupsOutput struct { // An array of structures that each contain information about one group. Groups []types.GroupSummary // A token that indicates that there is more data available. You can use this // token in a subsequent ListGroups operation to retrieve the next set of results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListGroupsPaginator ¶
type ListGroupsPaginator struct {
// contains filtered or unexported fields
}
ListGroupsPaginator is a paginator for ListGroups
func NewListGroupsPaginator ¶
func NewListGroupsPaginator(client ListGroupsAPIClient, params *ListGroupsInput, optFns ...func(*ListGroupsPaginatorOptions)) *ListGroupsPaginator
NewListGroupsPaginator returns a new ListGroupsPaginator
func (*ListGroupsPaginator) HasMorePages ¶
func (p *ListGroupsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListGroupsPaginator) NextPage ¶
func (p *ListGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListGroupsOutput, error)
NextPage retrieves the next ListGroups page.
type ListGroupsPaginatorOptions ¶
type ListGroupsPaginatorOptions struct { // Specify this parameter to limit how many groups are returned each time you use // the ListGroups operation. If you omit this parameter, the default of 20 is used. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListGroupsPaginatorOptions is the paginator options for ListGroups
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The ARN of the canary or group that you want to view tags for. // // The ARN format of a canary is // arn:aws:synthetics:Region:account-id:canary:canary-name . // // The ARN format of a group is // arn:aws:synthetics:Region:account-id:group:group-name // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // The list of tag keys and values associated with the resource that you specified. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. // // To migrate an EndpointResolver implementation that uses a custom endpoint, set // the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. // // If specified in an operation call's functional options with a value that is // different than the constructed client's Options, the Client's Retryer will be // wrapped to use the operation's specific RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. // // When creating a new API Clients this member will only be used if the Retryer // Options member is nil. This value will be ignored if Retryer is not nil. // // Currently does not support per operation call overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) Copy ¶
Copy creates a clone where the APIOptions list is deep copied.
func (Options) GetIdentityResolver ¶
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type StartCanaryInput ¶
type StartCanaryInput struct { // The name of the canary that you want to run. To find canary names, use [DescribeCanaries]. // // [DescribeCanaries]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html // // This member is required. Name *string // contains filtered or unexported fields }
type StartCanaryOutput ¶
type StartCanaryOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type StopCanaryInput ¶
type StopCanaryInput struct { // The name of the canary that you want to stop. To find the names of your // canaries, use [ListCanaries]. // // [ListCanaries]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html // // This member is required. Name *string // contains filtered or unexported fields }
type StopCanaryOutput ¶
type StopCanaryOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TagResourceInput ¶
type TagResourceInput struct { // The ARN of the canary or group that you're adding tags to. // // The ARN format of a canary is // arn:aws:synthetics:Region:account-id:canary:canary-name . // // The ARN format of a group is // arn:aws:synthetics:Region:account-id:group:group-name // // This member is required. ResourceArn *string // The list of key-value pairs to associate with the resource. // // This member is required. Tags map[string]string // contains filtered or unexported fields }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶
type UntagResourceInput struct { // The ARN of the canary or group that you're removing tags from. // // The ARN format of a canary is // arn:aws:synthetics:Region:account-id:canary:canary-name . // // The ARN format of a group is // arn:aws:synthetics:Region:account-id:group:group-name // // This member is required. ResourceArn *string // The list of tag keys to remove from the resource. // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateCanaryInput ¶
type UpdateCanaryInput struct { // The name of the canary that you want to update. To find the names of your // canaries, use [DescribeCanaries]. // // You cannot change the name of a canary that has already been created. // // [DescribeCanaries]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html // // This member is required. Name *string // A structure that contains the configuration for canary artifacts, including the // encryption-at-rest settings for artifacts that the canary uploads to Amazon S3. ArtifactConfig *types.ArtifactConfigInput // 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. The // name of the S3 bucket can't include a period (.). ArtifactS3Location *string // A structure that includes the entry point from which the canary should start // running your script. If the script is stored in an S3 bucket, the bucket name, // key, and version are also included. Code *types.CanaryCodeInput // 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 ExecutionRoleArn *string // The number of days to retain data about failed runs of this canary. FailureRetentionPeriodInDays *int32 // A structure that contains the timeout value that is used for each individual // run of the canary. // // The environment variables keys and values are not encrypted. Do not store // sensitive information in this field. RunConfig *types.CanaryRunConfigInput // 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]. // // [Canary Runtime Versions]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html RuntimeVersion *string // A structure that contains information about how often the canary is to run, and // when these runs are to stop. Schedule *types.CanaryScheduleInput // The number of days to retain data about successful runs of this canary. SuccessRetentionPeriodInDays *int32 // Defines the screenshots to use as the baseline for comparisons during visual // monitoring comparisons during future runs of this canary. If you omit this // parameter, no changes are made to any baseline screenshots that the canary might // be using already. // // Visual monitoring is supported only on canaries running the // syn-puppeteer-node-3.2 runtime or later. For more information, see [Visual monitoring]and [Visual monitoring blueprint] // // [Visual monitoring]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_SyntheticsLogger_VisualTesting.html // [Visual monitoring blueprint]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Blueprints_VisualTesting.html VisualReference *types.VisualReferenceInput // If this canary is to test an endpoint in a VPC, this structure contains // information about the subnet and security groups of the VPC endpoint. For more // information, see [Running a Canary in a VPC]. // // [Running a Canary in a VPC]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html VpcConfig *types.VpcConfigInput // contains filtered or unexported fields }
type UpdateCanaryOutput ¶
type UpdateCanaryOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_AssociateResource.go
- api_op_CreateCanary.go
- api_op_CreateGroup.go
- api_op_DeleteCanary.go
- api_op_DeleteGroup.go
- api_op_DescribeCanaries.go
- api_op_DescribeCanariesLastRun.go
- api_op_DescribeRuntimeVersions.go
- api_op_DisassociateResource.go
- api_op_GetCanary.go
- api_op_GetCanaryRuns.go
- api_op_GetGroup.go
- api_op_ListAssociatedGroups.go
- api_op_ListGroupResources.go
- api_op_ListGroups.go
- api_op_ListTagsForResource.go
- api_op_StartCanary.go
- api_op_StopCanary.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateCanary.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go