repo_name
stringlengths 1
52
| repo_creator
stringclasses 6
values | programming_language
stringclasses 4
values | code
stringlengths 0
9.68M
| num_lines
int64 1
234k
|
---|---|---|---|---|
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists the targets registered with the maintenance window.
func (c *Client) DescribeMaintenanceWindowTargets(ctx context.Context, params *DescribeMaintenanceWindowTargetsInput, optFns ...func(*Options)) (*DescribeMaintenanceWindowTargetsOutput, error) {
if params == nil {
params = &DescribeMaintenanceWindowTargetsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribeMaintenanceWindowTargets", params, optFns, c.addOperationDescribeMaintenanceWindowTargetsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribeMaintenanceWindowTargetsOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribeMaintenanceWindowTargetsInput struct {
// The ID of the maintenance window whose targets should be retrieved.
//
// This member is required.
WindowId *string
// Optional filters that can be used to narrow down the scope of the returned
// window targets. The supported filter keys are Type , WindowTargetId , and
// OwnerInformation .
Filters []types.MaintenanceWindowFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
noSmithyDocumentSerde
}
type DescribeMaintenanceWindowTargetsOutput struct {
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// Information about the targets in the maintenance window.
Targets []types.MaintenanceWindowTarget
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribeMaintenanceWindowTargetsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeMaintenanceWindowTargets{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeMaintenanceWindowTargets{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDescribeMaintenanceWindowTargetsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeMaintenanceWindowTargets(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// DescribeMaintenanceWindowTargetsAPIClient is a client that implements the
// DescribeMaintenanceWindowTargets operation.
type DescribeMaintenanceWindowTargetsAPIClient interface {
DescribeMaintenanceWindowTargets(context.Context, *DescribeMaintenanceWindowTargetsInput, ...func(*Options)) (*DescribeMaintenanceWindowTargetsOutput, error)
}
var _ DescribeMaintenanceWindowTargetsAPIClient = (*Client)(nil)
// DescribeMaintenanceWindowTargetsPaginatorOptions is the paginator options for
// DescribeMaintenanceWindowTargets
type DescribeMaintenanceWindowTargetsPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// DescribeMaintenanceWindowTargetsPaginator is a paginator for
// DescribeMaintenanceWindowTargets
type DescribeMaintenanceWindowTargetsPaginator struct {
options DescribeMaintenanceWindowTargetsPaginatorOptions
client DescribeMaintenanceWindowTargetsAPIClient
params *DescribeMaintenanceWindowTargetsInput
nextToken *string
firstPage bool
}
// NewDescribeMaintenanceWindowTargetsPaginator returns a new
// DescribeMaintenanceWindowTargetsPaginator
func NewDescribeMaintenanceWindowTargetsPaginator(client DescribeMaintenanceWindowTargetsAPIClient, params *DescribeMaintenanceWindowTargetsInput, optFns ...func(*DescribeMaintenanceWindowTargetsPaginatorOptions)) *DescribeMaintenanceWindowTargetsPaginator {
if params == nil {
params = &DescribeMaintenanceWindowTargetsInput{}
}
options := DescribeMaintenanceWindowTargetsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &DescribeMaintenanceWindowTargetsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *DescribeMaintenanceWindowTargetsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next DescribeMaintenanceWindowTargets page.
func (p *DescribeMaintenanceWindowTargetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeMaintenanceWindowTargetsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.DescribeMaintenanceWindowTargets(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opDescribeMaintenanceWindowTargets(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "DescribeMaintenanceWindowTargets",
}
}
| 237 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists the tasks in a maintenance window. For maintenance window tasks without a
// specified target, you can't supply values for --max-errors and --max-concurrency
// . Instead, the system inserts a placeholder value of 1 , which may be reported
// in the response to this command. These values don't affect the running of your
// task and can be ignored.
func (c *Client) DescribeMaintenanceWindowTasks(ctx context.Context, params *DescribeMaintenanceWindowTasksInput, optFns ...func(*Options)) (*DescribeMaintenanceWindowTasksOutput, error) {
if params == nil {
params = &DescribeMaintenanceWindowTasksInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribeMaintenanceWindowTasks", params, optFns, c.addOperationDescribeMaintenanceWindowTasksMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribeMaintenanceWindowTasksOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribeMaintenanceWindowTasksInput struct {
// The ID of the maintenance window whose tasks should be retrieved.
//
// This member is required.
WindowId *string
// Optional filters used to narrow down the scope of the returned tasks. The
// supported filter keys are WindowTaskId , TaskArn , Priority , and TaskType .
Filters []types.MaintenanceWindowFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
noSmithyDocumentSerde
}
type DescribeMaintenanceWindowTasksOutput struct {
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// Information about the tasks in the maintenance window.
Tasks []types.MaintenanceWindowTask
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribeMaintenanceWindowTasksMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeMaintenanceWindowTasks{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeMaintenanceWindowTasks{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDescribeMaintenanceWindowTasksValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeMaintenanceWindowTasks(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// DescribeMaintenanceWindowTasksAPIClient is a client that implements the
// DescribeMaintenanceWindowTasks operation.
type DescribeMaintenanceWindowTasksAPIClient interface {
DescribeMaintenanceWindowTasks(context.Context, *DescribeMaintenanceWindowTasksInput, ...func(*Options)) (*DescribeMaintenanceWindowTasksOutput, error)
}
var _ DescribeMaintenanceWindowTasksAPIClient = (*Client)(nil)
// DescribeMaintenanceWindowTasksPaginatorOptions is the paginator options for
// DescribeMaintenanceWindowTasks
type DescribeMaintenanceWindowTasksPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// DescribeMaintenanceWindowTasksPaginator is a paginator for
// DescribeMaintenanceWindowTasks
type DescribeMaintenanceWindowTasksPaginator struct {
options DescribeMaintenanceWindowTasksPaginatorOptions
client DescribeMaintenanceWindowTasksAPIClient
params *DescribeMaintenanceWindowTasksInput
nextToken *string
firstPage bool
}
// NewDescribeMaintenanceWindowTasksPaginator returns a new
// DescribeMaintenanceWindowTasksPaginator
func NewDescribeMaintenanceWindowTasksPaginator(client DescribeMaintenanceWindowTasksAPIClient, params *DescribeMaintenanceWindowTasksInput, optFns ...func(*DescribeMaintenanceWindowTasksPaginatorOptions)) *DescribeMaintenanceWindowTasksPaginator {
if params == nil {
params = &DescribeMaintenanceWindowTasksInput{}
}
options := DescribeMaintenanceWindowTasksPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &DescribeMaintenanceWindowTasksPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *DescribeMaintenanceWindowTasksPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next DescribeMaintenanceWindowTasks page.
func (p *DescribeMaintenanceWindowTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeMaintenanceWindowTasksOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.DescribeMaintenanceWindowTasks(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opDescribeMaintenanceWindowTasks(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "DescribeMaintenanceWindowTasks",
}
}
| 240 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Query a set of OpsItems. You must have permission in Identity and Access
// Management (IAM) to query a list of OpsItems. For more information, see Set up
// OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-setup.html)
// in the Amazon Web Services Systems Manager User Guide. Operations engineers and
// IT professionals use Amazon Web Services Systems Manager OpsCenter to view,
// investigate, and remediate operational issues impacting the performance and
// health of their Amazon Web Services resources. For more information, see
// OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
// in the Amazon Web Services Systems Manager User Guide.
func (c *Client) DescribeOpsItems(ctx context.Context, params *DescribeOpsItemsInput, optFns ...func(*Options)) (*DescribeOpsItemsOutput, error) {
if params == nil {
params = &DescribeOpsItemsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribeOpsItems", params, optFns, c.addOperationDescribeOpsItemsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribeOpsItemsOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribeOpsItemsInput struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
// One or more filters to limit the response.
// - Key: CreatedTime Operations: GreaterThan, LessThan
// - Key: LastModifiedBy Operations: Contains, Equals
// - Key: LastModifiedTime Operations: GreaterThan, LessThan
// - Key: Priority Operations: Equals
// - Key: Source Operations: Contains, Equals
// - Key: Status Operations: Equals
// - Key: Title* Operations: Equals,Contains
// - Key: OperationalData** Operations: Equals
// - Key: OperationalDataKey Operations: Equals
// - Key: OperationalDataValue Operations: Equals, Contains
// - Key: OpsItemId Operations: Equals
// - Key: ResourceId Operations: Contains
// - Key: AutomationId Operations: Equals
// - Key: AccountId Operations: Equals
// *The Equals operator for Title matches the first 100 characters. If you specify
// more than 100 characters, they system returns an error that the filter value
// exceeds the length limit. **If you filter the response by using the
// OperationalData operator, specify a key-value pair by using the following JSON
// format: {"key":"key_name","value":"a_value"}
OpsItemFilters []types.OpsItemFilter
noSmithyDocumentSerde
}
type DescribeOpsItemsOutput struct {
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// A list of OpsItems.
OpsItemSummaries []types.OpsItemSummary
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribeOpsItemsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeOpsItems{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeOpsItems{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDescribeOpsItemsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeOpsItems(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// DescribeOpsItemsAPIClient is a client that implements the DescribeOpsItems
// operation.
type DescribeOpsItemsAPIClient interface {
DescribeOpsItems(context.Context, *DescribeOpsItemsInput, ...func(*Options)) (*DescribeOpsItemsOutput, error)
}
var _ DescribeOpsItemsAPIClient = (*Client)(nil)
// DescribeOpsItemsPaginatorOptions is the paginator options for DescribeOpsItems
type DescribeOpsItemsPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// DescribeOpsItemsPaginator is a paginator for DescribeOpsItems
type DescribeOpsItemsPaginator struct {
options DescribeOpsItemsPaginatorOptions
client DescribeOpsItemsAPIClient
params *DescribeOpsItemsInput
nextToken *string
firstPage bool
}
// NewDescribeOpsItemsPaginator returns a new DescribeOpsItemsPaginator
func NewDescribeOpsItemsPaginator(client DescribeOpsItemsAPIClient, params *DescribeOpsItemsInput, optFns ...func(*DescribeOpsItemsPaginatorOptions)) *DescribeOpsItemsPaginator {
if params == nil {
params = &DescribeOpsItemsInput{}
}
options := DescribeOpsItemsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &DescribeOpsItemsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *DescribeOpsItemsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next DescribeOpsItems page.
func (p *DescribeOpsItemsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeOpsItemsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.DescribeOpsItems(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opDescribeOpsItems(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "DescribeOpsItems",
}
}
| 253 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Get information about a parameter. Request results are returned on a
// best-effort basis. If you specify MaxResults in the request, the response
// includes information up to the limit specified. The number of items returned,
// however, can be between zero and the value of MaxResults . If the service
// reaches an internal limit while processing the results, it stops the operation
// and returns the matching values up to that point and a NextToken . You can
// specify the NextToken in a subsequent call to get the next set of results. If
// you change the KMS key alias for the KMS key used to encrypt a parameter, then
// you must also update the key alias the parameter uses to reference KMS.
// Otherwise, DescribeParameters retrieves whatever the original key alias was
// referencing.
func (c *Client) DescribeParameters(ctx context.Context, params *DescribeParametersInput, optFns ...func(*Options)) (*DescribeParametersOutput, error) {
if params == nil {
params = &DescribeParametersInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribeParameters", params, optFns, c.addOperationDescribeParametersMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribeParametersOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribeParametersInput struct {
// This data type is deprecated. Instead, use ParameterFilters .
Filters []types.ParametersFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
// Filters to limit the request results.
ParameterFilters []types.ParameterStringFilter
noSmithyDocumentSerde
}
type DescribeParametersOutput struct {
// The token to use when requesting the next set of items.
NextToken *string
// Parameters returned by the request.
Parameters []types.ParameterMetadata
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribeParametersMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeParameters{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeParameters{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDescribeParametersValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeParameters(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// DescribeParametersAPIClient is a client that implements the DescribeParameters
// operation.
type DescribeParametersAPIClient interface {
DescribeParameters(context.Context, *DescribeParametersInput, ...func(*Options)) (*DescribeParametersOutput, error)
}
var _ DescribeParametersAPIClient = (*Client)(nil)
// DescribeParametersPaginatorOptions is the paginator options for
// DescribeParameters
type DescribeParametersPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// DescribeParametersPaginator is a paginator for DescribeParameters
type DescribeParametersPaginator struct {
options DescribeParametersPaginatorOptions
client DescribeParametersAPIClient
params *DescribeParametersInput
nextToken *string
firstPage bool
}
// NewDescribeParametersPaginator returns a new DescribeParametersPaginator
func NewDescribeParametersPaginator(client DescribeParametersAPIClient, params *DescribeParametersInput, optFns ...func(*DescribeParametersPaginatorOptions)) *DescribeParametersPaginator {
if params == nil {
params = &DescribeParametersInput{}
}
options := DescribeParametersPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &DescribeParametersPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *DescribeParametersPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next DescribeParameters page.
func (p *DescribeParametersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeParametersOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.DescribeParameters(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opDescribeParameters(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "DescribeParameters",
}
}
| 240 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists the patch baselines in your Amazon Web Services account.
func (c *Client) DescribePatchBaselines(ctx context.Context, params *DescribePatchBaselinesInput, optFns ...func(*Options)) (*DescribePatchBaselinesOutput, error) {
if params == nil {
params = &DescribePatchBaselinesInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribePatchBaselines", params, optFns, c.addOperationDescribePatchBaselinesMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribePatchBaselinesOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribePatchBaselinesInput struct {
// Each element in the array is a structure containing a key-value pair. Supported
// keys for DescribePatchBaselines include the following:
// - NAME_PREFIX Sample values: AWS- | My-
// - OWNER Sample values: AWS | Self
// - OPERATING_SYSTEM Sample values: AMAZON_LINUX | SUSE | WINDOWS
Filters []types.PatchOrchestratorFilter
// The maximum number of patch baselines to return (per page).
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
noSmithyDocumentSerde
}
type DescribePatchBaselinesOutput struct {
// An array of PatchBaselineIdentity elements.
BaselineIdentities []types.PatchBaselineIdentity
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribePatchBaselinesMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribePatchBaselines{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribePatchBaselines{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribePatchBaselines(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// DescribePatchBaselinesAPIClient is a client that implements the
// DescribePatchBaselines operation.
type DescribePatchBaselinesAPIClient interface {
DescribePatchBaselines(context.Context, *DescribePatchBaselinesInput, ...func(*Options)) (*DescribePatchBaselinesOutput, error)
}
var _ DescribePatchBaselinesAPIClient = (*Client)(nil)
// DescribePatchBaselinesPaginatorOptions is the paginator options for
// DescribePatchBaselines
type DescribePatchBaselinesPaginatorOptions struct {
// The maximum number of patch baselines to return (per page).
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
}
// DescribePatchBaselinesPaginator is a paginator for DescribePatchBaselines
type DescribePatchBaselinesPaginator struct {
options DescribePatchBaselinesPaginatorOptions
client DescribePatchBaselinesAPIClient
params *DescribePatchBaselinesInput
nextToken *string
firstPage bool
}
// NewDescribePatchBaselinesPaginator returns a new DescribePatchBaselinesPaginator
func NewDescribePatchBaselinesPaginator(client DescribePatchBaselinesAPIClient, params *DescribePatchBaselinesInput, optFns ...func(*DescribePatchBaselinesPaginatorOptions)) *DescribePatchBaselinesPaginator {
if params == nil {
params = &DescribePatchBaselinesInput{}
}
options := DescribePatchBaselinesPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &DescribePatchBaselinesPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *DescribePatchBaselinesPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next DescribePatchBaselines page.
func (p *DescribePatchBaselinesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribePatchBaselinesOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.DescribePatchBaselines(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opDescribePatchBaselines(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "DescribePatchBaselines",
}
}
| 227 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists all patch groups that have been registered with patch baselines.
func (c *Client) DescribePatchGroups(ctx context.Context, params *DescribePatchGroupsInput, optFns ...func(*Options)) (*DescribePatchGroupsOutput, error) {
if params == nil {
params = &DescribePatchGroupsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribePatchGroups", params, optFns, c.addOperationDescribePatchGroupsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribePatchGroupsOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribePatchGroupsInput struct {
// Each element in the array is a structure containing a key-value pair. Supported
// keys for DescribePatchGroups include the following:
// - NAME_PREFIX Sample values: AWS- | My- .
// - OPERATING_SYSTEM Sample values: AMAZON_LINUX | SUSE | WINDOWS
Filters []types.PatchOrchestratorFilter
// The maximum number of patch groups to return (per page).
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
noSmithyDocumentSerde
}
type DescribePatchGroupsOutput struct {
// Each entry in the array contains:
// - PatchGroup : string (between 1 and 256 characters. Regex:
// ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$)
// - PatchBaselineIdentity : A PatchBaselineIdentity element.
Mappings []types.PatchGroupPatchBaselineMapping
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribePatchGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribePatchGroups{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribePatchGroups{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribePatchGroups(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// DescribePatchGroupsAPIClient is a client that implements the
// DescribePatchGroups operation.
type DescribePatchGroupsAPIClient interface {
DescribePatchGroups(context.Context, *DescribePatchGroupsInput, ...func(*Options)) (*DescribePatchGroupsOutput, error)
}
var _ DescribePatchGroupsAPIClient = (*Client)(nil)
// DescribePatchGroupsPaginatorOptions is the paginator options for
// DescribePatchGroups
type DescribePatchGroupsPaginatorOptions struct {
// The maximum number of patch groups to return (per page).
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
}
// DescribePatchGroupsPaginator is a paginator for DescribePatchGroups
type DescribePatchGroupsPaginator struct {
options DescribePatchGroupsPaginatorOptions
client DescribePatchGroupsAPIClient
params *DescribePatchGroupsInput
nextToken *string
firstPage bool
}
// NewDescribePatchGroupsPaginator returns a new DescribePatchGroupsPaginator
func NewDescribePatchGroupsPaginator(client DescribePatchGroupsAPIClient, params *DescribePatchGroupsInput, optFns ...func(*DescribePatchGroupsPaginatorOptions)) *DescribePatchGroupsPaginator {
if params == nil {
params = &DescribePatchGroupsInput{}
}
options := DescribePatchGroupsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &DescribePatchGroupsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *DescribePatchGroupsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next DescribePatchGroups page.
func (p *DescribePatchGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribePatchGroupsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.DescribePatchGroups(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opDescribePatchGroups(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "DescribePatchGroups",
}
}
| 229 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns high-level aggregated patch compliance state information for a patch
// group.
func (c *Client) DescribePatchGroupState(ctx context.Context, params *DescribePatchGroupStateInput, optFns ...func(*Options)) (*DescribePatchGroupStateOutput, error) {
if params == nil {
params = &DescribePatchGroupStateInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribePatchGroupState", params, optFns, c.addOperationDescribePatchGroupStateMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribePatchGroupStateOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribePatchGroupStateInput struct {
// The name of the patch group whose patch snapshot should be retrieved.
//
// This member is required.
PatchGroup *string
noSmithyDocumentSerde
}
type DescribePatchGroupStateOutput struct {
// The number of managed nodes in the patch group.
Instances int32
// The number of managed nodes where patches that are specified as Critical for
// compliance reporting in the patch baseline aren't installed. These patches might
// be missing, have failed installation, were rejected, or were installed but
// awaiting a required managed node reboot. The status of these managed nodes is
// NON_COMPLIANT .
InstancesWithCriticalNonCompliantPatches *int32
// The number of managed nodes with patches from the patch baseline that failed to
// install.
InstancesWithFailedPatches int32
// The number of managed nodes with patches installed that aren't defined in the
// patch baseline.
InstancesWithInstalledOtherPatches int32
// The number of managed nodes with installed patches.
InstancesWithInstalledPatches int32
// The number of managed nodes with patches installed by Patch Manager that
// haven't been rebooted after the patch installation. The status of these managed
// nodes is NON_COMPLIANT .
InstancesWithInstalledPendingRebootPatches *int32
// The number of managed nodes with patches installed that are specified in a
// RejectedPatches list. Patches with a status of INSTALLED_REJECTED were
// typically installed before they were added to a RejectedPatches list. If
// ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction , the
// value of InstancesWithInstalledRejectedPatches will always be 0 (zero).
InstancesWithInstalledRejectedPatches *int32
// The number of managed nodes with missing patches from the patch baseline.
InstancesWithMissingPatches int32
// The number of managed nodes with patches that aren't applicable.
InstancesWithNotApplicablePatches int32
// The number of managed nodes with patches installed that are specified as other
// than Critical or Security but aren't compliant with the patch baseline. The
// status of these managed nodes is NON_COMPLIANT .
InstancesWithOtherNonCompliantPatches *int32
// The number of managed nodes where patches that are specified as Security in a
// patch advisory aren't installed. These patches might be missing, have failed
// installation, were rejected, or were installed but awaiting a required managed
// node reboot. The status of these managed nodes is NON_COMPLIANT .
InstancesWithSecurityNonCompliantPatches *int32
// The number of managed nodes with NotApplicable patches beyond the supported
// limit, which aren't reported by name to Inventory. Inventory is a capability of
// Amazon Web Services Systems Manager.
InstancesWithUnreportedNotApplicablePatches *int32
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribePatchGroupStateMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribePatchGroupState{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribePatchGroupState{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDescribePatchGroupStateValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribePatchGroupState(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opDescribePatchGroupState(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "DescribePatchGroupState",
}
}
| 177 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists the properties of available patches organized by product, product family,
// classification, severity, and other properties of available patches. You can use
// the reported properties in the filters you specify in requests for operations
// such as CreatePatchBaseline , UpdatePatchBaseline , DescribeAvailablePatches ,
// and DescribePatchBaselines . The following section lists the properties that can
// be used in filters for each major operating system type: AMAZON_LINUX Valid
// properties: PRODUCT | CLASSIFICATION | SEVERITY AMAZON_LINUX_2 Valid
// properties: PRODUCT | CLASSIFICATION | SEVERITY CENTOS Valid properties: PRODUCT
// | CLASSIFICATION | SEVERITY DEBIAN Valid properties: PRODUCT | PRIORITY MACOS
// Valid properties: PRODUCT | CLASSIFICATION ORACLE_LINUX Valid properties:
// PRODUCT | CLASSIFICATION | SEVERITY REDHAT_ENTERPRISE_LINUX Valid properties:
// PRODUCT | CLASSIFICATION | SEVERITY SUSE Valid properties: PRODUCT |
// CLASSIFICATION | SEVERITY UBUNTU Valid properties: PRODUCT | PRIORITY WINDOWS
// Valid properties: PRODUCT | PRODUCT_FAMILY | CLASSIFICATION | MSRC_SEVERITY
func (c *Client) DescribePatchProperties(ctx context.Context, params *DescribePatchPropertiesInput, optFns ...func(*Options)) (*DescribePatchPropertiesOutput, error) {
if params == nil {
params = &DescribePatchPropertiesInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribePatchProperties", params, optFns, c.addOperationDescribePatchPropertiesMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribePatchPropertiesOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribePatchPropertiesInput struct {
// The operating system type for which to list patches.
//
// This member is required.
OperatingSystem types.OperatingSystem
// The patch property for which you want to view patch details.
//
// This member is required.
Property types.PatchProperty
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
// Indicates whether to list patches for the Windows operating system or for
// applications released by Microsoft. Not applicable for the Linux or macOS
// operating systems.
PatchSet types.PatchSet
noSmithyDocumentSerde
}
type DescribePatchPropertiesOutput struct {
// The token for the next set of items to return. (You use this token in the next
// call.)
NextToken *string
// A list of the properties for patches matching the filter request parameters.
Properties []map[string]string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribePatchPropertiesMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribePatchProperties{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribePatchProperties{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDescribePatchPropertiesValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribePatchProperties(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// DescribePatchPropertiesAPIClient is a client that implements the
// DescribePatchProperties operation.
type DescribePatchPropertiesAPIClient interface {
DescribePatchProperties(context.Context, *DescribePatchPropertiesInput, ...func(*Options)) (*DescribePatchPropertiesOutput, error)
}
var _ DescribePatchPropertiesAPIClient = (*Client)(nil)
// DescribePatchPropertiesPaginatorOptions is the paginator options for
// DescribePatchProperties
type DescribePatchPropertiesPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// DescribePatchPropertiesPaginator is a paginator for DescribePatchProperties
type DescribePatchPropertiesPaginator struct {
options DescribePatchPropertiesPaginatorOptions
client DescribePatchPropertiesAPIClient
params *DescribePatchPropertiesInput
nextToken *string
firstPage bool
}
// NewDescribePatchPropertiesPaginator returns a new
// DescribePatchPropertiesPaginator
func NewDescribePatchPropertiesPaginator(client DescribePatchPropertiesAPIClient, params *DescribePatchPropertiesInput, optFns ...func(*DescribePatchPropertiesPaginatorOptions)) *DescribePatchPropertiesPaginator {
if params == nil {
params = &DescribePatchPropertiesInput{}
}
options := DescribePatchPropertiesPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &DescribePatchPropertiesPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *DescribePatchPropertiesPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next DescribePatchProperties page.
func (p *DescribePatchPropertiesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribePatchPropertiesOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.DescribePatchProperties(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opDescribePatchProperties(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "DescribePatchProperties",
}
}
| 254 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves a list of all active sessions (both connected and disconnected) or
// terminated sessions from the past 30 days.
func (c *Client) DescribeSessions(ctx context.Context, params *DescribeSessionsInput, optFns ...func(*Options)) (*DescribeSessionsOutput, error) {
if params == nil {
params = &DescribeSessionsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribeSessions", params, optFns, c.addOperationDescribeSessionsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribeSessionsOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribeSessionsInput struct {
// The session status to retrieve a list of sessions for. For example, "Active".
//
// This member is required.
State types.SessionState
// One or more filters to limit the type of sessions returned by the request.
Filters []types.SessionFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
noSmithyDocumentSerde
}
type DescribeSessionsOutput struct {
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
// A list of sessions meeting the request parameters.
Sessions []types.Session
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribeSessionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeSessions{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeSessions{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDescribeSessionsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSessions(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// DescribeSessionsAPIClient is a client that implements the DescribeSessions
// operation.
type DescribeSessionsAPIClient interface {
DescribeSessions(context.Context, *DescribeSessionsInput, ...func(*Options)) (*DescribeSessionsOutput, error)
}
var _ DescribeSessionsAPIClient = (*Client)(nil)
// DescribeSessionsPaginatorOptions is the paginator options for DescribeSessions
type DescribeSessionsPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// DescribeSessionsPaginator is a paginator for DescribeSessions
type DescribeSessionsPaginator struct {
options DescribeSessionsPaginatorOptions
client DescribeSessionsAPIClient
params *DescribeSessionsInput
nextToken *string
firstPage bool
}
// NewDescribeSessionsPaginator returns a new DescribeSessionsPaginator
func NewDescribeSessionsPaginator(client DescribeSessionsAPIClient, params *DescribeSessionsInput, optFns ...func(*DescribeSessionsPaginatorOptions)) *DescribeSessionsPaginator {
if params == nil {
params = &DescribeSessionsInput{}
}
options := DescribeSessionsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &DescribeSessionsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *DescribeSessionsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next DescribeSessions page.
func (p *DescribeSessionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeSessionsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.DescribeSessions(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opDescribeSessions(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "DescribeSessions",
}
}
| 233 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Deletes the association between an OpsItem and a related item. For example,
// this API operation can delete an Incident Manager incident from an OpsItem.
// Incident Manager is a capability of Amazon Web Services Systems Manager.
func (c *Client) DisassociateOpsItemRelatedItem(ctx context.Context, params *DisassociateOpsItemRelatedItemInput, optFns ...func(*Options)) (*DisassociateOpsItemRelatedItemOutput, error) {
if params == nil {
params = &DisassociateOpsItemRelatedItemInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DisassociateOpsItemRelatedItem", params, optFns, c.addOperationDisassociateOpsItemRelatedItemMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DisassociateOpsItemRelatedItemOutput)
out.ResultMetadata = metadata
return out, nil
}
type DisassociateOpsItemRelatedItemInput struct {
// The ID of the association for which you want to delete an association between
// the OpsItem and a related item.
//
// This member is required.
AssociationId *string
// The ID of the OpsItem for which you want to delete an association between the
// OpsItem and a related item.
//
// This member is required.
OpsItemId *string
noSmithyDocumentSerde
}
type DisassociateOpsItemRelatedItemOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDisassociateOpsItemRelatedItemMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateOpsItemRelatedItem{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateOpsItemRelatedItem{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDisassociateOpsItemRelatedItemValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateOpsItemRelatedItem(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opDisassociateOpsItemRelatedItem(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "DisassociateOpsItemRelatedItem",
}
}
| 129 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Get detailed information about a particular Automation execution.
func (c *Client) GetAutomationExecution(ctx context.Context, params *GetAutomationExecutionInput, optFns ...func(*Options)) (*GetAutomationExecutionOutput, error) {
if params == nil {
params = &GetAutomationExecutionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetAutomationExecution", params, optFns, c.addOperationGetAutomationExecutionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetAutomationExecutionOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetAutomationExecutionInput struct {
// The unique identifier for an existing automation execution to examine. The
// execution ID is returned by StartAutomationExecution when the execution of an
// Automation runbook is initiated.
//
// This member is required.
AutomationExecutionId *string
noSmithyDocumentSerde
}
type GetAutomationExecutionOutput struct {
// Detailed information about the current state of an automation execution.
AutomationExecution *types.AutomationExecution
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetAutomationExecutionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetAutomationExecution{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetAutomationExecution{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetAutomationExecutionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAutomationExecution(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetAutomationExecution(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetAutomationExecution",
}
}
| 127 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Gets the state of a Amazon Web Services Systems Manager change calendar at the
// current time or a specified time. If you specify a time, GetCalendarState
// returns the state of the calendar at that specific time, and returns the next
// time that the change calendar state will transition. If you don't specify a
// time, GetCalendarState uses the current time. Change Calendar entries have two
// possible states: OPEN or CLOSED . If you specify more than one calendar in a
// request, the command returns the status of OPEN only if all calendars in the
// request are open. If one or more calendars in the request are closed, the status
// returned is CLOSED . For more information about Change Calendar, a capability of
// Amazon Web Services Systems Manager, see Amazon Web Services Systems Manager
// Change Calendar (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-change-calendar.html)
// in the Amazon Web Services Systems Manager User Guide.
func (c *Client) GetCalendarState(ctx context.Context, params *GetCalendarStateInput, optFns ...func(*Options)) (*GetCalendarStateOutput, error) {
if params == nil {
params = &GetCalendarStateInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetCalendarState", params, optFns, c.addOperationGetCalendarStateMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetCalendarStateOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetCalendarStateInput struct {
// The names or Amazon Resource Names (ARNs) of the Systems Manager documents (SSM
// documents) that represent the calendar entries for which you want to get the
// state.
//
// This member is required.
CalendarNames []string
// (Optional) The specific time for which you want to get calendar state
// information, in ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) format. If
// you don't specify a value or AtTime , the current time is used.
AtTime *string
noSmithyDocumentSerde
}
type GetCalendarStateOutput struct {
// The time, as an ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) string, that
// you specified in your command. If you don't specify a time, GetCalendarState
// uses the current time.
AtTime *string
// The time, as an ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) string, that
// the calendar state will change. If the current calendar state is OPEN ,
// NextTransitionTime indicates when the calendar state changes to CLOSED , and
// vice-versa.
NextTransitionTime *string
// The state of the calendar. An OPEN calendar indicates that actions are allowed
// to proceed, and a CLOSED calendar indicates that actions aren't allowed to
// proceed.
State types.CalendarState
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetCalendarStateMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetCalendarState{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetCalendarState{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetCalendarStateValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCalendarState(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetCalendarState(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetCalendarState",
}
}
| 156 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"errors"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithytime "github.com/aws/smithy-go/time"
smithyhttp "github.com/aws/smithy-go/transport/http"
smithywaiter "github.com/aws/smithy-go/waiter"
"github.com/jmespath/go-jmespath"
"time"
)
// Returns detailed information about command execution for an invocation or
// plugin. GetCommandInvocation only gives the execution status of a plugin in a
// document. To get the command execution status on a specific managed node, use
// ListCommandInvocations . To get the command execution status across managed
// nodes, use ListCommands .
func (c *Client) GetCommandInvocation(ctx context.Context, params *GetCommandInvocationInput, optFns ...func(*Options)) (*GetCommandInvocationOutput, error) {
if params == nil {
params = &GetCommandInvocationInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetCommandInvocation", params, optFns, c.addOperationGetCommandInvocationMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetCommandInvocationOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetCommandInvocationInput struct {
// (Required) The parent command ID of the invocation plugin.
//
// This member is required.
CommandId *string
// (Required) The ID of the managed node targeted by the command. A managed node
// can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, and
// on-premises server or VM in your hybrid environment that is configured for
// Amazon Web Services Systems Manager.
//
// This member is required.
InstanceId *string
// The name of the step for which you want detailed results. If the document
// contains only one step, you can omit the name and details for that step. If the
// document contains more than one step, you must specify the name of the step for
// which you want to view details. Be sure to specify the name of the step, not the
// name of a plugin like aws:RunShellScript . To find the PluginName , check the
// document content and find the name of the step you want details for.
// Alternatively, use ListCommandInvocations with the CommandId and Details
// parameters. The PluginName is the Name attribute of the CommandPlugin object in
// the CommandPlugins list.
PluginName *string
noSmithyDocumentSerde
}
type GetCommandInvocationOutput struct {
// Amazon CloudWatch Logs information where Systems Manager sent the command
// output.
CloudWatchOutputConfig *types.CloudWatchOutputConfig
// The parent command ID of the invocation plugin.
CommandId *string
// The comment text for the command.
Comment *string
// The name of the document that was run. For example, AWS-RunShellScript .
DocumentName *string
// The Systems Manager document (SSM document) version used in the request.
DocumentVersion *string
// Duration since ExecutionStartDateTime .
ExecutionElapsedTime *string
// The date and time the plugin finished running. Date and time are written in ISO
// 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The
// following sample Amazon Web Services CLI command uses the InvokedAfter filter.
// aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z If
// the plugin hasn't started to run, the string is empty.
ExecutionEndDateTime *string
// The date and time the plugin started running. Date and time are written in ISO
// 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The
// following sample Amazon Web Services CLI command uses the InvokedBefore filter.
// aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z If
// the plugin hasn't started to run, the string is empty.
ExecutionStartDateTime *string
// The ID of the managed node targeted by the command. A managed node can be an
// Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, or on-premises
// server or VM in your hybrid environment that is configured for Amazon Web
// Services Systems Manager.
InstanceId *string
// The name of the plugin, or step name, for which details are reported. For
// example, aws:RunShellScript is a plugin.
PluginName *string
// The error level response code for the plugin script. If the response code is -1
// , then the command hasn't started running on the managed node, or it wasn't
// received by the node.
ResponseCode int32
// The first 8,000 characters written by the plugin to stderr . If the command
// hasn't finished running, then this string is empty.
StandardErrorContent *string
// The URL for the complete text written by the plugin to stderr . If the command
// hasn't finished running, then this string is empty.
StandardErrorUrl *string
// The first 24,000 characters written by the plugin to stdout . If the command
// hasn't finished running, if ExecutionStatus is neither Succeeded nor Failed,
// then this string is empty.
StandardOutputContent *string
// The URL for the complete text written by the plugin to stdout in Amazon Simple
// Storage Service (Amazon S3). If an S3 bucket wasn't specified, then this string
// is empty.
StandardOutputUrl *string
// The status of this invocation plugin. This status can be different than
// StatusDetails .
Status types.CommandInvocationStatus
// A detailed status of the command execution for an invocation. StatusDetails
// includes more information than Status because it includes states resulting from
// error and concurrency control parameters. StatusDetails can show different
// results than Status . For more information about these statuses, see
// Understanding command statuses (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
// in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one
// of the following values:
// - Pending: The command hasn't been sent to the managed node.
// - In Progress: The command has been sent to the managed node but hasn't
// reached a terminal state.
// - Delayed: The system attempted to send the command to the target, but the
// target wasn't available. The managed node might not be available because of
// network issues, because the node was stopped, or for similar reasons. The system
// will try to send the command again.
// - Success: The command or plugin ran successfully. This is a terminal state.
// - Delivery Timed Out: The command wasn't delivered to the managed node before
// the delivery timeout expired. Delivery timeouts don't count against the parent
// command's MaxErrors limit, but they do contribute to whether the parent
// command status is Success or Incomplete. This is a terminal state.
// - Execution Timed Out: The command started to run on the managed node, but
// the execution wasn't complete before the timeout expired. Execution timeouts
// count against the MaxErrors limit of the parent command. This is a terminal
// state.
// - Failed: The command wasn't run successfully on the managed node. For a
// plugin, this indicates that the result code wasn't zero. For a command
// invocation, this indicates that the result code for one or more plugins wasn't
// zero. Invocation failures count against the MaxErrors limit of the parent
// command. This is a terminal state.
// - Cancelled: The command was terminated before it was completed. This is a
// terminal state.
// - Undeliverable: The command can't be delivered to the managed node. The node
// might not exist or might not be responding. Undeliverable invocations don't
// count against the parent command's MaxErrors limit and don't contribute to
// whether the parent command status is Success or Incomplete. This is a terminal
// state.
// - Terminated: The parent command exceeded its MaxErrors limit and subsequent
// command invocations were canceled by the system. This is a terminal state.
StatusDetails *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetCommandInvocationMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetCommandInvocation{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetCommandInvocation{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetCommandInvocationValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCommandInvocation(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// GetCommandInvocationAPIClient is a client that implements the
// GetCommandInvocation operation.
type GetCommandInvocationAPIClient interface {
GetCommandInvocation(context.Context, *GetCommandInvocationInput, ...func(*Options)) (*GetCommandInvocationOutput, error)
}
var _ GetCommandInvocationAPIClient = (*Client)(nil)
// CommandExecutedWaiterOptions are waiter options for CommandExecutedWaiter
type CommandExecutedWaiterOptions 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
// MinDelay is the minimum amount of time to delay between retries. If unset,
// CommandExecutedWaiter will use default minimum delay of 5 seconds. Note that
// MinDelay must resolve to a value lesser than or equal to the MaxDelay.
MinDelay time.Duration
// MaxDelay is the maximum amount of time to delay between retries. If unset or
// set to zero, CommandExecutedWaiter will use default max delay of 120 seconds.
// Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
MaxDelay time.Duration
// LogWaitAttempts is used to enable logging for waiter retry attempts
LogWaitAttempts bool
// Retryable is function that can be used to override the service defined
// waiter-behavior based on operation output, or returned error. This function is
// used by the waiter to decide if a state is retryable or a terminal state. By
// default service-modeled logic will populate this option. This option can thus be
// used to define a custom waiter state with fall-back to service-modeled waiter
// state mutators.The function returns an error in case of a failure state. In case
// of retry state, this function returns a bool value of true and nil error, while
// in case of success it returns a bool value of false and nil error.
Retryable func(context.Context, *GetCommandInvocationInput, *GetCommandInvocationOutput, error) (bool, error)
}
// CommandExecutedWaiter defines the waiters for CommandExecuted
type CommandExecutedWaiter struct {
client GetCommandInvocationAPIClient
options CommandExecutedWaiterOptions
}
// NewCommandExecutedWaiter constructs a CommandExecutedWaiter.
func NewCommandExecutedWaiter(client GetCommandInvocationAPIClient, optFns ...func(*CommandExecutedWaiterOptions)) *CommandExecutedWaiter {
options := CommandExecutedWaiterOptions{}
options.MinDelay = 5 * time.Second
options.MaxDelay = 120 * time.Second
options.Retryable = commandExecutedStateRetryable
for _, fn := range optFns {
fn(&options)
}
return &CommandExecutedWaiter{
client: client,
options: options,
}
}
// Wait calls the waiter function for CommandExecuted waiter. The maxWaitDur is
// the maximum wait duration the waiter will wait. The maxWaitDur is required and
// must be greater than zero.
func (w *CommandExecutedWaiter) Wait(ctx context.Context, params *GetCommandInvocationInput, maxWaitDur time.Duration, optFns ...func(*CommandExecutedWaiterOptions)) error {
_, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
return err
}
// WaitForOutput calls the waiter function for CommandExecuted waiter and returns
// the output of the successful operation. The maxWaitDur is the maximum wait
// duration the waiter will wait. The maxWaitDur is required and must be greater
// than zero.
func (w *CommandExecutedWaiter) WaitForOutput(ctx context.Context, params *GetCommandInvocationInput, maxWaitDur time.Duration, optFns ...func(*CommandExecutedWaiterOptions)) (*GetCommandInvocationOutput, error) {
if maxWaitDur <= 0 {
return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
}
options := w.options
for _, fn := range optFns {
fn(&options)
}
if options.MaxDelay <= 0 {
options.MaxDelay = 120 * time.Second
}
if options.MinDelay > options.MaxDelay {
return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
}
ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
defer cancelFn()
logger := smithywaiter.Logger{}
remainingTime := maxWaitDur
var attempt int64
for {
attempt++
apiOptions := options.APIOptions
start := time.Now()
if options.LogWaitAttempts {
logger.Attempt = attempt
apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
apiOptions = append(apiOptions, logger.AddLogger)
}
out, err := w.client.GetCommandInvocation(ctx, params, func(o *Options) {
o.APIOptions = append(o.APIOptions, apiOptions...)
})
retryable, err := options.Retryable(ctx, params, out, err)
if err != nil {
return nil, err
}
if !retryable {
return out, nil
}
remainingTime -= time.Since(start)
if remainingTime < options.MinDelay || remainingTime <= 0 {
break
}
// compute exponential backoff between waiter retries
delay, err := smithywaiter.ComputeDelay(
attempt, options.MinDelay, options.MaxDelay, remainingTime,
)
if err != nil {
return nil, fmt.Errorf("error computing waiter delay, %w", err)
}
remainingTime -= delay
// sleep for the delay amount before invoking a request
if err := smithytime.SleepWithContext(ctx, delay); err != nil {
return nil, fmt.Errorf("request cancelled while waiting, %w", err)
}
}
return nil, fmt.Errorf("exceeded max wait time for CommandExecuted waiter")
}
func commandExecutedStateRetryable(ctx context.Context, input *GetCommandInvocationInput, output *GetCommandInvocationOutput, err error) (bool, error) {
if err == nil {
pathValue, err := jmespath.Search("Status", output)
if err != nil {
return false, fmt.Errorf("error evaluating waiter state: %w", err)
}
expectedValue := "Pending"
value, ok := pathValue.(types.CommandInvocationStatus)
if !ok {
return false, fmt.Errorf("waiter comparator expected types.CommandInvocationStatus value, got %T", pathValue)
}
if string(value) == expectedValue {
return true, nil
}
}
if err == nil {
pathValue, err := jmespath.Search("Status", output)
if err != nil {
return false, fmt.Errorf("error evaluating waiter state: %w", err)
}
expectedValue := "InProgress"
value, ok := pathValue.(types.CommandInvocationStatus)
if !ok {
return false, fmt.Errorf("waiter comparator expected types.CommandInvocationStatus value, got %T", pathValue)
}
if string(value) == expectedValue {
return true, nil
}
}
if err == nil {
pathValue, err := jmespath.Search("Status", output)
if err != nil {
return false, fmt.Errorf("error evaluating waiter state: %w", err)
}
expectedValue := "Delayed"
value, ok := pathValue.(types.CommandInvocationStatus)
if !ok {
return false, fmt.Errorf("waiter comparator expected types.CommandInvocationStatus value, got %T", pathValue)
}
if string(value) == expectedValue {
return true, nil
}
}
if err == nil {
pathValue, err := jmespath.Search("Status", output)
if err != nil {
return false, fmt.Errorf("error evaluating waiter state: %w", err)
}
expectedValue := "Success"
value, ok := pathValue.(types.CommandInvocationStatus)
if !ok {
return false, fmt.Errorf("waiter comparator expected types.CommandInvocationStatus value, got %T", pathValue)
}
if string(value) == expectedValue {
return false, nil
}
}
if err == nil {
pathValue, err := jmespath.Search("Status", output)
if err != nil {
return false, fmt.Errorf("error evaluating waiter state: %w", err)
}
expectedValue := "Cancelled"
value, ok := pathValue.(types.CommandInvocationStatus)
if !ok {
return false, fmt.Errorf("waiter comparator expected types.CommandInvocationStatus value, got %T", pathValue)
}
if string(value) == expectedValue {
return false, fmt.Errorf("waiter state transitioned to Failure")
}
}
if err == nil {
pathValue, err := jmespath.Search("Status", output)
if err != nil {
return false, fmt.Errorf("error evaluating waiter state: %w", err)
}
expectedValue := "TimedOut"
value, ok := pathValue.(types.CommandInvocationStatus)
if !ok {
return false, fmt.Errorf("waiter comparator expected types.CommandInvocationStatus value, got %T", pathValue)
}
if string(value) == expectedValue {
return false, fmt.Errorf("waiter state transitioned to Failure")
}
}
if err == nil {
pathValue, err := jmespath.Search("Status", output)
if err != nil {
return false, fmt.Errorf("error evaluating waiter state: %w", err)
}
expectedValue := "Failed"
value, ok := pathValue.(types.CommandInvocationStatus)
if !ok {
return false, fmt.Errorf("waiter comparator expected types.CommandInvocationStatus value, got %T", pathValue)
}
if string(value) == expectedValue {
return false, fmt.Errorf("waiter state transitioned to Failure")
}
}
if err == nil {
pathValue, err := jmespath.Search("Status", output)
if err != nil {
return false, fmt.Errorf("error evaluating waiter state: %w", err)
}
expectedValue := "Cancelling"
value, ok := pathValue.(types.CommandInvocationStatus)
if !ok {
return false, fmt.Errorf("waiter comparator expected types.CommandInvocationStatus value, got %T", pathValue)
}
if string(value) == expectedValue {
return false, fmt.Errorf("waiter state transitioned to Failure")
}
}
if err != nil {
var errorType *types.InvocationDoesNotExist
if errors.As(err, &errorType) {
return true, nil
}
}
return true, nil
}
func newServiceMetadataMiddleware_opGetCommandInvocation(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetCommandInvocation",
}
}
| 554 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves the Session Manager connection status for a managed node to determine
// whether it is running and ready to receive Session Manager connections.
func (c *Client) GetConnectionStatus(ctx context.Context, params *GetConnectionStatusInput, optFns ...func(*Options)) (*GetConnectionStatusOutput, error) {
if params == nil {
params = &GetConnectionStatusInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetConnectionStatus", params, optFns, c.addOperationGetConnectionStatusMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetConnectionStatusOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetConnectionStatusInput struct {
// The managed node ID.
//
// This member is required.
Target *string
noSmithyDocumentSerde
}
type GetConnectionStatusOutput struct {
// The status of the connection to the managed node. For example, 'Connected' or
// 'Not Connected'.
Status types.ConnectionStatus
// The ID of the managed node to check connection status.
Target *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetConnectionStatusMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetConnectionStatus{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetConnectionStatus{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetConnectionStatusValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetConnectionStatus(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetConnectionStatus(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetConnectionStatus",
}
}
| 130 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves the default patch baseline. Amazon Web Services Systems Manager
// supports creating multiple default patch baselines. For example, you can create
// a default patch baseline for each operating system. If you don't specify an
// operating system value, the default patch baseline for Windows is returned.
func (c *Client) GetDefaultPatchBaseline(ctx context.Context, params *GetDefaultPatchBaselineInput, optFns ...func(*Options)) (*GetDefaultPatchBaselineOutput, error) {
if params == nil {
params = &GetDefaultPatchBaselineInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetDefaultPatchBaseline", params, optFns, c.addOperationGetDefaultPatchBaselineMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetDefaultPatchBaselineOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetDefaultPatchBaselineInput struct {
// Returns the default patch baseline for the specified operating system.
OperatingSystem types.OperatingSystem
noSmithyDocumentSerde
}
type GetDefaultPatchBaselineOutput struct {
// The ID of the default patch baseline.
BaselineId *string
// The operating system for the returned patch baseline.
OperatingSystem types.OperatingSystem
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetDefaultPatchBaselineMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetDefaultPatchBaseline{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetDefaultPatchBaseline{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetDefaultPatchBaseline(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetDefaultPatchBaseline(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetDefaultPatchBaseline",
}
}
| 126 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves the current snapshot for the patch baseline the managed node uses.
// This API is primarily used by the AWS-RunPatchBaseline Systems Manager document
// (SSM document). If you run the command locally, such as with the Command Line
// Interface (CLI), the system attempts to use your local Amazon Web Services
// credentials and the operation fails. To avoid this, you can run the command in
// the Amazon Web Services Systems Manager console. Use Run Command, a capability
// of Amazon Web Services Systems Manager, with an SSM document that enables you to
// target a managed node with a script or command. For example, run the command
// using the AWS-RunShellScript document or the AWS-RunPowerShellScript document.
func (c *Client) GetDeployablePatchSnapshotForInstance(ctx context.Context, params *GetDeployablePatchSnapshotForInstanceInput, optFns ...func(*Options)) (*GetDeployablePatchSnapshotForInstanceOutput, error) {
if params == nil {
params = &GetDeployablePatchSnapshotForInstanceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetDeployablePatchSnapshotForInstance", params, optFns, c.addOperationGetDeployablePatchSnapshotForInstanceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetDeployablePatchSnapshotForInstanceOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetDeployablePatchSnapshotForInstanceInput struct {
// The ID of the managed node for which the appropriate patch snapshot should be
// retrieved.
//
// This member is required.
InstanceId *string
// The snapshot ID provided by the user when running AWS-RunPatchBaseline .
//
// This member is required.
SnapshotId *string
// Defines the basic information about a patch baseline override.
BaselineOverride *types.BaselineOverride
noSmithyDocumentSerde
}
type GetDeployablePatchSnapshotForInstanceOutput struct {
// The managed node ID.
InstanceId *string
// Returns the specific operating system (for example Windows Server 2012 or
// Amazon Linux 2015.09) on the managed node for the specified patch snapshot.
Product *string
// A pre-signed Amazon Simple Storage Service (Amazon S3) URL that can be used to
// download the patch snapshot.
SnapshotDownloadUrl *string
// The user-defined snapshot ID.
SnapshotId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetDeployablePatchSnapshotForInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetDeployablePatchSnapshotForInstance{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetDeployablePatchSnapshotForInstance{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetDeployablePatchSnapshotForInstanceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetDeployablePatchSnapshotForInstance(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetDeployablePatchSnapshotForInstance(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetDeployablePatchSnapshotForInstance",
}
}
| 153 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"time"
)
// Gets the contents of the specified Amazon Web Services Systems Manager document
// (SSM document).
func (c *Client) GetDocument(ctx context.Context, params *GetDocumentInput, optFns ...func(*Options)) (*GetDocumentOutput, error) {
if params == nil {
params = &GetDocumentInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetDocument", params, optFns, c.addOperationGetDocumentMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetDocumentOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetDocumentInput struct {
// The name of the SSM document.
//
// This member is required.
Name *string
// Returns the document in the specified format. The document format can be either
// JSON or YAML. JSON is the default format.
DocumentFormat types.DocumentFormat
// The document version for which you want information.
DocumentVersion *string
// An optional field specifying the version of the artifact associated with the
// document. For example, "Release 12, Update 6". This value is unique across all
// versions of a document and can't be changed.
VersionName *string
noSmithyDocumentSerde
}
type GetDocumentOutput struct {
// A description of the document attachments, including names, locations, sizes,
// and so on.
AttachmentsContent []types.AttachmentContent
// The contents of the SSM document.
Content *string
// The date the SSM document was created.
CreatedDate *time.Time
// The friendly name of the SSM document. This value can differ for each version
// of the document. If you want to update this value, see UpdateDocument .
DisplayName *string
// The document format, either JSON or YAML.
DocumentFormat types.DocumentFormat
// The document type.
DocumentType types.DocumentType
// The document version.
DocumentVersion *string
// The name of the SSM document.
Name *string
// A list of SSM documents required by a document. For example, an
// ApplicationConfiguration document requires an ApplicationConfigurationSchema
// document.
Requires []types.DocumentRequires
// The current review status of a new custom Systems Manager document (SSM
// document) created by a member of your organization, or of the latest version of
// an existing SSM document. Only one version of an SSM document can be in the
// APPROVED state at a time. When a new version is approved, the status of the
// previous version changes to REJECTED. Only one version of an SSM document can be
// in review, or PENDING, at a time.
ReviewStatus types.ReviewStatus
// The status of the SSM document, such as Creating , Active , Updating , Failed ,
// and Deleting .
Status types.DocumentStatus
// A message returned by Amazon Web Services Systems Manager that explains the
// Status value. For example, a Failed status might be explained by the
// StatusInformation message, "The specified S3 bucket doesn't exist. Verify that
// the URL of the S3 bucket is correct."
StatusInformation *string
// The version of the artifact associated with the document. For example, "Release
// 12, Update 6". This value is unique across all versions of a document, and can't
// be changed.
VersionName *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetDocumentMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetDocument{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetDocument{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetDocumentValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetDocument(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetDocument(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetDocument",
}
}
| 190 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Query inventory information. This includes managed node status, such as Stopped
// or Terminated .
func (c *Client) GetInventory(ctx context.Context, params *GetInventoryInput, optFns ...func(*Options)) (*GetInventoryOutput, error) {
if params == nil {
params = &GetInventoryInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetInventory", params, optFns, c.addOperationGetInventoryMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetInventoryOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetInventoryInput struct {
// Returns counts of inventory types based on one or more expressions. For
// example, if you aggregate by using an expression that uses the
// AWS:InstanceInformation.PlatformType type, you can see a count of how many
// Windows and Linux managed nodes exist in your inventoried fleet.
Aggregators []types.InventoryAggregator
// One or more filters. Use a filter to return a more specific list of results.
Filters []types.InventoryFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
// The list of inventory item types to return.
ResultAttributes []types.ResultAttribute
noSmithyDocumentSerde
}
type GetInventoryOutput struct {
// Collection of inventory entities such as a collection of managed node inventory.
Entities []types.InventoryResultEntity
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetInventoryMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetInventory{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetInventory{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetInventoryValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetInventory(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// GetInventoryAPIClient is a client that implements the GetInventory operation.
type GetInventoryAPIClient interface {
GetInventory(context.Context, *GetInventoryInput, ...func(*Options)) (*GetInventoryOutput, error)
}
var _ GetInventoryAPIClient = (*Client)(nil)
// GetInventoryPaginatorOptions is the paginator options for GetInventory
type GetInventoryPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// GetInventoryPaginator is a paginator for GetInventory
type GetInventoryPaginator struct {
options GetInventoryPaginatorOptions
client GetInventoryAPIClient
params *GetInventoryInput
nextToken *string
firstPage bool
}
// NewGetInventoryPaginator returns a new GetInventoryPaginator
func NewGetInventoryPaginator(client GetInventoryAPIClient, params *GetInventoryInput, optFns ...func(*GetInventoryPaginatorOptions)) *GetInventoryPaginator {
if params == nil {
params = &GetInventoryInput{}
}
options := GetInventoryPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &GetInventoryPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *GetInventoryPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next GetInventory page.
func (p *GetInventoryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetInventoryOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.GetInventory(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opGetInventory(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetInventory",
}
}
| 236 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Return a list of inventory type names for the account, or return a list of
// attribute names for a specific Inventory item type.
func (c *Client) GetInventorySchema(ctx context.Context, params *GetInventorySchemaInput, optFns ...func(*Options)) (*GetInventorySchemaOutput, error) {
if params == nil {
params = &GetInventorySchemaInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetInventorySchema", params, optFns, c.addOperationGetInventorySchemaMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetInventorySchemaOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetInventorySchemaInput struct {
// Returns inventory schemas that support aggregation. For example, this call
// returns the AWS:InstanceInformation type, because it supports aggregation based
// on the PlatformName , PlatformType , and PlatformVersion attributes.
Aggregator bool
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
// Returns the sub-type schema for a specified inventory type.
SubType *bool
// The type of inventory item to return.
TypeName *string
noSmithyDocumentSerde
}
type GetInventorySchemaOutput struct {
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// Inventory schemas returned by the request.
Schemas []types.InventoryItemSchema
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetInventorySchemaMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetInventorySchema{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetInventorySchema{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetInventorySchema(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// GetInventorySchemaAPIClient is a client that implements the GetInventorySchema
// operation.
type GetInventorySchemaAPIClient interface {
GetInventorySchema(context.Context, *GetInventorySchemaInput, ...func(*Options)) (*GetInventorySchemaOutput, error)
}
var _ GetInventorySchemaAPIClient = (*Client)(nil)
// GetInventorySchemaPaginatorOptions is the paginator options for
// GetInventorySchema
type GetInventorySchemaPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// GetInventorySchemaPaginator is a paginator for GetInventorySchema
type GetInventorySchemaPaginator struct {
options GetInventorySchemaPaginatorOptions
client GetInventorySchemaAPIClient
params *GetInventorySchemaInput
nextToken *string
firstPage bool
}
// NewGetInventorySchemaPaginator returns a new GetInventorySchemaPaginator
func NewGetInventorySchemaPaginator(client GetInventorySchemaAPIClient, params *GetInventorySchemaInput, optFns ...func(*GetInventorySchemaPaginatorOptions)) *GetInventorySchemaPaginator {
if params == nil {
params = &GetInventorySchemaInput{}
}
options := GetInventorySchemaPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &GetInventorySchemaPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *GetInventorySchemaPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next GetInventorySchema page.
func (p *GetInventorySchemaPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetInventorySchemaOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.GetInventorySchema(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opGetInventorySchema(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetInventorySchema",
}
}
| 234 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"time"
)
// Retrieves a maintenance window.
func (c *Client) GetMaintenanceWindow(ctx context.Context, params *GetMaintenanceWindowInput, optFns ...func(*Options)) (*GetMaintenanceWindowOutput, error) {
if params == nil {
params = &GetMaintenanceWindowInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetMaintenanceWindow", params, optFns, c.addOperationGetMaintenanceWindowMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetMaintenanceWindowOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetMaintenanceWindowInput struct {
// The ID of the maintenance window for which you want to retrieve information.
//
// This member is required.
WindowId *string
noSmithyDocumentSerde
}
type GetMaintenanceWindowOutput struct {
// Whether targets must be registered with the maintenance window before tasks can
// be defined for those targets.
AllowUnassociatedTargets bool
// The date the maintenance window was created.
CreatedDate *time.Time
// The number of hours before the end of the maintenance window that Amazon Web
// Services Systems Manager stops scheduling new tasks for execution.
Cutoff int32
// The description of the maintenance window.
Description *string
// The duration of the maintenance window in hours.
Duration int32
// Indicates whether the maintenance window is enabled.
Enabled bool
// The date and time, in ISO-8601 Extended format, for when the maintenance window
// is scheduled to become inactive. The maintenance window won't run after this
// specified time.
EndDate *string
// The date the maintenance window was last modified.
ModifiedDate *time.Time
// The name of the maintenance window.
Name *string
// The next time the maintenance window will actually run, taking into account any
// specified times for the maintenance window to become active or inactive.
NextExecutionTime *string
// The schedule of the maintenance window in the form of a cron or rate expression.
Schedule *string
// The number of days to wait to run a maintenance window after the scheduled cron
// expression date and time.
ScheduleOffset *int32
// The time zone that the scheduled maintenance window executions are based on, in
// Internet Assigned Numbers Authority (IANA) format. For example:
// "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the
// Time Zone Database (https://www.iana.org/time-zones) on the IANA website.
ScheduleTimezone *string
// The date and time, in ISO-8601 Extended format, for when the maintenance window
// is scheduled to become active. The maintenance window won't run before this
// specified time.
StartDate *string
// The ID of the created maintenance window.
WindowId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetMaintenanceWindowMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetMaintenanceWindow{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetMaintenanceWindow{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetMaintenanceWindowValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetMaintenanceWindow(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetMaintenanceWindow(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetMaintenanceWindow",
}
}
| 178 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"time"
)
// Retrieves details about a specific a maintenance window execution.
func (c *Client) GetMaintenanceWindowExecution(ctx context.Context, params *GetMaintenanceWindowExecutionInput, optFns ...func(*Options)) (*GetMaintenanceWindowExecutionOutput, error) {
if params == nil {
params = &GetMaintenanceWindowExecutionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetMaintenanceWindowExecution", params, optFns, c.addOperationGetMaintenanceWindowExecutionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetMaintenanceWindowExecutionOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetMaintenanceWindowExecutionInput struct {
// The ID of the maintenance window execution that includes the task.
//
// This member is required.
WindowExecutionId *string
noSmithyDocumentSerde
}
type GetMaintenanceWindowExecutionOutput struct {
// The time the maintenance window finished running.
EndTime *time.Time
// The time the maintenance window started running.
StartTime *time.Time
// The status of the maintenance window execution.
Status types.MaintenanceWindowExecutionStatus
// The details explaining the status. Not available for all status values.
StatusDetails *string
// The ID of the task executions from the maintenance window execution.
TaskIds []string
// The ID of the maintenance window execution.
WindowExecutionId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetMaintenanceWindowExecutionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetMaintenanceWindowExecution{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetMaintenanceWindowExecution{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetMaintenanceWindowExecutionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetMaintenanceWindowExecution(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetMaintenanceWindowExecution(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetMaintenanceWindowExecution",
}
}
| 141 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"time"
)
// Retrieves the details about a specific task run as part of a maintenance window
// execution.
func (c *Client) GetMaintenanceWindowExecutionTask(ctx context.Context, params *GetMaintenanceWindowExecutionTaskInput, optFns ...func(*Options)) (*GetMaintenanceWindowExecutionTaskOutput, error) {
if params == nil {
params = &GetMaintenanceWindowExecutionTaskInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetMaintenanceWindowExecutionTask", params, optFns, c.addOperationGetMaintenanceWindowExecutionTaskMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetMaintenanceWindowExecutionTaskOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetMaintenanceWindowExecutionTaskInput struct {
// The ID of the specific task execution in the maintenance window task that
// should be retrieved.
//
// This member is required.
TaskId *string
// The ID of the maintenance window execution that includes the task.
//
// This member is required.
WindowExecutionId *string
noSmithyDocumentSerde
}
type GetMaintenanceWindowExecutionTaskOutput struct {
// The details for the CloudWatch alarm you applied to your maintenance window
// task.
AlarmConfiguration *types.AlarmConfiguration
// The time the task execution completed.
EndTime *time.Time
// The defined maximum number of task executions that could be run in parallel.
MaxConcurrency *string
// The defined maximum number of task execution errors allowed before scheduling
// of the task execution would have been stopped.
MaxErrors *string
// The priority of the task.
Priority int32
// The role that was assumed when running the task.
ServiceRole *string
// The time the task execution started.
StartTime *time.Time
// The status of the task.
Status types.MaintenanceWindowExecutionStatus
// The details explaining the status. Not available for all status values.
StatusDetails *string
// The Amazon Resource Name (ARN) of the task that ran.
TaskArn *string
// The ID of the specific task execution in the maintenance window task that was
// retrieved.
TaskExecutionId *string
// The parameters passed to the task when it was run. TaskParameters has been
// deprecated. To specify parameters to pass to a task when it runs, instead use
// the Parameters option in the TaskInvocationParameters structure. For
// information about how Systems Manager handles these options for the supported
// maintenance window task types, see MaintenanceWindowTaskInvocationParameters .
// The map has the following format:
// - Key : string, between 1 and 255 characters
// - Value : an array of strings, each between 1 and 255 characters
TaskParameters []map[string]types.MaintenanceWindowTaskParameterValueExpression
// The CloudWatch alarms that were invoked by the maintenance window task.
TriggeredAlarms []types.AlarmStateInformation
// The type of task that was run.
Type types.MaintenanceWindowTaskType
// The ID of the maintenance window execution that includes the task.
WindowExecutionId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetMaintenanceWindowExecutionTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetMaintenanceWindowExecutionTask{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetMaintenanceWindowExecutionTask{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetMaintenanceWindowExecutionTaskValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetMaintenanceWindowExecutionTask(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetMaintenanceWindowExecutionTask(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetMaintenanceWindowExecutionTask",
}
}
| 185 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"time"
)
// Retrieves information about a specific task running on a specific target.
func (c *Client) GetMaintenanceWindowExecutionTaskInvocation(ctx context.Context, params *GetMaintenanceWindowExecutionTaskInvocationInput, optFns ...func(*Options)) (*GetMaintenanceWindowExecutionTaskInvocationOutput, error) {
if params == nil {
params = &GetMaintenanceWindowExecutionTaskInvocationInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetMaintenanceWindowExecutionTaskInvocation", params, optFns, c.addOperationGetMaintenanceWindowExecutionTaskInvocationMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetMaintenanceWindowExecutionTaskInvocationOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetMaintenanceWindowExecutionTaskInvocationInput struct {
// The invocation ID to retrieve.
//
// This member is required.
InvocationId *string
// The ID of the specific task in the maintenance window task that should be
// retrieved.
//
// This member is required.
TaskId *string
// The ID of the maintenance window execution for which the task is a part.
//
// This member is required.
WindowExecutionId *string
noSmithyDocumentSerde
}
type GetMaintenanceWindowExecutionTaskInvocationOutput struct {
// The time that the task finished running on the target.
EndTime *time.Time
// The execution ID.
ExecutionId *string
// The invocation ID.
InvocationId *string
// User-provided value to be included in any Amazon CloudWatch Events or Amazon
// EventBridge events raised while running tasks for these targets in this
// maintenance window.
OwnerInformation *string
// The parameters used at the time that the task ran.
Parameters *string
// The time that the task started running on the target.
StartTime *time.Time
// The task status for an invocation.
Status types.MaintenanceWindowExecutionStatus
// The details explaining the status. Details are only available for certain
// status values.
StatusDetails *string
// The task execution ID.
TaskExecutionId *string
// Retrieves the task type for a maintenance window.
TaskType types.MaintenanceWindowTaskType
// The maintenance window execution ID.
WindowExecutionId *string
// The maintenance window target ID.
WindowTargetId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetMaintenanceWindowExecutionTaskInvocationMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetMaintenanceWindowExecutionTaskInvocation{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetMaintenanceWindowExecutionTaskInvocation{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetMaintenanceWindowExecutionTaskInvocationValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetMaintenanceWindowExecutionTaskInvocation(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetMaintenanceWindowExecutionTaskInvocation(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetMaintenanceWindowExecutionTaskInvocation",
}
}
| 173 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves the details of a maintenance window task. For maintenance window
// tasks without a specified target, you can't supply values for --max-errors and
// --max-concurrency . Instead, the system inserts a placeholder value of 1 , which
// may be reported in the response to this command. These values don't affect the
// running of your task and can be ignored. To retrieve a list of tasks in a
// maintenance window, instead use the DescribeMaintenanceWindowTasks command.
func (c *Client) GetMaintenanceWindowTask(ctx context.Context, params *GetMaintenanceWindowTaskInput, optFns ...func(*Options)) (*GetMaintenanceWindowTaskOutput, error) {
if params == nil {
params = &GetMaintenanceWindowTaskInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetMaintenanceWindowTask", params, optFns, c.addOperationGetMaintenanceWindowTaskMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetMaintenanceWindowTaskOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetMaintenanceWindowTaskInput struct {
// The maintenance window ID that includes the task to retrieve.
//
// This member is required.
WindowId *string
// The maintenance window task ID to retrieve.
//
// This member is required.
WindowTaskId *string
noSmithyDocumentSerde
}
type GetMaintenanceWindowTaskOutput struct {
// The details for the CloudWatch alarm you applied to your maintenance window
// task.
AlarmConfiguration *types.AlarmConfiguration
// The action to take on tasks when the maintenance window cutoff time is reached.
// CONTINUE_TASK means that tasks continue to run. For Automation, Lambda, Step
// Functions tasks, CANCEL_TASK means that currently running task invocations
// continue, but no new task invocations are started. For Run Command tasks,
// CANCEL_TASK means the system attempts to stop the task by sending a
// CancelCommand operation.
CutoffBehavior types.MaintenanceWindowTaskCutoffBehavior
// The retrieved task description.
Description *string
// The location in Amazon Simple Storage Service (Amazon S3) where the task
// results are logged. LoggingInfo has been deprecated. To specify an Amazon
// Simple Storage Service (Amazon S3) bucket to contain logs, instead use the
// OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters
// structure. For information about how Amazon Web Services Systems Manager handles
// these options for the supported maintenance window task types, see
// MaintenanceWindowTaskInvocationParameters .
LoggingInfo *types.LoggingInfo
// The maximum number of targets allowed to run this task in parallel. For
// maintenance window tasks without a target specified, you can't supply a value
// for this option. Instead, the system inserts a placeholder value of 1 , which
// may be reported in the response to this command. This value doesn't affect the
// running of your task and can be ignored.
MaxConcurrency *string
// The maximum number of errors allowed before the task stops being scheduled. For
// maintenance window tasks without a target specified, you can't supply a value
// for this option. Instead, the system inserts a placeholder value of 1 , which
// may be reported in the response to this command. This value doesn't affect the
// running of your task and can be ignored.
MaxErrors *string
// The retrieved task name.
Name *string
// The priority of the task when it runs. The lower the number, the higher the
// priority. Tasks that have the same priority are scheduled in parallel.
Priority int32
// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
// service role to use to publish Amazon Simple Notification Service (Amazon SNS)
// notifications for maintenance window Run Command tasks.
ServiceRoleArn *string
// The targets where the task should run.
Targets []types.Target
// The resource that the task used during execution. For RUN_COMMAND and AUTOMATION
// task types, the value of TaskArn is the SSM document name/ARN. For LAMBDA
// tasks, the value is the function name/ARN. For STEP_FUNCTIONS tasks, the value
// is the state machine ARN.
TaskArn *string
// The parameters to pass to the task when it runs.
TaskInvocationParameters *types.MaintenanceWindowTaskInvocationParameters
// The parameters to pass to the task when it runs. TaskParameters has been
// deprecated. To specify parameters to pass to a task when it runs, instead use
// the Parameters option in the TaskInvocationParameters structure. For
// information about how Systems Manager handles these options for the supported
// maintenance window task types, see MaintenanceWindowTaskInvocationParameters .
TaskParameters map[string]types.MaintenanceWindowTaskParameterValueExpression
// The type of task to run.
TaskType types.MaintenanceWindowTaskType
// The retrieved maintenance window ID.
WindowId *string
// The retrieved maintenance window task ID.
WindowTaskId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetMaintenanceWindowTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetMaintenanceWindowTask{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetMaintenanceWindowTask{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetMaintenanceWindowTaskValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetMaintenanceWindowTask(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetMaintenanceWindowTask(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetMaintenanceWindowTask",
}
}
| 210 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Get information about an OpsItem by using the ID. You must have permission in
// Identity and Access Management (IAM) to view information about an OpsItem. For
// more information, see Set up OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-setup.html)
// in the Amazon Web Services Systems Manager User Guide. Operations engineers and
// IT professionals use Amazon Web Services Systems Manager OpsCenter to view,
// investigate, and remediate operational issues impacting the performance and
// health of their Amazon Web Services resources. For more information, see
// OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
// in the Amazon Web Services Systems Manager User Guide.
func (c *Client) GetOpsItem(ctx context.Context, params *GetOpsItemInput, optFns ...func(*Options)) (*GetOpsItemOutput, error) {
if params == nil {
params = &GetOpsItemInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetOpsItem", params, optFns, c.addOperationGetOpsItemMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetOpsItemOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetOpsItemInput struct {
// The ID of the OpsItem that you want to get.
//
// This member is required.
OpsItemId *string
// The OpsItem Amazon Resource Name (ARN).
OpsItemArn *string
noSmithyDocumentSerde
}
type GetOpsItemOutput struct {
// The OpsItem.
OpsItem *types.OpsItem
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetOpsItemMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetOpsItem{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetOpsItem{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetOpsItemValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetOpsItem(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetOpsItem(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetOpsItem",
}
}
| 136 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// View operational metadata related to an application in Application Manager.
func (c *Client) GetOpsMetadata(ctx context.Context, params *GetOpsMetadataInput, optFns ...func(*Options)) (*GetOpsMetadataOutput, error) {
if params == nil {
params = &GetOpsMetadataInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetOpsMetadata", params, optFns, c.addOperationGetOpsMetadataMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetOpsMetadataOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetOpsMetadataInput struct {
// The Amazon Resource Name (ARN) of an OpsMetadata Object to view.
//
// This member is required.
OpsMetadataArn *string
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
noSmithyDocumentSerde
}
type GetOpsMetadataOutput struct {
// OpsMetadata for an Application Manager application.
Metadata map[string]types.MetadataValue
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// The resource ID of the Application Manager application.
ResourceId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetOpsMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetOpsMetadata{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetOpsMetadata{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetOpsMetadataValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetOpsMetadata(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetOpsMetadata(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetOpsMetadata",
}
}
| 139 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// View a summary of operations metadata (OpsData) based on specified filters and
// aggregators. OpsData can include information about Amazon Web Services Systems
// Manager OpsCenter operational workitems (OpsItems) as well as information about
// any Amazon Web Services resource or service configured to report OpsData to
// Amazon Web Services Systems Manager Explorer.
func (c *Client) GetOpsSummary(ctx context.Context, params *GetOpsSummaryInput, optFns ...func(*Options)) (*GetOpsSummaryOutput, error) {
if params == nil {
params = &GetOpsSummaryInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetOpsSummary", params, optFns, c.addOperationGetOpsSummaryMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetOpsSummaryOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetOpsSummaryInput struct {
// Optional aggregators that return counts of OpsData based on one or more
// expressions.
Aggregators []types.OpsAggregator
// Optional filters used to scope down the returned OpsData.
Filters []types.OpsFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
// The OpsData data type to return.
ResultAttributes []types.OpsResultAttribute
// Specify the name of a resource data sync to get.
SyncName *string
noSmithyDocumentSerde
}
type GetOpsSummaryOutput struct {
// The list of aggregated details and filtered OpsData.
Entities []types.OpsEntity
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetOpsSummaryMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetOpsSummary{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetOpsSummary{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetOpsSummaryValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetOpsSummary(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// GetOpsSummaryAPIClient is a client that implements the GetOpsSummary operation.
type GetOpsSummaryAPIClient interface {
GetOpsSummary(context.Context, *GetOpsSummaryInput, ...func(*Options)) (*GetOpsSummaryOutput, error)
}
var _ GetOpsSummaryAPIClient = (*Client)(nil)
// GetOpsSummaryPaginatorOptions is the paginator options for GetOpsSummary
type GetOpsSummaryPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// GetOpsSummaryPaginator is a paginator for GetOpsSummary
type GetOpsSummaryPaginator struct {
options GetOpsSummaryPaginatorOptions
client GetOpsSummaryAPIClient
params *GetOpsSummaryInput
nextToken *string
firstPage bool
}
// NewGetOpsSummaryPaginator returns a new GetOpsSummaryPaginator
func NewGetOpsSummaryPaginator(client GetOpsSummaryAPIClient, params *GetOpsSummaryInput, optFns ...func(*GetOpsSummaryPaginatorOptions)) *GetOpsSummaryPaginator {
if params == nil {
params = &GetOpsSummaryInput{}
}
options := GetOpsSummaryPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &GetOpsSummaryPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *GetOpsSummaryPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next GetOpsSummary page.
func (p *GetOpsSummaryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetOpsSummaryOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.GetOpsSummary(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opGetOpsSummary(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetOpsSummary",
}
}
| 239 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Get information about a single parameter by specifying the parameter name. To
// get information about more than one parameter at a time, use the GetParameters
// operation.
func (c *Client) GetParameter(ctx context.Context, params *GetParameterInput, optFns ...func(*Options)) (*GetParameterOutput, error) {
if params == nil {
params = &GetParameterInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetParameter", params, optFns, c.addOperationGetParameterMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetParameterOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetParameterInput struct {
// The name of the parameter you want to query. To query by parameter label, use
// "Name": "name:label" . To query by parameter version, use "Name": "name:version"
// .
//
// This member is required.
Name *string
// Return decrypted values for secure string parameters. This flag is ignored for
// String and StringList parameter types.
WithDecryption *bool
noSmithyDocumentSerde
}
type GetParameterOutput struct {
// Information about a parameter.
Parameter *types.Parameter
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetParameterMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetParameter{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetParameter{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetParameterValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetParameter(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetParameter(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetParameter",
}
}
| 133 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves the history of all changes to a parameter. If you change the KMS key
// alias for the KMS key used to encrypt a parameter, then you must also update the
// key alias the parameter uses to reference KMS. Otherwise, GetParameterHistory
// retrieves whatever the original key alias was referencing.
func (c *Client) GetParameterHistory(ctx context.Context, params *GetParameterHistoryInput, optFns ...func(*Options)) (*GetParameterHistoryOutput, error) {
if params == nil {
params = &GetParameterHistoryInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetParameterHistory", params, optFns, c.addOperationGetParameterHistoryMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetParameterHistoryOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetParameterHistoryInput struct {
// The name of the parameter for which you want to review history.
//
// This member is required.
Name *string
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
// Return decrypted values for secure string parameters. This flag is ignored for
// String and StringList parameter types.
WithDecryption *bool
noSmithyDocumentSerde
}
type GetParameterHistoryOutput struct {
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// A list of parameters returned by the request.
Parameters []types.ParameterHistory
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetParameterHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetParameterHistory{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetParameterHistory{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetParameterHistoryValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetParameterHistory(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// GetParameterHistoryAPIClient is a client that implements the
// GetParameterHistory operation.
type GetParameterHistoryAPIClient interface {
GetParameterHistory(context.Context, *GetParameterHistoryInput, ...func(*Options)) (*GetParameterHistoryOutput, error)
}
var _ GetParameterHistoryAPIClient = (*Client)(nil)
// GetParameterHistoryPaginatorOptions is the paginator options for
// GetParameterHistory
type GetParameterHistoryPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// GetParameterHistoryPaginator is a paginator for GetParameterHistory
type GetParameterHistoryPaginator struct {
options GetParameterHistoryPaginatorOptions
client GetParameterHistoryAPIClient
params *GetParameterHistoryInput
nextToken *string
firstPage bool
}
// NewGetParameterHistoryPaginator returns a new GetParameterHistoryPaginator
func NewGetParameterHistoryPaginator(client GetParameterHistoryAPIClient, params *GetParameterHistoryInput, optFns ...func(*GetParameterHistoryPaginatorOptions)) *GetParameterHistoryPaginator {
if params == nil {
params = &GetParameterHistoryInput{}
}
options := GetParameterHistoryPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &GetParameterHistoryPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *GetParameterHistoryPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next GetParameterHistory page.
func (p *GetParameterHistoryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetParameterHistoryOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.GetParameterHistory(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opGetParameterHistory(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetParameterHistory",
}
}
| 237 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Get information about one or more parameters by specifying multiple parameter
// names. To get information about a single parameter, you can use the GetParameter
// operation instead.
func (c *Client) GetParameters(ctx context.Context, params *GetParametersInput, optFns ...func(*Options)) (*GetParametersOutput, error) {
if params == nil {
params = &GetParametersInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetParameters", params, optFns, c.addOperationGetParametersMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetParametersOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetParametersInput struct {
// Names of the parameters for which you want to query information. To query by
// parameter label, use "Name": "name:label" . To query by parameter version, use
// "Name": "name:version" .
//
// This member is required.
Names []string
// Return decrypted secure string value. Return decrypted values for secure string
// parameters. This flag is ignored for String and StringList parameter types.
WithDecryption *bool
noSmithyDocumentSerde
}
type GetParametersOutput struct {
// A list of parameters that aren't formatted correctly or don't run during an
// execution.
InvalidParameters []string
// A list of details for a parameter.
Parameters []types.Parameter
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetParametersMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetParameters{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetParameters{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetParametersValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetParameters(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetParameters(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetParameters",
}
}
| 137 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieve information about one or more parameters in a specific hierarchy.
// Request results are returned on a best-effort basis. If you specify MaxResults
// in the request, the response includes information up to the limit specified. The
// number of items returned, however, can be between zero and the value of
// MaxResults . If the service reaches an internal limit while processing the
// results, it stops the operation and returns the matching values up to that point
// and a NextToken . You can specify the NextToken in a subsequent call to get the
// next set of results.
func (c *Client) GetParametersByPath(ctx context.Context, params *GetParametersByPathInput, optFns ...func(*Options)) (*GetParametersByPathOutput, error) {
if params == nil {
params = &GetParametersByPathInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetParametersByPath", params, optFns, c.addOperationGetParametersByPathMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetParametersByPathOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetParametersByPathInput struct {
// The hierarchy for the parameter. Hierarchies start with a forward slash (/).
// The hierarchy is the parameter name except the last part of the parameter. For
// the API call to succeed, the last part of the parameter name can't be in the
// path. A parameter name hierarchy can have a maximum of 15 levels. Here is an
// example of a hierarchy: /Finance/Prod/IAD/WinServ2016/license33
//
// This member is required.
Path *string
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
// Filters to limit the request results. The following Key values are supported
// for GetParametersByPath : Type , KeyId , and Label . The following Key values
// aren't supported for GetParametersByPath : tag , DataType , Name , Path , and
// Tier .
ParameterFilters []types.ParameterStringFilter
// Retrieve all parameters within a hierarchy. If a user has access to a path,
// then the user can access all levels of that path. For example, if a user has
// permission to access path /a , then the user can also access /a/b . Even if a
// user has explicitly been denied access in IAM for parameter /a/b , they can
// still call the GetParametersByPath API operation recursively for /a and view
// /a/b .
Recursive *bool
// Retrieve all parameters in a hierarchy with their value decrypted.
WithDecryption *bool
noSmithyDocumentSerde
}
type GetParametersByPathOutput struct {
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// A list of parameters found in the specified hierarchy.
Parameters []types.Parameter
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetParametersByPathMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetParametersByPath{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetParametersByPath{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetParametersByPathValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetParametersByPath(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// GetParametersByPathAPIClient is a client that implements the
// GetParametersByPath operation.
type GetParametersByPathAPIClient interface {
GetParametersByPath(context.Context, *GetParametersByPathInput, ...func(*Options)) (*GetParametersByPathOutput, error)
}
var _ GetParametersByPathAPIClient = (*Client)(nil)
// GetParametersByPathPaginatorOptions is the paginator options for
// GetParametersByPath
type GetParametersByPathPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// GetParametersByPathPaginator is a paginator for GetParametersByPath
type GetParametersByPathPaginator struct {
options GetParametersByPathPaginatorOptions
client GetParametersByPathAPIClient
params *GetParametersByPathInput
nextToken *string
firstPage bool
}
// NewGetParametersByPathPaginator returns a new GetParametersByPathPaginator
func NewGetParametersByPathPaginator(client GetParametersByPathAPIClient, params *GetParametersByPathInput, optFns ...func(*GetParametersByPathPaginatorOptions)) *GetParametersByPathPaginator {
if params == nil {
params = &GetParametersByPathInput{}
}
options := GetParametersByPathPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &GetParametersByPathPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *GetParametersByPathPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next GetParametersByPath page.
func (p *GetParametersByPathPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetParametersByPathOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.GetParametersByPath(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opGetParametersByPath(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetParametersByPath",
}
}
| 257 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"time"
)
// Retrieves information about a patch baseline.
func (c *Client) GetPatchBaseline(ctx context.Context, params *GetPatchBaselineInput, optFns ...func(*Options)) (*GetPatchBaselineOutput, error) {
if params == nil {
params = &GetPatchBaselineInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetPatchBaseline", params, optFns, c.addOperationGetPatchBaselineMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetPatchBaselineOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetPatchBaselineInput struct {
// The ID of the patch baseline to retrieve. To retrieve information about an
// Amazon Web Services managed patch baseline, specify the full Amazon Resource
// Name (ARN) of the baseline. For example, for the baseline
// AWS-AmazonLinuxDefaultPatchBaseline , specify
// arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0e392de35e7c563b7 instead of
// pb-0e392de35e7c563b7 .
//
// This member is required.
BaselineId *string
noSmithyDocumentSerde
}
type GetPatchBaselineOutput struct {
// A set of rules used to include patches in the baseline.
ApprovalRules *types.PatchRuleGroup
// A list of explicitly approved patches for the baseline.
ApprovedPatches []string
// Returns the specified compliance severity level for approved patches in the
// patch baseline.
ApprovedPatchesComplianceLevel types.PatchComplianceLevel
// Indicates whether the list of approved patches includes non-security updates
// that should be applied to the managed nodes. The default value is false .
// Applies to Linux managed nodes only.
ApprovedPatchesEnableNonSecurity *bool
// The ID of the retrieved patch baseline.
BaselineId *string
// The date the patch baseline was created.
CreatedDate *time.Time
// A description of the patch baseline.
Description *string
// A set of global filters used to exclude patches from the baseline.
GlobalFilters *types.PatchFilterGroup
// The date the patch baseline was last modified.
ModifiedDate *time.Time
// The name of the patch baseline.
Name *string
// Returns the operating system specified for the patch baseline.
OperatingSystem types.OperatingSystem
// Patch groups included in the patch baseline.
PatchGroups []string
// A list of explicitly rejected patches for the baseline.
RejectedPatches []string
// The action specified to take on patches included in the RejectedPatches list. A
// patch can be allowed only if it is a dependency of another package, or blocked
// entirely along with packages that include it as a dependency.
RejectedPatchesAction types.PatchAction
// Information about the patches to use to update the managed nodes, including
// target operating systems and source repositories. Applies to Linux managed nodes
// only.
Sources []types.PatchSource
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetPatchBaselineMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetPatchBaseline{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetPatchBaseline{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetPatchBaselineValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetPatchBaseline(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetPatchBaseline(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetPatchBaseline",
}
}
| 180 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves the patch baseline that should be used for the specified patch group.
func (c *Client) GetPatchBaselineForPatchGroup(ctx context.Context, params *GetPatchBaselineForPatchGroupInput, optFns ...func(*Options)) (*GetPatchBaselineForPatchGroupOutput, error) {
if params == nil {
params = &GetPatchBaselineForPatchGroupInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetPatchBaselineForPatchGroup", params, optFns, c.addOperationGetPatchBaselineForPatchGroupMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetPatchBaselineForPatchGroupOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetPatchBaselineForPatchGroupInput struct {
// The name of the patch group whose patch baseline should be retrieved.
//
// This member is required.
PatchGroup *string
// Returns the operating system rule specified for patch groups using the patch
// baseline.
OperatingSystem types.OperatingSystem
noSmithyDocumentSerde
}
type GetPatchBaselineForPatchGroupOutput struct {
// The ID of the patch baseline that should be used for the patch group.
BaselineId *string
// The operating system rule specified for patch groups using the patch baseline.
OperatingSystem types.OperatingSystem
// The name of the patch group.
PatchGroup *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetPatchBaselineForPatchGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetPatchBaselineForPatchGroup{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetPatchBaselineForPatchGroup{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetPatchBaselineForPatchGroupValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetPatchBaselineForPatchGroup(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetPatchBaselineForPatchGroup(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetPatchBaselineForPatchGroup",
}
}
| 135 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns an array of the Policy object.
func (c *Client) GetResourcePolicies(ctx context.Context, params *GetResourcePoliciesInput, optFns ...func(*Options)) (*GetResourcePoliciesOutput, error) {
if params == nil {
params = &GetResourcePoliciesInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetResourcePolicies", params, optFns, c.addOperationGetResourcePoliciesMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetResourcePoliciesOutput)
out.ResultMetadata = metadata
return out, nil
}
type GetResourcePoliciesInput struct {
// Amazon Resource Name (ARN) of the resource to which the policies are attached.
//
// This member is required.
ResourceArn *string
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
noSmithyDocumentSerde
}
type GetResourcePoliciesOutput struct {
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// An array of the Policy object.
Policies []types.GetResourcePoliciesResponseEntry
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetResourcePoliciesMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetResourcePolicies{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetResourcePolicies{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetResourcePoliciesValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetResourcePolicies(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// GetResourcePoliciesAPIClient is a client that implements the
// GetResourcePolicies operation.
type GetResourcePoliciesAPIClient interface {
GetResourcePolicies(context.Context, *GetResourcePoliciesInput, ...func(*Options)) (*GetResourcePoliciesOutput, error)
}
var _ GetResourcePoliciesAPIClient = (*Client)(nil)
// GetResourcePoliciesPaginatorOptions is the paginator options for
// GetResourcePolicies
type GetResourcePoliciesPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// GetResourcePoliciesPaginator is a paginator for GetResourcePolicies
type GetResourcePoliciesPaginator struct {
options GetResourcePoliciesPaginatorOptions
client GetResourcePoliciesAPIClient
params *GetResourcePoliciesInput
nextToken *string
firstPage bool
}
// NewGetResourcePoliciesPaginator returns a new GetResourcePoliciesPaginator
func NewGetResourcePoliciesPaginator(client GetResourcePoliciesAPIClient, params *GetResourcePoliciesInput, optFns ...func(*GetResourcePoliciesPaginatorOptions)) *GetResourcePoliciesPaginator {
if params == nil {
params = &GetResourcePoliciesInput{}
}
options := GetResourcePoliciesPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &GetResourcePoliciesPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *GetResourcePoliciesPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next GetResourcePolicies page.
func (p *GetResourcePoliciesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetResourcePoliciesOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.GetResourcePolicies(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opGetResourcePolicies(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetResourcePolicies",
}
}
| 229 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// ServiceSetting is an account-level setting for an Amazon Web Services service.
// This setting defines how a user interacts with or uses a service or a feature of
// a service. For example, if an Amazon Web Services service charges money to the
// account based on feature or service usage, then the Amazon Web Services service
// team might create a default setting of false . This means the user can't use
// this feature unless they change the setting to true and intentionally opt in
// for a paid feature. Services map a SettingId object to a setting value. Amazon
// Web Services services teams define the default value for a SettingId . You can't
// create a new SettingId , but you can overwrite the default value if you have the
// ssm:UpdateServiceSetting permission for the setting. Use the
// UpdateServiceSetting API operation to change the default setting. Or use the
// ResetServiceSetting to change the value back to the original value defined by
// the Amazon Web Services service team. Query the current service setting for the
// Amazon Web Services account.
func (c *Client) GetServiceSetting(ctx context.Context, params *GetServiceSettingInput, optFns ...func(*Options)) (*GetServiceSettingOutput, error) {
if params == nil {
params = &GetServiceSettingInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetServiceSetting", params, optFns, c.addOperationGetServiceSettingMiddlewares)
if err != nil {
return nil, err
}
out := result.(*GetServiceSettingOutput)
out.ResultMetadata = metadata
return out, nil
}
// The request body of the GetServiceSetting API operation.
type GetServiceSettingInput struct {
// The ID of the service setting to get. The setting ID can be one of the
// following.
// - /ssm/managed-instance/default-ec2-instance-management-role
// - /ssm/automation/customer-script-log-destination
// - /ssm/automation/customer-script-log-group-name
// - /ssm/documents/console/public-sharing-permission
// - /ssm/managed-instance/activation-tier
// - /ssm/opsinsights/opscenter
// - /ssm/parameter-store/default-parameter-tier
// - /ssm/parameter-store/high-throughput-enabled
//
// This member is required.
SettingId *string
noSmithyDocumentSerde
}
// The query result body of the GetServiceSetting API operation.
type GetServiceSettingOutput struct {
// The query result of the current service setting.
ServiceSetting *types.ServiceSetting
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationGetServiceSettingMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetServiceSetting{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetServiceSetting{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpGetServiceSettingValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetServiceSetting(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opGetServiceSetting(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "GetServiceSetting",
}
}
| 149 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// A parameter label is a user-defined alias to help you manage different versions
// of a parameter. When you modify a parameter, Amazon Web Services Systems Manager
// automatically saves a new version and increments the version number by one. A
// label can help you remember the purpose of a parameter when there are multiple
// versions. Parameter labels have the following requirements and restrictions.
// - A version of a parameter can have a maximum of 10 labels.
// - You can't attach the same label to different versions of the same
// parameter. For example, if version 1 has the label Production, then you can't
// attach Production to version 2.
// - You can move a label from one version of a parameter to another.
// - You can't create a label when you create a new parameter. You must attach a
// label to a specific version of a parameter.
// - If you no longer want to use a parameter label, then you can either delete
// it or move it to a different version of a parameter.
// - A label can have a maximum of 100 characters.
// - Labels can contain letters (case sensitive), numbers, periods (.), hyphens
// (-), or underscores (_).
// - Labels can't begin with a number, " aws " or " ssm " (not case sensitive).
// If a label fails to meet these requirements, then the label isn't associated
// with a parameter and the system displays it in the list of InvalidLabels.
func (c *Client) LabelParameterVersion(ctx context.Context, params *LabelParameterVersionInput, optFns ...func(*Options)) (*LabelParameterVersionOutput, error) {
if params == nil {
params = &LabelParameterVersionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "LabelParameterVersion", params, optFns, c.addOperationLabelParameterVersionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*LabelParameterVersionOutput)
out.ResultMetadata = metadata
return out, nil
}
type LabelParameterVersionInput struct {
// One or more labels to attach to the specified parameter version.
//
// This member is required.
Labels []string
// The parameter name on which you want to attach one or more labels.
//
// This member is required.
Name *string
// The specific version of the parameter on which you want to attach one or more
// labels. If no version is specified, the system attaches the label to the latest
// version.
ParameterVersion *int64
noSmithyDocumentSerde
}
type LabelParameterVersionOutput struct {
// The label doesn't meet the requirements. For information about parameter label
// requirements, see Labeling parameters (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html)
// in the Amazon Web Services Systems Manager User Guide.
InvalidLabels []string
// The version of the parameter that has been labeled.
ParameterVersion int64
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationLabelParameterVersionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpLabelParameterVersion{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpLabelParameterVersion{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpLabelParameterVersionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opLabelParameterVersion(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opLabelParameterVersion(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "LabelParameterVersion",
}
}
| 158 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns all State Manager associations in the current Amazon Web Services
// account and Amazon Web Services Region. You can limit the results to a specific
// State Manager association document or managed node by specifying a filter. State
// Manager is a capability of Amazon Web Services Systems Manager.
func (c *Client) ListAssociations(ctx context.Context, params *ListAssociationsInput, optFns ...func(*Options)) (*ListAssociationsOutput, error) {
if params == nil {
params = &ListAssociationsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListAssociations", params, optFns, c.addOperationListAssociationsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListAssociationsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListAssociationsInput struct {
// One or more filters. Use a filter to return a more specific list of results.
// Filtering associations using the InstanceID attribute only returns legacy
// associations created using the InstanceID attribute. Associations targeting the
// managed node that are part of the Target Attributes ResourceGroup or Tags
// aren't returned.
AssociationFilterList []types.AssociationFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
noSmithyDocumentSerde
}
type ListAssociationsOutput struct {
// The associations.
Associations []types.Association
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListAssociations{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListAssociations{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListAssociationsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAssociations(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListAssociationsAPIClient is a client that implements the ListAssociations
// operation.
type ListAssociationsAPIClient interface {
ListAssociations(context.Context, *ListAssociationsInput, ...func(*Options)) (*ListAssociationsOutput, error)
}
var _ ListAssociationsAPIClient = (*Client)(nil)
// ListAssociationsPaginatorOptions is the paginator options for ListAssociations
type ListAssociationsPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// ListAssociationsPaginator is a paginator for ListAssociations
type ListAssociationsPaginator struct {
options ListAssociationsPaginatorOptions
client ListAssociationsAPIClient
params *ListAssociationsInput
nextToken *string
firstPage bool
}
// NewListAssociationsPaginator returns a new ListAssociationsPaginator
func NewListAssociationsPaginator(client ListAssociationsAPIClient, params *ListAssociationsInput, optFns ...func(*ListAssociationsPaginatorOptions)) *ListAssociationsPaginator {
if params == nil {
params = &ListAssociationsInput{}
}
options := ListAssociationsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListAssociationsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListAssociationsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListAssociations page.
func (p *ListAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAssociationsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListAssociations(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListAssociations",
}
}
| 234 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves all versions of an association for a specific association ID.
func (c *Client) ListAssociationVersions(ctx context.Context, params *ListAssociationVersionsInput, optFns ...func(*Options)) (*ListAssociationVersionsOutput, error) {
if params == nil {
params = &ListAssociationVersionsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListAssociationVersions", params, optFns, c.addOperationListAssociationVersionsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListAssociationVersionsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListAssociationVersionsInput struct {
// The association ID for which you want to view all versions.
//
// This member is required.
AssociationId *string
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
noSmithyDocumentSerde
}
type ListAssociationVersionsOutput struct {
// Information about all versions of the association for the specified association
// ID.
AssociationVersions []types.AssociationVersionInfo
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListAssociationVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListAssociationVersions{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListAssociationVersions{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListAssociationVersionsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAssociationVersions(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListAssociationVersionsAPIClient is a client that implements the
// ListAssociationVersions operation.
type ListAssociationVersionsAPIClient interface {
ListAssociationVersions(context.Context, *ListAssociationVersionsInput, ...func(*Options)) (*ListAssociationVersionsOutput, error)
}
var _ ListAssociationVersionsAPIClient = (*Client)(nil)
// ListAssociationVersionsPaginatorOptions is the paginator options for
// ListAssociationVersions
type ListAssociationVersionsPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// ListAssociationVersionsPaginator is a paginator for ListAssociationVersions
type ListAssociationVersionsPaginator struct {
options ListAssociationVersionsPaginatorOptions
client ListAssociationVersionsAPIClient
params *ListAssociationVersionsInput
nextToken *string
firstPage bool
}
// NewListAssociationVersionsPaginator returns a new
// ListAssociationVersionsPaginator
func NewListAssociationVersionsPaginator(client ListAssociationVersionsAPIClient, params *ListAssociationVersionsInput, optFns ...func(*ListAssociationVersionsPaginatorOptions)) *ListAssociationVersionsPaginator {
if params == nil {
params = &ListAssociationVersionsInput{}
}
options := ListAssociationVersionsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListAssociationVersionsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListAssociationVersionsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListAssociationVersions page.
func (p *ListAssociationVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAssociationVersionsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListAssociationVersions(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListAssociationVersions(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListAssociationVersions",
}
}
| 231 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// An invocation is copy of a command sent to a specific managed node. A command
// can apply to one or more managed nodes. A command invocation applies to one
// managed node. For example, if a user runs SendCommand against three managed
// nodes, then a command invocation is created for each requested managed node ID.
// ListCommandInvocations provide status about command execution.
func (c *Client) ListCommandInvocations(ctx context.Context, params *ListCommandInvocationsInput, optFns ...func(*Options)) (*ListCommandInvocationsOutput, error) {
if params == nil {
params = &ListCommandInvocationsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListCommandInvocations", params, optFns, c.addOperationListCommandInvocationsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListCommandInvocationsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListCommandInvocationsInput struct {
// (Optional) The invocations for a specific command ID.
CommandId *string
// (Optional) If set this returns the response of the command executions and any
// command output. The default value is false .
Details bool
// (Optional) One or more filters. Use a filter to return a more specific list of
// results.
Filters []types.CommandFilter
// (Optional) The command execution details for a specific managed node ID.
InstanceId *string
// (Optional) The maximum number of items to return for this call. The call also
// returns a token that you can specify in a subsequent call to get the next set of
// results.
MaxResults *int32
// (Optional) The token for the next set of items to return. (You received this
// token from a previous call.)
NextToken *string
noSmithyDocumentSerde
}
type ListCommandInvocationsOutput struct {
// (Optional) A list of all invocations.
CommandInvocations []types.CommandInvocation
// (Optional) The token for the next set of items to return. (You received this
// token from a previous call.)
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListCommandInvocationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListCommandInvocations{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListCommandInvocations{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListCommandInvocationsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCommandInvocations(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListCommandInvocationsAPIClient is a client that implements the
// ListCommandInvocations operation.
type ListCommandInvocationsAPIClient interface {
ListCommandInvocations(context.Context, *ListCommandInvocationsInput, ...func(*Options)) (*ListCommandInvocationsOutput, error)
}
var _ ListCommandInvocationsAPIClient = (*Client)(nil)
// ListCommandInvocationsPaginatorOptions is the paginator options for
// ListCommandInvocations
type ListCommandInvocationsPaginatorOptions struct {
// (Optional) The maximum number of items to return for this call. The call also
// returns a token that you can specify in a subsequent call to get the next set of
// results.
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
}
// ListCommandInvocationsPaginator is a paginator for ListCommandInvocations
type ListCommandInvocationsPaginator struct {
options ListCommandInvocationsPaginatorOptions
client ListCommandInvocationsAPIClient
params *ListCommandInvocationsInput
nextToken *string
firstPage bool
}
// NewListCommandInvocationsPaginator returns a new ListCommandInvocationsPaginator
func NewListCommandInvocationsPaginator(client ListCommandInvocationsAPIClient, params *ListCommandInvocationsInput, optFns ...func(*ListCommandInvocationsPaginatorOptions)) *ListCommandInvocationsPaginator {
if params == nil {
params = &ListCommandInvocationsInput{}
}
options := ListCommandInvocationsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListCommandInvocationsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListCommandInvocationsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListCommandInvocations page.
func (p *ListCommandInvocationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCommandInvocationsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListCommandInvocations(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListCommandInvocations(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListCommandInvocations",
}
}
| 245 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists the commands requested by users of the Amazon Web Services account.
func (c *Client) ListCommands(ctx context.Context, params *ListCommandsInput, optFns ...func(*Options)) (*ListCommandsOutput, error) {
if params == nil {
params = &ListCommandsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListCommands", params, optFns, c.addOperationListCommandsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListCommandsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListCommandsInput struct {
// (Optional) If provided, lists only the specified command.
CommandId *string
// (Optional) One or more filters. Use a filter to return a more specific list of
// results.
Filters []types.CommandFilter
// (Optional) Lists commands issued against this managed node ID. You can't
// specify a managed node ID in the same command that you specify Status = Pending
// . This is because the command hasn't reached the managed node yet.
InstanceId *string
// (Optional) The maximum number of items to return for this call. The call also
// returns a token that you can specify in a subsequent call to get the next set of
// results.
MaxResults *int32
// (Optional) The token for the next set of items to return. (You received this
// token from a previous call.)
NextToken *string
noSmithyDocumentSerde
}
type ListCommandsOutput struct {
// (Optional) The list of commands requested by the user.
Commands []types.Command
// (Optional) The token for the next set of items to return. (You received this
// token from a previous call.)
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListCommandsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListCommands{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListCommands{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListCommandsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCommands(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListCommandsAPIClient is a client that implements the ListCommands operation.
type ListCommandsAPIClient interface {
ListCommands(context.Context, *ListCommandsInput, ...func(*Options)) (*ListCommandsOutput, error)
}
var _ ListCommandsAPIClient = (*Client)(nil)
// ListCommandsPaginatorOptions is the paginator options for ListCommands
type ListCommandsPaginatorOptions struct {
// (Optional) The maximum number of items to return for this call. The call also
// returns a token that you can specify in a subsequent call to get the next set of
// results.
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
}
// ListCommandsPaginator is a paginator for ListCommands
type ListCommandsPaginator struct {
options ListCommandsPaginatorOptions
client ListCommandsAPIClient
params *ListCommandsInput
nextToken *string
firstPage bool
}
// NewListCommandsPaginator returns a new ListCommandsPaginator
func NewListCommandsPaginator(client ListCommandsAPIClient, params *ListCommandsInput, optFns ...func(*ListCommandsPaginatorOptions)) *ListCommandsPaginator {
if params == nil {
params = &ListCommandsInput{}
}
options := ListCommandsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListCommandsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListCommandsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListCommands page.
func (p *ListCommandsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCommandsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListCommands(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListCommands(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListCommands",
}
}
| 237 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// For a specified resource ID, this API operation returns a list of compliance
// statuses for different resource types. Currently, you can only specify one
// resource ID per call. List results depend on the criteria specified in the
// filter.
func (c *Client) ListComplianceItems(ctx context.Context, params *ListComplianceItemsInput, optFns ...func(*Options)) (*ListComplianceItemsOutput, error) {
if params == nil {
params = &ListComplianceItemsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListComplianceItems", params, optFns, c.addOperationListComplianceItemsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListComplianceItemsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListComplianceItemsInput struct {
// One or more compliance filters. Use a filter to return a more specific list of
// results.
Filters []types.ComplianceStringFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
// The ID for the resources from which to get compliance information. Currently,
// you can only specify one resource ID.
ResourceIds []string
// The type of resource from which to get compliance information. Currently, the
// only supported resource type is ManagedInstance .
ResourceTypes []string
noSmithyDocumentSerde
}
type ListComplianceItemsOutput struct {
// A list of compliance information for the specified resource ID.
ComplianceItems []types.ComplianceItem
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListComplianceItemsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListComplianceItems{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListComplianceItems{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListComplianceItems(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListComplianceItemsAPIClient is a client that implements the
// ListComplianceItems operation.
type ListComplianceItemsAPIClient interface {
ListComplianceItems(context.Context, *ListComplianceItemsInput, ...func(*Options)) (*ListComplianceItemsOutput, error)
}
var _ ListComplianceItemsAPIClient = (*Client)(nil)
// ListComplianceItemsPaginatorOptions is the paginator options for
// ListComplianceItems
type ListComplianceItemsPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// ListComplianceItemsPaginator is a paginator for ListComplianceItems
type ListComplianceItemsPaginator struct {
options ListComplianceItemsPaginatorOptions
client ListComplianceItemsAPIClient
params *ListComplianceItemsInput
nextToken *string
firstPage bool
}
// NewListComplianceItemsPaginator returns a new ListComplianceItemsPaginator
func NewListComplianceItemsPaginator(client ListComplianceItemsAPIClient, params *ListComplianceItemsInput, optFns ...func(*ListComplianceItemsPaginatorOptions)) *ListComplianceItemsPaginator {
if params == nil {
params = &ListComplianceItemsInput{}
}
options := ListComplianceItemsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListComplianceItemsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListComplianceItemsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListComplianceItems page.
func (p *ListComplianceItemsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListComplianceItemsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListComplianceItems(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListComplianceItems(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListComplianceItems",
}
}
| 236 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns a summary count of compliant and non-compliant resources for a
// compliance type. For example, this call can return State Manager associations,
// patches, or custom compliance types according to the filter criteria that you
// specify.
func (c *Client) ListComplianceSummaries(ctx context.Context, params *ListComplianceSummariesInput, optFns ...func(*Options)) (*ListComplianceSummariesOutput, error) {
if params == nil {
params = &ListComplianceSummariesInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListComplianceSummaries", params, optFns, c.addOperationListComplianceSummariesMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListComplianceSummariesOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListComplianceSummariesInput struct {
// One or more compliance or inventory filters. Use a filter to return a more
// specific list of results.
Filters []types.ComplianceStringFilter
// The maximum number of items to return for this call. Currently, you can specify
// null or 50. The call also returns a token that you can specify in a subsequent
// call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
noSmithyDocumentSerde
}
type ListComplianceSummariesOutput struct {
// A list of compliant and non-compliant summary counts based on compliance types.
// For example, this call returns State Manager associations, patches, or custom
// compliance types according to the filter criteria that you specified.
ComplianceSummaryItems []types.ComplianceSummaryItem
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListComplianceSummariesMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListComplianceSummaries{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListComplianceSummaries{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListComplianceSummaries(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListComplianceSummariesAPIClient is a client that implements the
// ListComplianceSummaries operation.
type ListComplianceSummariesAPIClient interface {
ListComplianceSummaries(context.Context, *ListComplianceSummariesInput, ...func(*Options)) (*ListComplianceSummariesOutput, error)
}
var _ ListComplianceSummariesAPIClient = (*Client)(nil)
// ListComplianceSummariesPaginatorOptions is the paginator options for
// ListComplianceSummaries
type ListComplianceSummariesPaginatorOptions struct {
// The maximum number of items to return for this call. Currently, you can specify
// null or 50. The call also returns a token that you can specify in a subsequent
// call to get the next set of results.
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
}
// ListComplianceSummariesPaginator is a paginator for ListComplianceSummaries
type ListComplianceSummariesPaginator struct {
options ListComplianceSummariesPaginatorOptions
client ListComplianceSummariesAPIClient
params *ListComplianceSummariesInput
nextToken *string
firstPage bool
}
// NewListComplianceSummariesPaginator returns a new
// ListComplianceSummariesPaginator
func NewListComplianceSummariesPaginator(client ListComplianceSummariesAPIClient, params *ListComplianceSummariesInput, optFns ...func(*ListComplianceSummariesPaginatorOptions)) *ListComplianceSummariesPaginator {
if params == nil {
params = &ListComplianceSummariesInput{}
}
options := ListComplianceSummariesPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListComplianceSummariesPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListComplianceSummariesPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListComplianceSummaries page.
func (p *ListComplianceSummariesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListComplianceSummariesOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListComplianceSummaries(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListComplianceSummaries(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListComplianceSummaries",
}
}
| 233 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Information about approval reviews for a version of a change template in Change
// Manager.
func (c *Client) ListDocumentMetadataHistory(ctx context.Context, params *ListDocumentMetadataHistoryInput, optFns ...func(*Options)) (*ListDocumentMetadataHistoryOutput, error) {
if params == nil {
params = &ListDocumentMetadataHistoryInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListDocumentMetadataHistory", params, optFns, c.addOperationListDocumentMetadataHistoryMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListDocumentMetadataHistoryOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListDocumentMetadataHistoryInput struct {
// The type of data for which details are being requested. Currently, the only
// supported value is DocumentReviews .
//
// This member is required.
Metadata types.DocumentMetadataEnum
// The name of the change template.
//
// This member is required.
Name *string
// The version of the change template.
DocumentVersion *string
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
noSmithyDocumentSerde
}
type ListDocumentMetadataHistoryOutput struct {
// The user ID of the person in the organization who requested the review of the
// change template.
Author *string
// The version of the change template.
DocumentVersion *string
// Information about the response to the change template approval request.
Metadata *types.DocumentMetadataResponseInfo
// The name of the change template.
Name *string
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListDocumentMetadataHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListDocumentMetadataHistory{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListDocumentMetadataHistory{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListDocumentMetadataHistoryValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDocumentMetadataHistory(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opListDocumentMetadataHistory(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListDocumentMetadataHistory",
}
}
| 157 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns all Systems Manager (SSM) documents in the current Amazon Web Services
// account and Amazon Web Services Region. You can limit the results of this
// request by using a filter.
func (c *Client) ListDocuments(ctx context.Context, params *ListDocumentsInput, optFns ...func(*Options)) (*ListDocumentsOutput, error) {
if params == nil {
params = &ListDocumentsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListDocuments", params, optFns, c.addOperationListDocumentsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListDocumentsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListDocumentsInput struct {
// This data type is deprecated. Instead, use Filters .
DocumentFilterList []types.DocumentFilter
// One or more DocumentKeyValuesFilter objects. Use a filter to return a more
// specific list of results. For keys, you can specify one or more key-value pair
// tags that have been applied to a document. Other valid keys include Owner , Name
// , PlatformTypes , DocumentType , and TargetType . For example, to return
// documents you own use Key=Owner,Values=Self . To specify a custom key-value
// pair, use the format Key=tag:tagName,Values=valueName . This API operation only
// supports filtering documents by using a single tag key and one or more tag
// values. For example: Key=tag:tagName,Values=valueName1,valueName2
Filters []types.DocumentKeyValuesFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
noSmithyDocumentSerde
}
type ListDocumentsOutput struct {
// The names of the SSM documents.
DocumentIdentifiers []types.DocumentIdentifier
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListDocumentsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListDocuments{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListDocuments{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListDocumentsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDocuments(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListDocumentsAPIClient is a client that implements the ListDocuments operation.
type ListDocumentsAPIClient interface {
ListDocuments(context.Context, *ListDocumentsInput, ...func(*Options)) (*ListDocumentsOutput, error)
}
var _ ListDocumentsAPIClient = (*Client)(nil)
// ListDocumentsPaginatorOptions is the paginator options for ListDocuments
type ListDocumentsPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// ListDocumentsPaginator is a paginator for ListDocuments
type ListDocumentsPaginator struct {
options ListDocumentsPaginatorOptions
client ListDocumentsAPIClient
params *ListDocumentsInput
nextToken *string
firstPage bool
}
// NewListDocumentsPaginator returns a new ListDocumentsPaginator
func NewListDocumentsPaginator(client ListDocumentsAPIClient, params *ListDocumentsInput, optFns ...func(*ListDocumentsPaginatorOptions)) *ListDocumentsPaginator {
if params == nil {
params = &ListDocumentsInput{}
}
options := ListDocumentsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListDocumentsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListDocumentsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListDocuments page.
func (p *ListDocumentsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDocumentsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListDocuments(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListDocuments(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListDocuments",
}
}
| 238 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// List all versions for a document.
func (c *Client) ListDocumentVersions(ctx context.Context, params *ListDocumentVersionsInput, optFns ...func(*Options)) (*ListDocumentVersionsOutput, error) {
if params == nil {
params = &ListDocumentVersionsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListDocumentVersions", params, optFns, c.addOperationListDocumentVersionsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListDocumentVersionsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListDocumentVersionsInput struct {
// The name of the document. You can specify an Amazon Resource Name (ARN).
//
// This member is required.
Name *string
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
noSmithyDocumentSerde
}
type ListDocumentVersionsOutput struct {
// The document versions.
DocumentVersions []types.DocumentVersionInfo
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListDocumentVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListDocumentVersions{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListDocumentVersions{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListDocumentVersionsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDocumentVersions(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListDocumentVersionsAPIClient is a client that implements the
// ListDocumentVersions operation.
type ListDocumentVersionsAPIClient interface {
ListDocumentVersions(context.Context, *ListDocumentVersionsInput, ...func(*Options)) (*ListDocumentVersionsOutput, error)
}
var _ ListDocumentVersionsAPIClient = (*Client)(nil)
// ListDocumentVersionsPaginatorOptions is the paginator options for
// ListDocumentVersions
type ListDocumentVersionsPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// ListDocumentVersionsPaginator is a paginator for ListDocumentVersions
type ListDocumentVersionsPaginator struct {
options ListDocumentVersionsPaginatorOptions
client ListDocumentVersionsAPIClient
params *ListDocumentVersionsInput
nextToken *string
firstPage bool
}
// NewListDocumentVersionsPaginator returns a new ListDocumentVersionsPaginator
func NewListDocumentVersionsPaginator(client ListDocumentVersionsAPIClient, params *ListDocumentVersionsInput, optFns ...func(*ListDocumentVersionsPaginatorOptions)) *ListDocumentVersionsPaginator {
if params == nil {
params = &ListDocumentVersionsInput{}
}
options := ListDocumentVersionsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListDocumentVersionsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListDocumentVersionsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListDocumentVersions page.
func (p *ListDocumentVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDocumentVersionsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListDocumentVersions(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListDocumentVersions(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListDocumentVersions",
}
}
| 230 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// A list of inventory items returned by the request.
func (c *Client) ListInventoryEntries(ctx context.Context, params *ListInventoryEntriesInput, optFns ...func(*Options)) (*ListInventoryEntriesOutput, error) {
if params == nil {
params = &ListInventoryEntriesInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListInventoryEntries", params, optFns, c.addOperationListInventoryEntriesMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListInventoryEntriesOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListInventoryEntriesInput struct {
// The managed node ID for which you want inventory information.
//
// This member is required.
InstanceId *string
// The type of inventory item for which you want information.
//
// This member is required.
TypeName *string
// One or more filters. Use a filter to return a more specific list of results.
Filters []types.InventoryFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
noSmithyDocumentSerde
}
type ListInventoryEntriesOutput struct {
// The time that inventory information was collected for the managed node(s).
CaptureTime *string
// A list of inventory items on the managed node(s).
Entries []map[string]string
// The managed node ID targeted by the request to query inventory information.
InstanceId *string
// The token to use when requesting the next set of items. If there are no
// additional items to return, the string is empty.
NextToken *string
// The inventory schema version used by the managed node(s).
SchemaVersion *string
// The type of inventory item returned by the request.
TypeName *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListInventoryEntriesMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListInventoryEntries{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListInventoryEntries{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListInventoryEntriesValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListInventoryEntries(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opListInventoryEntries(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListInventoryEntries",
}
}
| 157 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns a list of all OpsItem events in the current Amazon Web Services Region
// and Amazon Web Services account. You can limit the results to events associated
// with specific OpsItems by specifying a filter.
func (c *Client) ListOpsItemEvents(ctx context.Context, params *ListOpsItemEventsInput, optFns ...func(*Options)) (*ListOpsItemEventsOutput, error) {
if params == nil {
params = &ListOpsItemEventsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListOpsItemEvents", params, optFns, c.addOperationListOpsItemEventsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListOpsItemEventsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListOpsItemEventsInput struct {
// One or more OpsItem filters. Use a filter to return a more specific list of
// results.
Filters []types.OpsItemEventFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
noSmithyDocumentSerde
}
type ListOpsItemEventsOutput struct {
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// A list of event information for the specified OpsItems.
Summaries []types.OpsItemEventSummary
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListOpsItemEventsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListOpsItemEvents{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListOpsItemEvents{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListOpsItemEventsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListOpsItemEvents(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListOpsItemEventsAPIClient is a client that implements the ListOpsItemEvents
// operation.
type ListOpsItemEventsAPIClient interface {
ListOpsItemEvents(context.Context, *ListOpsItemEventsInput, ...func(*Options)) (*ListOpsItemEventsOutput, error)
}
var _ ListOpsItemEventsAPIClient = (*Client)(nil)
// ListOpsItemEventsPaginatorOptions is the paginator options for ListOpsItemEvents
type ListOpsItemEventsPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// ListOpsItemEventsPaginator is a paginator for ListOpsItemEvents
type ListOpsItemEventsPaginator struct {
options ListOpsItemEventsPaginatorOptions
client ListOpsItemEventsAPIClient
params *ListOpsItemEventsInput
nextToken *string
firstPage bool
}
// NewListOpsItemEventsPaginator returns a new ListOpsItemEventsPaginator
func NewListOpsItemEventsPaginator(client ListOpsItemEventsAPIClient, params *ListOpsItemEventsInput, optFns ...func(*ListOpsItemEventsPaginatorOptions)) *ListOpsItemEventsPaginator {
if params == nil {
params = &ListOpsItemEventsInput{}
}
options := ListOpsItemEventsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListOpsItemEventsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListOpsItemEventsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListOpsItemEvents page.
func (p *ListOpsItemEventsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListOpsItemEventsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListOpsItemEvents(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListOpsItemEvents(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListOpsItemEvents",
}
}
| 229 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists all related-item resources associated with a Systems Manager OpsCenter
// OpsItem. OpsCenter is a capability of Amazon Web Services Systems Manager.
func (c *Client) ListOpsItemRelatedItems(ctx context.Context, params *ListOpsItemRelatedItemsInput, optFns ...func(*Options)) (*ListOpsItemRelatedItemsOutput, error) {
if params == nil {
params = &ListOpsItemRelatedItemsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListOpsItemRelatedItems", params, optFns, c.addOperationListOpsItemRelatedItemsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListOpsItemRelatedItemsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListOpsItemRelatedItemsInput struct {
// One or more OpsItem filters. Use a filter to return a more specific list of
// results.
Filters []types.OpsItemRelatedItemsFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// The token for the next set of items to return. (You received this token from a
// previous call.)
NextToken *string
// The ID of the OpsItem for which you want to list all related-item resources.
OpsItemId *string
noSmithyDocumentSerde
}
type ListOpsItemRelatedItemsOutput struct {
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// A list of related-item resources for the specified OpsItem.
Summaries []types.OpsItemRelatedItemSummary
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListOpsItemRelatedItemsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListOpsItemRelatedItems{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListOpsItemRelatedItems{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListOpsItemRelatedItemsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListOpsItemRelatedItems(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListOpsItemRelatedItemsAPIClient is a client that implements the
// ListOpsItemRelatedItems operation.
type ListOpsItemRelatedItemsAPIClient interface {
ListOpsItemRelatedItems(context.Context, *ListOpsItemRelatedItemsInput, ...func(*Options)) (*ListOpsItemRelatedItemsOutput, error)
}
var _ ListOpsItemRelatedItemsAPIClient = (*Client)(nil)
// ListOpsItemRelatedItemsPaginatorOptions is the paginator options for
// ListOpsItemRelatedItems
type ListOpsItemRelatedItemsPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// ListOpsItemRelatedItemsPaginator is a paginator for ListOpsItemRelatedItems
type ListOpsItemRelatedItemsPaginator struct {
options ListOpsItemRelatedItemsPaginatorOptions
client ListOpsItemRelatedItemsAPIClient
params *ListOpsItemRelatedItemsInput
nextToken *string
firstPage bool
}
// NewListOpsItemRelatedItemsPaginator returns a new
// ListOpsItemRelatedItemsPaginator
func NewListOpsItemRelatedItemsPaginator(client ListOpsItemRelatedItemsAPIClient, params *ListOpsItemRelatedItemsInput, optFns ...func(*ListOpsItemRelatedItemsPaginatorOptions)) *ListOpsItemRelatedItemsPaginator {
if params == nil {
params = &ListOpsItemRelatedItemsInput{}
}
options := ListOpsItemRelatedItemsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListOpsItemRelatedItemsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListOpsItemRelatedItemsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListOpsItemRelatedItems page.
func (p *ListOpsItemRelatedItemsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListOpsItemRelatedItemsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListOpsItemRelatedItems(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListOpsItemRelatedItems(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListOpsItemRelatedItems",
}
}
| 234 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Amazon Web Services Systems Manager calls this API operation when displaying
// all Application Manager OpsMetadata objects or blobs.
func (c *Client) ListOpsMetadata(ctx context.Context, params *ListOpsMetadataInput, optFns ...func(*Options)) (*ListOpsMetadataOutput, error) {
if params == nil {
params = &ListOpsMetadataInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListOpsMetadata", params, optFns, c.addOperationListOpsMetadataMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListOpsMetadataOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListOpsMetadataInput struct {
// One or more filters to limit the number of OpsMetadata objects returned by the
// call.
Filters []types.OpsMetadataFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
noSmithyDocumentSerde
}
type ListOpsMetadataOutput struct {
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// Returns a list of OpsMetadata objects.
OpsMetadataList []types.OpsMetadata
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListOpsMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListOpsMetadata{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListOpsMetadata{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListOpsMetadataValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListOpsMetadata(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListOpsMetadataAPIClient is a client that implements the ListOpsMetadata
// operation.
type ListOpsMetadataAPIClient interface {
ListOpsMetadata(context.Context, *ListOpsMetadataInput, ...func(*Options)) (*ListOpsMetadataOutput, error)
}
var _ ListOpsMetadataAPIClient = (*Client)(nil)
// ListOpsMetadataPaginatorOptions is the paginator options for ListOpsMetadata
type ListOpsMetadataPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// ListOpsMetadataPaginator is a paginator for ListOpsMetadata
type ListOpsMetadataPaginator struct {
options ListOpsMetadataPaginatorOptions
client ListOpsMetadataAPIClient
params *ListOpsMetadataInput
nextToken *string
firstPage bool
}
// NewListOpsMetadataPaginator returns a new ListOpsMetadataPaginator
func NewListOpsMetadataPaginator(client ListOpsMetadataAPIClient, params *ListOpsMetadataInput, optFns ...func(*ListOpsMetadataPaginatorOptions)) *ListOpsMetadataPaginator {
if params == nil {
params = &ListOpsMetadataInput{}
}
options := ListOpsMetadataPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListOpsMetadataPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListOpsMetadataPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListOpsMetadata page.
func (p *ListOpsMetadataPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListOpsMetadataOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListOpsMetadata(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListOpsMetadata(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListOpsMetadata",
}
}
| 228 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns a resource-level summary count. The summary includes information about
// compliant and non-compliant statuses and detailed compliance-item severity
// counts, according to the filter criteria you specify.
func (c *Client) ListResourceComplianceSummaries(ctx context.Context, params *ListResourceComplianceSummariesInput, optFns ...func(*Options)) (*ListResourceComplianceSummariesOutput, error) {
if params == nil {
params = &ListResourceComplianceSummariesInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListResourceComplianceSummaries", params, optFns, c.addOperationListResourceComplianceSummariesMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListResourceComplianceSummariesOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListResourceComplianceSummariesInput struct {
// One or more filters. Use a filter to return a more specific list of results.
Filters []types.ComplianceStringFilter
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
noSmithyDocumentSerde
}
type ListResourceComplianceSummariesOutput struct {
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// A summary count for specified or targeted managed nodes. Summary count includes
// information about compliant and non-compliant State Manager associations, patch
// status, or custom items according to the filter criteria that you specify.
ResourceComplianceSummaryItems []types.ResourceComplianceSummaryItem
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListResourceComplianceSummariesMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListResourceComplianceSummaries{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListResourceComplianceSummaries{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListResourceComplianceSummaries(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListResourceComplianceSummariesAPIClient is a client that implements the
// ListResourceComplianceSummaries operation.
type ListResourceComplianceSummariesAPIClient interface {
ListResourceComplianceSummaries(context.Context, *ListResourceComplianceSummariesInput, ...func(*Options)) (*ListResourceComplianceSummariesOutput, error)
}
var _ ListResourceComplianceSummariesAPIClient = (*Client)(nil)
// ListResourceComplianceSummariesPaginatorOptions is the paginator options for
// ListResourceComplianceSummaries
type ListResourceComplianceSummariesPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// ListResourceComplianceSummariesPaginator is a paginator for
// ListResourceComplianceSummaries
type ListResourceComplianceSummariesPaginator struct {
options ListResourceComplianceSummariesPaginatorOptions
client ListResourceComplianceSummariesAPIClient
params *ListResourceComplianceSummariesInput
nextToken *string
firstPage bool
}
// NewListResourceComplianceSummariesPaginator returns a new
// ListResourceComplianceSummariesPaginator
func NewListResourceComplianceSummariesPaginator(client ListResourceComplianceSummariesAPIClient, params *ListResourceComplianceSummariesInput, optFns ...func(*ListResourceComplianceSummariesPaginatorOptions)) *ListResourceComplianceSummariesPaginator {
if params == nil {
params = &ListResourceComplianceSummariesInput{}
}
options := ListResourceComplianceSummariesPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListResourceComplianceSummariesPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListResourceComplianceSummariesPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListResourceComplianceSummaries page.
func (p *ListResourceComplianceSummariesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListResourceComplianceSummariesOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListResourceComplianceSummaries(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListResourceComplianceSummaries(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListResourceComplianceSummaries",
}
}
| 230 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists your resource data sync configurations. Includes information about the
// last time a sync attempted to start, the last sync status, and the last time a
// sync successfully completed. The number of sync configurations might be too
// large to return using a single call to ListResourceDataSync . You can limit the
// number of sync configurations returned by using the MaxResults parameter. To
// determine whether there are more sync configurations to list, check the value of
// NextToken in the output. If there are more sync configurations to list, you can
// request them by specifying the NextToken returned in the call to the parameter
// of a subsequent call.
func (c *Client) ListResourceDataSync(ctx context.Context, params *ListResourceDataSyncInput, optFns ...func(*Options)) (*ListResourceDataSyncOutput, error) {
if params == nil {
params = &ListResourceDataSyncInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListResourceDataSync", params, optFns, c.addOperationListResourceDataSyncMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListResourceDataSyncOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListResourceDataSyncInput struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
MaxResults *int32
// A token to start the list. Use this token to get the next set of results.
NextToken *string
// View a list of resource data syncs according to the sync type. Specify
// SyncToDestination to view resource data syncs that synchronize data to an Amazon
// S3 bucket. Specify SyncFromSource to view resource data syncs from
// Organizations or from multiple Amazon Web Services Regions.
SyncType *string
noSmithyDocumentSerde
}
type ListResourceDataSyncOutput struct {
// The token for the next set of items to return. Use this token to get the next
// set of results.
NextToken *string
// A list of your current resource data sync configurations and their statuses.
ResourceDataSyncItems []types.ResourceDataSyncItem
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListResourceDataSyncMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListResourceDataSync{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListResourceDataSync{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListResourceDataSync(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListResourceDataSyncAPIClient is a client that implements the
// ListResourceDataSync operation.
type ListResourceDataSyncAPIClient interface {
ListResourceDataSync(context.Context, *ListResourceDataSyncInput, ...func(*Options)) (*ListResourceDataSyncOutput, error)
}
var _ ListResourceDataSyncAPIClient = (*Client)(nil)
// ListResourceDataSyncPaginatorOptions is the paginator options for
// ListResourceDataSync
type ListResourceDataSyncPaginatorOptions struct {
// The maximum number of items to return for this call. The call also returns a
// token that you can specify in a subsequent call to get the next set of results.
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
}
// ListResourceDataSyncPaginator is a paginator for ListResourceDataSync
type ListResourceDataSyncPaginator struct {
options ListResourceDataSyncPaginatorOptions
client ListResourceDataSyncAPIClient
params *ListResourceDataSyncInput
nextToken *string
firstPage bool
}
// NewListResourceDataSyncPaginator returns a new ListResourceDataSyncPaginator
func NewListResourceDataSyncPaginator(client ListResourceDataSyncAPIClient, params *ListResourceDataSyncInput, optFns ...func(*ListResourceDataSyncPaginatorOptions)) *ListResourceDataSyncPaginator {
if params == nil {
params = &ListResourceDataSyncInput{}
}
options := ListResourceDataSyncPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListResourceDataSyncPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListResourceDataSyncPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListResourceDataSync page.
func (p *ListResourceDataSyncPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListResourceDataSyncOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListResourceDataSync(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListResourceDataSync(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListResourceDataSync",
}
}
| 235 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns a list of the tags assigned to the specified resource. For information
// about the ID format for each supported resource type, see AddTagsToResource .
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) {
if params == nil {
params = &ListTagsForResourceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListTagsForResource", params, optFns, c.addOperationListTagsForResourceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListTagsForResourceOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListTagsForResourceInput struct {
// The resource ID for which you want to see a list of tags.
//
// This member is required.
ResourceId *string
// Returns a list of tags for a specific resource type.
//
// This member is required.
ResourceType types.ResourceTypeForTagging
noSmithyDocumentSerde
}
type ListTagsForResourceOutput struct {
// A list of tags.
TagList []types.Tag
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListTagsForResource{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListTagsForResource{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResource(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ListTagsForResource",
}
}
| 131 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Shares a Amazon Web Services Systems Manager document (SSM document)publicly or
// privately. If you share a document privately, you must specify the Amazon Web
// Services user IDs for those people who can use the document. If you share a
// document publicly, you must specify All as the account ID.
func (c *Client) ModifyDocumentPermission(ctx context.Context, params *ModifyDocumentPermissionInput, optFns ...func(*Options)) (*ModifyDocumentPermissionOutput, error) {
if params == nil {
params = &ModifyDocumentPermissionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ModifyDocumentPermission", params, optFns, c.addOperationModifyDocumentPermissionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ModifyDocumentPermissionOutput)
out.ResultMetadata = metadata
return out, nil
}
type ModifyDocumentPermissionInput struct {
// The name of the document that you want to share.
//
// This member is required.
Name *string
// The permission type for the document. The permission type can be Share.
//
// This member is required.
PermissionType types.DocumentPermissionType
// The Amazon Web Services users that should have access to the document. The
// account IDs can either be a group of account IDs or All.
AccountIdsToAdd []string
// The Amazon Web Services users that should no longer have access to the
// document. The Amazon Web Services user can either be a group of account IDs or
// All. This action has a higher priority than AccountIdsToAdd. If you specify an
// ID to add and the same ID to remove, the system removes access to the document.
AccountIdsToRemove []string
// (Optional) The version of the document to share. If it isn't specified, the
// system choose the Default version to share.
SharedDocumentVersion *string
noSmithyDocumentSerde
}
type ModifyDocumentPermissionOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationModifyDocumentPermissionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpModifyDocumentPermission{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpModifyDocumentPermission{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpModifyDocumentPermissionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyDocumentPermission(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opModifyDocumentPermission(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ModifyDocumentPermission",
}
}
| 143 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Registers a compliance type and other compliance details on a designated
// resource. This operation lets you register custom compliance details with a
// resource. This call overwrites existing compliance information on the resource,
// so you must provide a full list of compliance items each time that you send the
// request. ComplianceType can be one of the following:
// - ExecutionId: The execution ID when the patch, association, or custom
// compliance item was applied.
// - ExecutionType: Specify patch, association, or Custom: string .
// - ExecutionTime. The time the patch, association, or custom compliance item
// was applied to the managed node.
// - Id: The patch, association, or custom compliance ID.
// - Title: A title.
// - Status: The status of the compliance item. For example, approved for
// patches, or Failed for associations.
// - Severity: A patch severity. For example, Critical .
// - DocumentName: An SSM document name. For example, AWS-RunPatchBaseline .
// - DocumentVersion: An SSM document version number. For example, 4.
// - Classification: A patch classification. For example, security updates .
// - PatchBaselineId: A patch baseline ID.
// - PatchSeverity: A patch severity. For example, Critical .
// - PatchState: A patch state. For example, InstancesWithFailedPatches .
// - PatchGroup: The name of a patch group.
// - InstalledTime: The time the association, patch, or custom compliance item
// was applied to the resource. Specify the time by using the following format:
// yyyy-MM-dd'T'HH:mm:ss'Z'
func (c *Client) PutComplianceItems(ctx context.Context, params *PutComplianceItemsInput, optFns ...func(*Options)) (*PutComplianceItemsOutput, error) {
if params == nil {
params = &PutComplianceItemsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "PutComplianceItems", params, optFns, c.addOperationPutComplianceItemsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*PutComplianceItemsOutput)
out.ResultMetadata = metadata
return out, nil
}
type PutComplianceItemsInput struct {
// Specify the compliance type. For example, specify Association (for a State
// Manager association), Patch, or Custom: string .
//
// This member is required.
ComplianceType *string
// A summary of the call execution that includes an execution ID, the type of
// execution (for example, Command ), and the date/time of the execution using a
// datetime object that is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'.
//
// This member is required.
ExecutionSummary *types.ComplianceExecutionSummary
// Information about the compliance as defined by the resource type. For example,
// for a patch compliance type, Items includes information about the
// PatchSeverity, Classification, and so on.
//
// This member is required.
Items []types.ComplianceItemEntry
// Specify an ID for this resource. For a managed node, this is the node ID.
//
// This member is required.
ResourceId *string
// Specify the type of resource. ManagedInstance is currently the only supported
// resource type.
//
// This member is required.
ResourceType *string
// MD5 or SHA-256 content hash. The content hash is used to determine if existing
// information should be overwritten or ignored. If the content hashes match, the
// request to put compliance information is ignored.
ItemContentHash *string
// The mode for uploading compliance items. You can specify COMPLETE or PARTIAL .
// In COMPLETE mode, the system overwrites all existing compliance information for
// the resource. You must provide a full list of compliance items each time you
// send the request. In PARTIAL mode, the system overwrites compliance information
// for a specific association. The association must be configured with
// SyncCompliance set to MANUAL . By default, all requests use COMPLETE mode. This
// attribute is only valid for association compliance.
UploadType types.ComplianceUploadType
noSmithyDocumentSerde
}
type PutComplianceItemsOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationPutComplianceItemsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutComplianceItems{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutComplianceItems{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpPutComplianceItemsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutComplianceItems(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opPutComplianceItems(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "PutComplianceItems",
}
}
| 185 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Bulk update custom inventory items on one or more managed nodes. The request
// adds an inventory item, if it doesn't already exist, or updates an inventory
// item, if it does exist.
func (c *Client) PutInventory(ctx context.Context, params *PutInventoryInput, optFns ...func(*Options)) (*PutInventoryOutput, error) {
if params == nil {
params = &PutInventoryInput{}
}
result, metadata, err := c.invokeOperation(ctx, "PutInventory", params, optFns, c.addOperationPutInventoryMiddlewares)
if err != nil {
return nil, err
}
out := result.(*PutInventoryOutput)
out.ResultMetadata = metadata
return out, nil
}
type PutInventoryInput struct {
// An managed node ID where you want to add or update inventory items.
//
// This member is required.
InstanceId *string
// The inventory items that you want to add or update on managed nodes.
//
// This member is required.
Items []types.InventoryItem
noSmithyDocumentSerde
}
type PutInventoryOutput struct {
// Information about the request.
Message *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationPutInventoryMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutInventory{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutInventory{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpPutInventoryValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutInventory(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opPutInventory(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "PutInventory",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Add a parameter to the system.
func (c *Client) PutParameter(ctx context.Context, params *PutParameterInput, optFns ...func(*Options)) (*PutParameterOutput, error) {
if params == nil {
params = &PutParameterInput{}
}
result, metadata, err := c.invokeOperation(ctx, "PutParameter", params, optFns, c.addOperationPutParameterMiddlewares)
if err != nil {
return nil, err
}
out := result.(*PutParameterOutput)
out.ResultMetadata = metadata
return out, nil
}
type PutParameterInput struct {
// The fully qualified name of the parameter that you want to add to the system.
// The fully qualified name includes the complete hierarchy of the parameter path
// and name. For parameters in a hierarchy, you must include a leading forward
// slash character (/) when you create or reference a parameter. For example:
// /Dev/DBServer/MySQL/db-string13 Naming Constraints:
// - Parameter names are case sensitive.
// - A parameter name must be unique within an Amazon Web Services Region
// - A parameter name can't be prefixed with " aws " or " ssm "
// (case-insensitive).
// - Parameter names can include only the following symbols and letters:
// a-zA-Z0-9_.- In addition, the slash character ( / ) is used to delineate
// hierarchies in parameter names. For example:
// /Dev/Production/East/Project-ABC/MyParameter
// - A parameter name can't include spaces.
// - Parameter hierarchies are limited to a maximum depth of fifteen levels.
// For additional information about valid values for parameter names, see Creating
// Systems Manager parameters (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-su-create.html)
// in the Amazon Web Services Systems Manager User Guide. The maximum length
// constraint of 2048 characters listed below includes 1037 characters reserved for
// internal use by Systems Manager. The maximum length for a parameter name that
// you create is 1011 characters. This includes the characters in the ARN that
// precede the name you specify, such as
// arn:aws:ssm:us-east-2:111122223333:parameter/ .
//
// This member is required.
Name *string
// The parameter value that you want to add to the system. Standard parameters
// have a value limit of 4 KB. Advanced parameters have a value limit of 8 KB.
// Parameters can't be referenced or nested in the values of other parameters. You
// can't include {{}} or {{ssm:parameter-name}} in a parameter value.
//
// This member is required.
Value *string
// A regular expression used to validate the parameter value. For example, for
// String types with values restricted to numbers, you can specify the following:
// AllowedPattern=^\d+$
AllowedPattern *string
// The data type for a String parameter. Supported data types include plain text
// and Amazon Machine Image (AMI) IDs. The following data type values are
// supported.
// - text
// - aws:ec2:image
// - aws:ssm:integration
// When you create a String parameter and specify aws:ec2:image , Amazon Web
// Services Systems Manager validates the parameter value is in the required
// format, such as ami-12345abcdeEXAMPLE , and that the specified AMI is available
// in your Amazon Web Services account. If the action is successful, the service
// sends back an HTTP 200 response which indicates a successful PutParameter call
// for all cases except for data type aws:ec2:image . If you call PutParameter
// with aws:ec2:image data type, a successful HTTP 200 response does not guarantee
// that your parameter was successfully created or updated. The aws:ec2:image
// value is validated asynchronously, and the PutParameter call returns before the
// validation is complete. If you submit an invalid AMI value, the PutParameter
// operation will return success, but the asynchronous validation will fail and the
// parameter will not be created or updated. To monitor whether your aws:ec2:image
// parameters are created successfully, see Setting up notifications or trigger
// actions based on Parameter Store events (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-cwe.html)
// . For more information about AMI format validation , see Native parameter
// support for Amazon Machine Image (AMI) IDs (https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-ec2-aliases.html)
// .
DataType *string
// Information about the parameter that you want to add to the system. Optional
// but recommended. Don't enter personally identifiable information in this field.
Description *string
// The Key Management Service (KMS) ID that you want to use to encrypt a
// parameter. Use a custom key for better security. Required for parameters that
// use the SecureString data type. If you don't specify a key ID, the system uses
// the default key associated with your Amazon Web Services account which is not as
// secure as using a custom key.
// - To use a custom KMS key, choose the SecureString data type with the Key ID
// parameter.
KeyId *string
// Overwrite an existing parameter. The default value is false .
Overwrite *bool
// One or more policies to apply to a parameter. This operation takes a JSON
// array. Parameter Store, a capability of Amazon Web Services Systems Manager
// supports the following policy types: Expiration: This policy deletes the
// parameter after it expires. When you create the policy, you specify the
// expiration date. You can update the expiration date and time by updating the
// policy. Updating the parameter doesn't affect the expiration date and time. When
// the expiration time is reached, Parameter Store deletes the parameter.
// ExpirationNotification: This policy initiates an event in Amazon CloudWatch
// Events that notifies you about the expiration. By using this policy, you can
// receive notification before or after the expiration time is reached, in units of
// days or hours. NoChangeNotification: This policy initiates a CloudWatch Events
// event if a parameter hasn't been modified for a specified period of time. This
// policy type is useful when, for example, a secret needs to be changed within a
// period of time, but it hasn't been changed. All existing policies are preserved
// until you send new policies or an empty policy. For more information about
// parameter policies, see Assigning parameter policies (https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-policies.html)
// .
Policies *string
// Optional metadata that you assign to a resource. Tags enable you to categorize
// a resource in different ways, such as by purpose, owner, or environment. For
// example, you might want to tag a Systems Manager parameter to identify the type
// of resource to which it applies, the environment, or the type of configuration
// data referenced by the parameter. In this case, you could specify the following
// key-value pairs:
// - Key=Resource,Value=S3bucket
// - Key=OS,Value=Windows
// - Key=ParameterType,Value=LicenseKey
// To add tags to an existing Systems Manager parameter, use the AddTagsToResource
// operation.
Tags []types.Tag
// The parameter tier to assign to a parameter. Parameter Store offers a standard
// tier and an advanced tier for parameters. Standard parameters have a content
// size limit of 4 KB and can't be configured to use parameter policies. You can
// create a maximum of 10,000 standard parameters for each Region in an Amazon Web
// Services account. Standard parameters are offered at no additional cost.
// Advanced parameters have a content size limit of 8 KB and can be configured to
// use parameter policies. You can create a maximum of 100,000 advanced parameters
// for each Region in an Amazon Web Services account. Advanced parameters incur a
// charge. For more information, see Standard and advanced parameter tiers (https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-advanced-parameters.html)
// in the Amazon Web Services Systems Manager User Guide. You can change a standard
// parameter to an advanced parameter any time. But you can't revert an advanced
// parameter to a standard parameter. Reverting an advanced parameter to a standard
// parameter would result in data loss because the system would truncate the size
// of the parameter from 8 KB to 4 KB. Reverting would also remove any policies
// attached to the parameter. Lastly, advanced parameters use a different form of
// encryption than standard parameters. If you no longer need an advanced
// parameter, or if you no longer want to incur charges for an advanced parameter,
// you must delete it and recreate it as a new standard parameter. Using the
// Default Tier Configuration In PutParameter requests, you can specify the tier
// to create the parameter in. Whenever you specify a tier in the request,
// Parameter Store creates or updates the parameter according to that request.
// However, if you don't specify a tier in a request, Parameter Store assigns the
// tier based on the current Parameter Store default tier configuration. The
// default tier when you begin using Parameter Store is the standard-parameter
// tier. If you use the advanced-parameter tier, you can specify one of the
// following as the default:
// - Advanced: With this option, Parameter Store evaluates all requests as
// advanced parameters.
// - Intelligent-Tiering: With this option, Parameter Store evaluates each
// request to determine if the parameter is standard or advanced. If the request
// doesn't include any options that require an advanced parameter, the parameter is
// created in the standard-parameter tier. If one or more options requiring an
// advanced parameter are included in the request, Parameter Store create a
// parameter in the advanced-parameter tier. This approach helps control your
// parameter-related costs by always creating standard parameters unless an
// advanced parameter is necessary.
// Options that require an advanced parameter include the following:
// - The content size of the parameter is more than 4 KB.
// - The parameter uses a parameter policy.
// - More than 10,000 parameters already exist in your Amazon Web Services
// account in the current Amazon Web Services Region.
// For more information about configuring the default tier option, see Specifying
// a default parameter tier (https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-default-tier.html)
// in the Amazon Web Services Systems Manager User Guide.
Tier types.ParameterTier
// The type of parameter that you want to add to the system. SecureString isn't
// currently supported for CloudFormation templates. Items in a StringList must be
// separated by a comma (,). You can't use other punctuation or special character
// to escape items in the list. If you have a parameter value that requires a
// comma, then use the String data type. Specifying a parameter type isn't
// required when updating a parameter. You must specify a parameter type when
// creating a parameter.
Type types.ParameterType
noSmithyDocumentSerde
}
type PutParameterOutput struct {
// The tier assigned to the parameter.
Tier types.ParameterTier
// The new version number of a parameter. If you edit a parameter value, Parameter
// Store automatically creates a new version and assigns this new version a unique
// ID. You can reference a parameter version ID in API operations or in Systems
// Manager documents (SSM documents). By default, if you don't specify a specific
// version, the system returns the latest parameter value when a parameter is
// called.
Version int64
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationPutParameterMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutParameter{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutParameter{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpPutParameterValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutParameter(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opPutParameter(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "PutParameter",
}
}
| 296 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Creates or updates a Systems Manager resource policy. A resource policy helps
// you to define the IAM entity (for example, an Amazon Web Services account) that
// can manage your Systems Manager resources. Currently, OpsItemGroup is the only
// resource that supports Systems Manager resource policies. The resource policy
// for OpsItemGroup enables Amazon Web Services accounts to view and interact with
// OpsCenter operational work items (OpsItems).
func (c *Client) PutResourcePolicy(ctx context.Context, params *PutResourcePolicyInput, optFns ...func(*Options)) (*PutResourcePolicyOutput, error) {
if params == nil {
params = &PutResourcePolicyInput{}
}
result, metadata, err := c.invokeOperation(ctx, "PutResourcePolicy", params, optFns, c.addOperationPutResourcePolicyMiddlewares)
if err != nil {
return nil, err
}
out := result.(*PutResourcePolicyOutput)
out.ResultMetadata = metadata
return out, nil
}
type PutResourcePolicyInput struct {
// A policy you want to associate with a resource.
//
// This member is required.
Policy *string
// Amazon Resource Name (ARN) of the resource to which you want to attach a policy.
//
// This member is required.
ResourceArn *string
// ID of the current policy version. The hash helps to prevent a situation where
// multiple users attempt to overwrite a policy. You must provide this hash when
// updating or deleting a policy.
PolicyHash *string
// The policy ID.
PolicyId *string
noSmithyDocumentSerde
}
type PutResourcePolicyOutput struct {
// ID of the current policy version.
PolicyHash *string
// The policy ID. To update a policy, you must specify PolicyId and PolicyHash .
PolicyId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationPutResourcePolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutResourcePolicy{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutResourcePolicy{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpPutResourcePolicyValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutResourcePolicy(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opPutResourcePolicy(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "PutResourcePolicy",
}
}
| 145 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Defines the default patch baseline for the relevant operating system. To reset
// the Amazon Web Services-predefined patch baseline as the default, specify the
// full patch baseline Amazon Resource Name (ARN) as the baseline ID value. For
// example, for CentOS, specify
// arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0574b43a65ea646ed instead of
// pb-0574b43a65ea646ed .
func (c *Client) RegisterDefaultPatchBaseline(ctx context.Context, params *RegisterDefaultPatchBaselineInput, optFns ...func(*Options)) (*RegisterDefaultPatchBaselineOutput, error) {
if params == nil {
params = &RegisterDefaultPatchBaselineInput{}
}
result, metadata, err := c.invokeOperation(ctx, "RegisterDefaultPatchBaseline", params, optFns, c.addOperationRegisterDefaultPatchBaselineMiddlewares)
if err != nil {
return nil, err
}
out := result.(*RegisterDefaultPatchBaselineOutput)
out.ResultMetadata = metadata
return out, nil
}
type RegisterDefaultPatchBaselineInput struct {
// The ID of the patch baseline that should be the default patch baseline.
//
// This member is required.
BaselineId *string
noSmithyDocumentSerde
}
type RegisterDefaultPatchBaselineOutput struct {
// The ID of the default patch baseline.
BaselineId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationRegisterDefaultPatchBaselineMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpRegisterDefaultPatchBaseline{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRegisterDefaultPatchBaseline{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpRegisterDefaultPatchBaselineValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRegisterDefaultPatchBaseline(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opRegisterDefaultPatchBaseline(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "RegisterDefaultPatchBaseline",
}
}
| 129 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Registers a patch baseline for a patch group.
func (c *Client) RegisterPatchBaselineForPatchGroup(ctx context.Context, params *RegisterPatchBaselineForPatchGroupInput, optFns ...func(*Options)) (*RegisterPatchBaselineForPatchGroupOutput, error) {
if params == nil {
params = &RegisterPatchBaselineForPatchGroupInput{}
}
result, metadata, err := c.invokeOperation(ctx, "RegisterPatchBaselineForPatchGroup", params, optFns, c.addOperationRegisterPatchBaselineForPatchGroupMiddlewares)
if err != nil {
return nil, err
}
out := result.(*RegisterPatchBaselineForPatchGroupOutput)
out.ResultMetadata = metadata
return out, nil
}
type RegisterPatchBaselineForPatchGroupInput struct {
// The ID of the patch baseline to register with the patch group.
//
// This member is required.
BaselineId *string
// The name of the patch group to be registered with the patch baseline.
//
// This member is required.
PatchGroup *string
noSmithyDocumentSerde
}
type RegisterPatchBaselineForPatchGroupOutput struct {
// The ID of the patch baseline the patch group was registered with.
BaselineId *string
// The name of the patch group registered with the patch baseline.
PatchGroup *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationRegisterPatchBaselineForPatchGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpRegisterPatchBaselineForPatchGroup{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRegisterPatchBaselineForPatchGroup{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpRegisterPatchBaselineForPatchGroupValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRegisterPatchBaselineForPatchGroup(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opRegisterPatchBaselineForPatchGroup(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "RegisterPatchBaselineForPatchGroup",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Registers a target with a maintenance window.
func (c *Client) RegisterTargetWithMaintenanceWindow(ctx context.Context, params *RegisterTargetWithMaintenanceWindowInput, optFns ...func(*Options)) (*RegisterTargetWithMaintenanceWindowOutput, error) {
if params == nil {
params = &RegisterTargetWithMaintenanceWindowInput{}
}
result, metadata, err := c.invokeOperation(ctx, "RegisterTargetWithMaintenanceWindow", params, optFns, c.addOperationRegisterTargetWithMaintenanceWindowMiddlewares)
if err != nil {
return nil, err
}
out := result.(*RegisterTargetWithMaintenanceWindowOutput)
out.ResultMetadata = metadata
return out, nil
}
type RegisterTargetWithMaintenanceWindowInput struct {
// The type of target being registered with the maintenance window.
//
// This member is required.
ResourceType types.MaintenanceWindowResourceType
// The targets to register with the maintenance window. In other words, the
// managed nodes to run commands on when the maintenance window runs. If a single
// maintenance window task is registered with multiple targets, its task
// invocations occur sequentially and not in parallel. If your task must run on
// multiple targets at the same time, register a task for each target individually
// and assign each task the same priority level. You can specify targets using
// managed node IDs, resource group names, or tags that have been applied to
// managed nodes. Example 1: Specify managed node IDs Key=InstanceIds,Values=,,
// Example 2: Use tag key-pairs applied to managed nodes Key=tag:,Values=, Example
// 3: Use tag-keys applied to managed nodes Key=tag-key,Values=, Example 4: Use
// resource group names Key=resource-groups:Name,Values= Example 5: Use filters
// for resource group types Key=resource-groups:ResourceTypeFilters,Values=, For
// Key=resource-groups:ResourceTypeFilters , specify resource types in the
// following format
// Key=resource-groups:ResourceTypeFilters,Values=AWS::EC2::INSTANCE,AWS::EC2::VPC
// For more information about these examples formats, including the best use case
// for each one, see Examples: Register targets with a maintenance window (https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-targets-examples.html)
// in the Amazon Web Services Systems Manager User Guide.
//
// This member is required.
Targets []types.Target
// The ID of the maintenance window the target should be registered with.
//
// This member is required.
WindowId *string
// User-provided idempotency token.
ClientToken *string
// An optional description for the target.
Description *string
// An optional name for the target.
Name *string
// User-provided value that will be included in any Amazon CloudWatch Events
// events raised while running tasks for these targets in this maintenance window.
OwnerInformation *string
noSmithyDocumentSerde
}
type RegisterTargetWithMaintenanceWindowOutput struct {
// The ID of the target definition in this maintenance window.
WindowTargetId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationRegisterTargetWithMaintenanceWindowMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpRegisterTargetWithMaintenanceWindow{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRegisterTargetWithMaintenanceWindow{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addIdempotencyToken_opRegisterTargetWithMaintenanceWindowMiddleware(stack, options); err != nil {
return err
}
if err = addOpRegisterTargetWithMaintenanceWindowValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRegisterTargetWithMaintenanceWindow(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
type idempotencyToken_initializeOpRegisterTargetWithMaintenanceWindow struct {
tokenProvider IdempotencyTokenProvider
}
func (*idempotencyToken_initializeOpRegisterTargetWithMaintenanceWindow) ID() string {
return "OperationIdempotencyTokenAutoFill"
}
func (m *idempotencyToken_initializeOpRegisterTargetWithMaintenanceWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
if m.tokenProvider == nil {
return next.HandleInitialize(ctx, in)
}
input, ok := in.Parameters.(*RegisterTargetWithMaintenanceWindowInput)
if !ok {
return out, metadata, fmt.Errorf("expected middleware input to be of type *RegisterTargetWithMaintenanceWindowInput ")
}
if input.ClientToken == nil {
t, err := m.tokenProvider.GetIdempotencyToken()
if err != nil {
return out, metadata, err
}
input.ClientToken = &t
}
return next.HandleInitialize(ctx, in)
}
func addIdempotencyToken_opRegisterTargetWithMaintenanceWindowMiddleware(stack *middleware.Stack, cfg Options) error {
return stack.Initialize.Add(&idempotencyToken_initializeOpRegisterTargetWithMaintenanceWindow{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
}
func newServiceMetadataMiddleware_opRegisterTargetWithMaintenanceWindow(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "RegisterTargetWithMaintenanceWindow",
}
}
| 202 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Adds a new task to a maintenance window.
func (c *Client) RegisterTaskWithMaintenanceWindow(ctx context.Context, params *RegisterTaskWithMaintenanceWindowInput, optFns ...func(*Options)) (*RegisterTaskWithMaintenanceWindowOutput, error) {
if params == nil {
params = &RegisterTaskWithMaintenanceWindowInput{}
}
result, metadata, err := c.invokeOperation(ctx, "RegisterTaskWithMaintenanceWindow", params, optFns, c.addOperationRegisterTaskWithMaintenanceWindowMiddlewares)
if err != nil {
return nil, err
}
out := result.(*RegisterTaskWithMaintenanceWindowOutput)
out.ResultMetadata = metadata
return out, nil
}
type RegisterTaskWithMaintenanceWindowInput struct {
// The ARN of the task to run.
//
// This member is required.
TaskArn *string
// The type of task being registered.
//
// This member is required.
TaskType types.MaintenanceWindowTaskType
// The ID of the maintenance window the task should be added to.
//
// This member is required.
WindowId *string
// The CloudWatch alarm you want to apply to your maintenance window task.
AlarmConfiguration *types.AlarmConfiguration
// User-provided idempotency token.
ClientToken *string
// Indicates whether tasks should continue to run after the cutoff time specified
// in the maintenance windows is reached.
// - CONTINUE_TASK : When the cutoff time is reached, any tasks that are running
// continue. The default value.
// - CANCEL_TASK :
// - For Automation, Lambda, Step Functions tasks: When the cutoff time is
// reached, any task invocations that are already running continue, but no new task
// invocations are started.
// - For Run Command tasks: When the cutoff time is reached, the system sends a
// CancelCommand operation that attempts to cancel the command associated with
// the task. However, there is no guarantee that the command will be terminated and
// the underlying process stopped. The status for tasks that are not completed
// is TIMED_OUT .
CutoffBehavior types.MaintenanceWindowTaskCutoffBehavior
// An optional description for the task.
Description *string
// A structure containing information about an Amazon Simple Storage Service
// (Amazon S3) bucket to write managed node-level logs to. LoggingInfo has been
// deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to
// contain logs, instead use the OutputS3BucketName and OutputS3KeyPrefix options
// in the TaskInvocationParameters structure. For information about how Amazon Web
// Services Systems Manager handles these options for the supported maintenance
// window task types, see MaintenanceWindowTaskInvocationParameters .
LoggingInfo *types.LoggingInfo
// The maximum number of targets this task can be run for, in parallel. Although
// this element is listed as "Required: No", a value can be omitted only when you
// are registering or updating a targetless task (https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html)
// You must provide a value in all other cases. For maintenance window tasks
// without a target specified, you can't supply a value for this option. Instead,
// the system inserts a placeholder value of 1 . This value doesn't affect the
// running of your task.
MaxConcurrency *string
// The maximum number of errors allowed before this task stops being scheduled.
// Although this element is listed as "Required: No", a value can be omitted only
// when you are registering or updating a targetless task (https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html)
// You must provide a value in all other cases. For maintenance window tasks
// without a target specified, you can't supply a value for this option. Instead,
// the system inserts a placeholder value of 1 . This value doesn't affect the
// running of your task.
MaxErrors *string
// An optional name for the task.
Name *string
// The priority of the task in the maintenance window, the lower the number the
// higher the priority. Tasks in a maintenance window are scheduled in priority
// order with tasks that have the same priority scheduled in parallel.
Priority *int32
// The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services
// Systems Manager to assume when running a maintenance window task. If you do not
// specify a service role ARN, Systems Manager uses your account's service-linked
// role. If no service-linked role for Systems Manager exists in your account, it
// is created when you run RegisterTaskWithMaintenanceWindow . For more
// information, see the following topics in the in the Amazon Web Services Systems
// Manager User Guide:
// - Using service-linked roles for Systems Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/using-service-linked-roles.html#slr-permissions)
// - Should I use a service-linked role or a custom service role to run
// maintenance window tasks? (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html#maintenance-window-tasks-service-role)
ServiceRoleArn *string
// The targets (either managed nodes or maintenance window targets). One or more
// targets must be specified for maintenance window Run Command-type tasks.
// Depending on the task, targets are optional for other maintenance window task
// types (Automation, Lambda, and Step Functions). For more information about
// running tasks that don't specify targets, see Registering maintenance window
// tasks without targets (https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html)
// in the Amazon Web Services Systems Manager User Guide. Specify managed nodes
// using the following format: Key=InstanceIds,Values=, Specify maintenance window
// targets using the following format: Key=WindowTargetIds,Values=,
Targets []types.Target
// The parameters that the task should use during execution. Populate only the
// fields that match the task type. All other fields should be empty.
TaskInvocationParameters *types.MaintenanceWindowTaskInvocationParameters
// The parameters that should be passed to the task when it is run. TaskParameters
// has been deprecated. To specify parameters to pass to a task when it runs,
// instead use the Parameters option in the TaskInvocationParameters structure.
// For information about how Systems Manager handles these options for the
// supported maintenance window task types, see
// MaintenanceWindowTaskInvocationParameters .
TaskParameters map[string]types.MaintenanceWindowTaskParameterValueExpression
noSmithyDocumentSerde
}
type RegisterTaskWithMaintenanceWindowOutput struct {
// The ID of the task in the maintenance window.
WindowTaskId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationRegisterTaskWithMaintenanceWindowMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpRegisterTaskWithMaintenanceWindow{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRegisterTaskWithMaintenanceWindow{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addIdempotencyToken_opRegisterTaskWithMaintenanceWindowMiddleware(stack, options); err != nil {
return err
}
if err = addOpRegisterTaskWithMaintenanceWindowValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRegisterTaskWithMaintenanceWindow(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
type idempotencyToken_initializeOpRegisterTaskWithMaintenanceWindow struct {
tokenProvider IdempotencyTokenProvider
}
func (*idempotencyToken_initializeOpRegisterTaskWithMaintenanceWindow) ID() string {
return "OperationIdempotencyTokenAutoFill"
}
func (m *idempotencyToken_initializeOpRegisterTaskWithMaintenanceWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
if m.tokenProvider == nil {
return next.HandleInitialize(ctx, in)
}
input, ok := in.Parameters.(*RegisterTaskWithMaintenanceWindowInput)
if !ok {
return out, metadata, fmt.Errorf("expected middleware input to be of type *RegisterTaskWithMaintenanceWindowInput ")
}
if input.ClientToken == nil {
t, err := m.tokenProvider.GetIdempotencyToken()
if err != nil {
return out, metadata, err
}
input.ClientToken = &t
}
return next.HandleInitialize(ctx, in)
}
func addIdempotencyToken_opRegisterTaskWithMaintenanceWindowMiddleware(stack *middleware.Stack, cfg Options) error {
return stack.Initialize.Add(&idempotencyToken_initializeOpRegisterTaskWithMaintenanceWindow{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
}
func newServiceMetadataMiddleware_opRegisterTaskWithMaintenanceWindow(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "RegisterTaskWithMaintenanceWindow",
}
}
| 266 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Removes tag keys from the specified resource.
func (c *Client) RemoveTagsFromResource(ctx context.Context, params *RemoveTagsFromResourceInput, optFns ...func(*Options)) (*RemoveTagsFromResourceOutput, error) {
if params == nil {
params = &RemoveTagsFromResourceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "RemoveTagsFromResource", params, optFns, c.addOperationRemoveTagsFromResourceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*RemoveTagsFromResourceOutput)
out.ResultMetadata = metadata
return out, nil
}
type RemoveTagsFromResourceInput struct {
// The ID of the resource from which you want to remove tags. For example:
// ManagedInstance: mi-012345abcde MaintenanceWindow: mw-012345abcde Automation :
// example-c160-4567-8519-012345abcde PatchBaseline: pb-012345abcde OpsMetadata
// object: ResourceID for tagging is created from the Amazon Resource Name (ARN)
// for the object. Specifically, ResourceID is created from the strings that come
// after the word opsmetadata in the ARN. For example, an OpsMetadata object with
// an ARN of
// arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager has a
// ResourceID of either aws/ssm/MyGroup/appmanager or /aws/ssm/MyGroup/appmanager .
// For the Document and Parameter values, use the name of the resource. The
// ManagedInstance type for this API operation is only for on-premises managed
// nodes. Specify the name of the managed node in the following format:
// mi-ID_number. For example, mi-1a2b3c4d5e6f.
//
// This member is required.
ResourceId *string
// The type of resource from which you want to remove a tag. The ManagedInstance
// type for this API operation is only for on-premises managed nodes. Specify the
// name of the managed node in the following format: mi-ID_number . For example,
// mi-1a2b3c4d5e6f .
//
// This member is required.
ResourceType types.ResourceTypeForTagging
// Tag keys that you want to remove from the specified resource.
//
// This member is required.
TagKeys []string
noSmithyDocumentSerde
}
type RemoveTagsFromResourceOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationRemoveTagsFromResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpRemoveTagsFromResource{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRemoveTagsFromResource{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpRemoveTagsFromResourceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRemoveTagsFromResource(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opRemoveTagsFromResource(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "RemoveTagsFromResource",
}
}
| 146 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// ServiceSetting is an account-level setting for an Amazon Web Services service.
// This setting defines how a user interacts with or uses a service or a feature of
// a service. For example, if an Amazon Web Services service charges money to the
// account based on feature or service usage, then the Amazon Web Services service
// team might create a default setting of "false". This means the user can't use
// this feature unless they change the setting to "true" and intentionally opt in
// for a paid feature. Services map a SettingId object to a setting value. Amazon
// Web Services services teams define the default value for a SettingId . You can't
// create a new SettingId , but you can overwrite the default value if you have the
// ssm:UpdateServiceSetting permission for the setting. Use the GetServiceSetting
// API operation to view the current value. Use the UpdateServiceSetting API
// operation to change the default setting. Reset the service setting for the
// account to the default value as provisioned by the Amazon Web Services service
// team.
func (c *Client) ResetServiceSetting(ctx context.Context, params *ResetServiceSettingInput, optFns ...func(*Options)) (*ResetServiceSettingOutput, error) {
if params == nil {
params = &ResetServiceSettingInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ResetServiceSetting", params, optFns, c.addOperationResetServiceSettingMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ResetServiceSettingOutput)
out.ResultMetadata = metadata
return out, nil
}
// The request body of the ResetServiceSetting API operation.
type ResetServiceSettingInput struct {
// The Amazon Resource Name (ARN) of the service setting to reset. The setting ID
// can be one of the following.
// - /ssm/managed-instance/default-ec2-instance-management-role
// - /ssm/automation/customer-script-log-destination
// - /ssm/automation/customer-script-log-group-name
// - /ssm/documents/console/public-sharing-permission
// - /ssm/managed-instance/activation-tier
// - /ssm/opsinsights/opscenter
// - /ssm/parameter-store/default-parameter-tier
// - /ssm/parameter-store/high-throughput-enabled
//
// This member is required.
SettingId *string
noSmithyDocumentSerde
}
// The result body of the ResetServiceSetting API operation.
type ResetServiceSettingOutput struct {
// The current, effective service setting after calling the ResetServiceSetting
// API operation.
ServiceSetting *types.ServiceSetting
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationResetServiceSettingMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpResetServiceSetting{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpResetServiceSetting{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpResetServiceSettingValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResetServiceSetting(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opResetServiceSetting(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ResetServiceSetting",
}
}
| 150 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Reconnects a session to a managed node after it has been disconnected.
// Connections can be resumed for disconnected sessions, but not terminated
// sessions. This command is primarily for use by client machines to automatically
// reconnect during intermittent network issues. It isn't intended for any other
// use.
func (c *Client) ResumeSession(ctx context.Context, params *ResumeSessionInput, optFns ...func(*Options)) (*ResumeSessionOutput, error) {
if params == nil {
params = &ResumeSessionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ResumeSession", params, optFns, c.addOperationResumeSessionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ResumeSessionOutput)
out.ResultMetadata = metadata
return out, nil
}
type ResumeSessionInput struct {
// The ID of the disconnected session to resume.
//
// This member is required.
SessionId *string
noSmithyDocumentSerde
}
type ResumeSessionOutput struct {
// The ID of the session.
SessionId *string
// A URL back to SSM Agent on the managed node that the Session Manager client
// uses to send commands and receive output from the managed node. Format:
// wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output)
// . region represents the Region identifier for an Amazon Web Services Region
// supported by Amazon Web Services Systems Manager, such as us-east-2 for the US
// East (Ohio) Region. For a list of supported region values, see the Region column
// in Systems Manager service endpoints (https://docs.aws.amazon.com/general/latest/gr/ssm.html#ssm_region)
// in the Amazon Web Services General Reference. session-id represents the ID of a
// Session Manager session, such as 1a2b3c4dEXAMPLE .
StreamUrl *string
// An encrypted token value containing session and caller information. Used to
// authenticate the connection to the managed node.
TokenValue *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationResumeSessionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpResumeSession{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpResumeSession{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpResumeSessionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResumeSession(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opResumeSession(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "ResumeSession",
}
}
| 143 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Sends a signal to an Automation execution to change the current behavior or
// status of the execution.
func (c *Client) SendAutomationSignal(ctx context.Context, params *SendAutomationSignalInput, optFns ...func(*Options)) (*SendAutomationSignalOutput, error) {
if params == nil {
params = &SendAutomationSignalInput{}
}
result, metadata, err := c.invokeOperation(ctx, "SendAutomationSignal", params, optFns, c.addOperationSendAutomationSignalMiddlewares)
if err != nil {
return nil, err
}
out := result.(*SendAutomationSignalOutput)
out.ResultMetadata = metadata
return out, nil
}
type SendAutomationSignalInput struct {
// The unique identifier for an existing Automation execution that you want to
// send the signal to.
//
// This member is required.
AutomationExecutionId *string
// The type of signal to send to an Automation execution.
//
// This member is required.
SignalType types.SignalType
// The data sent with the signal. The data schema depends on the type of signal
// used in the request. For Approve and Reject signal types, the payload is an
// optional comment that you can send with the signal type. For example:
// Comment="Looks good" For StartStep and Resume signal types, you must send the
// name of the Automation step to start or resume as the payload. For example:
// StepName="step1" For the StopStep signal type, you must send the step execution
// ID as the payload. For example:
// StepExecutionId="97fff367-fc5a-4299-aed8-0123456789ab"
Payload map[string][]string
noSmithyDocumentSerde
}
type SendAutomationSignalOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationSendAutomationSignalMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpSendAutomationSignal{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSendAutomationSignal{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpSendAutomationSignalValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSendAutomationSignal(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opSendAutomationSignal(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "SendAutomationSignal",
}
}
| 138 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Runs commands on one or more managed nodes.
func (c *Client) SendCommand(ctx context.Context, params *SendCommandInput, optFns ...func(*Options)) (*SendCommandOutput, error) {
if params == nil {
params = &SendCommandInput{}
}
result, metadata, err := c.invokeOperation(ctx, "SendCommand", params, optFns, c.addOperationSendCommandMiddlewares)
if err != nil {
return nil, err
}
out := result.(*SendCommandOutput)
out.ResultMetadata = metadata
return out, nil
}
type SendCommandInput struct {
// The name of the Amazon Web Services Systems Manager document (SSM document) to
// run. This can be a public document or a custom document. To run a shared
// document belonging to another account, specify the document Amazon Resource Name
// (ARN). For more information about how to use shared documents, see Using shared
// SSM documents (https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-using-shared.html)
// in the Amazon Web Services Systems Manager User Guide. If you specify a document
// name or ARN that hasn't been shared with your account, you receive an
// InvalidDocument error.
//
// This member is required.
DocumentName *string
// The CloudWatch alarm you want to apply to your command.
AlarmConfiguration *types.AlarmConfiguration
// Enables Amazon Web Services Systems Manager to send Run Command output to
// Amazon CloudWatch Logs. Run Command is a capability of Amazon Web Services
// Systems Manager.
CloudWatchOutputConfig *types.CloudWatchOutputConfig
// User-specified information about the command, such as a brief description of
// what the command should do.
Comment *string
// The Sha256 or Sha1 hash created by the system when the document was created.
// Sha1 hashes have been deprecated.
DocumentHash *string
// Sha256 or Sha1. Sha1 hashes have been deprecated.
DocumentHashType types.DocumentHashType
// The SSM document version to use in the request. You can specify $DEFAULT,
// $LATEST, or a specific version number. If you run commands by using the Command
// Line Interface (Amazon Web Services CLI), then you must escape the first two
// options by using a backslash. If you specify a version number, then you don't
// need to use the backslash. For example: --document-version "\$DEFAULT"
// --document-version "\$LATEST" --document-version "3"
DocumentVersion *string
// The IDs of the managed nodes where the command should run. Specifying managed
// node IDs is most useful when you are targeting a limited number of managed
// nodes, though you can specify up to 50 IDs. To target a larger number of managed
// nodes, or if you prefer not to list individual node IDs, we recommend using the
// Targets option instead. Using Targets , which accepts tag key-value pairs to
// identify the managed nodes to send commands to, you can a send command to tens,
// hundreds, or thousands of nodes at once. For more information about how to use
// targets, see Using targets and rate controls to send commands to a fleet (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html)
// in the Amazon Web Services Systems Manager User Guide.
InstanceIds []string
// (Optional) The maximum number of managed nodes that are allowed to run the
// command at the same time. You can specify a number such as 10 or a percentage
// such as 10%. The default value is 50 . For more information about how to use
// MaxConcurrency , see Using concurrency controls (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-velocity)
// in the Amazon Web Services Systems Manager User Guide.
MaxConcurrency *string
// The maximum number of errors allowed without the command failing. When the
// command fails one more time beyond the value of MaxErrors , the systems stops
// sending the command to additional targets. You can specify a number like 10 or a
// percentage like 10%. The default value is 0 . For more information about how to
// use MaxErrors , see Using error controls (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-maxerrors)
// in the Amazon Web Services Systems Manager User Guide.
MaxErrors *string
// Configurations for sending notifications.
NotificationConfig *types.NotificationConfig
// The name of the S3 bucket where command execution responses should be stored.
OutputS3BucketName *string
// The directory structure within the S3 bucket where the responses should be
// stored.
OutputS3KeyPrefix *string
// (Deprecated) You can no longer specify this parameter. The system ignores it.
// Instead, Systems Manager automatically determines the Amazon Web Services Region
// of the S3 bucket.
OutputS3Region *string
// The required and optional parameters specified in the document being run.
Parameters map[string][]string
// The ARN of the Identity and Access Management (IAM) service role to use to
// publish Amazon Simple Notification Service (Amazon SNS) notifications for Run
// Command commands. This role must provide the sns:Publish permission for your
// notification topic. For information about creating and using this service role,
// see Monitoring Systems Manager status changes using Amazon SNS notifications (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html)
// in the Amazon Web Services Systems Manager User Guide.
ServiceRoleArn *string
// An array of search criteria that targets managed nodes using a Key,Value
// combination that you specify. Specifying targets is most useful when you want to
// send a command to a large number of managed nodes at once. Using Targets , which
// accepts tag key-value pairs to identify managed nodes, you can send a command to
// tens, hundreds, or thousands of nodes at once. To send a command to a smaller
// number of managed nodes, you can use the InstanceIds option instead. For more
// information about how to use targets, see Sending commands to a fleet (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html)
// in the Amazon Web Services Systems Manager User Guide.
Targets []types.Target
// If this time is reached and the command hasn't already started running, it
// won't run.
TimeoutSeconds *int32
noSmithyDocumentSerde
}
type SendCommandOutput struct {
// The request as it was received by Systems Manager. Also provides the command ID
// which can be used future references to this request.
Command *types.Command
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationSendCommandMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpSendCommand{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSendCommand{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpSendCommandValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSendCommand(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opSendCommand(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "SendCommand",
}
}
| 226 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Runs an association immediately and only one time. This operation can be
// helpful when troubleshooting associations.
func (c *Client) StartAssociationsOnce(ctx context.Context, params *StartAssociationsOnceInput, optFns ...func(*Options)) (*StartAssociationsOnceOutput, error) {
if params == nil {
params = &StartAssociationsOnceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartAssociationsOnce", params, optFns, c.addOperationStartAssociationsOnceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartAssociationsOnceOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartAssociationsOnceInput struct {
// The association IDs that you want to run immediately and only one time.
//
// This member is required.
AssociationIds []string
noSmithyDocumentSerde
}
type StartAssociationsOnceOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartAssociationsOnceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartAssociationsOnce{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartAssociationsOnce{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartAssociationsOnceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartAssociationsOnce(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartAssociationsOnce(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "StartAssociationsOnce",
}
}
| 121 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Initiates execution of an Automation runbook.
func (c *Client) StartAutomationExecution(ctx context.Context, params *StartAutomationExecutionInput, optFns ...func(*Options)) (*StartAutomationExecutionOutput, error) {
if params == nil {
params = &StartAutomationExecutionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartAutomationExecution", params, optFns, c.addOperationStartAutomationExecutionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartAutomationExecutionOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartAutomationExecutionInput struct {
// The name of the SSM document to run. This can be a public document or a custom
// document. To run a shared document belonging to another account, specify the
// document ARN. For more information about how to use shared documents, see Using
// shared SSM documents (https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-using-shared.html)
// in the Amazon Web Services Systems Manager User Guide.
//
// This member is required.
DocumentName *string
// The CloudWatch alarm you want to apply to your automation.
AlarmConfiguration *types.AlarmConfiguration
// User-provided idempotency token. The token must be unique, is case insensitive,
// enforces the UUID format, and can't be reused.
ClientToken *string
// The version of the Automation runbook to use for this execution.
DocumentVersion *string
// The maximum number of targets allowed to run this task in parallel. You can
// specify a number, such as 10, or a percentage, such as 10%. The default value is
// 10 .
MaxConcurrency *string
// The number of errors that are allowed before the system stops running the
// automation on additional targets. You can specify either an absolute number of
// errors, for example 10, or a percentage of the target set, for example 10%. If
// you specify 3, for example, the system stops running the automation when the
// fourth error is received. If you specify 0, then the system stops running the
// automation on additional targets after the first error result is returned. If
// you run an automation on 50 resources and set max-errors to 10%, then the system
// stops running the automation on additional targets when the sixth error is
// received. Executions that are already running an automation when max-errors is
// reached are allowed to complete, but some of these executions may fail as well.
// If you need to ensure that there won't be more than max-errors failed
// executions, set max-concurrency to 1 so the executions proceed one at a time.
MaxErrors *string
// The execution mode of the automation. Valid modes include the following: Auto
// and Interactive. The default mode is Auto.
Mode types.ExecutionMode
// A key-value map of execution parameters, which match the declared parameters in
// the Automation runbook.
Parameters map[string][]string
// Optional metadata that you assign to a resource. You can specify a maximum of
// five tags for an automation. Tags enable you to categorize a resource in
// different ways, such as by purpose, owner, or environment. For example, you
// might want to tag an automation to identify an environment or operating system.
// In this case, you could specify the following key-value pairs:
// - Key=environment,Value=test
// - Key=OS,Value=Windows
// To add tags to an existing automation, use the AddTagsToResource operation.
Tags []types.Tag
// A location is a combination of Amazon Web Services Regions and/or Amazon Web
// Services accounts where you want to run the automation. Use this operation to
// start an automation in multiple Amazon Web Services Regions and multiple Amazon
// Web Services accounts. For more information, see Running Automation workflows
// in multiple Amazon Web Services Regions and Amazon Web Services accounts (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-automation-multiple-accounts-and-regions.html)
// in the Amazon Web Services Systems Manager User Guide.
TargetLocations []types.TargetLocation
// A key-value mapping of document parameters to target resources. Both Targets
// and TargetMaps can't be specified together.
TargetMaps []map[string][]string
// The name of the parameter used as the target resource for the rate-controlled
// execution. Required if you specify targets.
TargetParameterName *string
// A key-value mapping to target resources. Required if you specify
// TargetParameterName.
Targets []types.Target
noSmithyDocumentSerde
}
type StartAutomationExecutionOutput struct {
// The unique ID of a newly scheduled automation execution.
AutomationExecutionId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartAutomationExecutionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartAutomationExecution{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartAutomationExecution{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartAutomationExecutionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartAutomationExecution(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartAutomationExecution(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "StartAutomationExecution",
}
}
| 196 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"time"
)
// Creates a change request for Change Manager. The Automation runbooks specified
// in the change request run only after all required approvals for the change
// request have been received.
func (c *Client) StartChangeRequestExecution(ctx context.Context, params *StartChangeRequestExecutionInput, optFns ...func(*Options)) (*StartChangeRequestExecutionOutput, error) {
if params == nil {
params = &StartChangeRequestExecutionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartChangeRequestExecution", params, optFns, c.addOperationStartChangeRequestExecutionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartChangeRequestExecutionOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartChangeRequestExecutionInput struct {
// The name of the change template document to run during the runbook workflow.
//
// This member is required.
DocumentName *string
// Information about the Automation runbooks that are run during the runbook
// workflow. The Automation runbooks specified for the runbook workflow can't run
// until all required approvals for the change request have been received.
//
// This member is required.
Runbooks []types.Runbook
// Indicates whether the change request can be approved automatically without the
// need for manual approvals. If AutoApprovable is enabled in a change template,
// then setting AutoApprove to true in StartChangeRequestExecution creates a
// change request that bypasses approver review. Change Calendar restrictions are
// not bypassed in this scenario. If the state of an associated calendar is CLOSED
// , change freeze approvers must still grant permission for this change request to
// run. If they don't, the change won't be processed until the calendar state is
// again OPEN .
AutoApprove bool
// User-provided details about the change. If no details are provided, content
// specified in the Template information section of the associated change template
// is added.
ChangeDetails *string
// The name of the change request associated with the runbook workflow to be run.
ChangeRequestName *string
// The user-provided idempotency token. The token must be unique, is case
// insensitive, enforces the UUID format, and can't be reused.
ClientToken *string
// The version of the change template document to run during the runbook workflow.
DocumentVersion *string
// A key-value map of parameters that match the declared parameters in the change
// template document.
Parameters map[string][]string
// The time that the requester expects the runbook workflow related to the change
// request to complete. The time is an estimate only that the requester provides
// for reviewers.
ScheduledEndTime *time.Time
// The date and time specified in the change request to run the Automation
// runbooks. The Automation runbooks specified for the runbook workflow can't run
// until all required approvals for the change request have been received.
ScheduledTime *time.Time
// Optional metadata that you assign to a resource. You can specify a maximum of
// five tags for a change request. Tags enable you to categorize a resource in
// different ways, such as by purpose, owner, or environment. For example, you
// might want to tag a change request to identify an environment or target Amazon
// Web Services Region. In this case, you could specify the following key-value
// pairs:
// - Key=Environment,Value=Production
// - Key=Region,Value=us-east-2
Tags []types.Tag
noSmithyDocumentSerde
}
type StartChangeRequestExecutionOutput struct {
// The unique ID of a runbook workflow operation. (A runbook workflow is a type of
// Automation operation.)
AutomationExecutionId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartChangeRequestExecutionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartChangeRequestExecution{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartChangeRequestExecution{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartChangeRequestExecutionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartChangeRequestExecution(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartChangeRequestExecution(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "StartChangeRequestExecution",
}
}
| 185 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Initiates a connection to a target (for example, a managed node) for a Session
// Manager session. Returns a URL and token that can be used to open a WebSocket
// connection for sending input and receiving outputs. Amazon Web Services CLI
// usage: start-session is an interactive command that requires the Session
// Manager plugin to be installed on the client machine making the call. For
// information, see Install the Session Manager plugin for the Amazon Web Services
// CLI (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html)
// in the Amazon Web Services Systems Manager User Guide. Amazon Web Services Tools
// for PowerShell usage: Start-SSMSession isn't currently supported by Amazon Web
// Services Tools for PowerShell on Windows local machines.
func (c *Client) StartSession(ctx context.Context, params *StartSessionInput, optFns ...func(*Options)) (*StartSessionOutput, error) {
if params == nil {
params = &StartSessionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartSession", params, optFns, c.addOperationStartSessionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartSessionOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartSessionInput struct {
// The managed node to connect to for the session.
//
// This member is required.
Target *string
// The name of the SSM document you want to use to define the type of session,
// input parameters, or preferences for the session. For example,
// SSM-SessionManagerRunShell . You can call the GetDocument API to verify the
// document exists before attempting to start a session. If no document name is
// provided, a shell to the managed node is launched by default. For more
// information, see Start a session (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-sessions-start.html)
// in the Amazon Web Services Systems Manager User Guide.
DocumentName *string
// The values you want to specify for the parameters defined in the Session
// document.
Parameters map[string][]string
// The reason for connecting to the instance. This value is included in the
// details for the Amazon CloudWatch Events event created when you start the
// session.
Reason *string
noSmithyDocumentSerde
}
type StartSessionOutput struct {
// The ID of the session.
SessionId *string
// A URL back to SSM Agent on the managed node that the Session Manager client
// uses to send commands and receive output from the node. Format:
// wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output)
// region represents the Region identifier for an Amazon Web Services Region
// supported by Amazon Web Services Systems Manager, such as us-east-2 for the US
// East (Ohio) Region. For a list of supported region values, see the Region column
// in Systems Manager service endpoints (https://docs.aws.amazon.com/general/latest/gr/ssm.html#ssm_region)
// in the Amazon Web Services General Reference. session-id represents the ID of a
// Session Manager session, such as 1a2b3c4dEXAMPLE .
StreamUrl *string
// An encrypted token value containing session and caller information. This token
// is used to authenticate the connection to the managed node, and is valid only
// long enough to ensure the connection is successful. Never share your session's
// token.
TokenValue *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartSessionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartSession{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartSession{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartSessionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartSession(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartSession(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "StartSession",
}
}
| 168 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Stop an Automation that is currently running.
func (c *Client) StopAutomationExecution(ctx context.Context, params *StopAutomationExecutionInput, optFns ...func(*Options)) (*StopAutomationExecutionOutput, error) {
if params == nil {
params = &StopAutomationExecutionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StopAutomationExecution", params, optFns, c.addOperationStopAutomationExecutionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StopAutomationExecutionOutput)
out.ResultMetadata = metadata
return out, nil
}
type StopAutomationExecutionInput struct {
// The execution ID of the Automation to stop.
//
// This member is required.
AutomationExecutionId *string
// The stop request type. Valid types include the following: Cancel and Complete.
// The default type is Cancel.
Type types.StopType
noSmithyDocumentSerde
}
type StopAutomationExecutionOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStopAutomationExecutionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopAutomationExecution{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopAutomationExecution{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStopAutomationExecutionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopAutomationExecution(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStopAutomationExecution(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "StopAutomationExecution",
}
}
| 125 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Permanently ends a session and closes the data connection between the Session
// Manager client and SSM Agent on the managed node. A terminated session can't be
// resumed.
func (c *Client) TerminateSession(ctx context.Context, params *TerminateSessionInput, optFns ...func(*Options)) (*TerminateSessionOutput, error) {
if params == nil {
params = &TerminateSessionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "TerminateSession", params, optFns, c.addOperationTerminateSessionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*TerminateSessionOutput)
out.ResultMetadata = metadata
return out, nil
}
type TerminateSessionInput struct {
// The ID of the session to terminate.
//
// This member is required.
SessionId *string
noSmithyDocumentSerde
}
type TerminateSessionOutput struct {
// The ID of the session that has been terminated.
SessionId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationTerminateSessionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpTerminateSession{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpTerminateSession{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpTerminateSessionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTerminateSession(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opTerminateSession(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "TerminateSession",
}
}
| 126 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Remove a label or labels from a parameter.
func (c *Client) UnlabelParameterVersion(ctx context.Context, params *UnlabelParameterVersionInput, optFns ...func(*Options)) (*UnlabelParameterVersionOutput, error) {
if params == nil {
params = &UnlabelParameterVersionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UnlabelParameterVersion", params, optFns, c.addOperationUnlabelParameterVersionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UnlabelParameterVersionOutput)
out.ResultMetadata = metadata
return out, nil
}
type UnlabelParameterVersionInput struct {
// One or more labels to delete from the specified parameter version.
//
// This member is required.
Labels []string
// The name of the parameter from which you want to delete one or more labels.
//
// This member is required.
Name *string
// The specific version of the parameter which you want to delete one or more
// labels from. If it isn't present, the call will fail.
//
// This member is required.
ParameterVersion *int64
noSmithyDocumentSerde
}
type UnlabelParameterVersionOutput struct {
// The labels that aren't attached to the given parameter version.
InvalidLabels []string
// A list of all labels deleted from the parameter.
RemovedLabels []string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUnlabelParameterVersionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUnlabelParameterVersion{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUnlabelParameterVersion{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUnlabelParameterVersionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUnlabelParameterVersion(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUnlabelParameterVersion(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UnlabelParameterVersion",
}
}
| 138 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates an association. You can update the association name and version, the
// document version, schedule, parameters, and Amazon Simple Storage Service
// (Amazon S3) output. When you call UpdateAssociation , the system removes all
// optional parameters from the request and overwrites the association with null
// values for those parameters. This is by design. You must specify all optional
// parameters in the call, even if you are not changing the parameters. This
// includes the Name parameter. Before calling this API action, we recommend that
// you call the DescribeAssociation API operation and make a note of all optional
// parameters required for your UpdateAssociation call. In order to call this API
// operation, a user, group, or role must be granted permission to call the
// DescribeAssociation API operation. If you don't have permission to call
// DescribeAssociation , then you receive the following error: An error occurred
// (AccessDeniedException) when calling the UpdateAssociation operation: User:
// isn't authorized to perform: ssm:DescribeAssociation on resource: When you
// update an association, the association immediately runs against the specified
// targets. You can add the ApplyOnlyAtCronInterval parameter to run the
// association during the next schedule run.
func (c *Client) UpdateAssociation(ctx context.Context, params *UpdateAssociationInput, optFns ...func(*Options)) (*UpdateAssociationOutput, error) {
if params == nil {
params = &UpdateAssociationInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateAssociation", params, optFns, c.addOperationUpdateAssociationMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateAssociationOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateAssociationInput struct {
// The ID of the association you want to update.
//
// This member is required.
AssociationId *string
// The details for the CloudWatch alarm you want to apply to an automation or
// command.
AlarmConfiguration *types.AlarmConfiguration
// By default, when you update an association, the system runs it immediately
// after it is updated and then according to the schedule you specified. Specify
// this option if you don't want an association to run immediately after you update
// it. This parameter isn't supported for rate expressions. If you chose this
// option when you created an association and later you edit that association or
// you make changes to the SSM document on which that association is based (by
// using the Documents page in the console), State Manager applies the association
// at the next specified cron interval. For example, if you chose the Latest
// version of an SSM document when you created an association and you edit the
// association by choosing a different document version on the Documents page,
// State Manager applies the association at the next specified cron interval if you
// previously selected this option. If this option wasn't selected, State Manager
// immediately runs the association. You can reset this option. To do so, specify
// the no-apply-only-at-cron-interval parameter when you update the association
// from the command line. This parameter forces the association to run immediately
// after updating it and according to the interval specified.
ApplyOnlyAtCronInterval bool
// The name of the association that you want to update.
AssociationName *string
// This parameter is provided for concurrency control purposes. You must specify
// the latest association version in the service. If you want to ensure that this
// request succeeds, either specify $LATEST , or omit this parameter.
AssociationVersion *string
// Choose the parameter that will define how your automation will branch out. This
// target is required for associations that use an Automation runbook and target
// resources by using rate controls. Automation is a capability of Amazon Web
// Services Systems Manager.
AutomationTargetParameterName *string
// The names or Amazon Resource Names (ARNs) of the Change Calendar type documents
// you want to gate your associations under. The associations only run when that
// change calendar is open. For more information, see Amazon Web Services Systems
// Manager Change Calendar (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-change-calendar)
// .
CalendarNames []string
// The severity level to assign to the association.
ComplianceSeverity types.AssociationComplianceSeverity
// The document version you want update for the association. State Manager doesn't
// support running associations that use a new version of a document if that
// document is shared from another account. State Manager always runs the default
// version of a document if shared from another account, even though the Systems
// Manager console shows that a new version was processed. If you want to run an
// association using a new version of a document shared form another account, you
// must set the document version to default .
DocumentVersion *string
// The maximum number of targets allowed to run the association at the same time.
// You can specify a number, for example 10, or a percentage of the target set, for
// example 10%. The default value is 100%, which means all targets run the
// association at the same time. If a new managed node starts and attempts to run
// an association while Systems Manager is running MaxConcurrency associations,
// the association is allowed to run. During the next association interval, the new
// managed node will process its association within the limit specified for
// MaxConcurrency .
MaxConcurrency *string
// The number of errors that are allowed before the system stops sending requests
// to run the association on additional targets. You can specify either an absolute
// number of errors, for example 10, or a percentage of the target set, for example
// 10%. If you specify 3, for example, the system stops sending requests when the
// fourth error is received. If you specify 0, then the system stops sending
// requests after the first error is returned. If you run an association on 50
// managed nodes and set MaxError to 10%, then the system stops sending the
// request when the sixth error is received. Executions that are already running an
// association when MaxErrors is reached are allowed to complete, but some of
// these executions may fail as well. If you need to ensure that there won't be
// more than max-errors failed executions, set MaxConcurrency to 1 so that
// executions proceed one at a time.
MaxErrors *string
// The name of the SSM Command document or Automation runbook that contains the
// configuration information for the managed node. You can specify Amazon Web
// Services-predefined documents, documents you created, or a document that is
// shared with you from another account. For Systems Manager document (SSM
// document) that are shared with you from other Amazon Web Services accounts, you
// must specify the complete SSM document ARN, in the following format:
// arn:aws:ssm:region:account-id:document/document-name For example:
// arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document For Amazon Web
// Services-predefined documents and SSM documents you created in your account, you
// only need to specify the document name. For example, AWS-ApplyPatchBaseline or
// My-Document .
Name *string
// An S3 bucket where you want to store the results of this request.
OutputLocation *types.InstanceAssociationOutputLocation
// The parameters you want to update for the association. If you create a
// parameter using Parameter Store, a capability of Amazon Web Services Systems
// Manager, you can reference the parameter using {{ssm:parameter-name}} .
Parameters map[string][]string
// The cron expression used to schedule the association that you want to update.
ScheduleExpression *string
// Number of days to wait after the scheduled day to run an association. For
// example, if you specified a cron schedule of cron(0 0 ? * THU#2 *) , you could
// specify an offset of 3 to run the association each Sunday after the second
// Thursday of the month. For more information about cron schedules for
// associations, see Reference: Cron and rate expressions for Systems Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/reference-cron-and-rate-expressions.html)
// in the Amazon Web Services Systems Manager User Guide. To use offsets, you must
// specify the ApplyOnlyAtCronInterval parameter. This option tells the system not
// to run an association immediately after you create it.
ScheduleOffset *int32
// The mode for generating association compliance. You can specify AUTO or MANUAL .
// In AUTO mode, the system uses the status of the association execution to
// determine the compliance status. If the association execution runs successfully,
// then the association is COMPLIANT . If the association execution doesn't run
// successfully, the association is NON-COMPLIANT . In MANUAL mode, you must
// specify the AssociationId as a parameter for the PutComplianceItems API
// operation. In this case, compliance data isn't managed by State Manager, a
// capability of Amazon Web Services Systems Manager. It is managed by your direct
// call to the PutComplianceItems API operation. By default, all associations use
// AUTO mode.
SyncCompliance types.AssociationSyncCompliance
// A location is a combination of Amazon Web Services Regions and Amazon Web
// Services accounts where you want to run the association. Use this action to
// update an association in multiple Regions and multiple accounts.
TargetLocations []types.TargetLocation
// A key-value mapping of document parameters to target resources. Both Targets
// and TargetMaps can't be specified together.
TargetMaps []map[string][]string
// The targets of the association.
Targets []types.Target
noSmithyDocumentSerde
}
type UpdateAssociationOutput struct {
// The description of the association that was updated.
AssociationDescription *types.AssociationDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateAssociation{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateAssociation{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateAssociationValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateAssociation(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateAssociation(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateAssociation",
}
}
| 278 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates the status of the Amazon Web Services Systems Manager document (SSM
// document) associated with the specified managed node. UpdateAssociationStatus
// is primarily used by the Amazon Web Services Systems Manager Agent (SSM Agent)
// to report status updates about your associations and is only used for
// associations created with the InstanceId legacy parameter.
func (c *Client) UpdateAssociationStatus(ctx context.Context, params *UpdateAssociationStatusInput, optFns ...func(*Options)) (*UpdateAssociationStatusOutput, error) {
if params == nil {
params = &UpdateAssociationStatusInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateAssociationStatus", params, optFns, c.addOperationUpdateAssociationStatusMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateAssociationStatusOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateAssociationStatusInput struct {
// The association status.
//
// This member is required.
AssociationStatus *types.AssociationStatus
// The managed node ID.
//
// This member is required.
InstanceId *string
// The name of the SSM document.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
type UpdateAssociationStatusOutput struct {
// Information about the association.
AssociationDescription *types.AssociationDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateAssociationStatusMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateAssociationStatus{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateAssociationStatus{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateAssociationStatusValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateAssociationStatus(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateAssociationStatus(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateAssociationStatus",
}
}
| 139 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates one or more values for an SSM document.
func (c *Client) UpdateDocument(ctx context.Context, params *UpdateDocumentInput, optFns ...func(*Options)) (*UpdateDocumentOutput, error) {
if params == nil {
params = &UpdateDocumentInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateDocument", params, optFns, c.addOperationUpdateDocumentMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateDocumentOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateDocumentInput struct {
// A valid JSON or YAML string.
//
// This member is required.
Content *string
// The name of the SSM document that you want to update.
//
// This member is required.
Name *string
// A list of key-value pairs that describe attachments to a version of a document.
Attachments []types.AttachmentsSource
// The friendly name of the SSM document that you want to update. This value can
// differ for each version of the document. If you don't specify a value for this
// parameter in your request, the existing value is applied to the new document
// version.
DisplayName *string
// Specify the document format for the new document version. Systems Manager
// supports JSON and YAML documents. JSON is the default format.
DocumentFormat types.DocumentFormat
// The version of the document that you want to update. Currently, Systems Manager
// supports updating only the latest version of the document. You can specify the
// version number of the latest version or use the $LATEST variable. If you change
// a document version for a State Manager association, Systems Manager immediately
// runs the association unless you previously specifed the
// apply-only-at-cron-interval parameter.
DocumentVersion *string
// Specify a new target type for the document.
TargetType *string
// An optional field specifying the version of the artifact you are updating with
// the document. For example, "Release 12, Update 6". This value is unique across
// all versions of a document, and can't be changed.
VersionName *string
noSmithyDocumentSerde
}
type UpdateDocumentOutput struct {
// A description of the document that was updated.
DocumentDescription *types.DocumentDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateDocumentMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateDocument{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateDocument{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateDocumentValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDocument(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateDocument(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateDocument",
}
}
| 159 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Set the default version of a document. If you change a document version for a
// State Manager association, Systems Manager immediately runs the association
// unless you previously specifed the apply-only-at-cron-interval parameter.
func (c *Client) UpdateDocumentDefaultVersion(ctx context.Context, params *UpdateDocumentDefaultVersionInput, optFns ...func(*Options)) (*UpdateDocumentDefaultVersionOutput, error) {
if params == nil {
params = &UpdateDocumentDefaultVersionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateDocumentDefaultVersion", params, optFns, c.addOperationUpdateDocumentDefaultVersionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateDocumentDefaultVersionOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateDocumentDefaultVersionInput struct {
// The version of a custom document that you want to set as the default version.
//
// This member is required.
DocumentVersion *string
// The name of a custom document that you want to set as the default version.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
type UpdateDocumentDefaultVersionOutput struct {
// The description of a custom document that you want to set as the default
// version.
Description *types.DocumentDefaultVersionDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateDocumentDefaultVersionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateDocumentDefaultVersion{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateDocumentDefaultVersion{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateDocumentDefaultVersionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDocumentDefaultVersion(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateDocumentDefaultVersion(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateDocumentDefaultVersion",
}
}
| 133 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates information related to approval reviews for a specific version of a
// change template in Change Manager.
func (c *Client) UpdateDocumentMetadata(ctx context.Context, params *UpdateDocumentMetadataInput, optFns ...func(*Options)) (*UpdateDocumentMetadataOutput, error) {
if params == nil {
params = &UpdateDocumentMetadataInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateDocumentMetadata", params, optFns, c.addOperationUpdateDocumentMetadataMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateDocumentMetadataOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateDocumentMetadataInput struct {
// The change template review details to update.
//
// This member is required.
DocumentReviews *types.DocumentReviews
// The name of the change template for which a version's metadata is to be updated.
//
// This member is required.
Name *string
// The version of a change template in which to update approval metadata.
DocumentVersion *string
noSmithyDocumentSerde
}
type UpdateDocumentMetadataOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateDocumentMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateDocumentMetadata{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateDocumentMetadata{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateDocumentMetadataValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDocumentMetadata(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateDocumentMetadata(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateDocumentMetadata",
}
}
| 130 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates an existing maintenance window. Only specified parameters are modified.
// The value you specify for Duration determines the specific end time for the
// maintenance window based on the time it begins. No maintenance window tasks are
// permitted to start after the resulting endtime minus the number of hours you
// specify for Cutoff . For example, if the maintenance window starts at 3 PM, the
// duration is three hours, and the value you specify for Cutoff is one hour, no
// maintenance window tasks can start after 5 PM.
func (c *Client) UpdateMaintenanceWindow(ctx context.Context, params *UpdateMaintenanceWindowInput, optFns ...func(*Options)) (*UpdateMaintenanceWindowOutput, error) {
if params == nil {
params = &UpdateMaintenanceWindowInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateMaintenanceWindow", params, optFns, c.addOperationUpdateMaintenanceWindowMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateMaintenanceWindowOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateMaintenanceWindowInput struct {
// The ID of the maintenance window to update.
//
// This member is required.
WindowId *string
// Whether targets must be registered with the maintenance window before tasks can
// be defined for those targets.
AllowUnassociatedTargets *bool
// The number of hours before the end of the maintenance window that Amazon Web
// Services Systems Manager stops scheduling new tasks for execution.
Cutoff *int32
// An optional description for the update request.
Description *string
// The duration of the maintenance window in hours.
Duration *int32
// Whether the maintenance window is enabled.
Enabled *bool
// The date and time, in ISO-8601 Extended format, for when you want the
// maintenance window to become inactive. EndDate allows you to set a date and
// time in the future when the maintenance window will no longer run.
EndDate *string
// The name of the maintenance window.
Name *string
// If True , then all fields that are required by the CreateMaintenanceWindow
// operation are also required for this API request. Optional fields that aren't
// specified are set to null.
Replace *bool
// The schedule of the maintenance window in the form of a cron or rate expression.
Schedule *string
// The number of days to wait after the date and time specified by a cron
// expression before running the maintenance window. For example, the following
// cron expression schedules a maintenance window to run the third Tuesday of every
// month at 11:30 PM. cron(30 23 ? * TUE#3 *) If the schedule offset is 2 , the
// maintenance window won't run until two days later.
ScheduleOffset *int32
// The time zone that the scheduled maintenance window executions are based on, in
// Internet Assigned Numbers Authority (IANA) format. For example:
// "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the
// Time Zone Database (https://www.iana.org/time-zones) on the IANA website.
ScheduleTimezone *string
// The date and time, in ISO-8601 Extended format, for when you want the
// maintenance window to become active. StartDate allows you to delay activation
// of the maintenance window until the specified future date.
StartDate *string
noSmithyDocumentSerde
}
type UpdateMaintenanceWindowOutput struct {
// Whether targets must be registered with the maintenance window before tasks can
// be defined for those targets.
AllowUnassociatedTargets bool
// The number of hours before the end of the maintenance window that Amazon Web
// Services Systems Manager stops scheduling new tasks for execution.
Cutoff int32
// An optional description of the update.
Description *string
// The duration of the maintenance window in hours.
Duration int32
// Whether the maintenance window is enabled.
Enabled bool
// The date and time, in ISO-8601 Extended format, for when the maintenance window
// is scheduled to become inactive. The maintenance window won't run after this
// specified time.
EndDate *string
// The name of the maintenance window.
Name *string
// The schedule of the maintenance window in the form of a cron or rate expression.
Schedule *string
// The number of days to wait to run a maintenance window after the scheduled cron
// expression date and time.
ScheduleOffset *int32
// The time zone that the scheduled maintenance window executions are based on, in
// Internet Assigned Numbers Authority (IANA) format. For example:
// "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the
// Time Zone Database (https://www.iana.org/time-zones) on the IANA website.
ScheduleTimezone *string
// The date and time, in ISO-8601 Extended format, for when the maintenance window
// is scheduled to become active. The maintenance window won't run before this
// specified time.
StartDate *string
// The ID of the created maintenance window.
WindowId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateMaintenanceWindowMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateMaintenanceWindow{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateMaintenanceWindow{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateMaintenanceWindowValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMaintenanceWindow(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateMaintenanceWindow(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateMaintenanceWindow",
}
}
| 224 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Modifies the target of an existing maintenance window. You can change the
// following:
// - Name
// - Description
// - Owner
// - IDs for an ID target
// - Tags for a Tag target
// - From any supported tag type to another. The three supported tag types are
// ID target, Tag target, and resource group. For more information, see Target .
//
// If a parameter is null, then the corresponding field isn't modified.
func (c *Client) UpdateMaintenanceWindowTarget(ctx context.Context, params *UpdateMaintenanceWindowTargetInput, optFns ...func(*Options)) (*UpdateMaintenanceWindowTargetOutput, error) {
if params == nil {
params = &UpdateMaintenanceWindowTargetInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateMaintenanceWindowTarget", params, optFns, c.addOperationUpdateMaintenanceWindowTargetMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateMaintenanceWindowTargetOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateMaintenanceWindowTargetInput struct {
// The maintenance window ID with which to modify the target.
//
// This member is required.
WindowId *string
// The target ID to modify.
//
// This member is required.
WindowTargetId *string
// An optional description for the update.
Description *string
// A name for the update.
Name *string
// User-provided value that will be included in any Amazon CloudWatch Events
// events raised while running tasks for these targets in this maintenance window.
OwnerInformation *string
// If True , then all fields that are required by the
// RegisterTargetWithMaintenanceWindow operation are also required for this API
// request. Optional fields that aren't specified are set to null.
Replace *bool
// The targets to add or replace.
Targets []types.Target
noSmithyDocumentSerde
}
type UpdateMaintenanceWindowTargetOutput struct {
// The updated description.
Description *string
// The updated name.
Name *string
// The updated owner.
OwnerInformation *string
// The updated targets.
Targets []types.Target
// The maintenance window ID specified in the update request.
WindowId *string
// The target ID specified in the update request.
WindowTargetId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateMaintenanceWindowTargetMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateMaintenanceWindowTarget{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateMaintenanceWindowTarget{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateMaintenanceWindowTargetValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMaintenanceWindowTarget(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateMaintenanceWindowTarget(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateMaintenanceWindowTarget",
}
}
| 173 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Modifies a task assigned to a maintenance window. You can't change the task
// type, but you can change the following values:
// - TaskARN . For example, you can change a RUN_COMMAND task from
// AWS-RunPowerShellScript to AWS-RunShellScript .
// - ServiceRoleArn
// - TaskInvocationParameters
// - Priority
// - MaxConcurrency
// - MaxErrors
//
// One or more targets must be specified for maintenance window Run Command-type
// tasks. Depending on the task, targets are optional for other maintenance window
// task types (Automation, Lambda, and Step Functions). For more information about
// running tasks that don't specify targets, see Registering maintenance window
// tasks without targets (https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html)
// in the Amazon Web Services Systems Manager User Guide. If the value for a
// parameter in UpdateMaintenanceWindowTask is null, then the corresponding field
// isn't modified. If you set Replace to true, then all fields required by the
// RegisterTaskWithMaintenanceWindow operation are required for this request.
// Optional fields that aren't specified are set to null. When you update a
// maintenance window task that has options specified in TaskInvocationParameters ,
// you must provide again all the TaskInvocationParameters values that you want to
// retain. The values you don't specify again are removed. For example, suppose
// that when you registered a Run Command task, you specified
// TaskInvocationParameters values for Comment , NotificationConfig , and
// OutputS3BucketName . If you update the maintenance window task and specify only
// a different OutputS3BucketName value, the values for Comment and
// NotificationConfig are removed.
func (c *Client) UpdateMaintenanceWindowTask(ctx context.Context, params *UpdateMaintenanceWindowTaskInput, optFns ...func(*Options)) (*UpdateMaintenanceWindowTaskOutput, error) {
if params == nil {
params = &UpdateMaintenanceWindowTaskInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateMaintenanceWindowTask", params, optFns, c.addOperationUpdateMaintenanceWindowTaskMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateMaintenanceWindowTaskOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateMaintenanceWindowTaskInput struct {
// The maintenance window ID that contains the task to modify.
//
// This member is required.
WindowId *string
// The task ID to modify.
//
// This member is required.
WindowTaskId *string
// The CloudWatch alarm you want to apply to your maintenance window task.
AlarmConfiguration *types.AlarmConfiguration
// Indicates whether tasks should continue to run after the cutoff time specified
// in the maintenance windows is reached.
// - CONTINUE_TASK : When the cutoff time is reached, any tasks that are running
// continue. The default value.
// - CANCEL_TASK :
// - For Automation, Lambda, Step Functions tasks: When the cutoff time is
// reached, any task invocations that are already running continue, but no new task
// invocations are started.
// - For Run Command tasks: When the cutoff time is reached, the system sends a
// CancelCommand operation that attempts to cancel the command associated with
// the task. However, there is no guarantee that the command will be terminated and
// the underlying process stopped. The status for tasks that are not completed
// is TIMED_OUT .
CutoffBehavior types.MaintenanceWindowTaskCutoffBehavior
// The new task description to specify.
Description *string
// The new logging location in Amazon S3 to specify. LoggingInfo has been
// deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to
// contain logs, instead use the OutputS3BucketName and OutputS3KeyPrefix options
// in the TaskInvocationParameters structure. For information about how Amazon Web
// Services Systems Manager handles these options for the supported maintenance
// window task types, see MaintenanceWindowTaskInvocationParameters .
LoggingInfo *types.LoggingInfo
// The new MaxConcurrency value you want to specify. MaxConcurrency is the number
// of targets that are allowed to run this task, in parallel. Although this element
// is listed as "Required: No", a value can be omitted only when you are
// registering or updating a targetless task (https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html)
// You must provide a value in all other cases. For maintenance window tasks
// without a target specified, you can't supply a value for this option. Instead,
// the system inserts a placeholder value of 1 . This value doesn't affect the
// running of your task.
MaxConcurrency *string
// The new MaxErrors value to specify. MaxErrors is the maximum number of errors
// that are allowed before the task stops being scheduled. Although this element is
// listed as "Required: No", a value can be omitted only when you are registering
// or updating a targetless task (https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html)
// You must provide a value in all other cases. For maintenance window tasks
// without a target specified, you can't supply a value for this option. Instead,
// the system inserts a placeholder value of 1 . This value doesn't affect the
// running of your task.
MaxErrors *string
// The new task name to specify.
Name *string
// The new task priority to specify. The lower the number, the higher the
// priority. Tasks that have the same priority are scheduled in parallel.
Priority *int32
// If True, then all fields that are required by the
// RegisterTaskWithMaintenanceWindow operation are also required for this API
// request. Optional fields that aren't specified are set to null.
Replace *bool
// The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services
// Systems Manager to assume when running a maintenance window task. If you do not
// specify a service role ARN, Systems Manager uses your account's service-linked
// role. If no service-linked role for Systems Manager exists in your account, it
// is created when you run RegisterTaskWithMaintenanceWindow . For more
// information, see the following topics in the in the Amazon Web Services Systems
// Manager User Guide:
// - Using service-linked roles for Systems Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/using-service-linked-roles.html#slr-permissions)
// - Should I use a service-linked role or a custom service role to run
// maintenance window tasks? (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html#maintenance-window-tasks-service-role)
ServiceRoleArn *string
// The targets (either managed nodes or tags) to modify. Managed nodes are
// specified using the format Key=instanceids,Values=instanceID_1,instanceID_2 .
// Tags are specified using the format Key=tag_name,Values=tag_value . One or more
// targets must be specified for maintenance window Run Command-type tasks.
// Depending on the task, targets are optional for other maintenance window task
// types (Automation, Lambda, and Step Functions). For more information about
// running tasks that don't specify targets, see Registering maintenance window
// tasks without targets (https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html)
// in the Amazon Web Services Systems Manager User Guide.
Targets []types.Target
// The task ARN to modify.
TaskArn *string
// The parameters that the task should use during execution. Populate only the
// fields that match the task type. All other fields should be empty. When you
// update a maintenance window task that has options specified in
// TaskInvocationParameters , you must provide again all the
// TaskInvocationParameters values that you want to retain. The values you don't
// specify again are removed. For example, suppose that when you registered a Run
// Command task, you specified TaskInvocationParameters values for Comment ,
// NotificationConfig , and OutputS3BucketName . If you update the maintenance
// window task and specify only a different OutputS3BucketName value, the values
// for Comment and NotificationConfig are removed.
TaskInvocationParameters *types.MaintenanceWindowTaskInvocationParameters
// The parameters to modify. TaskParameters has been deprecated. To specify
// parameters to pass to a task when it runs, instead use the Parameters option in
// the TaskInvocationParameters structure. For information about how Systems
// Manager handles these options for the supported maintenance window task types,
// see MaintenanceWindowTaskInvocationParameters . The map has the following
// format: Key: string, between 1 and 255 characters Value: an array of strings,
// each string is between 1 and 255 characters
TaskParameters map[string]types.MaintenanceWindowTaskParameterValueExpression
noSmithyDocumentSerde
}
type UpdateMaintenanceWindowTaskOutput struct {
// The details for the CloudWatch alarm you applied to your maintenance window
// task.
AlarmConfiguration *types.AlarmConfiguration
// The specification for whether tasks should continue to run after the cutoff
// time specified in the maintenance windows is reached.
CutoffBehavior types.MaintenanceWindowTaskCutoffBehavior
// The updated task description.
Description *string
// The updated logging information in Amazon S3. LoggingInfo has been deprecated.
// To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs,
// instead use the OutputS3BucketName and OutputS3KeyPrefix options in the
// TaskInvocationParameters structure. For information about how Amazon Web
// Services Systems Manager handles these options for the supported maintenance
// window task types, see MaintenanceWindowTaskInvocationParameters .
LoggingInfo *types.LoggingInfo
// The updated MaxConcurrency value.
MaxConcurrency *string
// The updated MaxErrors value.
MaxErrors *string
// The updated task name.
Name *string
// The updated priority value.
Priority int32
// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
// service role to use to publish Amazon Simple Notification Service (Amazon SNS)
// notifications for maintenance window Run Command tasks.
ServiceRoleArn *string
// The updated target values.
Targets []types.Target
// The updated task ARN value.
TaskArn *string
// The updated parameter values.
TaskInvocationParameters *types.MaintenanceWindowTaskInvocationParameters
// The updated parameter values. TaskParameters has been deprecated. To specify
// parameters to pass to a task when it runs, instead use the Parameters option in
// the TaskInvocationParameters structure. For information about how Systems
// Manager handles these options for the supported maintenance window task types,
// see MaintenanceWindowTaskInvocationParameters .
TaskParameters map[string]types.MaintenanceWindowTaskParameterValueExpression
// The ID of the maintenance window that was updated.
WindowId *string
// The task ID of the maintenance window that was updated.
WindowTaskId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateMaintenanceWindowTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateMaintenanceWindowTask{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateMaintenanceWindowTask{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateMaintenanceWindowTaskValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMaintenanceWindowTask(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateMaintenanceWindowTask(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateMaintenanceWindowTask",
}
}
| 320 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Changes the Identity and Access Management (IAM) role that is assigned to the
// on-premises server, edge device, or virtual machines (VM). IAM roles are first
// assigned to these hybrid nodes during the activation process. For more
// information, see CreateActivation .
func (c *Client) UpdateManagedInstanceRole(ctx context.Context, params *UpdateManagedInstanceRoleInput, optFns ...func(*Options)) (*UpdateManagedInstanceRoleOutput, error) {
if params == nil {
params = &UpdateManagedInstanceRoleInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateManagedInstanceRole", params, optFns, c.addOperationUpdateManagedInstanceRoleMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateManagedInstanceRoleOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateManagedInstanceRoleInput struct {
// The name of the Identity and Access Management (IAM) role that you want to
// assign to the managed node. This IAM role must provide AssumeRole permissions
// for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com
// . For more information, see Create an IAM service role for a hybrid environment (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html)
// in the Amazon Web Services Systems Manager User Guide. You can't specify an IAM
// service-linked role for this parameter. You must create a unique role.
//
// This member is required.
IamRole *string
// The ID of the managed node where you want to update the role.
//
// This member is required.
InstanceId *string
noSmithyDocumentSerde
}
type UpdateManagedInstanceRoleOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateManagedInstanceRoleMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateManagedInstanceRole{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateManagedInstanceRole{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateManagedInstanceRoleValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateManagedInstanceRole(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateManagedInstanceRole(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateManagedInstanceRole",
}
}
| 133 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"time"
)
// Edit or change an OpsItem. You must have permission in Identity and Access
// Management (IAM) to update an OpsItem. For more information, see Set up
// OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-setup.html)
// in the Amazon Web Services Systems Manager User Guide. Operations engineers and
// IT professionals use Amazon Web Services Systems Manager OpsCenter to view,
// investigate, and remediate operational issues impacting the performance and
// health of their Amazon Web Services resources. For more information, see
// OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
// in the Amazon Web Services Systems Manager User Guide.
func (c *Client) UpdateOpsItem(ctx context.Context, params *UpdateOpsItemInput, optFns ...func(*Options)) (*UpdateOpsItemOutput, error) {
if params == nil {
params = &UpdateOpsItemInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateOpsItem", params, optFns, c.addOperationUpdateOpsItemMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateOpsItemOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateOpsItemInput struct {
// The ID of the OpsItem.
//
// This member is required.
OpsItemId *string
// The time a runbook workflow ended. Currently reported only for the OpsItem type
// /aws/changerequest .
ActualEndTime *time.Time
// The time a runbook workflow started. Currently reported only for the OpsItem
// type /aws/changerequest .
ActualStartTime *time.Time
// Specify a new category for an OpsItem.
Category *string
// Update the information about the OpsItem. Provide enough information so that
// users reading this OpsItem for the first time understand the issue.
Description *string
// The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
// when this OpsItem is edited or changed.
Notifications []types.OpsItemNotification
// Add new keys or edit existing key-value pairs of the OperationalData map in the
// OpsItem object. Operational data is custom data that provides useful reference
// details about the OpsItem. For example, you can specify log files, error
// strings, license keys, troubleshooting tips, or other relevant data. You enter
// operational data as key-value pairs. The key has a maximum length of 128
// characters. The value has a maximum size of 20 KB. Operational data keys can't
// begin with the following: amazon , aws , amzn , ssm , /amazon , /aws , /amzn ,
// /ssm . You can choose to make the data searchable by other users in the account
// or you can restrict search access. Searchable data means that all users with
// access to the OpsItem Overview page (as provided by the DescribeOpsItems API
// operation) can view and search on the specified data. Operational data that
// isn't searchable is only viewable by users who have access to the OpsItem (as
// provided by the GetOpsItem API operation). Use the /aws/resources key in
// OperationalData to specify a related resource in the request. Use the
// /aws/automations key in OperationalData to associate an Automation runbook with
// the OpsItem. To view Amazon Web Services CLI example commands that use these
// keys, see Creating OpsItems manually (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-manually-create-OpsItems.html)
// in the Amazon Web Services Systems Manager User Guide.
OperationalData map[string]types.OpsItemDataValue
// Keys that you want to remove from the OperationalData map.
OperationalDataToDelete []string
// The OpsItem Amazon Resource Name (ARN).
OpsItemArn *string
// The time specified in a change request for a runbook workflow to end. Currently
// supported only for the OpsItem type /aws/changerequest .
PlannedEndTime *time.Time
// The time specified in a change request for a runbook workflow to start.
// Currently supported only for the OpsItem type /aws/changerequest .
PlannedStartTime *time.Time
// The importance of this OpsItem in relation to other OpsItems in the system.
Priority *int32
// One or more OpsItems that share something in common with the current OpsItems.
// For example, related OpsItems can include OpsItems with similar error messages,
// impacted resources, or statuses for the impacted resource.
RelatedOpsItems []types.RelatedOpsItem
// Specify a new severity for an OpsItem.
Severity *string
// The OpsItem status. Status can be Open , In Progress , or Resolved . For more
// information, see Editing OpsItem details (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems-editing-details.html)
// in the Amazon Web Services Systems Manager User Guide.
Status types.OpsItemStatus
// A short heading that describes the nature of the OpsItem and the impacted
// resource.
Title *string
noSmithyDocumentSerde
}
type UpdateOpsItemOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateOpsItemMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateOpsItem{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateOpsItem{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateOpsItemValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateOpsItem(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateOpsItem(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateOpsItem",
}
}
| 203 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Amazon Web Services Systems Manager calls this API operation when you edit
// OpsMetadata in Application Manager.
func (c *Client) UpdateOpsMetadata(ctx context.Context, params *UpdateOpsMetadataInput, optFns ...func(*Options)) (*UpdateOpsMetadataOutput, error) {
if params == nil {
params = &UpdateOpsMetadataInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateOpsMetadata", params, optFns, c.addOperationUpdateOpsMetadataMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateOpsMetadataOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateOpsMetadataInput struct {
// The Amazon Resource Name (ARN) of the OpsMetadata Object to update.
//
// This member is required.
OpsMetadataArn *string
// The metadata keys to delete from the OpsMetadata object.
KeysToDelete []string
// Metadata to add to an OpsMetadata object.
MetadataToUpdate map[string]types.MetadataValue
noSmithyDocumentSerde
}
type UpdateOpsMetadataOutput struct {
// The Amazon Resource Name (ARN) of the OpsMetadata Object that was updated.
OpsMetadataArn *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateOpsMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateOpsMetadata{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateOpsMetadata{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateOpsMetadataValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateOpsMetadata(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateOpsMetadata(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateOpsMetadata",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"time"
)
// Modifies an existing patch baseline. Fields not specified in the request are
// left unchanged. For information about valid key-value pairs in PatchFilters for
// each supported operating system type, see PatchFilter .
func (c *Client) UpdatePatchBaseline(ctx context.Context, params *UpdatePatchBaselineInput, optFns ...func(*Options)) (*UpdatePatchBaselineOutput, error) {
if params == nil {
params = &UpdatePatchBaselineInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdatePatchBaseline", params, optFns, c.addOperationUpdatePatchBaselineMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdatePatchBaselineOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdatePatchBaselineInput struct {
// The ID of the patch baseline to update.
//
// This member is required.
BaselineId *string
// A set of rules used to include patches in the baseline.
ApprovalRules *types.PatchRuleGroup
// A list of explicitly approved patches for the baseline. For information about
// accepted formats for lists of approved patches and rejected patches, see About
// package name formats for approved and rejected patch lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
// in the Amazon Web Services Systems Manager User Guide.
ApprovedPatches []string
// Assigns a new compliance severity level to an existing patch baseline.
ApprovedPatchesComplianceLevel types.PatchComplianceLevel
// Indicates whether the list of approved patches includes non-security updates
// that should be applied to the managed nodes. The default value is false .
// Applies to Linux managed nodes only.
ApprovedPatchesEnableNonSecurity *bool
// A description of the patch baseline.
Description *string
// A set of global filters used to include patches in the baseline.
GlobalFilters *types.PatchFilterGroup
// The name of the patch baseline.
Name *string
// A list of explicitly rejected patches for the baseline. For information about
// accepted formats for lists of approved patches and rejected patches, see About
// package name formats for approved and rejected patch lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
// in the Amazon Web Services Systems Manager User Guide.
RejectedPatches []string
// The action for Patch Manager to take on patches included in the RejectedPackages
// list.
// - ALLOW_AS_DEPENDENCY : A package in the Rejected patches list is installed
// only if it is a dependency of another package. It is considered compliant with
// the patch baseline, and its status is reported as InstalledOther . This is the
// default action if no option is specified.
// - BLOCK : Packages in the RejectedPatches list, and packages that include them
// as dependencies, aren't installed under any circumstances. If a package was
// installed before it was added to the Rejected patches list, it is considered
// non-compliant with the patch baseline, and its status is reported as
// InstalledRejected .
RejectedPatchesAction types.PatchAction
// If True, then all fields that are required by the CreatePatchBaseline operation
// are also required for this API request. Optional fields that aren't specified
// are set to null.
Replace *bool
// Information about the patches to use to update the managed nodes, including
// target operating systems and source repositories. Applies to Linux managed nodes
// only.
Sources []types.PatchSource
noSmithyDocumentSerde
}
type UpdatePatchBaselineOutput struct {
// A set of rules used to include patches in the baseline.
ApprovalRules *types.PatchRuleGroup
// A list of explicitly approved patches for the baseline.
ApprovedPatches []string
// The compliance severity level assigned to the patch baseline after the update
// completed.
ApprovedPatchesComplianceLevel types.PatchComplianceLevel
// Indicates whether the list of approved patches includes non-security updates
// that should be applied to the managed nodes. The default value is false .
// Applies to Linux managed nodes only.
ApprovedPatchesEnableNonSecurity *bool
// The ID of the deleted patch baseline.
BaselineId *string
// The date when the patch baseline was created.
CreatedDate *time.Time
// A description of the patch baseline.
Description *string
// A set of global filters used to exclude patches from the baseline.
GlobalFilters *types.PatchFilterGroup
// The date when the patch baseline was last modified.
ModifiedDate *time.Time
// The name of the patch baseline.
Name *string
// The operating system rule used by the updated patch baseline.
OperatingSystem types.OperatingSystem
// A list of explicitly rejected patches for the baseline.
RejectedPatches []string
// The action specified to take on patches included in the RejectedPatches list. A
// patch can be allowed only if it is a dependency of another package, or blocked
// entirely along with packages that include it as a dependency.
RejectedPatchesAction types.PatchAction
// Information about the patches to use to update the managed nodes, including
// target operating systems and source repositories. Applies to Linux managed nodes
// only.
Sources []types.PatchSource
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdatePatchBaselineMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdatePatchBaseline{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdatePatchBaseline{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdatePatchBaselineValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePatchBaseline(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdatePatchBaseline(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdatePatchBaseline",
}
}
| 229 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Update a resource data sync. After you create a resource data sync for a
// Region, you can't change the account options for that sync. For example, if you
// create a sync in the us-east-2 (Ohio) Region and you choose the Include only
// the current account option, you can't edit that sync later and choose the
// Include all accounts from my Organizations configuration option. Instead, you
// must delete the first resource data sync, and create a new one. This API
// operation only supports a resource data sync that was created with a
// SyncFromSource SyncType .
func (c *Client) UpdateResourceDataSync(ctx context.Context, params *UpdateResourceDataSyncInput, optFns ...func(*Options)) (*UpdateResourceDataSyncOutput, error) {
if params == nil {
params = &UpdateResourceDataSyncInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateResourceDataSync", params, optFns, c.addOperationUpdateResourceDataSyncMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateResourceDataSyncOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateResourceDataSyncInput struct {
// The name of the resource data sync you want to update.
//
// This member is required.
SyncName *string
// Specify information about the data sources to synchronize.
//
// This member is required.
SyncSource *types.ResourceDataSyncSource
// The type of resource data sync. The supported SyncType is SyncFromSource.
//
// This member is required.
SyncType *string
noSmithyDocumentSerde
}
type UpdateResourceDataSyncOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateResourceDataSyncMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateResourceDataSync{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateResourceDataSync{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateResourceDataSyncValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateResourceDataSync(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateResourceDataSync(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateResourceDataSync",
}
}
| 138 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// ServiceSetting is an account-level setting for an Amazon Web Services service.
// This setting defines how a user interacts with or uses a service or a feature of
// a service. For example, if an Amazon Web Services service charges money to the
// account based on feature or service usage, then the Amazon Web Services service
// team might create a default setting of "false". This means the user can't use
// this feature unless they change the setting to "true" and intentionally opt in
// for a paid feature. Services map a SettingId object to a setting value. Amazon
// Web Services services teams define the default value for a SettingId . You can't
// create a new SettingId , but you can overwrite the default value if you have the
// ssm:UpdateServiceSetting permission for the setting. Use the GetServiceSetting
// API operation to view the current value. Or, use the ResetServiceSetting to
// change the value back to the original value defined by the Amazon Web Services
// service team. Update the service setting for the account.
func (c *Client) UpdateServiceSetting(ctx context.Context, params *UpdateServiceSettingInput, optFns ...func(*Options)) (*UpdateServiceSettingOutput, error) {
if params == nil {
params = &UpdateServiceSettingInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateServiceSetting", params, optFns, c.addOperationUpdateServiceSettingMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateServiceSettingOutput)
out.ResultMetadata = metadata
return out, nil
}
// The request body of the UpdateServiceSetting API operation.
type UpdateServiceSettingInput struct {
// The Amazon Resource Name (ARN) of the service setting to update. For example,
// arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled
// . The setting ID can be one of the following.
// - /ssm/managed-instance/default-ec2-instance-management-role
// - /ssm/automation/customer-script-log-destination
// - /ssm/automation/customer-script-log-group-name
// - /ssm/documents/console/public-sharing-permission
// - /ssm/managed-instance/activation-tier
// - /ssm/opsinsights/opscenter
// - /ssm/parameter-store/default-parameter-tier
// - /ssm/parameter-store/high-throughput-enabled
// Permissions to update the
// /ssm/managed-instance/default-ec2-instance-management-role setting should only
// be provided to administrators. Implement least privilege access when allowing
// individuals to configure or modify the Default Host Management Configuration.
//
// This member is required.
SettingId *string
// The new value to specify for the service setting. The following list specifies
// the available values for each setting.
// - /ssm/managed-instance/default-ec2-instance-management-role: The name of an
// IAM role
// - /ssm/automation/customer-script-log-destination : CloudWatch
// - /ssm/automation/customer-script-log-group-name : The name of an Amazon
// CloudWatch Logs log group
// - /ssm/documents/console/public-sharing-permission : Enable or Disable
// - /ssm/managed-instance/activation-tier : standard or advanced
// - /ssm/opsinsights/opscenter : Enabled or Disabled
// - /ssm/parameter-store/default-parameter-tier : Standard , Advanced ,
// Intelligent-Tiering
// - /ssm/parameter-store/high-throughput-enabled : true or false
//
// This member is required.
SettingValue *string
noSmithyDocumentSerde
}
// The result body of the UpdateServiceSetting API operation.
type UpdateServiceSettingOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateServiceSettingMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateServiceSetting{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateServiceSetting{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateServiceSettingValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateServiceSetting(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateServiceSetting(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "ssm",
OperationName: "UpdateServiceSetting",
}
}
| 165 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
// Package ssm provides the API client, operations, and parameter types for Amazon
// Simple Systems Manager (SSM).
//
// Amazon Web Services Systems Manager is the operations hub for your Amazon Web
// Services applications and resources and a secure end-to-end management solution
// for hybrid cloud environments that enables safe and secure operations at scale.
// This reference is intended to be used with the Amazon Web Services Systems
// Manager User Guide (https://docs.aws.amazon.com/systems-manager/latest/userguide/)
// . To get started, see Setting up Amazon Web Services Systems Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-setting-up.html)
// . Related resources
// - For information about each of the capabilities that comprise Systems
// Manager, see Systems Manager capabilities (https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/systems-manager-capabilities.html)
// in the Amazon Web Services Systems Manager User Guide.
// - For details about predefined runbooks for Automation, a capability of
// Amazon Web Services Systems Manager, see the Systems Manager Automation
// runbook reference (https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-runbook-reference.html)
// .
// - For information about AppConfig, a capability of Systems Manager, see the
// AppConfig User Guide (https://docs.aws.amazon.com/appconfig/latest/userguide/)
// and the AppConfig API Reference (https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/)
// .
// - For information about Incident Manager, a capability of Systems Manager,
// see the Systems Manager Incident Manager User Guide (https://docs.aws.amazon.com/incident-manager/latest/userguide/)
// and the Systems Manager Incident Manager API Reference (https://docs.aws.amazon.com/incident-manager/latest/APIReference/)
// .
package ssm
| 29 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"errors"
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
internalendpoints "github.com/aws/aws-sdk-go-v2/service/ssm/internal/endpoints"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"net/url"
"strings"
)
// EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverOptions = internalendpoints.Options
// EndpointResolver interface for resolving service endpoints.
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
var _ EndpointResolver = &internalendpoints.Resolver{}
// NewDefaultEndpointResolver constructs a new service endpoint resolver
func NewDefaultEndpointResolver() *internalendpoints.Resolver {
return internalendpoints.New()
}
// 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.
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) {
return fn(region, options)
}
func resolveDefaultEndpointConfiguration(o *Options) {
if o.EndpointResolver != nil {
return
}
o.EndpointResolver = NewDefaultEndpointResolver()
}
// 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.
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver {
e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom}
for _, fn := range optFns {
fn(&e)
}
return EndpointResolverFunc(
func(region string, options EndpointResolverOptions) (aws.Endpoint, error) {
if len(e.SigningRegion) == 0 {
e.SigningRegion = region
}
return e, nil
},
)
}
type ResolveEndpoint struct {
Resolver EndpointResolver
Options EndpointResolverOptions
}
func (*ResolveEndpoint) ID() string {
return "ResolveEndpoint"
}
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
req, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
}
if m.Resolver == nil {
return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil")
}
eo := m.Options
eo.Logger = middleware.GetLogger(ctx)
var endpoint aws.Endpoint
endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo)
if err != nil {
return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err)
}
req.URL, err = url.Parse(endpoint.URL)
if err != nil {
return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err)
}
if len(awsmiddleware.GetSigningName(ctx)) == 0 {
signingName := endpoint.SigningName
if len(signingName) == 0 {
signingName = "ssm"
}
ctx = awsmiddleware.SetSigningName(ctx, signingName)
}
ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source)
ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable)
ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion)
ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID)
return next.HandleSerialize(ctx, in)
}
func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error {
return stack.Serialize.Insert(&ResolveEndpoint{
Resolver: o.EndpointResolver,
Options: o.EndpointOptions,
}, "OperationSerializer", middleware.Before)
}
func removeResolveEndpointMiddleware(stack *middleware.Stack) error {
_, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID())
return err
}
type wrappedEndpointResolver struct {
awsResolver aws.EndpointResolverWithOptions
resolver EndpointResolver
}
func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) {
if w.awsResolver == nil {
goto fallback
}
endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region, options)
if err == nil {
return endpoint, nil
}
if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) {
return endpoint, err
}
fallback:
if w.resolver == nil {
return endpoint, fmt.Errorf("default endpoint resolver provided was nil")
}
return w.resolver.ResolveEndpoint(region, options)
}
type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error)
func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) {
return a(service, region)
}
var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil)
// withEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver.
// If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided
// fallbackResolver for resolution.
//
// fallbackResolver must not be nil
func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions, fallbackResolver EndpointResolver) EndpointResolver {
var resolver aws.EndpointResolverWithOptions
if awsResolverWithOptions != nil {
resolver = awsResolverWithOptions
} else if awsResolver != nil {
resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint)
}
return &wrappedEndpointResolver{
awsResolver: resolver,
resolver: fallbackResolver,
}
}
func finalizeClientEndpointResolverOptions(options *Options) {
options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage()
if len(options.EndpointOptions.ResolvedRegion) == 0 {
const fipsInfix = "-fips-"
const fipsPrefix = "fips-"
const fipsSuffix = "-fips"
if strings.Contains(options.Region, fipsInfix) ||
strings.Contains(options.Region, fipsPrefix) ||
strings.Contains(options.Region, fipsSuffix) {
options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(
options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "")
options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled
}
}
}
| 201 |
aws-sdk-go-v2 | aws | Go | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
package ssm
// goModuleVersion is the tagged release for this module
const goModuleVersion = "1.36.7"
| 7 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
| 4 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"bytes"
"context"
"fmt"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
smithy "github.com/aws/smithy-go"
"github.com/aws/smithy-go/encoding/httpbinding"
smithyjson "github.com/aws/smithy-go/encoding/json"
"github.com/aws/smithy-go/middleware"
smithytime "github.com/aws/smithy-go/time"
smithyhttp "github.com/aws/smithy-go/transport/http"
"path"
)
type awsAwsjson11_serializeOpAddTagsToResource struct {
}
func (*awsAwsjson11_serializeOpAddTagsToResource) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpAddTagsToResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*AddTagsToResourceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.AddTagsToResource")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentAddTagsToResourceInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpAssociateOpsItemRelatedItem struct {
}
func (*awsAwsjson11_serializeOpAssociateOpsItemRelatedItem) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpAssociateOpsItemRelatedItem) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*AssociateOpsItemRelatedItemInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.AssociateOpsItemRelatedItem")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentAssociateOpsItemRelatedItemInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpCancelCommand struct {
}
func (*awsAwsjson11_serializeOpCancelCommand) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpCancelCommand) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CancelCommandInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.CancelCommand")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentCancelCommandInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpCancelMaintenanceWindowExecution struct {
}
func (*awsAwsjson11_serializeOpCancelMaintenanceWindowExecution) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpCancelMaintenanceWindowExecution) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CancelMaintenanceWindowExecutionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.CancelMaintenanceWindowExecution")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentCancelMaintenanceWindowExecutionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpCreateActivation struct {
}
func (*awsAwsjson11_serializeOpCreateActivation) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpCreateActivation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CreateActivationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.CreateActivation")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentCreateActivationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpCreateAssociation struct {
}
func (*awsAwsjson11_serializeOpCreateAssociation) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpCreateAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CreateAssociationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.CreateAssociation")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentCreateAssociationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpCreateAssociationBatch struct {
}
func (*awsAwsjson11_serializeOpCreateAssociationBatch) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpCreateAssociationBatch) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CreateAssociationBatchInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.CreateAssociationBatch")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentCreateAssociationBatchInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpCreateDocument struct {
}
func (*awsAwsjson11_serializeOpCreateDocument) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpCreateDocument) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CreateDocumentInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.CreateDocument")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentCreateDocumentInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpCreateMaintenanceWindow struct {
}
func (*awsAwsjson11_serializeOpCreateMaintenanceWindow) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpCreateMaintenanceWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CreateMaintenanceWindowInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.CreateMaintenanceWindow")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentCreateMaintenanceWindowInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpCreateOpsItem struct {
}
func (*awsAwsjson11_serializeOpCreateOpsItem) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpCreateOpsItem) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CreateOpsItemInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.CreateOpsItem")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentCreateOpsItemInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpCreateOpsMetadata struct {
}
func (*awsAwsjson11_serializeOpCreateOpsMetadata) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpCreateOpsMetadata) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CreateOpsMetadataInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.CreateOpsMetadata")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentCreateOpsMetadataInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpCreatePatchBaseline struct {
}
func (*awsAwsjson11_serializeOpCreatePatchBaseline) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpCreatePatchBaseline) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CreatePatchBaselineInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.CreatePatchBaseline")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentCreatePatchBaselineInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpCreateResourceDataSync struct {
}
func (*awsAwsjson11_serializeOpCreateResourceDataSync) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpCreateResourceDataSync) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CreateResourceDataSyncInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.CreateResourceDataSync")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentCreateResourceDataSyncInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeleteActivation struct {
}
func (*awsAwsjson11_serializeOpDeleteActivation) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeleteActivation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteActivationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeleteActivation")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeleteActivationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeleteAssociation struct {
}
func (*awsAwsjson11_serializeOpDeleteAssociation) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeleteAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteAssociationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeleteAssociation")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeleteAssociationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeleteDocument struct {
}
func (*awsAwsjson11_serializeOpDeleteDocument) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeleteDocument) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteDocumentInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeleteDocument")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeleteDocumentInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeleteInventory struct {
}
func (*awsAwsjson11_serializeOpDeleteInventory) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeleteInventory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteInventoryInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeleteInventory")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeleteInventoryInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeleteMaintenanceWindow struct {
}
func (*awsAwsjson11_serializeOpDeleteMaintenanceWindow) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeleteMaintenanceWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteMaintenanceWindowInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeleteMaintenanceWindow")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeleteMaintenanceWindowInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeleteOpsMetadata struct {
}
func (*awsAwsjson11_serializeOpDeleteOpsMetadata) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeleteOpsMetadata) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteOpsMetadataInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeleteOpsMetadata")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeleteOpsMetadataInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeleteParameter struct {
}
func (*awsAwsjson11_serializeOpDeleteParameter) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeleteParameter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteParameterInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeleteParameter")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeleteParameterInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeleteParameters struct {
}
func (*awsAwsjson11_serializeOpDeleteParameters) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeleteParameters) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteParametersInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeleteParameters")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeleteParametersInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeletePatchBaseline struct {
}
func (*awsAwsjson11_serializeOpDeletePatchBaseline) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeletePatchBaseline) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeletePatchBaselineInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeletePatchBaseline")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeletePatchBaselineInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeleteResourceDataSync struct {
}
func (*awsAwsjson11_serializeOpDeleteResourceDataSync) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeleteResourceDataSync) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteResourceDataSyncInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeleteResourceDataSync")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeleteResourceDataSyncInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeleteResourcePolicy struct {
}
func (*awsAwsjson11_serializeOpDeleteResourcePolicy) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeleteResourcePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteResourcePolicyInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeleteResourcePolicy")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeleteResourcePolicyInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeregisterManagedInstance struct {
}
func (*awsAwsjson11_serializeOpDeregisterManagedInstance) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeregisterManagedInstance) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeregisterManagedInstanceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeregisterManagedInstance")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeregisterManagedInstanceInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeregisterPatchBaselineForPatchGroup struct {
}
func (*awsAwsjson11_serializeOpDeregisterPatchBaselineForPatchGroup) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeregisterPatchBaselineForPatchGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeregisterPatchBaselineForPatchGroupInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeregisterPatchBaselineForPatchGroup")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeregisterPatchBaselineForPatchGroupInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeregisterTargetFromMaintenanceWindow struct {
}
func (*awsAwsjson11_serializeOpDeregisterTargetFromMaintenanceWindow) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeregisterTargetFromMaintenanceWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeregisterTargetFromMaintenanceWindowInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeregisterTargetFromMaintenanceWindow")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeregisterTargetFromMaintenanceWindowInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDeregisterTaskFromMaintenanceWindow struct {
}
func (*awsAwsjson11_serializeOpDeregisterTaskFromMaintenanceWindow) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDeregisterTaskFromMaintenanceWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeregisterTaskFromMaintenanceWindowInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DeregisterTaskFromMaintenanceWindow")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDeregisterTaskFromMaintenanceWindowInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeActivations struct {
}
func (*awsAwsjson11_serializeOpDescribeActivations) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeActivations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeActivationsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeActivations")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeActivationsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeAssociation struct {
}
func (*awsAwsjson11_serializeOpDescribeAssociation) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeAssociationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeAssociation")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeAssociationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeAssociationExecutions struct {
}
func (*awsAwsjson11_serializeOpDescribeAssociationExecutions) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeAssociationExecutions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeAssociationExecutionsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeAssociationExecutions")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeAssociationExecutionsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeAssociationExecutionTargets struct {
}
func (*awsAwsjson11_serializeOpDescribeAssociationExecutionTargets) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeAssociationExecutionTargets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeAssociationExecutionTargetsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeAssociationExecutionTargets")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeAssociationExecutionTargetsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeAutomationExecutions struct {
}
func (*awsAwsjson11_serializeOpDescribeAutomationExecutions) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeAutomationExecutions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeAutomationExecutionsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeAutomationExecutions")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeAutomationExecutionsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeAutomationStepExecutions struct {
}
func (*awsAwsjson11_serializeOpDescribeAutomationStepExecutions) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeAutomationStepExecutions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeAutomationStepExecutionsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeAutomationStepExecutions")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeAutomationStepExecutionsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeAvailablePatches struct {
}
func (*awsAwsjson11_serializeOpDescribeAvailablePatches) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeAvailablePatches) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeAvailablePatchesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeAvailablePatches")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeAvailablePatchesInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeDocument struct {
}
func (*awsAwsjson11_serializeOpDescribeDocument) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeDocument) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeDocumentInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeDocument")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeDocumentInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeDocumentPermission struct {
}
func (*awsAwsjson11_serializeOpDescribeDocumentPermission) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeDocumentPermission) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeDocumentPermissionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeDocumentPermission")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeDocumentPermissionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeEffectiveInstanceAssociations struct {
}
func (*awsAwsjson11_serializeOpDescribeEffectiveInstanceAssociations) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeEffectiveInstanceAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeEffectiveInstanceAssociationsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeEffectiveInstanceAssociations")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeEffectiveInstanceAssociationsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeEffectivePatchesForPatchBaseline struct {
}
func (*awsAwsjson11_serializeOpDescribeEffectivePatchesForPatchBaseline) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeEffectivePatchesForPatchBaseline) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeEffectivePatchesForPatchBaselineInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeEffectivePatchesForPatchBaseline")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeEffectivePatchesForPatchBaselineInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeInstanceAssociationsStatus struct {
}
func (*awsAwsjson11_serializeOpDescribeInstanceAssociationsStatus) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeInstanceAssociationsStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeInstanceAssociationsStatusInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeInstanceAssociationsStatus")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeInstanceAssociationsStatusInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeInstanceInformation struct {
}
func (*awsAwsjson11_serializeOpDescribeInstanceInformation) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeInstanceInformation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeInstanceInformationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeInstanceInformation")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeInstanceInformationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeInstancePatches struct {
}
func (*awsAwsjson11_serializeOpDescribeInstancePatches) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeInstancePatches) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeInstancePatchesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeInstancePatches")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeInstancePatchesInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeInstancePatchStates struct {
}
func (*awsAwsjson11_serializeOpDescribeInstancePatchStates) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeInstancePatchStates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeInstancePatchStatesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeInstancePatchStates")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeInstancePatchStatesInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeInstancePatchStatesForPatchGroup struct {
}
func (*awsAwsjson11_serializeOpDescribeInstancePatchStatesForPatchGroup) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeInstancePatchStatesForPatchGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeInstancePatchStatesForPatchGroupInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeInstancePatchStatesForPatchGroup")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeInstancePatchStatesForPatchGroupInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeInventoryDeletions struct {
}
func (*awsAwsjson11_serializeOpDescribeInventoryDeletions) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeInventoryDeletions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeInventoryDeletionsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeInventoryDeletions")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeInventoryDeletionsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeMaintenanceWindowExecutions struct {
}
func (*awsAwsjson11_serializeOpDescribeMaintenanceWindowExecutions) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeMaintenanceWindowExecutions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeMaintenanceWindowExecutionsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeMaintenanceWindowExecutions")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeMaintenanceWindowExecutionTaskInvocations struct {
}
func (*awsAwsjson11_serializeOpDescribeMaintenanceWindowExecutionTaskInvocations) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeMaintenanceWindowExecutionTaskInvocations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeMaintenanceWindowExecutionTaskInvocationsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeMaintenanceWindowExecutionTaskInvocations")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionTaskInvocationsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeMaintenanceWindowExecutionTasks struct {
}
func (*awsAwsjson11_serializeOpDescribeMaintenanceWindowExecutionTasks) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeMaintenanceWindowExecutionTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeMaintenanceWindowExecutionTasksInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeMaintenanceWindowExecutionTasks")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionTasksInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeMaintenanceWindows struct {
}
func (*awsAwsjson11_serializeOpDescribeMaintenanceWindows) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeMaintenanceWindows) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeMaintenanceWindowsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeMaintenanceWindows")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeMaintenanceWindowSchedule struct {
}
func (*awsAwsjson11_serializeOpDescribeMaintenanceWindowSchedule) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeMaintenanceWindowSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeMaintenanceWindowScheduleInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeMaintenanceWindowSchedule")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowScheduleInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeMaintenanceWindowsForTarget struct {
}
func (*awsAwsjson11_serializeOpDescribeMaintenanceWindowsForTarget) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeMaintenanceWindowsForTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeMaintenanceWindowsForTargetInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeMaintenanceWindowsForTarget")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowsForTargetInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeMaintenanceWindowTargets struct {
}
func (*awsAwsjson11_serializeOpDescribeMaintenanceWindowTargets) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeMaintenanceWindowTargets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeMaintenanceWindowTargetsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeMaintenanceWindowTargets")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowTargetsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeMaintenanceWindowTasks struct {
}
func (*awsAwsjson11_serializeOpDescribeMaintenanceWindowTasks) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeMaintenanceWindowTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeMaintenanceWindowTasksInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeMaintenanceWindowTasks")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowTasksInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeOpsItems struct {
}
func (*awsAwsjson11_serializeOpDescribeOpsItems) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeOpsItems) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeOpsItemsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeOpsItems")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeOpsItemsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeParameters struct {
}
func (*awsAwsjson11_serializeOpDescribeParameters) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeParameters) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeParametersInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeParameters")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeParametersInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribePatchBaselines struct {
}
func (*awsAwsjson11_serializeOpDescribePatchBaselines) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribePatchBaselines) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribePatchBaselinesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribePatchBaselines")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribePatchBaselinesInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribePatchGroups struct {
}
func (*awsAwsjson11_serializeOpDescribePatchGroups) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribePatchGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribePatchGroupsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribePatchGroups")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribePatchGroupsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribePatchGroupState struct {
}
func (*awsAwsjson11_serializeOpDescribePatchGroupState) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribePatchGroupState) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribePatchGroupStateInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribePatchGroupState")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribePatchGroupStateInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribePatchProperties struct {
}
func (*awsAwsjson11_serializeOpDescribePatchProperties) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribePatchProperties) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribePatchPropertiesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribePatchProperties")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribePatchPropertiesInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDescribeSessions struct {
}
func (*awsAwsjson11_serializeOpDescribeSessions) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDescribeSessions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeSessionsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DescribeSessions")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDescribeSessionsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpDisassociateOpsItemRelatedItem struct {
}
func (*awsAwsjson11_serializeOpDisassociateOpsItemRelatedItem) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpDisassociateOpsItemRelatedItem) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DisassociateOpsItemRelatedItemInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.DisassociateOpsItemRelatedItem")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentDisassociateOpsItemRelatedItemInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetAutomationExecution struct {
}
func (*awsAwsjson11_serializeOpGetAutomationExecution) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetAutomationExecution) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetAutomationExecutionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetAutomationExecution")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetAutomationExecutionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetCalendarState struct {
}
func (*awsAwsjson11_serializeOpGetCalendarState) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetCalendarState) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetCalendarStateInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetCalendarState")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetCalendarStateInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetCommandInvocation struct {
}
func (*awsAwsjson11_serializeOpGetCommandInvocation) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetCommandInvocation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetCommandInvocationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetCommandInvocation")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetCommandInvocationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetConnectionStatus struct {
}
func (*awsAwsjson11_serializeOpGetConnectionStatus) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetConnectionStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetConnectionStatusInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetConnectionStatus")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetConnectionStatusInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetDefaultPatchBaseline struct {
}
func (*awsAwsjson11_serializeOpGetDefaultPatchBaseline) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetDefaultPatchBaseline) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetDefaultPatchBaselineInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetDefaultPatchBaseline")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetDefaultPatchBaselineInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetDeployablePatchSnapshotForInstance struct {
}
func (*awsAwsjson11_serializeOpGetDeployablePatchSnapshotForInstance) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetDeployablePatchSnapshotForInstance) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetDeployablePatchSnapshotForInstanceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetDeployablePatchSnapshotForInstance")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetDeployablePatchSnapshotForInstanceInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetDocument struct {
}
func (*awsAwsjson11_serializeOpGetDocument) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetDocument) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetDocumentInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetDocument")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetDocumentInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetInventory struct {
}
func (*awsAwsjson11_serializeOpGetInventory) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetInventory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetInventoryInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetInventory")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetInventoryInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetInventorySchema struct {
}
func (*awsAwsjson11_serializeOpGetInventorySchema) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetInventorySchema) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetInventorySchemaInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetInventorySchema")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetInventorySchemaInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetMaintenanceWindow struct {
}
func (*awsAwsjson11_serializeOpGetMaintenanceWindow) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetMaintenanceWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetMaintenanceWindowInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetMaintenanceWindow")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetMaintenanceWindowInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetMaintenanceWindowExecution struct {
}
func (*awsAwsjson11_serializeOpGetMaintenanceWindowExecution) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetMaintenanceWindowExecution) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetMaintenanceWindowExecutionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetMaintenanceWindowExecution")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetMaintenanceWindowExecutionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetMaintenanceWindowExecutionTask struct {
}
func (*awsAwsjson11_serializeOpGetMaintenanceWindowExecutionTask) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetMaintenanceWindowExecutionTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetMaintenanceWindowExecutionTaskInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetMaintenanceWindowExecutionTask")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetMaintenanceWindowExecutionTaskInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetMaintenanceWindowExecutionTaskInvocation struct {
}
func (*awsAwsjson11_serializeOpGetMaintenanceWindowExecutionTaskInvocation) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetMaintenanceWindowExecutionTaskInvocation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetMaintenanceWindowExecutionTaskInvocationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetMaintenanceWindowExecutionTaskInvocation")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetMaintenanceWindowExecutionTaskInvocationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetMaintenanceWindowTask struct {
}
func (*awsAwsjson11_serializeOpGetMaintenanceWindowTask) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetMaintenanceWindowTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetMaintenanceWindowTaskInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetMaintenanceWindowTask")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetMaintenanceWindowTaskInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetOpsItem struct {
}
func (*awsAwsjson11_serializeOpGetOpsItem) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetOpsItem) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetOpsItemInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetOpsItem")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetOpsItemInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetOpsMetadata struct {
}
func (*awsAwsjson11_serializeOpGetOpsMetadata) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetOpsMetadata) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetOpsMetadataInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetOpsMetadata")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetOpsMetadataInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetOpsSummary struct {
}
func (*awsAwsjson11_serializeOpGetOpsSummary) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetOpsSummary) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetOpsSummaryInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetOpsSummary")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetOpsSummaryInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetParameter struct {
}
func (*awsAwsjson11_serializeOpGetParameter) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetParameter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetParameterInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetParameter")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetParameterInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetParameterHistory struct {
}
func (*awsAwsjson11_serializeOpGetParameterHistory) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetParameterHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetParameterHistoryInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetParameterHistory")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetParameterHistoryInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetParameters struct {
}
func (*awsAwsjson11_serializeOpGetParameters) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetParameters) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetParametersInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetParameters")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetParametersInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetParametersByPath struct {
}
func (*awsAwsjson11_serializeOpGetParametersByPath) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetParametersByPath) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetParametersByPathInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetParametersByPath")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetParametersByPathInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetPatchBaseline struct {
}
func (*awsAwsjson11_serializeOpGetPatchBaseline) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetPatchBaseline) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetPatchBaselineInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetPatchBaseline")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetPatchBaselineInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetPatchBaselineForPatchGroup struct {
}
func (*awsAwsjson11_serializeOpGetPatchBaselineForPatchGroup) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetPatchBaselineForPatchGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetPatchBaselineForPatchGroupInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetPatchBaselineForPatchGroup")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetPatchBaselineForPatchGroupInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetResourcePolicies struct {
}
func (*awsAwsjson11_serializeOpGetResourcePolicies) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetResourcePolicies) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetResourcePoliciesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetResourcePolicies")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetResourcePoliciesInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpGetServiceSetting struct {
}
func (*awsAwsjson11_serializeOpGetServiceSetting) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpGetServiceSetting) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*GetServiceSettingInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.GetServiceSetting")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentGetServiceSettingInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpLabelParameterVersion struct {
}
func (*awsAwsjson11_serializeOpLabelParameterVersion) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpLabelParameterVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*LabelParameterVersionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.LabelParameterVersion")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentLabelParameterVersionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListAssociations struct {
}
func (*awsAwsjson11_serializeOpListAssociations) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListAssociationsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListAssociations")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListAssociationsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListAssociationVersions struct {
}
func (*awsAwsjson11_serializeOpListAssociationVersions) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListAssociationVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListAssociationVersionsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListAssociationVersions")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListAssociationVersionsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListCommandInvocations struct {
}
func (*awsAwsjson11_serializeOpListCommandInvocations) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListCommandInvocations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListCommandInvocationsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListCommandInvocations")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListCommandInvocationsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListCommands struct {
}
func (*awsAwsjson11_serializeOpListCommands) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListCommands) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListCommandsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListCommands")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListCommandsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListComplianceItems struct {
}
func (*awsAwsjson11_serializeOpListComplianceItems) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListComplianceItems) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListComplianceItemsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListComplianceItems")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListComplianceItemsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListComplianceSummaries struct {
}
func (*awsAwsjson11_serializeOpListComplianceSummaries) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListComplianceSummaries) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListComplianceSummariesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListComplianceSummaries")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListComplianceSummariesInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListDocumentMetadataHistory struct {
}
func (*awsAwsjson11_serializeOpListDocumentMetadataHistory) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListDocumentMetadataHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListDocumentMetadataHistoryInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListDocumentMetadataHistory")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListDocumentMetadataHistoryInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListDocuments struct {
}
func (*awsAwsjson11_serializeOpListDocuments) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListDocuments) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListDocumentsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListDocuments")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListDocumentsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListDocumentVersions struct {
}
func (*awsAwsjson11_serializeOpListDocumentVersions) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListDocumentVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListDocumentVersionsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListDocumentVersions")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListDocumentVersionsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListInventoryEntries struct {
}
func (*awsAwsjson11_serializeOpListInventoryEntries) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListInventoryEntries) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListInventoryEntriesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListInventoryEntries")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListInventoryEntriesInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListOpsItemEvents struct {
}
func (*awsAwsjson11_serializeOpListOpsItemEvents) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListOpsItemEvents) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListOpsItemEventsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListOpsItemEvents")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListOpsItemEventsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListOpsItemRelatedItems struct {
}
func (*awsAwsjson11_serializeOpListOpsItemRelatedItems) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListOpsItemRelatedItems) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListOpsItemRelatedItemsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListOpsItemRelatedItems")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListOpsItemRelatedItemsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListOpsMetadata struct {
}
func (*awsAwsjson11_serializeOpListOpsMetadata) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListOpsMetadata) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListOpsMetadataInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListOpsMetadata")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListOpsMetadataInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListResourceComplianceSummaries struct {
}
func (*awsAwsjson11_serializeOpListResourceComplianceSummaries) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListResourceComplianceSummaries) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListResourceComplianceSummariesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListResourceComplianceSummaries")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListResourceComplianceSummariesInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListResourceDataSync struct {
}
func (*awsAwsjson11_serializeOpListResourceDataSync) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListResourceDataSync) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListResourceDataSyncInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListResourceDataSync")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListResourceDataSyncInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpListTagsForResource struct {
}
func (*awsAwsjson11_serializeOpListTagsForResource) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListTagsForResourceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ListTagsForResource")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentListTagsForResourceInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpModifyDocumentPermission struct {
}
func (*awsAwsjson11_serializeOpModifyDocumentPermission) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpModifyDocumentPermission) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ModifyDocumentPermissionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ModifyDocumentPermission")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentModifyDocumentPermissionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpPutComplianceItems struct {
}
func (*awsAwsjson11_serializeOpPutComplianceItems) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpPutComplianceItems) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*PutComplianceItemsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.PutComplianceItems")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentPutComplianceItemsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpPutInventory struct {
}
func (*awsAwsjson11_serializeOpPutInventory) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpPutInventory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*PutInventoryInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.PutInventory")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentPutInventoryInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpPutParameter struct {
}
func (*awsAwsjson11_serializeOpPutParameter) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpPutParameter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*PutParameterInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.PutParameter")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentPutParameterInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpPutResourcePolicy struct {
}
func (*awsAwsjson11_serializeOpPutResourcePolicy) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpPutResourcePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*PutResourcePolicyInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.PutResourcePolicy")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentPutResourcePolicyInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpRegisterDefaultPatchBaseline struct {
}
func (*awsAwsjson11_serializeOpRegisterDefaultPatchBaseline) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpRegisterDefaultPatchBaseline) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*RegisterDefaultPatchBaselineInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.RegisterDefaultPatchBaseline")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentRegisterDefaultPatchBaselineInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpRegisterPatchBaselineForPatchGroup struct {
}
func (*awsAwsjson11_serializeOpRegisterPatchBaselineForPatchGroup) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpRegisterPatchBaselineForPatchGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*RegisterPatchBaselineForPatchGroupInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.RegisterPatchBaselineForPatchGroup")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentRegisterPatchBaselineForPatchGroupInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpRegisterTargetWithMaintenanceWindow struct {
}
func (*awsAwsjson11_serializeOpRegisterTargetWithMaintenanceWindow) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpRegisterTargetWithMaintenanceWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*RegisterTargetWithMaintenanceWindowInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.RegisterTargetWithMaintenanceWindow")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentRegisterTargetWithMaintenanceWindowInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpRegisterTaskWithMaintenanceWindow struct {
}
func (*awsAwsjson11_serializeOpRegisterTaskWithMaintenanceWindow) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpRegisterTaskWithMaintenanceWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*RegisterTaskWithMaintenanceWindowInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.RegisterTaskWithMaintenanceWindow")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentRegisterTaskWithMaintenanceWindowInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpRemoveTagsFromResource struct {
}
func (*awsAwsjson11_serializeOpRemoveTagsFromResource) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpRemoveTagsFromResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*RemoveTagsFromResourceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.RemoveTagsFromResource")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentRemoveTagsFromResourceInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpResetServiceSetting struct {
}
func (*awsAwsjson11_serializeOpResetServiceSetting) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpResetServiceSetting) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ResetServiceSettingInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ResetServiceSetting")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentResetServiceSettingInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpResumeSession struct {
}
func (*awsAwsjson11_serializeOpResumeSession) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpResumeSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ResumeSessionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.ResumeSession")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentResumeSessionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpSendAutomationSignal struct {
}
func (*awsAwsjson11_serializeOpSendAutomationSignal) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpSendAutomationSignal) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*SendAutomationSignalInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.SendAutomationSignal")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentSendAutomationSignalInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpSendCommand struct {
}
func (*awsAwsjson11_serializeOpSendCommand) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpSendCommand) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*SendCommandInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.SendCommand")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentSendCommandInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpStartAssociationsOnce struct {
}
func (*awsAwsjson11_serializeOpStartAssociationsOnce) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpStartAssociationsOnce) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*StartAssociationsOnceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.StartAssociationsOnce")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentStartAssociationsOnceInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpStartAutomationExecution struct {
}
func (*awsAwsjson11_serializeOpStartAutomationExecution) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpStartAutomationExecution) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*StartAutomationExecutionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.StartAutomationExecution")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentStartAutomationExecutionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpStartChangeRequestExecution struct {
}
func (*awsAwsjson11_serializeOpStartChangeRequestExecution) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpStartChangeRequestExecution) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*StartChangeRequestExecutionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.StartChangeRequestExecution")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentStartChangeRequestExecutionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpStartSession struct {
}
func (*awsAwsjson11_serializeOpStartSession) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpStartSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*StartSessionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.StartSession")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentStartSessionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpStopAutomationExecution struct {
}
func (*awsAwsjson11_serializeOpStopAutomationExecution) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpStopAutomationExecution) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*StopAutomationExecutionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.StopAutomationExecution")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentStopAutomationExecutionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpTerminateSession struct {
}
func (*awsAwsjson11_serializeOpTerminateSession) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpTerminateSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*TerminateSessionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.TerminateSession")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentTerminateSessionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUnlabelParameterVersion struct {
}
func (*awsAwsjson11_serializeOpUnlabelParameterVersion) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUnlabelParameterVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UnlabelParameterVersionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UnlabelParameterVersion")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUnlabelParameterVersionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateAssociation struct {
}
func (*awsAwsjson11_serializeOpUpdateAssociation) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateAssociationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateAssociation")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateAssociationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateAssociationStatus struct {
}
func (*awsAwsjson11_serializeOpUpdateAssociationStatus) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateAssociationStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateAssociationStatusInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateAssociationStatus")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateAssociationStatusInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateDocument struct {
}
func (*awsAwsjson11_serializeOpUpdateDocument) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateDocument) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateDocumentInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateDocument")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateDocumentInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateDocumentDefaultVersion struct {
}
func (*awsAwsjson11_serializeOpUpdateDocumentDefaultVersion) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateDocumentDefaultVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateDocumentDefaultVersionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateDocumentDefaultVersion")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateDocumentDefaultVersionInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateDocumentMetadata struct {
}
func (*awsAwsjson11_serializeOpUpdateDocumentMetadata) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateDocumentMetadata) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateDocumentMetadataInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateDocumentMetadata")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateDocumentMetadataInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateMaintenanceWindow struct {
}
func (*awsAwsjson11_serializeOpUpdateMaintenanceWindow) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateMaintenanceWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateMaintenanceWindowInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateMaintenanceWindow")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateMaintenanceWindowTarget struct {
}
func (*awsAwsjson11_serializeOpUpdateMaintenanceWindowTarget) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateMaintenanceWindowTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateMaintenanceWindowTargetInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateMaintenanceWindowTarget")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowTargetInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateMaintenanceWindowTask struct {
}
func (*awsAwsjson11_serializeOpUpdateMaintenanceWindowTask) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateMaintenanceWindowTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateMaintenanceWindowTaskInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateMaintenanceWindowTask")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowTaskInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateManagedInstanceRole struct {
}
func (*awsAwsjson11_serializeOpUpdateManagedInstanceRole) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateManagedInstanceRole) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateManagedInstanceRoleInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateManagedInstanceRole")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateManagedInstanceRoleInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateOpsItem struct {
}
func (*awsAwsjson11_serializeOpUpdateOpsItem) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateOpsItem) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateOpsItemInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateOpsItem")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateOpsItemInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateOpsMetadata struct {
}
func (*awsAwsjson11_serializeOpUpdateOpsMetadata) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateOpsMetadata) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateOpsMetadataInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateOpsMetadata")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateOpsMetadataInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdatePatchBaseline struct {
}
func (*awsAwsjson11_serializeOpUpdatePatchBaseline) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdatePatchBaseline) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdatePatchBaselineInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdatePatchBaseline")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdatePatchBaselineInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateResourceDataSync struct {
}
func (*awsAwsjson11_serializeOpUpdateResourceDataSync) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateResourceDataSync) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateResourceDataSyncInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateResourceDataSync")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateResourceDataSyncInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
type awsAwsjson11_serializeOpUpdateServiceSetting struct {
}
func (*awsAwsjson11_serializeOpUpdateServiceSetting) ID() string {
return "OperationSerializer"
}
func (m *awsAwsjson11_serializeOpUpdateServiceSetting) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateServiceSettingInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
operationPath := "/"
if len(request.Request.URL.Path) == 0 {
request.Request.URL.Path = operationPath
} else {
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
request.Request.URL.Path += "/"
}
}
request.Request.Method = "POST"
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSSM.UpdateServiceSetting")
jsonEncoder := smithyjson.NewEncoder()
if err := awsAwsjson11_serializeOpDocumentUpdateServiceSettingInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsAwsjson11_serializeDocumentAccountIdList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentAccounts(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentAlarm(v *types.Alarm, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
return nil
}
func awsAwsjson11_serializeDocumentAlarmConfiguration(v *types.AlarmConfiguration, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Alarms != nil {
ok := object.Key("Alarms")
if err := awsAwsjson11_serializeDocumentAlarmList(v.Alarms, ok); err != nil {
return err
}
}
if v.IgnorePollAlarmFailure {
ok := object.Key("IgnorePollAlarmFailure")
ok.Boolean(v.IgnorePollAlarmFailure)
}
return nil
}
func awsAwsjson11_serializeDocumentAlarmList(v []types.Alarm, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentAlarm(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentAssociationExecutionFilter(v *types.AssociationExecutionFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("Key")
ok.String(string(v.Key))
}
if len(v.Type) > 0 {
ok := object.Key("Type")
ok.String(string(v.Type))
}
if v.Value != nil {
ok := object.Key("Value")
ok.String(*v.Value)
}
return nil
}
func awsAwsjson11_serializeDocumentAssociationExecutionFilterList(v []types.AssociationExecutionFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentAssociationExecutionFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentAssociationExecutionTargetsFilter(v *types.AssociationExecutionTargetsFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("Key")
ok.String(string(v.Key))
}
if v.Value != nil {
ok := object.Key("Value")
ok.String(*v.Value)
}
return nil
}
func awsAwsjson11_serializeDocumentAssociationExecutionTargetsFilterList(v []types.AssociationExecutionTargetsFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentAssociationExecutionTargetsFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentAssociationFilter(v *types.AssociationFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("key")
ok.String(string(v.Key))
}
if v.Value != nil {
ok := object.Key("value")
ok.String(*v.Value)
}
return nil
}
func awsAwsjson11_serializeDocumentAssociationFilterList(v []types.AssociationFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentAssociationFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentAssociationIdList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentAssociationStatus(v *types.AssociationStatus, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AdditionalInfo != nil {
ok := object.Key("AdditionalInfo")
ok.String(*v.AdditionalInfo)
}
if v.Date != nil {
ok := object.Key("Date")
ok.Double(smithytime.FormatEpochSeconds(*v.Date))
}
if v.Message != nil {
ok := object.Key("Message")
ok.String(*v.Message)
}
if len(v.Name) > 0 {
ok := object.Key("Name")
ok.String(string(v.Name))
}
return nil
}
func awsAwsjson11_serializeDocumentAttachmentsSource(v *types.AttachmentsSource, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("Key")
ok.String(string(v.Key))
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentAttachmentsSourceValues(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentAttachmentsSourceList(v []types.AttachmentsSource, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentAttachmentsSource(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentAttachmentsSourceValues(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentAutomationExecutionFilter(v *types.AutomationExecutionFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("Key")
ok.String(string(v.Key))
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentAutomationExecutionFilterValueList(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentAutomationExecutionFilterList(v []types.AutomationExecutionFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentAutomationExecutionFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentAutomationExecutionFilterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentAutomationParameterMap(v map[string][]string, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
if vv := v[key]; vv == nil {
continue
}
if err := awsAwsjson11_serializeDocumentAutomationParameterValueList(v[key], om); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentAutomationParameterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentBaselineOverride(v *types.BaselineOverride, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ApprovalRules != nil {
ok := object.Key("ApprovalRules")
if err := awsAwsjson11_serializeDocumentPatchRuleGroup(v.ApprovalRules, ok); err != nil {
return err
}
}
if v.ApprovedPatches != nil {
ok := object.Key("ApprovedPatches")
if err := awsAwsjson11_serializeDocumentPatchIdList(v.ApprovedPatches, ok); err != nil {
return err
}
}
if len(v.ApprovedPatchesComplianceLevel) > 0 {
ok := object.Key("ApprovedPatchesComplianceLevel")
ok.String(string(v.ApprovedPatchesComplianceLevel))
}
if v.ApprovedPatchesEnableNonSecurity {
ok := object.Key("ApprovedPatchesEnableNonSecurity")
ok.Boolean(v.ApprovedPatchesEnableNonSecurity)
}
if v.GlobalFilters != nil {
ok := object.Key("GlobalFilters")
if err := awsAwsjson11_serializeDocumentPatchFilterGroup(v.GlobalFilters, ok); err != nil {
return err
}
}
if len(v.OperatingSystem) > 0 {
ok := object.Key("OperatingSystem")
ok.String(string(v.OperatingSystem))
}
if v.RejectedPatches != nil {
ok := object.Key("RejectedPatches")
if err := awsAwsjson11_serializeDocumentPatchIdList(v.RejectedPatches, ok); err != nil {
return err
}
}
if len(v.RejectedPatchesAction) > 0 {
ok := object.Key("RejectedPatchesAction")
ok.String(string(v.RejectedPatchesAction))
}
if v.Sources != nil {
ok := object.Key("Sources")
if err := awsAwsjson11_serializeDocumentPatchSourceList(v.Sources, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentCalendarNameOrARNList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentCloudWatchOutputConfig(v *types.CloudWatchOutputConfig, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.CloudWatchLogGroupName != nil {
ok := object.Key("CloudWatchLogGroupName")
ok.String(*v.CloudWatchLogGroupName)
}
if v.CloudWatchOutputEnabled {
ok := object.Key("CloudWatchOutputEnabled")
ok.Boolean(v.CloudWatchOutputEnabled)
}
return nil
}
func awsAwsjson11_serializeDocumentCommandFilter(v *types.CommandFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("key")
ok.String(string(v.Key))
}
if v.Value != nil {
ok := object.Key("value")
ok.String(*v.Value)
}
return nil
}
func awsAwsjson11_serializeDocumentCommandFilterList(v []types.CommandFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentCommandFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentComplianceExecutionSummary(v *types.ComplianceExecutionSummary, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ExecutionId != nil {
ok := object.Key("ExecutionId")
ok.String(*v.ExecutionId)
}
if v.ExecutionTime != nil {
ok := object.Key("ExecutionTime")
ok.Double(smithytime.FormatEpochSeconds(*v.ExecutionTime))
}
if v.ExecutionType != nil {
ok := object.Key("ExecutionType")
ok.String(*v.ExecutionType)
}
return nil
}
func awsAwsjson11_serializeDocumentComplianceItemDetails(v map[string]string, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
om.String(v[key])
}
return nil
}
func awsAwsjson11_serializeDocumentComplianceItemEntry(v *types.ComplianceItemEntry, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Details != nil {
ok := object.Key("Details")
if err := awsAwsjson11_serializeDocumentComplianceItemDetails(v.Details, ok); err != nil {
return err
}
}
if v.Id != nil {
ok := object.Key("Id")
ok.String(*v.Id)
}
if len(v.Severity) > 0 {
ok := object.Key("Severity")
ok.String(string(v.Severity))
}
if len(v.Status) > 0 {
ok := object.Key("Status")
ok.String(string(v.Status))
}
if v.Title != nil {
ok := object.Key("Title")
ok.String(*v.Title)
}
return nil
}
func awsAwsjson11_serializeDocumentComplianceItemEntryList(v []types.ComplianceItemEntry, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentComplianceItemEntry(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentComplianceResourceIdList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentComplianceResourceTypeList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentComplianceStringFilter(v *types.ComplianceStringFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if len(v.Type) > 0 {
ok := object.Key("Type")
ok.String(string(v.Type))
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentComplianceStringFilterValueList(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentComplianceStringFilterList(v []types.ComplianceStringFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentComplianceStringFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentComplianceStringFilterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentCreateAssociationBatchRequestEntries(v []types.CreateAssociationBatchRequestEntry, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentCreateAssociationBatchRequestEntry(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentCreateAssociationBatchRequestEntry(v *types.CreateAssociationBatchRequestEntry, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AlarmConfiguration != nil {
ok := object.Key("AlarmConfiguration")
if err := awsAwsjson11_serializeDocumentAlarmConfiguration(v.AlarmConfiguration, ok); err != nil {
return err
}
}
if v.ApplyOnlyAtCronInterval {
ok := object.Key("ApplyOnlyAtCronInterval")
ok.Boolean(v.ApplyOnlyAtCronInterval)
}
if v.AssociationName != nil {
ok := object.Key("AssociationName")
ok.String(*v.AssociationName)
}
if v.AutomationTargetParameterName != nil {
ok := object.Key("AutomationTargetParameterName")
ok.String(*v.AutomationTargetParameterName)
}
if v.CalendarNames != nil {
ok := object.Key("CalendarNames")
if err := awsAwsjson11_serializeDocumentCalendarNameOrARNList(v.CalendarNames, ok); err != nil {
return err
}
}
if len(v.ComplianceSeverity) > 0 {
ok := object.Key("ComplianceSeverity")
ok.String(string(v.ComplianceSeverity))
}
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.MaxConcurrency != nil {
ok := object.Key("MaxConcurrency")
ok.String(*v.MaxConcurrency)
}
if v.MaxErrors != nil {
ok := object.Key("MaxErrors")
ok.String(*v.MaxErrors)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.OutputLocation != nil {
ok := object.Key("OutputLocation")
if err := awsAwsjson11_serializeDocumentInstanceAssociationOutputLocation(v.OutputLocation, ok); err != nil {
return err
}
}
if v.Parameters != nil {
ok := object.Key("Parameters")
if err := awsAwsjson11_serializeDocumentParameters(v.Parameters, ok); err != nil {
return err
}
}
if v.ScheduleExpression != nil {
ok := object.Key("ScheduleExpression")
ok.String(*v.ScheduleExpression)
}
if v.ScheduleOffset != nil {
ok := object.Key("ScheduleOffset")
ok.Integer(*v.ScheduleOffset)
}
if len(v.SyncCompliance) > 0 {
ok := object.Key("SyncCompliance")
ok.String(string(v.SyncCompliance))
}
if v.TargetLocations != nil {
ok := object.Key("TargetLocations")
if err := awsAwsjson11_serializeDocumentTargetLocations(v.TargetLocations, ok); err != nil {
return err
}
}
if v.TargetMaps != nil {
ok := object.Key("TargetMaps")
if err := awsAwsjson11_serializeDocumentTargetMaps(v.TargetMaps, ok); err != nil {
return err
}
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentDescribeActivationsFilter(v *types.DescribeActivationsFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.FilterKey) > 0 {
ok := object.Key("FilterKey")
ok.String(string(v.FilterKey))
}
if v.FilterValues != nil {
ok := object.Key("FilterValues")
if err := awsAwsjson11_serializeDocumentStringList(v.FilterValues, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentDescribeActivationsFilterList(v []types.DescribeActivationsFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentDescribeActivationsFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentDocumentFilter(v *types.DocumentFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("key")
ok.String(string(v.Key))
}
if v.Value != nil {
ok := object.Key("value")
ok.String(*v.Value)
}
return nil
}
func awsAwsjson11_serializeDocumentDocumentFilterList(v []types.DocumentFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentDocumentFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentDocumentKeyValuesFilter(v *types.DocumentKeyValuesFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentDocumentKeyValuesFilterValues(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentDocumentKeyValuesFilterList(v []types.DocumentKeyValuesFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentDocumentKeyValuesFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentDocumentKeyValuesFilterValues(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentDocumentRequires(v *types.DocumentRequires, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.RequireType != nil {
ok := object.Key("RequireType")
ok.String(*v.RequireType)
}
if v.Version != nil {
ok := object.Key("Version")
ok.String(*v.Version)
}
if v.VersionName != nil {
ok := object.Key("VersionName")
ok.String(*v.VersionName)
}
return nil
}
func awsAwsjson11_serializeDocumentDocumentRequiresList(v []types.DocumentRequires, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentDocumentRequires(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentDocumentReviewCommentList(v []types.DocumentReviewCommentSource, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentDocumentReviewCommentSource(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentDocumentReviewCommentSource(v *types.DocumentReviewCommentSource, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Content != nil {
ok := object.Key("Content")
ok.String(*v.Content)
}
if len(v.Type) > 0 {
ok := object.Key("Type")
ok.String(string(v.Type))
}
return nil
}
func awsAwsjson11_serializeDocumentDocumentReviews(v *types.DocumentReviews, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Action) > 0 {
ok := object.Key("Action")
ok.String(string(v.Action))
}
if v.Comment != nil {
ok := object.Key("Comment")
if err := awsAwsjson11_serializeDocumentDocumentReviewCommentList(v.Comment, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInstanceAssociationOutputLocation(v *types.InstanceAssociationOutputLocation, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.S3Location != nil {
ok := object.Key("S3Location")
if err := awsAwsjson11_serializeDocumentS3OutputLocation(v.S3Location, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInstanceIdList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentInstanceInformationFilter(v *types.InstanceInformationFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("key")
ok.String(string(v.Key))
}
if v.ValueSet != nil {
ok := object.Key("valueSet")
if err := awsAwsjson11_serializeDocumentInstanceInformationFilterValueSet(v.ValueSet, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInstanceInformationFilterList(v []types.InstanceInformationFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentInstanceInformationFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInstanceInformationFilterValueSet(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentInstanceInformationStringFilter(v *types.InstanceInformationStringFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentInstanceInformationFilterValueSet(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInstanceInformationStringFilterList(v []types.InstanceInformationStringFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentInstanceInformationStringFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInstancePatchStateFilter(v *types.InstancePatchStateFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if len(v.Type) > 0 {
ok := object.Key("Type")
ok.String(string(v.Type))
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentInstancePatchStateFilterValues(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInstancePatchStateFilterList(v []types.InstancePatchStateFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentInstancePatchStateFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInstancePatchStateFilterValues(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryAggregator(v *types.InventoryAggregator, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Aggregators != nil {
ok := object.Key("Aggregators")
if err := awsAwsjson11_serializeDocumentInventoryAggregatorList(v.Aggregators, ok); err != nil {
return err
}
}
if v.Expression != nil {
ok := object.Key("Expression")
ok.String(*v.Expression)
}
if v.Groups != nil {
ok := object.Key("Groups")
if err := awsAwsjson11_serializeDocumentInventoryGroupList(v.Groups, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryAggregatorList(v []types.InventoryAggregator, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentInventoryAggregator(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryFilter(v *types.InventoryFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if len(v.Type) > 0 {
ok := object.Key("Type")
ok.String(string(v.Type))
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentInventoryFilterValueList(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryFilterList(v []types.InventoryFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentInventoryFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryFilterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryGroup(v *types.InventoryGroup, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentInventoryFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryGroupList(v []types.InventoryGroup, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentInventoryGroup(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryItem(v *types.InventoryItem, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.CaptureTime != nil {
ok := object.Key("CaptureTime")
ok.String(*v.CaptureTime)
}
if v.Content != nil {
ok := object.Key("Content")
if err := awsAwsjson11_serializeDocumentInventoryItemEntryList(v.Content, ok); err != nil {
return err
}
}
if v.ContentHash != nil {
ok := object.Key("ContentHash")
ok.String(*v.ContentHash)
}
if v.Context != nil {
ok := object.Key("Context")
if err := awsAwsjson11_serializeDocumentInventoryItemContentContext(v.Context, ok); err != nil {
return err
}
}
if v.SchemaVersion != nil {
ok := object.Key("SchemaVersion")
ok.String(*v.SchemaVersion)
}
if v.TypeName != nil {
ok := object.Key("TypeName")
ok.String(*v.TypeName)
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryItemContentContext(v map[string]string, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
om.String(v[key])
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryItemEntry(v map[string]string, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
om.String(v[key])
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryItemEntryList(v []map[string]string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if vv := v[i]; vv == nil {
continue
}
if err := awsAwsjson11_serializeDocumentInventoryItemEntry(v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentInventoryItemList(v []types.InventoryItem, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentInventoryItem(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentKeyList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentLoggingInfo(v *types.LoggingInfo, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.S3BucketName != nil {
ok := object.Key("S3BucketName")
ok.String(*v.S3BucketName)
}
if v.S3KeyPrefix != nil {
ok := object.Key("S3KeyPrefix")
ok.String(*v.S3KeyPrefix)
}
if v.S3Region != nil {
ok := object.Key("S3Region")
ok.String(*v.S3Region)
}
return nil
}
func awsAwsjson11_serializeDocumentMaintenanceWindowAutomationParameters(v *types.MaintenanceWindowAutomationParameters, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.Parameters != nil {
ok := object.Key("Parameters")
if err := awsAwsjson11_serializeDocumentAutomationParameterMap(v.Parameters, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentMaintenanceWindowFilter(v *types.MaintenanceWindowFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowFilterValues(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentMaintenanceWindowFilterList(v []types.MaintenanceWindowFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentMaintenanceWindowFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentMaintenanceWindowFilterValues(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentMaintenanceWindowLambdaParameters(v *types.MaintenanceWindowLambdaParameters, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ClientContext != nil {
ok := object.Key("ClientContext")
ok.String(*v.ClientContext)
}
if v.Payload != nil {
ok := object.Key("Payload")
ok.Base64EncodeBytes(v.Payload)
}
if v.Qualifier != nil {
ok := object.Key("Qualifier")
ok.String(*v.Qualifier)
}
return nil
}
func awsAwsjson11_serializeDocumentMaintenanceWindowRunCommandParameters(v *types.MaintenanceWindowRunCommandParameters, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.CloudWatchOutputConfig != nil {
ok := object.Key("CloudWatchOutputConfig")
if err := awsAwsjson11_serializeDocumentCloudWatchOutputConfig(v.CloudWatchOutputConfig, ok); err != nil {
return err
}
}
if v.Comment != nil {
ok := object.Key("Comment")
ok.String(*v.Comment)
}
if v.DocumentHash != nil {
ok := object.Key("DocumentHash")
ok.String(*v.DocumentHash)
}
if len(v.DocumentHashType) > 0 {
ok := object.Key("DocumentHashType")
ok.String(string(v.DocumentHashType))
}
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.NotificationConfig != nil {
ok := object.Key("NotificationConfig")
if err := awsAwsjson11_serializeDocumentNotificationConfig(v.NotificationConfig, ok); err != nil {
return err
}
}
if v.OutputS3BucketName != nil {
ok := object.Key("OutputS3BucketName")
ok.String(*v.OutputS3BucketName)
}
if v.OutputS3KeyPrefix != nil {
ok := object.Key("OutputS3KeyPrefix")
ok.String(*v.OutputS3KeyPrefix)
}
if v.Parameters != nil {
ok := object.Key("Parameters")
if err := awsAwsjson11_serializeDocumentParameters(v.Parameters, ok); err != nil {
return err
}
}
if v.ServiceRoleArn != nil {
ok := object.Key("ServiceRoleArn")
ok.String(*v.ServiceRoleArn)
}
if v.TimeoutSeconds != nil {
ok := object.Key("TimeoutSeconds")
ok.Integer(*v.TimeoutSeconds)
}
return nil
}
func awsAwsjson11_serializeDocumentMaintenanceWindowStepFunctionsParameters(v *types.MaintenanceWindowStepFunctionsParameters, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Input != nil {
ok := object.Key("Input")
ok.String(*v.Input)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
return nil
}
func awsAwsjson11_serializeDocumentMaintenanceWindowTaskInvocationParameters(v *types.MaintenanceWindowTaskInvocationParameters, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Automation != nil {
ok := object.Key("Automation")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowAutomationParameters(v.Automation, ok); err != nil {
return err
}
}
if v.Lambda != nil {
ok := object.Key("Lambda")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowLambdaParameters(v.Lambda, ok); err != nil {
return err
}
}
if v.RunCommand != nil {
ok := object.Key("RunCommand")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowRunCommandParameters(v.RunCommand, ok); err != nil {
return err
}
}
if v.StepFunctions != nil {
ok := object.Key("StepFunctions")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowStepFunctionsParameters(v.StepFunctions, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameters(v map[string]types.MaintenanceWindowTaskParameterValueExpression, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
mapVar := v[key]
if err := awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameterValueExpression(&mapVar, om); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameterValueExpression(v *types.MaintenanceWindowTaskParameterValueExpression, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameterValueList(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentMetadataKeysToDeleteList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentMetadataMap(v map[string]types.MetadataValue, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
mapVar := v[key]
if err := awsAwsjson11_serializeDocumentMetadataValue(&mapVar, om); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentMetadataValue(v *types.MetadataValue, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Value != nil {
ok := object.Key("Value")
ok.String(*v.Value)
}
return nil
}
func awsAwsjson11_serializeDocumentNotificationConfig(v *types.NotificationConfig, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.NotificationArn != nil {
ok := object.Key("NotificationArn")
ok.String(*v.NotificationArn)
}
if v.NotificationEvents != nil {
ok := object.Key("NotificationEvents")
if err := awsAwsjson11_serializeDocumentNotificationEventList(v.NotificationEvents, ok); err != nil {
return err
}
}
if len(v.NotificationType) > 0 {
ok := object.Key("NotificationType")
ok.String(string(v.NotificationType))
}
return nil
}
func awsAwsjson11_serializeDocumentNotificationEventList(v []types.NotificationEvent, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(string(v[i]))
}
return nil
}
func awsAwsjson11_serializeDocumentOpsAggregator(v *types.OpsAggregator, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Aggregators != nil {
ok := object.Key("Aggregators")
if err := awsAwsjson11_serializeDocumentOpsAggregatorList(v.Aggregators, ok); err != nil {
return err
}
}
if v.AggregatorType != nil {
ok := object.Key("AggregatorType")
ok.String(*v.AggregatorType)
}
if v.AttributeName != nil {
ok := object.Key("AttributeName")
ok.String(*v.AttributeName)
}
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentOpsFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.TypeName != nil {
ok := object.Key("TypeName")
ok.String(*v.TypeName)
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentOpsAggregatorValueMap(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsAggregatorList(v []types.OpsAggregator, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentOpsAggregator(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsAggregatorValueMap(v map[string]string, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
om.String(v[key])
}
return nil
}
func awsAwsjson11_serializeDocumentOpsFilter(v *types.OpsFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if len(v.Type) > 0 {
ok := object.Key("Type")
ok.String(string(v.Type))
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentOpsFilterValueList(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsFilterList(v []types.OpsFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentOpsFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsFilterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemDataValue(v *types.OpsItemDataValue, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Type) > 0 {
ok := object.Key("Type")
ok.String(string(v.Type))
}
if v.Value != nil {
ok := object.Key("Value")
ok.String(*v.Value)
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemEventFilter(v *types.OpsItemEventFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("Key")
ok.String(string(v.Key))
}
if len(v.Operator) > 0 {
ok := object.Key("Operator")
ok.String(string(v.Operator))
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentOpsItemEventFilterValues(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemEventFilters(v []types.OpsItemEventFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentOpsItemEventFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemEventFilterValues(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemFilter(v *types.OpsItemFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("Key")
ok.String(string(v.Key))
}
if len(v.Operator) > 0 {
ok := object.Key("Operator")
ok.String(string(v.Operator))
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentOpsItemFilterValues(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemFilters(v []types.OpsItemFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentOpsItemFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemFilterValues(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemNotification(v *types.OpsItemNotification, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Arn != nil {
ok := object.Key("Arn")
ok.String(*v.Arn)
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemNotifications(v []types.OpsItemNotification, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentOpsItemNotification(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemOperationalData(v map[string]types.OpsItemDataValue, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
mapVar := v[key]
if err := awsAwsjson11_serializeDocumentOpsItemDataValue(&mapVar, om); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemOpsDataKeysList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemRelatedItemsFilter(v *types.OpsItemRelatedItemsFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("Key")
ok.String(string(v.Key))
}
if len(v.Operator) > 0 {
ok := object.Key("Operator")
ok.String(string(v.Operator))
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentOpsItemRelatedItemsFilterValues(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemRelatedItemsFilters(v []types.OpsItemRelatedItemsFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentOpsItemRelatedItemsFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsItemRelatedItemsFilterValues(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentOpsMetadataFilter(v *types.OpsMetadataFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentOpsMetadataFilterValueList(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsMetadataFilterList(v []types.OpsMetadataFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentOpsMetadataFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentOpsMetadataFilterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentOpsResultAttribute(v *types.OpsResultAttribute, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.TypeName != nil {
ok := object.Key("TypeName")
ok.String(*v.TypeName)
}
return nil
}
func awsAwsjson11_serializeDocumentOpsResultAttributeList(v []types.OpsResultAttribute, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentOpsResultAttribute(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentParameterLabelList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentParameterNameList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentParameters(v map[string][]string, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
if vv := v[key]; vv == nil {
continue
}
if err := awsAwsjson11_serializeDocumentParameterValueList(v[key], om); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentParametersFilter(v *types.ParametersFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("Key")
ok.String(string(v.Key))
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentParametersFilterValueList(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentParametersFilterList(v []types.ParametersFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentParametersFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentParametersFilterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentParameterStringFilter(v *types.ParameterStringFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if v.Option != nil {
ok := object.Key("Option")
ok.String(*v.Option)
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentParameterStringFilterValueList(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentParameterStringFilterList(v []types.ParameterStringFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentParameterStringFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentParameterStringFilterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentParameterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentPatchFilter(v *types.PatchFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("Key")
ok.String(string(v.Key))
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentPatchFilterValueList(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentPatchFilterGroup(v *types.PatchFilterGroup, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.PatchFilters != nil {
ok := object.Key("PatchFilters")
if err := awsAwsjson11_serializeDocumentPatchFilterList(v.PatchFilters, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentPatchFilterList(v []types.PatchFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentPatchFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentPatchFilterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentPatchIdList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentPatchOrchestratorFilter(v *types.PatchOrchestratorFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentPatchOrchestratorFilterValues(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentPatchOrchestratorFilterList(v []types.PatchOrchestratorFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentPatchOrchestratorFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentPatchOrchestratorFilterValues(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentPatchRule(v *types.PatchRule, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ApproveAfterDays != nil {
ok := object.Key("ApproveAfterDays")
ok.Integer(*v.ApproveAfterDays)
}
if v.ApproveUntilDate != nil {
ok := object.Key("ApproveUntilDate")
ok.String(*v.ApproveUntilDate)
}
if len(v.ComplianceLevel) > 0 {
ok := object.Key("ComplianceLevel")
ok.String(string(v.ComplianceLevel))
}
if v.EnableNonSecurity != nil {
ok := object.Key("EnableNonSecurity")
ok.Boolean(*v.EnableNonSecurity)
}
if v.PatchFilterGroup != nil {
ok := object.Key("PatchFilterGroup")
if err := awsAwsjson11_serializeDocumentPatchFilterGroup(v.PatchFilterGroup, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentPatchRuleGroup(v *types.PatchRuleGroup, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.PatchRules != nil {
ok := object.Key("PatchRules")
if err := awsAwsjson11_serializeDocumentPatchRuleList(v.PatchRules, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentPatchRuleList(v []types.PatchRule, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentPatchRule(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentPatchSource(v *types.PatchSource, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Configuration != nil {
ok := object.Key("Configuration")
ok.String(*v.Configuration)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.Products != nil {
ok := object.Key("Products")
if err := awsAwsjson11_serializeDocumentPatchSourceProductList(v.Products, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentPatchSourceList(v []types.PatchSource, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentPatchSource(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentPatchSourceProductList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentRegions(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentRegistrationMetadataItem(v *types.RegistrationMetadataItem, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if v.Value != nil {
ok := object.Key("Value")
ok.String(*v.Value)
}
return nil
}
func awsAwsjson11_serializeDocumentRegistrationMetadataList(v []types.RegistrationMetadataItem, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentRegistrationMetadataItem(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentRelatedOpsItem(v *types.RelatedOpsItem, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.OpsItemId != nil {
ok := object.Key("OpsItemId")
ok.String(*v.OpsItemId)
}
return nil
}
func awsAwsjson11_serializeDocumentRelatedOpsItems(v []types.RelatedOpsItem, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentRelatedOpsItem(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentResourceDataSyncAwsOrganizationsSource(v *types.ResourceDataSyncAwsOrganizationsSource, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.OrganizationalUnits != nil {
ok := object.Key("OrganizationalUnits")
if err := awsAwsjson11_serializeDocumentResourceDataSyncOrganizationalUnitList(v.OrganizationalUnits, ok); err != nil {
return err
}
}
if v.OrganizationSourceType != nil {
ok := object.Key("OrganizationSourceType")
ok.String(*v.OrganizationSourceType)
}
return nil
}
func awsAwsjson11_serializeDocumentResourceDataSyncDestinationDataSharing(v *types.ResourceDataSyncDestinationDataSharing, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DestinationDataSharingType != nil {
ok := object.Key("DestinationDataSharingType")
ok.String(*v.DestinationDataSharingType)
}
return nil
}
func awsAwsjson11_serializeDocumentResourceDataSyncOrganizationalUnit(v *types.ResourceDataSyncOrganizationalUnit, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.OrganizationalUnitId != nil {
ok := object.Key("OrganizationalUnitId")
ok.String(*v.OrganizationalUnitId)
}
return nil
}
func awsAwsjson11_serializeDocumentResourceDataSyncOrganizationalUnitList(v []types.ResourceDataSyncOrganizationalUnit, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentResourceDataSyncOrganizationalUnit(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentResourceDataSyncS3Destination(v *types.ResourceDataSyncS3Destination, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AWSKMSKeyARN != nil {
ok := object.Key("AWSKMSKeyARN")
ok.String(*v.AWSKMSKeyARN)
}
if v.BucketName != nil {
ok := object.Key("BucketName")
ok.String(*v.BucketName)
}
if v.DestinationDataSharing != nil {
ok := object.Key("DestinationDataSharing")
if err := awsAwsjson11_serializeDocumentResourceDataSyncDestinationDataSharing(v.DestinationDataSharing, ok); err != nil {
return err
}
}
if v.Prefix != nil {
ok := object.Key("Prefix")
ok.String(*v.Prefix)
}
if v.Region != nil {
ok := object.Key("Region")
ok.String(*v.Region)
}
if len(v.SyncFormat) > 0 {
ok := object.Key("SyncFormat")
ok.String(string(v.SyncFormat))
}
return nil
}
func awsAwsjson11_serializeDocumentResourceDataSyncSource(v *types.ResourceDataSyncSource, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AwsOrganizationsSource != nil {
ok := object.Key("AwsOrganizationsSource")
if err := awsAwsjson11_serializeDocumentResourceDataSyncAwsOrganizationsSource(v.AwsOrganizationsSource, ok); err != nil {
return err
}
}
if v.EnableAllOpsDataSources {
ok := object.Key("EnableAllOpsDataSources")
ok.Boolean(v.EnableAllOpsDataSources)
}
if v.IncludeFutureRegions {
ok := object.Key("IncludeFutureRegions")
ok.Boolean(v.IncludeFutureRegions)
}
if v.SourceRegions != nil {
ok := object.Key("SourceRegions")
if err := awsAwsjson11_serializeDocumentResourceDataSyncSourceRegionList(v.SourceRegions, ok); err != nil {
return err
}
}
if v.SourceType != nil {
ok := object.Key("SourceType")
ok.String(*v.SourceType)
}
return nil
}
func awsAwsjson11_serializeDocumentResourceDataSyncSourceRegionList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentResultAttribute(v *types.ResultAttribute, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.TypeName != nil {
ok := object.Key("TypeName")
ok.String(*v.TypeName)
}
return nil
}
func awsAwsjson11_serializeDocumentResultAttributeList(v []types.ResultAttribute, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentResultAttribute(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentRunbook(v *types.Runbook, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DocumentName != nil {
ok := object.Key("DocumentName")
ok.String(*v.DocumentName)
}
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.MaxConcurrency != nil {
ok := object.Key("MaxConcurrency")
ok.String(*v.MaxConcurrency)
}
if v.MaxErrors != nil {
ok := object.Key("MaxErrors")
ok.String(*v.MaxErrors)
}
if v.Parameters != nil {
ok := object.Key("Parameters")
if err := awsAwsjson11_serializeDocumentAutomationParameterMap(v.Parameters, ok); err != nil {
return err
}
}
if v.TargetLocations != nil {
ok := object.Key("TargetLocations")
if err := awsAwsjson11_serializeDocumentTargetLocations(v.TargetLocations, ok); err != nil {
return err
}
}
if v.TargetMaps != nil {
ok := object.Key("TargetMaps")
if err := awsAwsjson11_serializeDocumentTargetMaps(v.TargetMaps, ok); err != nil {
return err
}
}
if v.TargetParameterName != nil {
ok := object.Key("TargetParameterName")
ok.String(*v.TargetParameterName)
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentRunbooks(v []types.Runbook, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentRunbook(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentS3OutputLocation(v *types.S3OutputLocation, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.OutputS3BucketName != nil {
ok := object.Key("OutputS3BucketName")
ok.String(*v.OutputS3BucketName)
}
if v.OutputS3KeyPrefix != nil {
ok := object.Key("OutputS3KeyPrefix")
ok.String(*v.OutputS3KeyPrefix)
}
if v.OutputS3Region != nil {
ok := object.Key("OutputS3Region")
ok.String(*v.OutputS3Region)
}
return nil
}
func awsAwsjson11_serializeDocumentSessionFilter(v *types.SessionFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("key")
ok.String(string(v.Key))
}
if v.Value != nil {
ok := object.Key("value")
ok.String(*v.Value)
}
return nil
}
func awsAwsjson11_serializeDocumentSessionFilterList(v []types.SessionFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentSessionFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentSessionManagerParameters(v map[string][]string, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
if vv := v[key]; vv == nil {
continue
}
if err := awsAwsjson11_serializeDocumentSessionManagerParameterValueList(v[key], om); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentSessionManagerParameterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentStepExecutionFilter(v *types.StepExecutionFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Key) > 0 {
ok := object.Key("Key")
ok.String(string(v.Key))
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentStepExecutionFilterValueList(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentStepExecutionFilterList(v []types.StepExecutionFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentStepExecutionFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentStepExecutionFilterValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if v.Value != nil {
ok := object.Key("Value")
ok.String(*v.Value)
}
return nil
}
func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentTarget(v *types.Target, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Key != nil {
ok := object.Key("Key")
ok.String(*v.Key)
}
if v.Values != nil {
ok := object.Key("Values")
if err := awsAwsjson11_serializeDocumentTargetValues(v.Values, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentTargetLocation(v *types.TargetLocation, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Accounts != nil {
ok := object.Key("Accounts")
if err := awsAwsjson11_serializeDocumentAccounts(v.Accounts, ok); err != nil {
return err
}
}
if v.ExecutionRoleName != nil {
ok := object.Key("ExecutionRoleName")
ok.String(*v.ExecutionRoleName)
}
if v.Regions != nil {
ok := object.Key("Regions")
if err := awsAwsjson11_serializeDocumentRegions(v.Regions, ok); err != nil {
return err
}
}
if v.TargetLocationAlarmConfiguration != nil {
ok := object.Key("TargetLocationAlarmConfiguration")
if err := awsAwsjson11_serializeDocumentAlarmConfiguration(v.TargetLocationAlarmConfiguration, ok); err != nil {
return err
}
}
if v.TargetLocationMaxConcurrency != nil {
ok := object.Key("TargetLocationMaxConcurrency")
ok.String(*v.TargetLocationMaxConcurrency)
}
if v.TargetLocationMaxErrors != nil {
ok := object.Key("TargetLocationMaxErrors")
ok.String(*v.TargetLocationMaxErrors)
}
return nil
}
func awsAwsjson11_serializeDocumentTargetLocations(v []types.TargetLocation, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentTargetLocation(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentTargetMap(v map[string][]string, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
if vv := v[key]; vv == nil {
continue
}
if err := awsAwsjson11_serializeDocumentTargetMapValueList(v[key], om); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentTargetMaps(v []map[string][]string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if vv := v[i]; vv == nil {
continue
}
if err := awsAwsjson11_serializeDocumentTargetMap(v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentTargetMapValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeDocumentTargets(v []types.Target, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsAwsjson11_serializeDocumentTarget(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeDocumentTargetValues(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsAwsjson11_serializeOpDocumentAddTagsToResourceInput(v *AddTagsToResourceInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ResourceId != nil {
ok := object.Key("ResourceId")
ok.String(*v.ResourceId)
}
if len(v.ResourceType) > 0 {
ok := object.Key("ResourceType")
ok.String(string(v.ResourceType))
}
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentAssociateOpsItemRelatedItemInput(v *AssociateOpsItemRelatedItemInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AssociationType != nil {
ok := object.Key("AssociationType")
ok.String(*v.AssociationType)
}
if v.OpsItemId != nil {
ok := object.Key("OpsItemId")
ok.String(*v.OpsItemId)
}
if v.ResourceType != nil {
ok := object.Key("ResourceType")
ok.String(*v.ResourceType)
}
if v.ResourceUri != nil {
ok := object.Key("ResourceUri")
ok.String(*v.ResourceUri)
}
return nil
}
func awsAwsjson11_serializeOpDocumentCancelCommandInput(v *CancelCommandInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.CommandId != nil {
ok := object.Key("CommandId")
ok.String(*v.CommandId)
}
if v.InstanceIds != nil {
ok := object.Key("InstanceIds")
if err := awsAwsjson11_serializeDocumentInstanceIdList(v.InstanceIds, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentCancelMaintenanceWindowExecutionInput(v *CancelMaintenanceWindowExecutionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.WindowExecutionId != nil {
ok := object.Key("WindowExecutionId")
ok.String(*v.WindowExecutionId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentCreateActivationInput(v *CreateActivationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DefaultInstanceName != nil {
ok := object.Key("DefaultInstanceName")
ok.String(*v.DefaultInstanceName)
}
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
if v.ExpirationDate != nil {
ok := object.Key("ExpirationDate")
ok.Double(smithytime.FormatEpochSeconds(*v.ExpirationDate))
}
if v.IamRole != nil {
ok := object.Key("IamRole")
ok.String(*v.IamRole)
}
if v.RegistrationLimit != nil {
ok := object.Key("RegistrationLimit")
ok.Integer(*v.RegistrationLimit)
}
if v.RegistrationMetadata != nil {
ok := object.Key("RegistrationMetadata")
if err := awsAwsjson11_serializeDocumentRegistrationMetadataList(v.RegistrationMetadata, ok); err != nil {
return err
}
}
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentCreateAssociationBatchInput(v *CreateAssociationBatchInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Entries != nil {
ok := object.Key("Entries")
if err := awsAwsjson11_serializeDocumentCreateAssociationBatchRequestEntries(v.Entries, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentCreateAssociationInput(v *CreateAssociationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AlarmConfiguration != nil {
ok := object.Key("AlarmConfiguration")
if err := awsAwsjson11_serializeDocumentAlarmConfiguration(v.AlarmConfiguration, ok); err != nil {
return err
}
}
if v.ApplyOnlyAtCronInterval {
ok := object.Key("ApplyOnlyAtCronInterval")
ok.Boolean(v.ApplyOnlyAtCronInterval)
}
if v.AssociationName != nil {
ok := object.Key("AssociationName")
ok.String(*v.AssociationName)
}
if v.AutomationTargetParameterName != nil {
ok := object.Key("AutomationTargetParameterName")
ok.String(*v.AutomationTargetParameterName)
}
if v.CalendarNames != nil {
ok := object.Key("CalendarNames")
if err := awsAwsjson11_serializeDocumentCalendarNameOrARNList(v.CalendarNames, ok); err != nil {
return err
}
}
if len(v.ComplianceSeverity) > 0 {
ok := object.Key("ComplianceSeverity")
ok.String(string(v.ComplianceSeverity))
}
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.MaxConcurrency != nil {
ok := object.Key("MaxConcurrency")
ok.String(*v.MaxConcurrency)
}
if v.MaxErrors != nil {
ok := object.Key("MaxErrors")
ok.String(*v.MaxErrors)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.OutputLocation != nil {
ok := object.Key("OutputLocation")
if err := awsAwsjson11_serializeDocumentInstanceAssociationOutputLocation(v.OutputLocation, ok); err != nil {
return err
}
}
if v.Parameters != nil {
ok := object.Key("Parameters")
if err := awsAwsjson11_serializeDocumentParameters(v.Parameters, ok); err != nil {
return err
}
}
if v.ScheduleExpression != nil {
ok := object.Key("ScheduleExpression")
ok.String(*v.ScheduleExpression)
}
if v.ScheduleOffset != nil {
ok := object.Key("ScheduleOffset")
ok.Integer(*v.ScheduleOffset)
}
if len(v.SyncCompliance) > 0 {
ok := object.Key("SyncCompliance")
ok.String(string(v.SyncCompliance))
}
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
return err
}
}
if v.TargetLocations != nil {
ok := object.Key("TargetLocations")
if err := awsAwsjson11_serializeDocumentTargetLocations(v.TargetLocations, ok); err != nil {
return err
}
}
if v.TargetMaps != nil {
ok := object.Key("TargetMaps")
if err := awsAwsjson11_serializeDocumentTargetMaps(v.TargetMaps, ok); err != nil {
return err
}
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentCreateDocumentInput(v *CreateDocumentInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Attachments != nil {
ok := object.Key("Attachments")
if err := awsAwsjson11_serializeDocumentAttachmentsSourceList(v.Attachments, ok); err != nil {
return err
}
}
if v.Content != nil {
ok := object.Key("Content")
ok.String(*v.Content)
}
if v.DisplayName != nil {
ok := object.Key("DisplayName")
ok.String(*v.DisplayName)
}
if len(v.DocumentFormat) > 0 {
ok := object.Key("DocumentFormat")
ok.String(string(v.DocumentFormat))
}
if len(v.DocumentType) > 0 {
ok := object.Key("DocumentType")
ok.String(string(v.DocumentType))
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.Requires != nil {
ok := object.Key("Requires")
if err := awsAwsjson11_serializeDocumentDocumentRequiresList(v.Requires, ok); err != nil {
return err
}
}
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
return err
}
}
if v.TargetType != nil {
ok := object.Key("TargetType")
ok.String(*v.TargetType)
}
if v.VersionName != nil {
ok := object.Key("VersionName")
ok.String(*v.VersionName)
}
return nil
}
func awsAwsjson11_serializeOpDocumentCreateMaintenanceWindowInput(v *CreateMaintenanceWindowInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
{
ok := object.Key("AllowUnassociatedTargets")
ok.Boolean(v.AllowUnassociatedTargets)
}
if v.ClientToken != nil {
ok := object.Key("ClientToken")
ok.String(*v.ClientToken)
}
{
ok := object.Key("Cutoff")
ok.Integer(v.Cutoff)
}
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
{
ok := object.Key("Duration")
ok.Integer(v.Duration)
}
if v.EndDate != nil {
ok := object.Key("EndDate")
ok.String(*v.EndDate)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.Schedule != nil {
ok := object.Key("Schedule")
ok.String(*v.Schedule)
}
if v.ScheduleOffset != nil {
ok := object.Key("ScheduleOffset")
ok.Integer(*v.ScheduleOffset)
}
if v.ScheduleTimezone != nil {
ok := object.Key("ScheduleTimezone")
ok.String(*v.ScheduleTimezone)
}
if v.StartDate != nil {
ok := object.Key("StartDate")
ok.String(*v.StartDate)
}
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentCreateOpsItemInput(v *CreateOpsItemInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AccountId != nil {
ok := object.Key("AccountId")
ok.String(*v.AccountId)
}
if v.ActualEndTime != nil {
ok := object.Key("ActualEndTime")
ok.Double(smithytime.FormatEpochSeconds(*v.ActualEndTime))
}
if v.ActualStartTime != nil {
ok := object.Key("ActualStartTime")
ok.Double(smithytime.FormatEpochSeconds(*v.ActualStartTime))
}
if v.Category != nil {
ok := object.Key("Category")
ok.String(*v.Category)
}
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
if v.Notifications != nil {
ok := object.Key("Notifications")
if err := awsAwsjson11_serializeDocumentOpsItemNotifications(v.Notifications, ok); err != nil {
return err
}
}
if v.OperationalData != nil {
ok := object.Key("OperationalData")
if err := awsAwsjson11_serializeDocumentOpsItemOperationalData(v.OperationalData, ok); err != nil {
return err
}
}
if v.OpsItemType != nil {
ok := object.Key("OpsItemType")
ok.String(*v.OpsItemType)
}
if v.PlannedEndTime != nil {
ok := object.Key("PlannedEndTime")
ok.Double(smithytime.FormatEpochSeconds(*v.PlannedEndTime))
}
if v.PlannedStartTime != nil {
ok := object.Key("PlannedStartTime")
ok.Double(smithytime.FormatEpochSeconds(*v.PlannedStartTime))
}
if v.Priority != nil {
ok := object.Key("Priority")
ok.Integer(*v.Priority)
}
if v.RelatedOpsItems != nil {
ok := object.Key("RelatedOpsItems")
if err := awsAwsjson11_serializeDocumentRelatedOpsItems(v.RelatedOpsItems, ok); err != nil {
return err
}
}
if v.Severity != nil {
ok := object.Key("Severity")
ok.String(*v.Severity)
}
if v.Source != nil {
ok := object.Key("Source")
ok.String(*v.Source)
}
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
return err
}
}
if v.Title != nil {
ok := object.Key("Title")
ok.String(*v.Title)
}
return nil
}
func awsAwsjson11_serializeOpDocumentCreateOpsMetadataInput(v *CreateOpsMetadataInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Metadata != nil {
ok := object.Key("Metadata")
if err := awsAwsjson11_serializeDocumentMetadataMap(v.Metadata, ok); err != nil {
return err
}
}
if v.ResourceId != nil {
ok := object.Key("ResourceId")
ok.String(*v.ResourceId)
}
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentCreatePatchBaselineInput(v *CreatePatchBaselineInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ApprovalRules != nil {
ok := object.Key("ApprovalRules")
if err := awsAwsjson11_serializeDocumentPatchRuleGroup(v.ApprovalRules, ok); err != nil {
return err
}
}
if v.ApprovedPatches != nil {
ok := object.Key("ApprovedPatches")
if err := awsAwsjson11_serializeDocumentPatchIdList(v.ApprovedPatches, ok); err != nil {
return err
}
}
if len(v.ApprovedPatchesComplianceLevel) > 0 {
ok := object.Key("ApprovedPatchesComplianceLevel")
ok.String(string(v.ApprovedPatchesComplianceLevel))
}
if v.ApprovedPatchesEnableNonSecurity != nil {
ok := object.Key("ApprovedPatchesEnableNonSecurity")
ok.Boolean(*v.ApprovedPatchesEnableNonSecurity)
}
if v.ClientToken != nil {
ok := object.Key("ClientToken")
ok.String(*v.ClientToken)
}
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
if v.GlobalFilters != nil {
ok := object.Key("GlobalFilters")
if err := awsAwsjson11_serializeDocumentPatchFilterGroup(v.GlobalFilters, ok); err != nil {
return err
}
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if len(v.OperatingSystem) > 0 {
ok := object.Key("OperatingSystem")
ok.String(string(v.OperatingSystem))
}
if v.RejectedPatches != nil {
ok := object.Key("RejectedPatches")
if err := awsAwsjson11_serializeDocumentPatchIdList(v.RejectedPatches, ok); err != nil {
return err
}
}
if len(v.RejectedPatchesAction) > 0 {
ok := object.Key("RejectedPatchesAction")
ok.String(string(v.RejectedPatchesAction))
}
if v.Sources != nil {
ok := object.Key("Sources")
if err := awsAwsjson11_serializeDocumentPatchSourceList(v.Sources, ok); err != nil {
return err
}
}
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentCreateResourceDataSyncInput(v *CreateResourceDataSyncInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.S3Destination != nil {
ok := object.Key("S3Destination")
if err := awsAwsjson11_serializeDocumentResourceDataSyncS3Destination(v.S3Destination, ok); err != nil {
return err
}
}
if v.SyncName != nil {
ok := object.Key("SyncName")
ok.String(*v.SyncName)
}
if v.SyncSource != nil {
ok := object.Key("SyncSource")
if err := awsAwsjson11_serializeDocumentResourceDataSyncSource(v.SyncSource, ok); err != nil {
return err
}
}
if v.SyncType != nil {
ok := object.Key("SyncType")
ok.String(*v.SyncType)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeleteActivationInput(v *DeleteActivationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ActivationId != nil {
ok := object.Key("ActivationId")
ok.String(*v.ActivationId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeleteAssociationInput(v *DeleteAssociationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AssociationId != nil {
ok := object.Key("AssociationId")
ok.String(*v.AssociationId)
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeleteDocumentInput(v *DeleteDocumentInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.Force {
ok := object.Key("Force")
ok.Boolean(v.Force)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.VersionName != nil {
ok := object.Key("VersionName")
ok.String(*v.VersionName)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeleteInventoryInput(v *DeleteInventoryInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ClientToken != nil {
ok := object.Key("ClientToken")
ok.String(*v.ClientToken)
}
if v.DryRun {
ok := object.Key("DryRun")
ok.Boolean(v.DryRun)
}
if len(v.SchemaDeleteOption) > 0 {
ok := object.Key("SchemaDeleteOption")
ok.String(string(v.SchemaDeleteOption))
}
if v.TypeName != nil {
ok := object.Key("TypeName")
ok.String(*v.TypeName)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeleteMaintenanceWindowInput(v *DeleteMaintenanceWindowInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeleteOpsMetadataInput(v *DeleteOpsMetadataInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.OpsMetadataArn != nil {
ok := object.Key("OpsMetadataArn")
ok.String(*v.OpsMetadataArn)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeleteParameterInput(v *DeleteParameterInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeleteParametersInput(v *DeleteParametersInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Names != nil {
ok := object.Key("Names")
if err := awsAwsjson11_serializeDocumentParameterNameList(v.Names, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeletePatchBaselineInput(v *DeletePatchBaselineInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.BaselineId != nil {
ok := object.Key("BaselineId")
ok.String(*v.BaselineId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeleteResourceDataSyncInput(v *DeleteResourceDataSyncInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.SyncName != nil {
ok := object.Key("SyncName")
ok.String(*v.SyncName)
}
if v.SyncType != nil {
ok := object.Key("SyncType")
ok.String(*v.SyncType)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeleteResourcePolicyInput(v *DeleteResourcePolicyInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.PolicyHash != nil {
ok := object.Key("PolicyHash")
ok.String(*v.PolicyHash)
}
if v.PolicyId != nil {
ok := object.Key("PolicyId")
ok.String(*v.PolicyId)
}
if v.ResourceArn != nil {
ok := object.Key("ResourceArn")
ok.String(*v.ResourceArn)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeregisterManagedInstanceInput(v *DeregisterManagedInstanceInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeregisterPatchBaselineForPatchGroupInput(v *DeregisterPatchBaselineForPatchGroupInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.BaselineId != nil {
ok := object.Key("BaselineId")
ok.String(*v.BaselineId)
}
if v.PatchGroup != nil {
ok := object.Key("PatchGroup")
ok.String(*v.PatchGroup)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeregisterTargetFromMaintenanceWindowInput(v *DeregisterTargetFromMaintenanceWindowInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Safe != nil {
ok := object.Key("Safe")
ok.Boolean(*v.Safe)
}
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
if v.WindowTargetId != nil {
ok := object.Key("WindowTargetId")
ok.String(*v.WindowTargetId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDeregisterTaskFromMaintenanceWindowInput(v *DeregisterTaskFromMaintenanceWindowInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
if v.WindowTaskId != nil {
ok := object.Key("WindowTaskId")
ok.String(*v.WindowTaskId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeActivationsInput(v *DescribeActivationsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentDescribeActivationsFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeAssociationExecutionsInput(v *DescribeAssociationExecutionsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AssociationId != nil {
ok := object.Key("AssociationId")
ok.String(*v.AssociationId)
}
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentAssociationExecutionFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeAssociationExecutionTargetsInput(v *DescribeAssociationExecutionTargetsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AssociationId != nil {
ok := object.Key("AssociationId")
ok.String(*v.AssociationId)
}
if v.ExecutionId != nil {
ok := object.Key("ExecutionId")
ok.String(*v.ExecutionId)
}
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentAssociationExecutionTargetsFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeAssociationInput(v *DescribeAssociationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AssociationId != nil {
ok := object.Key("AssociationId")
ok.String(*v.AssociationId)
}
if v.AssociationVersion != nil {
ok := object.Key("AssociationVersion")
ok.String(*v.AssociationVersion)
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeAutomationExecutionsInput(v *DescribeAutomationExecutionsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentAutomationExecutionFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeAutomationStepExecutionsInput(v *DescribeAutomationStepExecutionsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AutomationExecutionId != nil {
ok := object.Key("AutomationExecutionId")
ok.String(*v.AutomationExecutionId)
}
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentStepExecutionFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.ReverseOrder != nil {
ok := object.Key("ReverseOrder")
ok.Boolean(*v.ReverseOrder)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeAvailablePatchesInput(v *DescribeAvailablePatchesInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentPatchOrchestratorFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeDocumentInput(v *DescribeDocumentInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.VersionName != nil {
ok := object.Key("VersionName")
ok.String(*v.VersionName)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeDocumentPermissionInput(v *DescribeDocumentPermissionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if len(v.PermissionType) > 0 {
ok := object.Key("PermissionType")
ok.String(string(v.PermissionType))
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeEffectiveInstanceAssociationsInput(v *DescribeEffectiveInstanceAssociationsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeEffectivePatchesForPatchBaselineInput(v *DescribeEffectivePatchesForPatchBaselineInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.BaselineId != nil {
ok := object.Key("BaselineId")
ok.String(*v.BaselineId)
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeInstanceAssociationsStatusInput(v *DescribeInstanceAssociationsStatusInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeInstanceInformationInput(v *DescribeInstanceInformationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentInstanceInformationStringFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.InstanceInformationFilterList != nil {
ok := object.Key("InstanceInformationFilterList")
if err := awsAwsjson11_serializeDocumentInstanceInformationFilterList(v.InstanceInformationFilterList, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeInstancePatchesInput(v *DescribeInstancePatchesInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentPatchOrchestratorFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeInstancePatchStatesForPatchGroupInput(v *DescribeInstancePatchStatesForPatchGroupInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentInstancePatchStateFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.PatchGroup != nil {
ok := object.Key("PatchGroup")
ok.String(*v.PatchGroup)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeInstancePatchStatesInput(v *DescribeInstancePatchStatesInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.InstanceIds != nil {
ok := object.Key("InstanceIds")
if err := awsAwsjson11_serializeDocumentInstanceIdList(v.InstanceIds, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeInventoryDeletionsInput(v *DescribeInventoryDeletionsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DeletionId != nil {
ok := object.Key("DeletionId")
ok.String(*v.DeletionId)
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionsInput(v *DescribeMaintenanceWindowExecutionsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionTaskInvocationsInput(v *DescribeMaintenanceWindowExecutionTaskInvocationsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.TaskId != nil {
ok := object.Key("TaskId")
ok.String(*v.TaskId)
}
if v.WindowExecutionId != nil {
ok := object.Key("WindowExecutionId")
ok.String(*v.WindowExecutionId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionTasksInput(v *DescribeMaintenanceWindowExecutionTasksInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.WindowExecutionId != nil {
ok := object.Key("WindowExecutionId")
ok.String(*v.WindowExecutionId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowScheduleInput(v *DescribeMaintenanceWindowScheduleInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentPatchOrchestratorFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if len(v.ResourceType) > 0 {
ok := object.Key("ResourceType")
ok.String(string(v.ResourceType))
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowsForTargetInput(v *DescribeMaintenanceWindowsForTargetInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if len(v.ResourceType) > 0 {
ok := object.Key("ResourceType")
ok.String(string(v.ResourceType))
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowsInput(v *DescribeMaintenanceWindowsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowTargetsInput(v *DescribeMaintenanceWindowTargetsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowTasksInput(v *DescribeMaintenanceWindowTasksInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeOpsItemsInput(v *DescribeOpsItemsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.OpsItemFilters != nil {
ok := object.Key("OpsItemFilters")
if err := awsAwsjson11_serializeDocumentOpsItemFilters(v.OpsItemFilters, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeParametersInput(v *DescribeParametersInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentParametersFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.ParameterFilters != nil {
ok := object.Key("ParameterFilters")
if err := awsAwsjson11_serializeDocumentParameterStringFilterList(v.ParameterFilters, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribePatchBaselinesInput(v *DescribePatchBaselinesInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentPatchOrchestratorFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribePatchGroupsInput(v *DescribePatchGroupsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentPatchOrchestratorFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribePatchGroupStateInput(v *DescribePatchGroupStateInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.PatchGroup != nil {
ok := object.Key("PatchGroup")
ok.String(*v.PatchGroup)
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribePatchPropertiesInput(v *DescribePatchPropertiesInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if len(v.OperatingSystem) > 0 {
ok := object.Key("OperatingSystem")
ok.String(string(v.OperatingSystem))
}
if len(v.PatchSet) > 0 {
ok := object.Key("PatchSet")
ok.String(string(v.PatchSet))
}
if len(v.Property) > 0 {
ok := object.Key("Property")
ok.String(string(v.Property))
}
return nil
}
func awsAwsjson11_serializeOpDocumentDescribeSessionsInput(v *DescribeSessionsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentSessionFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if len(v.State) > 0 {
ok := object.Key("State")
ok.String(string(v.State))
}
return nil
}
func awsAwsjson11_serializeOpDocumentDisassociateOpsItemRelatedItemInput(v *DisassociateOpsItemRelatedItemInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AssociationId != nil {
ok := object.Key("AssociationId")
ok.String(*v.AssociationId)
}
if v.OpsItemId != nil {
ok := object.Key("OpsItemId")
ok.String(*v.OpsItemId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetAutomationExecutionInput(v *GetAutomationExecutionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AutomationExecutionId != nil {
ok := object.Key("AutomationExecutionId")
ok.String(*v.AutomationExecutionId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetCalendarStateInput(v *GetCalendarStateInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AtTime != nil {
ok := object.Key("AtTime")
ok.String(*v.AtTime)
}
if v.CalendarNames != nil {
ok := object.Key("CalendarNames")
if err := awsAwsjson11_serializeDocumentCalendarNameOrARNList(v.CalendarNames, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetCommandInvocationInput(v *GetCommandInvocationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.CommandId != nil {
ok := object.Key("CommandId")
ok.String(*v.CommandId)
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.PluginName != nil {
ok := object.Key("PluginName")
ok.String(*v.PluginName)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetConnectionStatusInput(v *GetConnectionStatusInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Target != nil {
ok := object.Key("Target")
ok.String(*v.Target)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetDefaultPatchBaselineInput(v *GetDefaultPatchBaselineInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.OperatingSystem) > 0 {
ok := object.Key("OperatingSystem")
ok.String(string(v.OperatingSystem))
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetDeployablePatchSnapshotForInstanceInput(v *GetDeployablePatchSnapshotForInstanceInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.BaselineOverride != nil {
ok := object.Key("BaselineOverride")
if err := awsAwsjson11_serializeDocumentBaselineOverride(v.BaselineOverride, ok); err != nil {
return err
}
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.SnapshotId != nil {
ok := object.Key("SnapshotId")
ok.String(*v.SnapshotId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetDocumentInput(v *GetDocumentInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.DocumentFormat) > 0 {
ok := object.Key("DocumentFormat")
ok.String(string(v.DocumentFormat))
}
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.VersionName != nil {
ok := object.Key("VersionName")
ok.String(*v.VersionName)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetInventoryInput(v *GetInventoryInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Aggregators != nil {
ok := object.Key("Aggregators")
if err := awsAwsjson11_serializeDocumentInventoryAggregatorList(v.Aggregators, ok); err != nil {
return err
}
}
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentInventoryFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.ResultAttributes != nil {
ok := object.Key("ResultAttributes")
if err := awsAwsjson11_serializeDocumentResultAttributeList(v.ResultAttributes, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetInventorySchemaInput(v *GetInventorySchemaInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Aggregator {
ok := object.Key("Aggregator")
ok.Boolean(v.Aggregator)
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.SubType != nil {
ok := object.Key("SubType")
ok.Boolean(*v.SubType)
}
if v.TypeName != nil {
ok := object.Key("TypeName")
ok.String(*v.TypeName)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetMaintenanceWindowExecutionInput(v *GetMaintenanceWindowExecutionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.WindowExecutionId != nil {
ok := object.Key("WindowExecutionId")
ok.String(*v.WindowExecutionId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetMaintenanceWindowExecutionTaskInput(v *GetMaintenanceWindowExecutionTaskInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.TaskId != nil {
ok := object.Key("TaskId")
ok.String(*v.TaskId)
}
if v.WindowExecutionId != nil {
ok := object.Key("WindowExecutionId")
ok.String(*v.WindowExecutionId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetMaintenanceWindowExecutionTaskInvocationInput(v *GetMaintenanceWindowExecutionTaskInvocationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.InvocationId != nil {
ok := object.Key("InvocationId")
ok.String(*v.InvocationId)
}
if v.TaskId != nil {
ok := object.Key("TaskId")
ok.String(*v.TaskId)
}
if v.WindowExecutionId != nil {
ok := object.Key("WindowExecutionId")
ok.String(*v.WindowExecutionId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetMaintenanceWindowInput(v *GetMaintenanceWindowInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetMaintenanceWindowTaskInput(v *GetMaintenanceWindowTaskInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
if v.WindowTaskId != nil {
ok := object.Key("WindowTaskId")
ok.String(*v.WindowTaskId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetOpsItemInput(v *GetOpsItemInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.OpsItemArn != nil {
ok := object.Key("OpsItemArn")
ok.String(*v.OpsItemArn)
}
if v.OpsItemId != nil {
ok := object.Key("OpsItemId")
ok.String(*v.OpsItemId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetOpsMetadataInput(v *GetOpsMetadataInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.OpsMetadataArn != nil {
ok := object.Key("OpsMetadataArn")
ok.String(*v.OpsMetadataArn)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetOpsSummaryInput(v *GetOpsSummaryInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Aggregators != nil {
ok := object.Key("Aggregators")
if err := awsAwsjson11_serializeDocumentOpsAggregatorList(v.Aggregators, ok); err != nil {
return err
}
}
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentOpsFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.ResultAttributes != nil {
ok := object.Key("ResultAttributes")
if err := awsAwsjson11_serializeDocumentOpsResultAttributeList(v.ResultAttributes, ok); err != nil {
return err
}
}
if v.SyncName != nil {
ok := object.Key("SyncName")
ok.String(*v.SyncName)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetParameterHistoryInput(v *GetParameterHistoryInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.WithDecryption != nil {
ok := object.Key("WithDecryption")
ok.Boolean(*v.WithDecryption)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetParameterInput(v *GetParameterInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.WithDecryption != nil {
ok := object.Key("WithDecryption")
ok.Boolean(*v.WithDecryption)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetParametersByPathInput(v *GetParametersByPathInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.ParameterFilters != nil {
ok := object.Key("ParameterFilters")
if err := awsAwsjson11_serializeDocumentParameterStringFilterList(v.ParameterFilters, ok); err != nil {
return err
}
}
if v.Path != nil {
ok := object.Key("Path")
ok.String(*v.Path)
}
if v.Recursive != nil {
ok := object.Key("Recursive")
ok.Boolean(*v.Recursive)
}
if v.WithDecryption != nil {
ok := object.Key("WithDecryption")
ok.Boolean(*v.WithDecryption)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetParametersInput(v *GetParametersInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Names != nil {
ok := object.Key("Names")
if err := awsAwsjson11_serializeDocumentParameterNameList(v.Names, ok); err != nil {
return err
}
}
if v.WithDecryption != nil {
ok := object.Key("WithDecryption")
ok.Boolean(*v.WithDecryption)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetPatchBaselineForPatchGroupInput(v *GetPatchBaselineForPatchGroupInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.OperatingSystem) > 0 {
ok := object.Key("OperatingSystem")
ok.String(string(v.OperatingSystem))
}
if v.PatchGroup != nil {
ok := object.Key("PatchGroup")
ok.String(*v.PatchGroup)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetPatchBaselineInput(v *GetPatchBaselineInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.BaselineId != nil {
ok := object.Key("BaselineId")
ok.String(*v.BaselineId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetResourcePoliciesInput(v *GetResourcePoliciesInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.ResourceArn != nil {
ok := object.Key("ResourceArn")
ok.String(*v.ResourceArn)
}
return nil
}
func awsAwsjson11_serializeOpDocumentGetServiceSettingInput(v *GetServiceSettingInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.SettingId != nil {
ok := object.Key("SettingId")
ok.String(*v.SettingId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentLabelParameterVersionInput(v *LabelParameterVersionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Labels != nil {
ok := object.Key("Labels")
if err := awsAwsjson11_serializeDocumentParameterLabelList(v.Labels, ok); err != nil {
return err
}
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.ParameterVersion != nil {
ok := object.Key("ParameterVersion")
ok.Long(*v.ParameterVersion)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListAssociationsInput(v *ListAssociationsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AssociationFilterList != nil {
ok := object.Key("AssociationFilterList")
if err := awsAwsjson11_serializeDocumentAssociationFilterList(v.AssociationFilterList, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListAssociationVersionsInput(v *ListAssociationVersionsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AssociationId != nil {
ok := object.Key("AssociationId")
ok.String(*v.AssociationId)
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListCommandInvocationsInput(v *ListCommandInvocationsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.CommandId != nil {
ok := object.Key("CommandId")
ok.String(*v.CommandId)
}
if v.Details {
ok := object.Key("Details")
ok.Boolean(v.Details)
}
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentCommandFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListCommandsInput(v *ListCommandsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.CommandId != nil {
ok := object.Key("CommandId")
ok.String(*v.CommandId)
}
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentCommandFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListComplianceItemsInput(v *ListComplianceItemsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentComplianceStringFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.ResourceIds != nil {
ok := object.Key("ResourceIds")
if err := awsAwsjson11_serializeDocumentComplianceResourceIdList(v.ResourceIds, ok); err != nil {
return err
}
}
if v.ResourceTypes != nil {
ok := object.Key("ResourceTypes")
if err := awsAwsjson11_serializeDocumentComplianceResourceTypeList(v.ResourceTypes, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentListComplianceSummariesInput(v *ListComplianceSummariesInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentComplianceStringFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListDocumentMetadataHistoryInput(v *ListDocumentMetadataHistoryInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if len(v.Metadata) > 0 {
ok := object.Key("Metadata")
ok.String(string(v.Metadata))
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListDocumentsInput(v *ListDocumentsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DocumentFilterList != nil {
ok := object.Key("DocumentFilterList")
if err := awsAwsjson11_serializeDocumentDocumentFilterList(v.DocumentFilterList, ok); err != nil {
return err
}
}
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentDocumentKeyValuesFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListDocumentVersionsInput(v *ListDocumentVersionsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListInventoryEntriesInput(v *ListInventoryEntriesInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentInventoryFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.TypeName != nil {
ok := object.Key("TypeName")
ok.String(*v.TypeName)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListOpsItemEventsInput(v *ListOpsItemEventsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentOpsItemEventFilters(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListOpsItemRelatedItemsInput(v *ListOpsItemRelatedItemsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentOpsItemRelatedItemsFilters(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.OpsItemId != nil {
ok := object.Key("OpsItemId")
ok.String(*v.OpsItemId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListOpsMetadataInput(v *ListOpsMetadataInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentOpsMetadataFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListResourceComplianceSummariesInput(v *ListResourceComplianceSummariesInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
if err := awsAwsjson11_serializeDocumentComplianceStringFilterList(v.Filters, ok); err != nil {
return err
}
}
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListResourceDataSyncInput(v *ListResourceDataSyncInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.MaxResults != nil {
ok := object.Key("MaxResults")
ok.Integer(*v.MaxResults)
}
if v.NextToken != nil {
ok := object.Key("NextToken")
ok.String(*v.NextToken)
}
if v.SyncType != nil {
ok := object.Key("SyncType")
ok.String(*v.SyncType)
}
return nil
}
func awsAwsjson11_serializeOpDocumentListTagsForResourceInput(v *ListTagsForResourceInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ResourceId != nil {
ok := object.Key("ResourceId")
ok.String(*v.ResourceId)
}
if len(v.ResourceType) > 0 {
ok := object.Key("ResourceType")
ok.String(string(v.ResourceType))
}
return nil
}
func awsAwsjson11_serializeOpDocumentModifyDocumentPermissionInput(v *ModifyDocumentPermissionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AccountIdsToAdd != nil {
ok := object.Key("AccountIdsToAdd")
if err := awsAwsjson11_serializeDocumentAccountIdList(v.AccountIdsToAdd, ok); err != nil {
return err
}
}
if v.AccountIdsToRemove != nil {
ok := object.Key("AccountIdsToRemove")
if err := awsAwsjson11_serializeDocumentAccountIdList(v.AccountIdsToRemove, ok); err != nil {
return err
}
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if len(v.PermissionType) > 0 {
ok := object.Key("PermissionType")
ok.String(string(v.PermissionType))
}
if v.SharedDocumentVersion != nil {
ok := object.Key("SharedDocumentVersion")
ok.String(*v.SharedDocumentVersion)
}
return nil
}
func awsAwsjson11_serializeOpDocumentPutComplianceItemsInput(v *PutComplianceItemsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ComplianceType != nil {
ok := object.Key("ComplianceType")
ok.String(*v.ComplianceType)
}
if v.ExecutionSummary != nil {
ok := object.Key("ExecutionSummary")
if err := awsAwsjson11_serializeDocumentComplianceExecutionSummary(v.ExecutionSummary, ok); err != nil {
return err
}
}
if v.ItemContentHash != nil {
ok := object.Key("ItemContentHash")
ok.String(*v.ItemContentHash)
}
if v.Items != nil {
ok := object.Key("Items")
if err := awsAwsjson11_serializeDocumentComplianceItemEntryList(v.Items, ok); err != nil {
return err
}
}
if v.ResourceId != nil {
ok := object.Key("ResourceId")
ok.String(*v.ResourceId)
}
if v.ResourceType != nil {
ok := object.Key("ResourceType")
ok.String(*v.ResourceType)
}
if len(v.UploadType) > 0 {
ok := object.Key("UploadType")
ok.String(string(v.UploadType))
}
return nil
}
func awsAwsjson11_serializeOpDocumentPutInventoryInput(v *PutInventoryInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.Items != nil {
ok := object.Key("Items")
if err := awsAwsjson11_serializeDocumentInventoryItemList(v.Items, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentPutParameterInput(v *PutParameterInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AllowedPattern != nil {
ok := object.Key("AllowedPattern")
ok.String(*v.AllowedPattern)
}
if v.DataType != nil {
ok := object.Key("DataType")
ok.String(*v.DataType)
}
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
if v.KeyId != nil {
ok := object.Key("KeyId")
ok.String(*v.KeyId)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.Overwrite != nil {
ok := object.Key("Overwrite")
ok.Boolean(*v.Overwrite)
}
if v.Policies != nil {
ok := object.Key("Policies")
ok.String(*v.Policies)
}
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
return err
}
}
if len(v.Tier) > 0 {
ok := object.Key("Tier")
ok.String(string(v.Tier))
}
if len(v.Type) > 0 {
ok := object.Key("Type")
ok.String(string(v.Type))
}
if v.Value != nil {
ok := object.Key("Value")
ok.String(*v.Value)
}
return nil
}
func awsAwsjson11_serializeOpDocumentPutResourcePolicyInput(v *PutResourcePolicyInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Policy != nil {
ok := object.Key("Policy")
ok.String(*v.Policy)
}
if v.PolicyHash != nil {
ok := object.Key("PolicyHash")
ok.String(*v.PolicyHash)
}
if v.PolicyId != nil {
ok := object.Key("PolicyId")
ok.String(*v.PolicyId)
}
if v.ResourceArn != nil {
ok := object.Key("ResourceArn")
ok.String(*v.ResourceArn)
}
return nil
}
func awsAwsjson11_serializeOpDocumentRegisterDefaultPatchBaselineInput(v *RegisterDefaultPatchBaselineInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.BaselineId != nil {
ok := object.Key("BaselineId")
ok.String(*v.BaselineId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentRegisterPatchBaselineForPatchGroupInput(v *RegisterPatchBaselineForPatchGroupInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.BaselineId != nil {
ok := object.Key("BaselineId")
ok.String(*v.BaselineId)
}
if v.PatchGroup != nil {
ok := object.Key("PatchGroup")
ok.String(*v.PatchGroup)
}
return nil
}
func awsAwsjson11_serializeOpDocumentRegisterTargetWithMaintenanceWindowInput(v *RegisterTargetWithMaintenanceWindowInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ClientToken != nil {
ok := object.Key("ClientToken")
ok.String(*v.ClientToken)
}
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.OwnerInformation != nil {
ok := object.Key("OwnerInformation")
ok.String(*v.OwnerInformation)
}
if len(v.ResourceType) > 0 {
ok := object.Key("ResourceType")
ok.String(string(v.ResourceType))
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentRegisterTaskWithMaintenanceWindowInput(v *RegisterTaskWithMaintenanceWindowInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AlarmConfiguration != nil {
ok := object.Key("AlarmConfiguration")
if err := awsAwsjson11_serializeDocumentAlarmConfiguration(v.AlarmConfiguration, ok); err != nil {
return err
}
}
if v.ClientToken != nil {
ok := object.Key("ClientToken")
ok.String(*v.ClientToken)
}
if len(v.CutoffBehavior) > 0 {
ok := object.Key("CutoffBehavior")
ok.String(string(v.CutoffBehavior))
}
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
if v.LoggingInfo != nil {
ok := object.Key("LoggingInfo")
if err := awsAwsjson11_serializeDocumentLoggingInfo(v.LoggingInfo, ok); err != nil {
return err
}
}
if v.MaxConcurrency != nil {
ok := object.Key("MaxConcurrency")
ok.String(*v.MaxConcurrency)
}
if v.MaxErrors != nil {
ok := object.Key("MaxErrors")
ok.String(*v.MaxErrors)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.Priority != nil {
ok := object.Key("Priority")
ok.Integer(*v.Priority)
}
if v.ServiceRoleArn != nil {
ok := object.Key("ServiceRoleArn")
ok.String(*v.ServiceRoleArn)
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
if v.TaskArn != nil {
ok := object.Key("TaskArn")
ok.String(*v.TaskArn)
}
if v.TaskInvocationParameters != nil {
ok := object.Key("TaskInvocationParameters")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowTaskInvocationParameters(v.TaskInvocationParameters, ok); err != nil {
return err
}
}
if v.TaskParameters != nil {
ok := object.Key("TaskParameters")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameters(v.TaskParameters, ok); err != nil {
return err
}
}
if len(v.TaskType) > 0 {
ok := object.Key("TaskType")
ok.String(string(v.TaskType))
}
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentRemoveTagsFromResourceInput(v *RemoveTagsFromResourceInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ResourceId != nil {
ok := object.Key("ResourceId")
ok.String(*v.ResourceId)
}
if len(v.ResourceType) > 0 {
ok := object.Key("ResourceType")
ok.String(string(v.ResourceType))
}
if v.TagKeys != nil {
ok := object.Key("TagKeys")
if err := awsAwsjson11_serializeDocumentKeyList(v.TagKeys, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentResetServiceSettingInput(v *ResetServiceSettingInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.SettingId != nil {
ok := object.Key("SettingId")
ok.String(*v.SettingId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentResumeSessionInput(v *ResumeSessionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.SessionId != nil {
ok := object.Key("SessionId")
ok.String(*v.SessionId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentSendAutomationSignalInput(v *SendAutomationSignalInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AutomationExecutionId != nil {
ok := object.Key("AutomationExecutionId")
ok.String(*v.AutomationExecutionId)
}
if v.Payload != nil {
ok := object.Key("Payload")
if err := awsAwsjson11_serializeDocumentAutomationParameterMap(v.Payload, ok); err != nil {
return err
}
}
if len(v.SignalType) > 0 {
ok := object.Key("SignalType")
ok.String(string(v.SignalType))
}
return nil
}
func awsAwsjson11_serializeOpDocumentSendCommandInput(v *SendCommandInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AlarmConfiguration != nil {
ok := object.Key("AlarmConfiguration")
if err := awsAwsjson11_serializeDocumentAlarmConfiguration(v.AlarmConfiguration, ok); err != nil {
return err
}
}
if v.CloudWatchOutputConfig != nil {
ok := object.Key("CloudWatchOutputConfig")
if err := awsAwsjson11_serializeDocumentCloudWatchOutputConfig(v.CloudWatchOutputConfig, ok); err != nil {
return err
}
}
if v.Comment != nil {
ok := object.Key("Comment")
ok.String(*v.Comment)
}
if v.DocumentHash != nil {
ok := object.Key("DocumentHash")
ok.String(*v.DocumentHash)
}
if len(v.DocumentHashType) > 0 {
ok := object.Key("DocumentHashType")
ok.String(string(v.DocumentHashType))
}
if v.DocumentName != nil {
ok := object.Key("DocumentName")
ok.String(*v.DocumentName)
}
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.InstanceIds != nil {
ok := object.Key("InstanceIds")
if err := awsAwsjson11_serializeDocumentInstanceIdList(v.InstanceIds, ok); err != nil {
return err
}
}
if v.MaxConcurrency != nil {
ok := object.Key("MaxConcurrency")
ok.String(*v.MaxConcurrency)
}
if v.MaxErrors != nil {
ok := object.Key("MaxErrors")
ok.String(*v.MaxErrors)
}
if v.NotificationConfig != nil {
ok := object.Key("NotificationConfig")
if err := awsAwsjson11_serializeDocumentNotificationConfig(v.NotificationConfig, ok); err != nil {
return err
}
}
if v.OutputS3BucketName != nil {
ok := object.Key("OutputS3BucketName")
ok.String(*v.OutputS3BucketName)
}
if v.OutputS3KeyPrefix != nil {
ok := object.Key("OutputS3KeyPrefix")
ok.String(*v.OutputS3KeyPrefix)
}
if v.OutputS3Region != nil {
ok := object.Key("OutputS3Region")
ok.String(*v.OutputS3Region)
}
if v.Parameters != nil {
ok := object.Key("Parameters")
if err := awsAwsjson11_serializeDocumentParameters(v.Parameters, ok); err != nil {
return err
}
}
if v.ServiceRoleArn != nil {
ok := object.Key("ServiceRoleArn")
ok.String(*v.ServiceRoleArn)
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
if v.TimeoutSeconds != nil {
ok := object.Key("TimeoutSeconds")
ok.Integer(*v.TimeoutSeconds)
}
return nil
}
func awsAwsjson11_serializeOpDocumentStartAssociationsOnceInput(v *StartAssociationsOnceInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AssociationIds != nil {
ok := object.Key("AssociationIds")
if err := awsAwsjson11_serializeDocumentAssociationIdList(v.AssociationIds, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentStartAutomationExecutionInput(v *StartAutomationExecutionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AlarmConfiguration != nil {
ok := object.Key("AlarmConfiguration")
if err := awsAwsjson11_serializeDocumentAlarmConfiguration(v.AlarmConfiguration, ok); err != nil {
return err
}
}
if v.ClientToken != nil {
ok := object.Key("ClientToken")
ok.String(*v.ClientToken)
}
if v.DocumentName != nil {
ok := object.Key("DocumentName")
ok.String(*v.DocumentName)
}
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.MaxConcurrency != nil {
ok := object.Key("MaxConcurrency")
ok.String(*v.MaxConcurrency)
}
if v.MaxErrors != nil {
ok := object.Key("MaxErrors")
ok.String(*v.MaxErrors)
}
if len(v.Mode) > 0 {
ok := object.Key("Mode")
ok.String(string(v.Mode))
}
if v.Parameters != nil {
ok := object.Key("Parameters")
if err := awsAwsjson11_serializeDocumentAutomationParameterMap(v.Parameters, ok); err != nil {
return err
}
}
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
return err
}
}
if v.TargetLocations != nil {
ok := object.Key("TargetLocations")
if err := awsAwsjson11_serializeDocumentTargetLocations(v.TargetLocations, ok); err != nil {
return err
}
}
if v.TargetMaps != nil {
ok := object.Key("TargetMaps")
if err := awsAwsjson11_serializeDocumentTargetMaps(v.TargetMaps, ok); err != nil {
return err
}
}
if v.TargetParameterName != nil {
ok := object.Key("TargetParameterName")
ok.String(*v.TargetParameterName)
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentStartChangeRequestExecutionInput(v *StartChangeRequestExecutionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AutoApprove {
ok := object.Key("AutoApprove")
ok.Boolean(v.AutoApprove)
}
if v.ChangeDetails != nil {
ok := object.Key("ChangeDetails")
ok.String(*v.ChangeDetails)
}
if v.ChangeRequestName != nil {
ok := object.Key("ChangeRequestName")
ok.String(*v.ChangeRequestName)
}
if v.ClientToken != nil {
ok := object.Key("ClientToken")
ok.String(*v.ClientToken)
}
if v.DocumentName != nil {
ok := object.Key("DocumentName")
ok.String(*v.DocumentName)
}
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.Parameters != nil {
ok := object.Key("Parameters")
if err := awsAwsjson11_serializeDocumentAutomationParameterMap(v.Parameters, ok); err != nil {
return err
}
}
if v.Runbooks != nil {
ok := object.Key("Runbooks")
if err := awsAwsjson11_serializeDocumentRunbooks(v.Runbooks, ok); err != nil {
return err
}
}
if v.ScheduledEndTime != nil {
ok := object.Key("ScheduledEndTime")
ok.Double(smithytime.FormatEpochSeconds(*v.ScheduledEndTime))
}
if v.ScheduledTime != nil {
ok := object.Key("ScheduledTime")
ok.Double(smithytime.FormatEpochSeconds(*v.ScheduledTime))
}
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentStartSessionInput(v *StartSessionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DocumentName != nil {
ok := object.Key("DocumentName")
ok.String(*v.DocumentName)
}
if v.Parameters != nil {
ok := object.Key("Parameters")
if err := awsAwsjson11_serializeDocumentSessionManagerParameters(v.Parameters, ok); err != nil {
return err
}
}
if v.Reason != nil {
ok := object.Key("Reason")
ok.String(*v.Reason)
}
if v.Target != nil {
ok := object.Key("Target")
ok.String(*v.Target)
}
return nil
}
func awsAwsjson11_serializeOpDocumentStopAutomationExecutionInput(v *StopAutomationExecutionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AutomationExecutionId != nil {
ok := object.Key("AutomationExecutionId")
ok.String(*v.AutomationExecutionId)
}
if len(v.Type) > 0 {
ok := object.Key("Type")
ok.String(string(v.Type))
}
return nil
}
func awsAwsjson11_serializeOpDocumentTerminateSessionInput(v *TerminateSessionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.SessionId != nil {
ok := object.Key("SessionId")
ok.String(*v.SessionId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUnlabelParameterVersionInput(v *UnlabelParameterVersionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Labels != nil {
ok := object.Key("Labels")
if err := awsAwsjson11_serializeDocumentParameterLabelList(v.Labels, ok); err != nil {
return err
}
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.ParameterVersion != nil {
ok := object.Key("ParameterVersion")
ok.Long(*v.ParameterVersion)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateAssociationInput(v *UpdateAssociationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AlarmConfiguration != nil {
ok := object.Key("AlarmConfiguration")
if err := awsAwsjson11_serializeDocumentAlarmConfiguration(v.AlarmConfiguration, ok); err != nil {
return err
}
}
if v.ApplyOnlyAtCronInterval {
ok := object.Key("ApplyOnlyAtCronInterval")
ok.Boolean(v.ApplyOnlyAtCronInterval)
}
if v.AssociationId != nil {
ok := object.Key("AssociationId")
ok.String(*v.AssociationId)
}
if v.AssociationName != nil {
ok := object.Key("AssociationName")
ok.String(*v.AssociationName)
}
if v.AssociationVersion != nil {
ok := object.Key("AssociationVersion")
ok.String(*v.AssociationVersion)
}
if v.AutomationTargetParameterName != nil {
ok := object.Key("AutomationTargetParameterName")
ok.String(*v.AutomationTargetParameterName)
}
if v.CalendarNames != nil {
ok := object.Key("CalendarNames")
if err := awsAwsjson11_serializeDocumentCalendarNameOrARNList(v.CalendarNames, ok); err != nil {
return err
}
}
if len(v.ComplianceSeverity) > 0 {
ok := object.Key("ComplianceSeverity")
ok.String(string(v.ComplianceSeverity))
}
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.MaxConcurrency != nil {
ok := object.Key("MaxConcurrency")
ok.String(*v.MaxConcurrency)
}
if v.MaxErrors != nil {
ok := object.Key("MaxErrors")
ok.String(*v.MaxErrors)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.OutputLocation != nil {
ok := object.Key("OutputLocation")
if err := awsAwsjson11_serializeDocumentInstanceAssociationOutputLocation(v.OutputLocation, ok); err != nil {
return err
}
}
if v.Parameters != nil {
ok := object.Key("Parameters")
if err := awsAwsjson11_serializeDocumentParameters(v.Parameters, ok); err != nil {
return err
}
}
if v.ScheduleExpression != nil {
ok := object.Key("ScheduleExpression")
ok.String(*v.ScheduleExpression)
}
if v.ScheduleOffset != nil {
ok := object.Key("ScheduleOffset")
ok.Integer(*v.ScheduleOffset)
}
if len(v.SyncCompliance) > 0 {
ok := object.Key("SyncCompliance")
ok.String(string(v.SyncCompliance))
}
if v.TargetLocations != nil {
ok := object.Key("TargetLocations")
if err := awsAwsjson11_serializeDocumentTargetLocations(v.TargetLocations, ok); err != nil {
return err
}
}
if v.TargetMaps != nil {
ok := object.Key("TargetMaps")
if err := awsAwsjson11_serializeDocumentTargetMaps(v.TargetMaps, ok); err != nil {
return err
}
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateAssociationStatusInput(v *UpdateAssociationStatusInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AssociationStatus != nil {
ok := object.Key("AssociationStatus")
if err := awsAwsjson11_serializeDocumentAssociationStatus(v.AssociationStatus, ok); err != nil {
return err
}
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateDocumentDefaultVersionInput(v *UpdateDocumentDefaultVersionInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateDocumentInput(v *UpdateDocumentInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Attachments != nil {
ok := object.Key("Attachments")
if err := awsAwsjson11_serializeDocumentAttachmentsSourceList(v.Attachments, ok); err != nil {
return err
}
}
if v.Content != nil {
ok := object.Key("Content")
ok.String(*v.Content)
}
if v.DisplayName != nil {
ok := object.Key("DisplayName")
ok.String(*v.DisplayName)
}
if len(v.DocumentFormat) > 0 {
ok := object.Key("DocumentFormat")
ok.String(string(v.DocumentFormat))
}
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.TargetType != nil {
ok := object.Key("TargetType")
ok.String(*v.TargetType)
}
if v.VersionName != nil {
ok := object.Key("VersionName")
ok.String(*v.VersionName)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateDocumentMetadataInput(v *UpdateDocumentMetadataInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.DocumentReviews != nil {
ok := object.Key("DocumentReviews")
if err := awsAwsjson11_serializeDocumentDocumentReviews(v.DocumentReviews, ok); err != nil {
return err
}
}
if v.DocumentVersion != nil {
ok := object.Key("DocumentVersion")
ok.String(*v.DocumentVersion)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowInput(v *UpdateMaintenanceWindowInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AllowUnassociatedTargets != nil {
ok := object.Key("AllowUnassociatedTargets")
ok.Boolean(*v.AllowUnassociatedTargets)
}
if v.Cutoff != nil {
ok := object.Key("Cutoff")
ok.Integer(*v.Cutoff)
}
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
if v.Duration != nil {
ok := object.Key("Duration")
ok.Integer(*v.Duration)
}
if v.Enabled != nil {
ok := object.Key("Enabled")
ok.Boolean(*v.Enabled)
}
if v.EndDate != nil {
ok := object.Key("EndDate")
ok.String(*v.EndDate)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.Replace != nil {
ok := object.Key("Replace")
ok.Boolean(*v.Replace)
}
if v.Schedule != nil {
ok := object.Key("Schedule")
ok.String(*v.Schedule)
}
if v.ScheduleOffset != nil {
ok := object.Key("ScheduleOffset")
ok.Integer(*v.ScheduleOffset)
}
if v.ScheduleTimezone != nil {
ok := object.Key("ScheduleTimezone")
ok.String(*v.ScheduleTimezone)
}
if v.StartDate != nil {
ok := object.Key("StartDate")
ok.String(*v.StartDate)
}
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowTargetInput(v *UpdateMaintenanceWindowTargetInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.OwnerInformation != nil {
ok := object.Key("OwnerInformation")
ok.String(*v.OwnerInformation)
}
if v.Replace != nil {
ok := object.Key("Replace")
ok.Boolean(*v.Replace)
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
if v.WindowTargetId != nil {
ok := object.Key("WindowTargetId")
ok.String(*v.WindowTargetId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowTaskInput(v *UpdateMaintenanceWindowTaskInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AlarmConfiguration != nil {
ok := object.Key("AlarmConfiguration")
if err := awsAwsjson11_serializeDocumentAlarmConfiguration(v.AlarmConfiguration, ok); err != nil {
return err
}
}
if len(v.CutoffBehavior) > 0 {
ok := object.Key("CutoffBehavior")
ok.String(string(v.CutoffBehavior))
}
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
if v.LoggingInfo != nil {
ok := object.Key("LoggingInfo")
if err := awsAwsjson11_serializeDocumentLoggingInfo(v.LoggingInfo, ok); err != nil {
return err
}
}
if v.MaxConcurrency != nil {
ok := object.Key("MaxConcurrency")
ok.String(*v.MaxConcurrency)
}
if v.MaxErrors != nil {
ok := object.Key("MaxErrors")
ok.String(*v.MaxErrors)
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.Priority != nil {
ok := object.Key("Priority")
ok.Integer(*v.Priority)
}
if v.Replace != nil {
ok := object.Key("Replace")
ok.Boolean(*v.Replace)
}
if v.ServiceRoleArn != nil {
ok := object.Key("ServiceRoleArn")
ok.String(*v.ServiceRoleArn)
}
if v.Targets != nil {
ok := object.Key("Targets")
if err := awsAwsjson11_serializeDocumentTargets(v.Targets, ok); err != nil {
return err
}
}
if v.TaskArn != nil {
ok := object.Key("TaskArn")
ok.String(*v.TaskArn)
}
if v.TaskInvocationParameters != nil {
ok := object.Key("TaskInvocationParameters")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowTaskInvocationParameters(v.TaskInvocationParameters, ok); err != nil {
return err
}
}
if v.TaskParameters != nil {
ok := object.Key("TaskParameters")
if err := awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameters(v.TaskParameters, ok); err != nil {
return err
}
}
if v.WindowId != nil {
ok := object.Key("WindowId")
ok.String(*v.WindowId)
}
if v.WindowTaskId != nil {
ok := object.Key("WindowTaskId")
ok.String(*v.WindowTaskId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateManagedInstanceRoleInput(v *UpdateManagedInstanceRoleInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.IamRole != nil {
ok := object.Key("IamRole")
ok.String(*v.IamRole)
}
if v.InstanceId != nil {
ok := object.Key("InstanceId")
ok.String(*v.InstanceId)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateOpsItemInput(v *UpdateOpsItemInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ActualEndTime != nil {
ok := object.Key("ActualEndTime")
ok.Double(smithytime.FormatEpochSeconds(*v.ActualEndTime))
}
if v.ActualStartTime != nil {
ok := object.Key("ActualStartTime")
ok.Double(smithytime.FormatEpochSeconds(*v.ActualStartTime))
}
if v.Category != nil {
ok := object.Key("Category")
ok.String(*v.Category)
}
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
if v.Notifications != nil {
ok := object.Key("Notifications")
if err := awsAwsjson11_serializeDocumentOpsItemNotifications(v.Notifications, ok); err != nil {
return err
}
}
if v.OperationalData != nil {
ok := object.Key("OperationalData")
if err := awsAwsjson11_serializeDocumentOpsItemOperationalData(v.OperationalData, ok); err != nil {
return err
}
}
if v.OperationalDataToDelete != nil {
ok := object.Key("OperationalDataToDelete")
if err := awsAwsjson11_serializeDocumentOpsItemOpsDataKeysList(v.OperationalDataToDelete, ok); err != nil {
return err
}
}
if v.OpsItemArn != nil {
ok := object.Key("OpsItemArn")
ok.String(*v.OpsItemArn)
}
if v.OpsItemId != nil {
ok := object.Key("OpsItemId")
ok.String(*v.OpsItemId)
}
if v.PlannedEndTime != nil {
ok := object.Key("PlannedEndTime")
ok.Double(smithytime.FormatEpochSeconds(*v.PlannedEndTime))
}
if v.PlannedStartTime != nil {
ok := object.Key("PlannedStartTime")
ok.Double(smithytime.FormatEpochSeconds(*v.PlannedStartTime))
}
if v.Priority != nil {
ok := object.Key("Priority")
ok.Integer(*v.Priority)
}
if v.RelatedOpsItems != nil {
ok := object.Key("RelatedOpsItems")
if err := awsAwsjson11_serializeDocumentRelatedOpsItems(v.RelatedOpsItems, ok); err != nil {
return err
}
}
if v.Severity != nil {
ok := object.Key("Severity")
ok.String(*v.Severity)
}
if len(v.Status) > 0 {
ok := object.Key("Status")
ok.String(string(v.Status))
}
if v.Title != nil {
ok := object.Key("Title")
ok.String(*v.Title)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateOpsMetadataInput(v *UpdateOpsMetadataInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.KeysToDelete != nil {
ok := object.Key("KeysToDelete")
if err := awsAwsjson11_serializeDocumentMetadataKeysToDeleteList(v.KeysToDelete, ok); err != nil {
return err
}
}
if v.MetadataToUpdate != nil {
ok := object.Key("MetadataToUpdate")
if err := awsAwsjson11_serializeDocumentMetadataMap(v.MetadataToUpdate, ok); err != nil {
return err
}
}
if v.OpsMetadataArn != nil {
ok := object.Key("OpsMetadataArn")
ok.String(*v.OpsMetadataArn)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdatePatchBaselineInput(v *UpdatePatchBaselineInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.ApprovalRules != nil {
ok := object.Key("ApprovalRules")
if err := awsAwsjson11_serializeDocumentPatchRuleGroup(v.ApprovalRules, ok); err != nil {
return err
}
}
if v.ApprovedPatches != nil {
ok := object.Key("ApprovedPatches")
if err := awsAwsjson11_serializeDocumentPatchIdList(v.ApprovedPatches, ok); err != nil {
return err
}
}
if len(v.ApprovedPatchesComplianceLevel) > 0 {
ok := object.Key("ApprovedPatchesComplianceLevel")
ok.String(string(v.ApprovedPatchesComplianceLevel))
}
if v.ApprovedPatchesEnableNonSecurity != nil {
ok := object.Key("ApprovedPatchesEnableNonSecurity")
ok.Boolean(*v.ApprovedPatchesEnableNonSecurity)
}
if v.BaselineId != nil {
ok := object.Key("BaselineId")
ok.String(*v.BaselineId)
}
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
if v.GlobalFilters != nil {
ok := object.Key("GlobalFilters")
if err := awsAwsjson11_serializeDocumentPatchFilterGroup(v.GlobalFilters, ok); err != nil {
return err
}
}
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
if v.RejectedPatches != nil {
ok := object.Key("RejectedPatches")
if err := awsAwsjson11_serializeDocumentPatchIdList(v.RejectedPatches, ok); err != nil {
return err
}
}
if len(v.RejectedPatchesAction) > 0 {
ok := object.Key("RejectedPatchesAction")
ok.String(string(v.RejectedPatchesAction))
}
if v.Replace != nil {
ok := object.Key("Replace")
ok.Boolean(*v.Replace)
}
if v.Sources != nil {
ok := object.Key("Sources")
if err := awsAwsjson11_serializeDocumentPatchSourceList(v.Sources, ok); err != nil {
return err
}
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateResourceDataSyncInput(v *UpdateResourceDataSyncInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.SyncName != nil {
ok := object.Key("SyncName")
ok.String(*v.SyncName)
}
if v.SyncSource != nil {
ok := object.Key("SyncSource")
if err := awsAwsjson11_serializeDocumentResourceDataSyncSource(v.SyncSource, ok); err != nil {
return err
}
}
if v.SyncType != nil {
ok := object.Key("SyncType")
ok.String(*v.SyncType)
}
return nil
}
func awsAwsjson11_serializeOpDocumentUpdateServiceSettingInput(v *UpdateServiceSettingInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.SettingId != nil {
ok := object.Key("SettingId")
ok.String(*v.SettingId)
}
if v.SettingValue != nil {
ok := object.Key("SettingValue")
ok.String(*v.SettingValue)
}
return nil
}
| 14,846 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssm
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go-v2/service/ssm/types"
smithy "github.com/aws/smithy-go"
"github.com/aws/smithy-go/middleware"
)
type validateOpAddTagsToResource struct {
}
func (*validateOpAddTagsToResource) ID() string {
return "OperationInputValidation"
}
func (m *validateOpAddTagsToResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*AddTagsToResourceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpAddTagsToResourceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpAssociateOpsItemRelatedItem struct {
}
func (*validateOpAssociateOpsItemRelatedItem) ID() string {
return "OperationInputValidation"
}
func (m *validateOpAssociateOpsItemRelatedItem) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*AssociateOpsItemRelatedItemInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpAssociateOpsItemRelatedItemInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCancelCommand struct {
}
func (*validateOpCancelCommand) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCancelCommand) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CancelCommandInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCancelCommandInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCancelMaintenanceWindowExecution struct {
}
func (*validateOpCancelMaintenanceWindowExecution) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCancelMaintenanceWindowExecution) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CancelMaintenanceWindowExecutionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCancelMaintenanceWindowExecutionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateActivation struct {
}
func (*validateOpCreateActivation) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateActivation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateActivationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateActivationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateAssociationBatch struct {
}
func (*validateOpCreateAssociationBatch) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateAssociationBatch) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateAssociationBatchInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateAssociationBatchInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateAssociation struct {
}
func (*validateOpCreateAssociation) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateAssociationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateAssociationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateDocument struct {
}
func (*validateOpCreateDocument) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateDocument) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateDocumentInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateDocumentInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateMaintenanceWindow struct {
}
func (*validateOpCreateMaintenanceWindow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateMaintenanceWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateMaintenanceWindowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateMaintenanceWindowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateOpsItem struct {
}
func (*validateOpCreateOpsItem) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateOpsItem) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateOpsItemInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateOpsItemInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateOpsMetadata struct {
}
func (*validateOpCreateOpsMetadata) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateOpsMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateOpsMetadataInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateOpsMetadataInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreatePatchBaseline struct {
}
func (*validateOpCreatePatchBaseline) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreatePatchBaseline) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreatePatchBaselineInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreatePatchBaselineInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateResourceDataSync struct {
}
func (*validateOpCreateResourceDataSync) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateResourceDataSync) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateResourceDataSyncInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateResourceDataSyncInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteActivation struct {
}
func (*validateOpDeleteActivation) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteActivation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteActivationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteActivationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteDocument struct {
}
func (*validateOpDeleteDocument) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteDocument) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteDocumentInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteDocumentInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteInventory struct {
}
func (*validateOpDeleteInventory) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteInventory) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteInventoryInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteInventoryInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteMaintenanceWindow struct {
}
func (*validateOpDeleteMaintenanceWindow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteMaintenanceWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteMaintenanceWindowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteMaintenanceWindowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteOpsMetadata struct {
}
func (*validateOpDeleteOpsMetadata) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteOpsMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteOpsMetadataInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteOpsMetadataInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteParameter struct {
}
func (*validateOpDeleteParameter) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteParameter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteParameterInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteParameterInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteParameters struct {
}
func (*validateOpDeleteParameters) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteParameters) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteParametersInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteParametersInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeletePatchBaseline struct {
}
func (*validateOpDeletePatchBaseline) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeletePatchBaseline) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeletePatchBaselineInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeletePatchBaselineInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteResourceDataSync struct {
}
func (*validateOpDeleteResourceDataSync) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteResourceDataSync) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteResourceDataSyncInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteResourceDataSyncInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteResourcePolicy struct {
}
func (*validateOpDeleteResourcePolicy) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteResourcePolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteResourcePolicyInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteResourcePolicyInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeregisterManagedInstance struct {
}
func (*validateOpDeregisterManagedInstance) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeregisterManagedInstance) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeregisterManagedInstanceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeregisterManagedInstanceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeregisterPatchBaselineForPatchGroup struct {
}
func (*validateOpDeregisterPatchBaselineForPatchGroup) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeregisterPatchBaselineForPatchGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeregisterPatchBaselineForPatchGroupInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeregisterPatchBaselineForPatchGroupInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeregisterTargetFromMaintenanceWindow struct {
}
func (*validateOpDeregisterTargetFromMaintenanceWindow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeregisterTargetFromMaintenanceWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeregisterTargetFromMaintenanceWindowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeregisterTargetFromMaintenanceWindowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeregisterTaskFromMaintenanceWindow struct {
}
func (*validateOpDeregisterTaskFromMaintenanceWindow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeregisterTaskFromMaintenanceWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeregisterTaskFromMaintenanceWindowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeregisterTaskFromMaintenanceWindowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeAssociationExecutions struct {
}
func (*validateOpDescribeAssociationExecutions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeAssociationExecutions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeAssociationExecutionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeAssociationExecutionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeAssociationExecutionTargets struct {
}
func (*validateOpDescribeAssociationExecutionTargets) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeAssociationExecutionTargets) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeAssociationExecutionTargetsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeAssociationExecutionTargetsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeAutomationExecutions struct {
}
func (*validateOpDescribeAutomationExecutions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeAutomationExecutions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeAutomationExecutionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeAutomationExecutionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeAutomationStepExecutions struct {
}
func (*validateOpDescribeAutomationStepExecutions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeAutomationStepExecutions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeAutomationStepExecutionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeAutomationStepExecutionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeDocument struct {
}
func (*validateOpDescribeDocument) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeDocument) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeDocumentInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeDocumentInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeDocumentPermission struct {
}
func (*validateOpDescribeDocumentPermission) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeDocumentPermission) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeDocumentPermissionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeDocumentPermissionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeEffectiveInstanceAssociations struct {
}
func (*validateOpDescribeEffectiveInstanceAssociations) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeEffectiveInstanceAssociations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeEffectiveInstanceAssociationsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeEffectiveInstanceAssociationsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeEffectivePatchesForPatchBaseline struct {
}
func (*validateOpDescribeEffectivePatchesForPatchBaseline) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeEffectivePatchesForPatchBaseline) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeEffectivePatchesForPatchBaselineInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeEffectivePatchesForPatchBaselineInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeInstanceAssociationsStatus struct {
}
func (*validateOpDescribeInstanceAssociationsStatus) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeInstanceAssociationsStatus) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeInstanceAssociationsStatusInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeInstanceAssociationsStatusInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeInstanceInformation struct {
}
func (*validateOpDescribeInstanceInformation) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeInstanceInformation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeInstanceInformationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeInstanceInformationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeInstancePatches struct {
}
func (*validateOpDescribeInstancePatches) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeInstancePatches) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeInstancePatchesInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeInstancePatchesInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeInstancePatchStatesForPatchGroup struct {
}
func (*validateOpDescribeInstancePatchStatesForPatchGroup) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeInstancePatchStatesForPatchGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeInstancePatchStatesForPatchGroupInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeInstancePatchStatesForPatchGroupInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeInstancePatchStates struct {
}
func (*validateOpDescribeInstancePatchStates) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeInstancePatchStates) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeInstancePatchStatesInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeInstancePatchStatesInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeMaintenanceWindowExecutions struct {
}
func (*validateOpDescribeMaintenanceWindowExecutions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeMaintenanceWindowExecutions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeMaintenanceWindowExecutionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeMaintenanceWindowExecutionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeMaintenanceWindowExecutionTaskInvocations struct {
}
func (*validateOpDescribeMaintenanceWindowExecutionTaskInvocations) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeMaintenanceWindowExecutionTaskInvocations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeMaintenanceWindowExecutionTaskInvocationsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeMaintenanceWindowExecutionTaskInvocationsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeMaintenanceWindowExecutionTasks struct {
}
func (*validateOpDescribeMaintenanceWindowExecutionTasks) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeMaintenanceWindowExecutionTasks) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeMaintenanceWindowExecutionTasksInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeMaintenanceWindowExecutionTasksInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeMaintenanceWindowsForTarget struct {
}
func (*validateOpDescribeMaintenanceWindowsForTarget) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeMaintenanceWindowsForTarget) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeMaintenanceWindowsForTargetInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeMaintenanceWindowsForTargetInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeMaintenanceWindowTargets struct {
}
func (*validateOpDescribeMaintenanceWindowTargets) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeMaintenanceWindowTargets) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeMaintenanceWindowTargetsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeMaintenanceWindowTargetsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeMaintenanceWindowTasks struct {
}
func (*validateOpDescribeMaintenanceWindowTasks) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeMaintenanceWindowTasks) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeMaintenanceWindowTasksInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeMaintenanceWindowTasksInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeOpsItems struct {
}
func (*validateOpDescribeOpsItems) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeOpsItems) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeOpsItemsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeOpsItemsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeParameters struct {
}
func (*validateOpDescribeParameters) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeParameters) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeParametersInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeParametersInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribePatchGroupState struct {
}
func (*validateOpDescribePatchGroupState) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribePatchGroupState) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribePatchGroupStateInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribePatchGroupStateInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribePatchProperties struct {
}
func (*validateOpDescribePatchProperties) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribePatchProperties) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribePatchPropertiesInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribePatchPropertiesInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeSessions struct {
}
func (*validateOpDescribeSessions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeSessions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeSessionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeSessionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDisassociateOpsItemRelatedItem struct {
}
func (*validateOpDisassociateOpsItemRelatedItem) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDisassociateOpsItemRelatedItem) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DisassociateOpsItemRelatedItemInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDisassociateOpsItemRelatedItemInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetAutomationExecution struct {
}
func (*validateOpGetAutomationExecution) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetAutomationExecution) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetAutomationExecutionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetAutomationExecutionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetCalendarState struct {
}
func (*validateOpGetCalendarState) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetCalendarState) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetCalendarStateInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetCalendarStateInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetCommandInvocation struct {
}
func (*validateOpGetCommandInvocation) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetCommandInvocation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetCommandInvocationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetCommandInvocationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetConnectionStatus struct {
}
func (*validateOpGetConnectionStatus) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetConnectionStatus) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetConnectionStatusInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetConnectionStatusInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetDeployablePatchSnapshotForInstance struct {
}
func (*validateOpGetDeployablePatchSnapshotForInstance) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetDeployablePatchSnapshotForInstance) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetDeployablePatchSnapshotForInstanceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetDeployablePatchSnapshotForInstanceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetDocument struct {
}
func (*validateOpGetDocument) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetDocument) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetDocumentInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetDocumentInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetInventory struct {
}
func (*validateOpGetInventory) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetInventory) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetInventoryInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetInventoryInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetMaintenanceWindowExecution struct {
}
func (*validateOpGetMaintenanceWindowExecution) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetMaintenanceWindowExecution) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetMaintenanceWindowExecutionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetMaintenanceWindowExecutionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetMaintenanceWindowExecutionTask struct {
}
func (*validateOpGetMaintenanceWindowExecutionTask) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetMaintenanceWindowExecutionTask) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetMaintenanceWindowExecutionTaskInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetMaintenanceWindowExecutionTaskInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetMaintenanceWindowExecutionTaskInvocation struct {
}
func (*validateOpGetMaintenanceWindowExecutionTaskInvocation) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetMaintenanceWindowExecutionTaskInvocation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetMaintenanceWindowExecutionTaskInvocationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetMaintenanceWindowExecutionTaskInvocationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetMaintenanceWindow struct {
}
func (*validateOpGetMaintenanceWindow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetMaintenanceWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetMaintenanceWindowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetMaintenanceWindowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetMaintenanceWindowTask struct {
}
func (*validateOpGetMaintenanceWindowTask) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetMaintenanceWindowTask) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetMaintenanceWindowTaskInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetMaintenanceWindowTaskInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetOpsItem struct {
}
func (*validateOpGetOpsItem) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetOpsItem) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetOpsItemInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetOpsItemInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetOpsMetadata struct {
}
func (*validateOpGetOpsMetadata) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetOpsMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetOpsMetadataInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetOpsMetadataInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetOpsSummary struct {
}
func (*validateOpGetOpsSummary) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetOpsSummary) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetOpsSummaryInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetOpsSummaryInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetParameterHistory struct {
}
func (*validateOpGetParameterHistory) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetParameterHistory) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetParameterHistoryInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetParameterHistoryInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetParameter struct {
}
func (*validateOpGetParameter) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetParameter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetParameterInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetParameterInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetParametersByPath struct {
}
func (*validateOpGetParametersByPath) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetParametersByPath) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetParametersByPathInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetParametersByPathInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetParameters struct {
}
func (*validateOpGetParameters) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetParameters) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetParametersInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetParametersInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetPatchBaselineForPatchGroup struct {
}
func (*validateOpGetPatchBaselineForPatchGroup) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetPatchBaselineForPatchGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetPatchBaselineForPatchGroupInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetPatchBaselineForPatchGroupInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetPatchBaseline struct {
}
func (*validateOpGetPatchBaseline) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetPatchBaseline) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetPatchBaselineInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetPatchBaselineInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetResourcePolicies struct {
}
func (*validateOpGetResourcePolicies) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetResourcePolicies) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetResourcePoliciesInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetResourcePoliciesInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetServiceSetting struct {
}
func (*validateOpGetServiceSetting) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetServiceSetting) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetServiceSettingInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetServiceSettingInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpLabelParameterVersion struct {
}
func (*validateOpLabelParameterVersion) ID() string {
return "OperationInputValidation"
}
func (m *validateOpLabelParameterVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*LabelParameterVersionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpLabelParameterVersionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListAssociations struct {
}
func (*validateOpListAssociations) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListAssociations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListAssociationsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListAssociationsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListAssociationVersions struct {
}
func (*validateOpListAssociationVersions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListAssociationVersions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListAssociationVersionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListAssociationVersionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListCommandInvocations struct {
}
func (*validateOpListCommandInvocations) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListCommandInvocations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListCommandInvocationsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListCommandInvocationsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListCommands struct {
}
func (*validateOpListCommands) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListCommands) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListCommandsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListCommandsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListDocumentMetadataHistory struct {
}
func (*validateOpListDocumentMetadataHistory) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListDocumentMetadataHistory) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListDocumentMetadataHistoryInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListDocumentMetadataHistoryInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListDocuments struct {
}
func (*validateOpListDocuments) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListDocuments) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListDocumentsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListDocumentsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListDocumentVersions struct {
}
func (*validateOpListDocumentVersions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListDocumentVersions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListDocumentVersionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListDocumentVersionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListInventoryEntries struct {
}
func (*validateOpListInventoryEntries) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListInventoryEntries) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListInventoryEntriesInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListInventoryEntriesInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListOpsItemEvents struct {
}
func (*validateOpListOpsItemEvents) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListOpsItemEvents) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListOpsItemEventsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListOpsItemEventsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListOpsItemRelatedItems struct {
}
func (*validateOpListOpsItemRelatedItems) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListOpsItemRelatedItems) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListOpsItemRelatedItemsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListOpsItemRelatedItemsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListOpsMetadata struct {
}
func (*validateOpListOpsMetadata) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListOpsMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListOpsMetadataInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListOpsMetadataInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListTagsForResource struct {
}
func (*validateOpListTagsForResource) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListTagsForResourceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListTagsForResourceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpModifyDocumentPermission struct {
}
func (*validateOpModifyDocumentPermission) ID() string {
return "OperationInputValidation"
}
func (m *validateOpModifyDocumentPermission) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ModifyDocumentPermissionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpModifyDocumentPermissionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpPutComplianceItems struct {
}
func (*validateOpPutComplianceItems) ID() string {
return "OperationInputValidation"
}
func (m *validateOpPutComplianceItems) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*PutComplianceItemsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpPutComplianceItemsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpPutInventory struct {
}
func (*validateOpPutInventory) ID() string {
return "OperationInputValidation"
}
func (m *validateOpPutInventory) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*PutInventoryInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpPutInventoryInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpPutParameter struct {
}
func (*validateOpPutParameter) ID() string {
return "OperationInputValidation"
}
func (m *validateOpPutParameter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*PutParameterInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpPutParameterInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpPutResourcePolicy struct {
}
func (*validateOpPutResourcePolicy) ID() string {
return "OperationInputValidation"
}
func (m *validateOpPutResourcePolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*PutResourcePolicyInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpPutResourcePolicyInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpRegisterDefaultPatchBaseline struct {
}
func (*validateOpRegisterDefaultPatchBaseline) ID() string {
return "OperationInputValidation"
}
func (m *validateOpRegisterDefaultPatchBaseline) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*RegisterDefaultPatchBaselineInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpRegisterDefaultPatchBaselineInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpRegisterPatchBaselineForPatchGroup struct {
}
func (*validateOpRegisterPatchBaselineForPatchGroup) ID() string {
return "OperationInputValidation"
}
func (m *validateOpRegisterPatchBaselineForPatchGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*RegisterPatchBaselineForPatchGroupInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpRegisterPatchBaselineForPatchGroupInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpRegisterTargetWithMaintenanceWindow struct {
}
func (*validateOpRegisterTargetWithMaintenanceWindow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpRegisterTargetWithMaintenanceWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*RegisterTargetWithMaintenanceWindowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpRegisterTargetWithMaintenanceWindowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpRegisterTaskWithMaintenanceWindow struct {
}
func (*validateOpRegisterTaskWithMaintenanceWindow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpRegisterTaskWithMaintenanceWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*RegisterTaskWithMaintenanceWindowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpRegisterTaskWithMaintenanceWindowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpRemoveTagsFromResource struct {
}
func (*validateOpRemoveTagsFromResource) ID() string {
return "OperationInputValidation"
}
func (m *validateOpRemoveTagsFromResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*RemoveTagsFromResourceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpRemoveTagsFromResourceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpResetServiceSetting struct {
}
func (*validateOpResetServiceSetting) ID() string {
return "OperationInputValidation"
}
func (m *validateOpResetServiceSetting) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ResetServiceSettingInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpResetServiceSettingInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpResumeSession struct {
}
func (*validateOpResumeSession) ID() string {
return "OperationInputValidation"
}
func (m *validateOpResumeSession) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ResumeSessionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpResumeSessionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpSendAutomationSignal struct {
}
func (*validateOpSendAutomationSignal) ID() string {
return "OperationInputValidation"
}
func (m *validateOpSendAutomationSignal) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*SendAutomationSignalInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpSendAutomationSignalInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpSendCommand struct {
}
func (*validateOpSendCommand) ID() string {
return "OperationInputValidation"
}
func (m *validateOpSendCommand) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*SendCommandInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpSendCommandInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartAssociationsOnce struct {
}
func (*validateOpStartAssociationsOnce) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartAssociationsOnce) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartAssociationsOnceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartAssociationsOnceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartAutomationExecution struct {
}
func (*validateOpStartAutomationExecution) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartAutomationExecution) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartAutomationExecutionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartAutomationExecutionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartChangeRequestExecution struct {
}
func (*validateOpStartChangeRequestExecution) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartChangeRequestExecution) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartChangeRequestExecutionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartChangeRequestExecutionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartSession struct {
}
func (*validateOpStartSession) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartSession) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartSessionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartSessionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStopAutomationExecution struct {
}
func (*validateOpStopAutomationExecution) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStopAutomationExecution) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StopAutomationExecutionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStopAutomationExecutionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpTerminateSession struct {
}
func (*validateOpTerminateSession) ID() string {
return "OperationInputValidation"
}
func (m *validateOpTerminateSession) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*TerminateSessionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpTerminateSessionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUnlabelParameterVersion struct {
}
func (*validateOpUnlabelParameterVersion) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUnlabelParameterVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UnlabelParameterVersionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUnlabelParameterVersionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateAssociation struct {
}
func (*validateOpUpdateAssociation) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateAssociationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateAssociationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateAssociationStatus struct {
}
func (*validateOpUpdateAssociationStatus) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateAssociationStatus) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateAssociationStatusInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateAssociationStatusInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateDocumentDefaultVersion struct {
}
func (*validateOpUpdateDocumentDefaultVersion) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateDocumentDefaultVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateDocumentDefaultVersionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateDocumentDefaultVersionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateDocument struct {
}
func (*validateOpUpdateDocument) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateDocument) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateDocumentInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateDocumentInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateDocumentMetadata struct {
}
func (*validateOpUpdateDocumentMetadata) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateDocumentMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateDocumentMetadataInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateDocumentMetadataInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateMaintenanceWindow struct {
}
func (*validateOpUpdateMaintenanceWindow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateMaintenanceWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateMaintenanceWindowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateMaintenanceWindowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateMaintenanceWindowTarget struct {
}
func (*validateOpUpdateMaintenanceWindowTarget) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateMaintenanceWindowTarget) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateMaintenanceWindowTargetInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateMaintenanceWindowTargetInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateMaintenanceWindowTask struct {
}
func (*validateOpUpdateMaintenanceWindowTask) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateMaintenanceWindowTask) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateMaintenanceWindowTaskInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateMaintenanceWindowTaskInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateManagedInstanceRole struct {
}
func (*validateOpUpdateManagedInstanceRole) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateManagedInstanceRole) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateManagedInstanceRoleInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateManagedInstanceRoleInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateOpsItem struct {
}
func (*validateOpUpdateOpsItem) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateOpsItem) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateOpsItemInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateOpsItemInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateOpsMetadata struct {
}
func (*validateOpUpdateOpsMetadata) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateOpsMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateOpsMetadataInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateOpsMetadataInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdatePatchBaseline struct {
}
func (*validateOpUpdatePatchBaseline) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdatePatchBaseline) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdatePatchBaselineInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdatePatchBaselineInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateResourceDataSync struct {
}
func (*validateOpUpdateResourceDataSync) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateResourceDataSync) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateResourceDataSyncInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateResourceDataSyncInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateServiceSetting struct {
}
func (*validateOpUpdateServiceSetting) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateServiceSetting) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateServiceSettingInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateServiceSettingInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
func addOpAddTagsToResourceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpAddTagsToResource{}, middleware.After)
}
func addOpAssociateOpsItemRelatedItemValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpAssociateOpsItemRelatedItem{}, middleware.After)
}
func addOpCancelCommandValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCancelCommand{}, middleware.After)
}
func addOpCancelMaintenanceWindowExecutionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCancelMaintenanceWindowExecution{}, middleware.After)
}
func addOpCreateActivationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateActivation{}, middleware.After)
}
func addOpCreateAssociationBatchValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateAssociationBatch{}, middleware.After)
}
func addOpCreateAssociationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateAssociation{}, middleware.After)
}
func addOpCreateDocumentValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateDocument{}, middleware.After)
}
func addOpCreateMaintenanceWindowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateMaintenanceWindow{}, middleware.After)
}
func addOpCreateOpsItemValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateOpsItem{}, middleware.After)
}
func addOpCreateOpsMetadataValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateOpsMetadata{}, middleware.After)
}
func addOpCreatePatchBaselineValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreatePatchBaseline{}, middleware.After)
}
func addOpCreateResourceDataSyncValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateResourceDataSync{}, middleware.After)
}
func addOpDeleteActivationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteActivation{}, middleware.After)
}
func addOpDeleteDocumentValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteDocument{}, middleware.After)
}
func addOpDeleteInventoryValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteInventory{}, middleware.After)
}
func addOpDeleteMaintenanceWindowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteMaintenanceWindow{}, middleware.After)
}
func addOpDeleteOpsMetadataValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteOpsMetadata{}, middleware.After)
}
func addOpDeleteParameterValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteParameter{}, middleware.After)
}
func addOpDeleteParametersValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteParameters{}, middleware.After)
}
func addOpDeletePatchBaselineValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeletePatchBaseline{}, middleware.After)
}
func addOpDeleteResourceDataSyncValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteResourceDataSync{}, middleware.After)
}
func addOpDeleteResourcePolicyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteResourcePolicy{}, middleware.After)
}
func addOpDeregisterManagedInstanceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeregisterManagedInstance{}, middleware.After)
}
func addOpDeregisterPatchBaselineForPatchGroupValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeregisterPatchBaselineForPatchGroup{}, middleware.After)
}
func addOpDeregisterTargetFromMaintenanceWindowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeregisterTargetFromMaintenanceWindow{}, middleware.After)
}
func addOpDeregisterTaskFromMaintenanceWindowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeregisterTaskFromMaintenanceWindow{}, middleware.After)
}
func addOpDescribeAssociationExecutionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeAssociationExecutions{}, middleware.After)
}
func addOpDescribeAssociationExecutionTargetsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeAssociationExecutionTargets{}, middleware.After)
}
func addOpDescribeAutomationExecutionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeAutomationExecutions{}, middleware.After)
}
func addOpDescribeAutomationStepExecutionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeAutomationStepExecutions{}, middleware.After)
}
func addOpDescribeDocumentValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeDocument{}, middleware.After)
}
func addOpDescribeDocumentPermissionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeDocumentPermission{}, middleware.After)
}
func addOpDescribeEffectiveInstanceAssociationsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeEffectiveInstanceAssociations{}, middleware.After)
}
func addOpDescribeEffectivePatchesForPatchBaselineValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeEffectivePatchesForPatchBaseline{}, middleware.After)
}
func addOpDescribeInstanceAssociationsStatusValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeInstanceAssociationsStatus{}, middleware.After)
}
func addOpDescribeInstanceInformationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeInstanceInformation{}, middleware.After)
}
func addOpDescribeInstancePatchesValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeInstancePatches{}, middleware.After)
}
func addOpDescribeInstancePatchStatesForPatchGroupValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeInstancePatchStatesForPatchGroup{}, middleware.After)
}
func addOpDescribeInstancePatchStatesValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeInstancePatchStates{}, middleware.After)
}
func addOpDescribeMaintenanceWindowExecutionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeMaintenanceWindowExecutions{}, middleware.After)
}
func addOpDescribeMaintenanceWindowExecutionTaskInvocationsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeMaintenanceWindowExecutionTaskInvocations{}, middleware.After)
}
func addOpDescribeMaintenanceWindowExecutionTasksValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeMaintenanceWindowExecutionTasks{}, middleware.After)
}
func addOpDescribeMaintenanceWindowsForTargetValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeMaintenanceWindowsForTarget{}, middleware.After)
}
func addOpDescribeMaintenanceWindowTargetsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeMaintenanceWindowTargets{}, middleware.After)
}
func addOpDescribeMaintenanceWindowTasksValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeMaintenanceWindowTasks{}, middleware.After)
}
func addOpDescribeOpsItemsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeOpsItems{}, middleware.After)
}
func addOpDescribeParametersValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeParameters{}, middleware.After)
}
func addOpDescribePatchGroupStateValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribePatchGroupState{}, middleware.After)
}
func addOpDescribePatchPropertiesValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribePatchProperties{}, middleware.After)
}
func addOpDescribeSessionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeSessions{}, middleware.After)
}
func addOpDisassociateOpsItemRelatedItemValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDisassociateOpsItemRelatedItem{}, middleware.After)
}
func addOpGetAutomationExecutionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetAutomationExecution{}, middleware.After)
}
func addOpGetCalendarStateValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetCalendarState{}, middleware.After)
}
func addOpGetCommandInvocationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetCommandInvocation{}, middleware.After)
}
func addOpGetConnectionStatusValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetConnectionStatus{}, middleware.After)
}
func addOpGetDeployablePatchSnapshotForInstanceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetDeployablePatchSnapshotForInstance{}, middleware.After)
}
func addOpGetDocumentValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetDocument{}, middleware.After)
}
func addOpGetInventoryValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetInventory{}, middleware.After)
}
func addOpGetMaintenanceWindowExecutionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetMaintenanceWindowExecution{}, middleware.After)
}
func addOpGetMaintenanceWindowExecutionTaskValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetMaintenanceWindowExecutionTask{}, middleware.After)
}
func addOpGetMaintenanceWindowExecutionTaskInvocationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetMaintenanceWindowExecutionTaskInvocation{}, middleware.After)
}
func addOpGetMaintenanceWindowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetMaintenanceWindow{}, middleware.After)
}
func addOpGetMaintenanceWindowTaskValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetMaintenanceWindowTask{}, middleware.After)
}
func addOpGetOpsItemValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetOpsItem{}, middleware.After)
}
func addOpGetOpsMetadataValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetOpsMetadata{}, middleware.After)
}
func addOpGetOpsSummaryValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetOpsSummary{}, middleware.After)
}
func addOpGetParameterHistoryValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetParameterHistory{}, middleware.After)
}
func addOpGetParameterValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetParameter{}, middleware.After)
}
func addOpGetParametersByPathValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetParametersByPath{}, middleware.After)
}
func addOpGetParametersValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetParameters{}, middleware.After)
}
func addOpGetPatchBaselineForPatchGroupValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetPatchBaselineForPatchGroup{}, middleware.After)
}
func addOpGetPatchBaselineValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetPatchBaseline{}, middleware.After)
}
func addOpGetResourcePoliciesValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetResourcePolicies{}, middleware.After)
}
func addOpGetServiceSettingValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetServiceSetting{}, middleware.After)
}
func addOpLabelParameterVersionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpLabelParameterVersion{}, middleware.After)
}
func addOpListAssociationsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListAssociations{}, middleware.After)
}
func addOpListAssociationVersionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListAssociationVersions{}, middleware.After)
}
func addOpListCommandInvocationsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListCommandInvocations{}, middleware.After)
}
func addOpListCommandsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListCommands{}, middleware.After)
}
func addOpListDocumentMetadataHistoryValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListDocumentMetadataHistory{}, middleware.After)
}
func addOpListDocumentsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListDocuments{}, middleware.After)
}
func addOpListDocumentVersionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListDocumentVersions{}, middleware.After)
}
func addOpListInventoryEntriesValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListInventoryEntries{}, middleware.After)
}
func addOpListOpsItemEventsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListOpsItemEvents{}, middleware.After)
}
func addOpListOpsItemRelatedItemsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListOpsItemRelatedItems{}, middleware.After)
}
func addOpListOpsMetadataValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListOpsMetadata{}, middleware.After)
}
func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After)
}
func addOpModifyDocumentPermissionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpModifyDocumentPermission{}, middleware.After)
}
func addOpPutComplianceItemsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpPutComplianceItems{}, middleware.After)
}
func addOpPutInventoryValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpPutInventory{}, middleware.After)
}
func addOpPutParameterValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpPutParameter{}, middleware.After)
}
func addOpPutResourcePolicyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpPutResourcePolicy{}, middleware.After)
}
func addOpRegisterDefaultPatchBaselineValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpRegisterDefaultPatchBaseline{}, middleware.After)
}
func addOpRegisterPatchBaselineForPatchGroupValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpRegisterPatchBaselineForPatchGroup{}, middleware.After)
}
func addOpRegisterTargetWithMaintenanceWindowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpRegisterTargetWithMaintenanceWindow{}, middleware.After)
}
func addOpRegisterTaskWithMaintenanceWindowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpRegisterTaskWithMaintenanceWindow{}, middleware.After)
}
func addOpRemoveTagsFromResourceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpRemoveTagsFromResource{}, middleware.After)
}
func addOpResetServiceSettingValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpResetServiceSetting{}, middleware.After)
}
func addOpResumeSessionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpResumeSession{}, middleware.After)
}
func addOpSendAutomationSignalValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpSendAutomationSignal{}, middleware.After)
}
func addOpSendCommandValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpSendCommand{}, middleware.After)
}
func addOpStartAssociationsOnceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartAssociationsOnce{}, middleware.After)
}
func addOpStartAutomationExecutionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartAutomationExecution{}, middleware.After)
}
func addOpStartChangeRequestExecutionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartChangeRequestExecution{}, middleware.After)
}
func addOpStartSessionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartSession{}, middleware.After)
}
func addOpStopAutomationExecutionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStopAutomationExecution{}, middleware.After)
}
func addOpTerminateSessionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpTerminateSession{}, middleware.After)
}
func addOpUnlabelParameterVersionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUnlabelParameterVersion{}, middleware.After)
}
func addOpUpdateAssociationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateAssociation{}, middleware.After)
}
func addOpUpdateAssociationStatusValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateAssociationStatus{}, middleware.After)
}
func addOpUpdateDocumentDefaultVersionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateDocumentDefaultVersion{}, middleware.After)
}
func addOpUpdateDocumentValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateDocument{}, middleware.After)
}
func addOpUpdateDocumentMetadataValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateDocumentMetadata{}, middleware.After)
}
func addOpUpdateMaintenanceWindowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateMaintenanceWindow{}, middleware.After)
}
func addOpUpdateMaintenanceWindowTargetValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateMaintenanceWindowTarget{}, middleware.After)
}
func addOpUpdateMaintenanceWindowTaskValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateMaintenanceWindowTask{}, middleware.After)
}
func addOpUpdateManagedInstanceRoleValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateManagedInstanceRole{}, middleware.After)
}
func addOpUpdateOpsItemValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateOpsItem{}, middleware.After)
}
func addOpUpdateOpsMetadataValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateOpsMetadata{}, middleware.After)
}
func addOpUpdatePatchBaselineValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdatePatchBaseline{}, middleware.After)
}
func addOpUpdateResourceDataSyncValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateResourceDataSync{}, middleware.After)
}
func addOpUpdateServiceSettingValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateServiceSetting{}, middleware.After)
}
func validateAlarm(v *types.Alarm) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Alarm"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAlarmConfiguration(v *types.AlarmConfiguration) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AlarmConfiguration"}
if v.Alarms == nil {
invalidParams.Add(smithy.NewErrParamRequired("Alarms"))
} else if v.Alarms != nil {
if err := validateAlarmList(v.Alarms); err != nil {
invalidParams.AddNested("Alarms", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAlarmList(v []types.Alarm) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AlarmList"}
for i := range v {
if err := validateAlarm(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAssociationExecutionFilter(v *types.AssociationExecutionFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AssociationExecutionFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if len(v.Type) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Type"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAssociationExecutionFilterList(v []types.AssociationExecutionFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AssociationExecutionFilterList"}
for i := range v {
if err := validateAssociationExecutionFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAssociationExecutionTargetsFilter(v *types.AssociationExecutionTargetsFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AssociationExecutionTargetsFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAssociationExecutionTargetsFilterList(v []types.AssociationExecutionTargetsFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AssociationExecutionTargetsFilterList"}
for i := range v {
if err := validateAssociationExecutionTargetsFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAssociationFilter(v *types.AssociationFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AssociationFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAssociationFilterList(v []types.AssociationFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AssociationFilterList"}
for i := range v {
if err := validateAssociationFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAssociationStatus(v *types.AssociationStatus) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AssociationStatus"}
if v.Date == nil {
invalidParams.Add(smithy.NewErrParamRequired("Date"))
}
if len(v.Name) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Message == nil {
invalidParams.Add(smithy.NewErrParamRequired("Message"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAutomationExecutionFilter(v *types.AutomationExecutionFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AutomationExecutionFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAutomationExecutionFilterList(v []types.AutomationExecutionFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AutomationExecutionFilterList"}
for i := range v {
if err := validateAutomationExecutionFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateBaselineOverride(v *types.BaselineOverride) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BaselineOverride"}
if v.GlobalFilters != nil {
if err := validatePatchFilterGroup(v.GlobalFilters); err != nil {
invalidParams.AddNested("GlobalFilters", err.(smithy.InvalidParamsError))
}
}
if v.ApprovalRules != nil {
if err := validatePatchRuleGroup(v.ApprovalRules); err != nil {
invalidParams.AddNested("ApprovalRules", err.(smithy.InvalidParamsError))
}
}
if v.Sources != nil {
if err := validatePatchSourceList(v.Sources); err != nil {
invalidParams.AddNested("Sources", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCommandFilter(v *types.CommandFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CommandFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCommandFilterList(v []types.CommandFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CommandFilterList"}
for i := range v {
if err := validateCommandFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateComplianceExecutionSummary(v *types.ComplianceExecutionSummary) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ComplianceExecutionSummary"}
if v.ExecutionTime == nil {
invalidParams.Add(smithy.NewErrParamRequired("ExecutionTime"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateComplianceItemEntry(v *types.ComplianceItemEntry) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ComplianceItemEntry"}
if len(v.Severity) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Severity"))
}
if len(v.Status) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Status"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateComplianceItemEntryList(v []types.ComplianceItemEntry) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ComplianceItemEntryList"}
for i := range v {
if err := validateComplianceItemEntry(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCreateAssociationBatchRequestEntries(v []types.CreateAssociationBatchRequestEntry) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateAssociationBatchRequestEntries"}
for i := range v {
if err := validateCreateAssociationBatchRequestEntry(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCreateAssociationBatchRequestEntry(v *types.CreateAssociationBatchRequestEntry) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateAssociationBatchRequestEntry"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.TargetLocations != nil {
if err := validateTargetLocations(v.TargetLocations); err != nil {
invalidParams.AddNested("TargetLocations", err.(smithy.InvalidParamsError))
}
}
if v.AlarmConfiguration != nil {
if err := validateAlarmConfiguration(v.AlarmConfiguration); err != nil {
invalidParams.AddNested("AlarmConfiguration", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDocumentFilter(v *types.DocumentFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DocumentFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDocumentFilterList(v []types.DocumentFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DocumentFilterList"}
for i := range v {
if err := validateDocumentFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDocumentRequires(v *types.DocumentRequires) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DocumentRequires"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDocumentRequiresList(v []types.DocumentRequires) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DocumentRequiresList"}
for i := range v {
if err := validateDocumentRequires(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDocumentReviews(v *types.DocumentReviews) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DocumentReviews"}
if len(v.Action) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Action"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInstanceInformationFilter(v *types.InstanceInformationFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InstanceInformationFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.ValueSet == nil {
invalidParams.Add(smithy.NewErrParamRequired("ValueSet"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInstanceInformationFilterList(v []types.InstanceInformationFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InstanceInformationFilterList"}
for i := range v {
if err := validateInstanceInformationFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInstanceInformationStringFilter(v *types.InstanceInformationStringFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InstanceInformationStringFilter"}
if v.Key == nil {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInstanceInformationStringFilterList(v []types.InstanceInformationStringFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InstanceInformationStringFilterList"}
for i := range v {
if err := validateInstanceInformationStringFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInstancePatchStateFilter(v *types.InstancePatchStateFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InstancePatchStateFilter"}
if v.Key == nil {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if len(v.Type) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Type"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInstancePatchStateFilterList(v []types.InstancePatchStateFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InstancePatchStateFilterList"}
for i := range v {
if err := validateInstancePatchStateFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInventoryAggregator(v *types.InventoryAggregator) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InventoryAggregator"}
if v.Aggregators != nil {
if err := validateInventoryAggregatorList(v.Aggregators); err != nil {
invalidParams.AddNested("Aggregators", err.(smithy.InvalidParamsError))
}
}
if v.Groups != nil {
if err := validateInventoryGroupList(v.Groups); err != nil {
invalidParams.AddNested("Groups", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInventoryAggregatorList(v []types.InventoryAggregator) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InventoryAggregatorList"}
for i := range v {
if err := validateInventoryAggregator(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInventoryFilter(v *types.InventoryFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InventoryFilter"}
if v.Key == nil {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInventoryFilterList(v []types.InventoryFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InventoryFilterList"}
for i := range v {
if err := validateInventoryFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInventoryGroup(v *types.InventoryGroup) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InventoryGroup"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Filters == nil {
invalidParams.Add(smithy.NewErrParamRequired("Filters"))
} else if v.Filters != nil {
if err := validateInventoryFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInventoryGroupList(v []types.InventoryGroup) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InventoryGroupList"}
for i := range v {
if err := validateInventoryGroup(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInventoryItem(v *types.InventoryItem) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InventoryItem"}
if v.TypeName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TypeName"))
}
if v.SchemaVersion == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaVersion"))
}
if v.CaptureTime == nil {
invalidParams.Add(smithy.NewErrParamRequired("CaptureTime"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateInventoryItemList(v []types.InventoryItem) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "InventoryItemList"}
for i := range v {
if err := validateInventoryItem(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateLoggingInfo(v *types.LoggingInfo) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "LoggingInfo"}
if v.S3BucketName == nil {
invalidParams.Add(smithy.NewErrParamRequired("S3BucketName"))
}
if v.S3Region == nil {
invalidParams.Add(smithy.NewErrParamRequired("S3Region"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsAggregator(v *types.OpsAggregator) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsAggregator"}
if v.Filters != nil {
if err := validateOpsFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if v.Aggregators != nil {
if err := validateOpsAggregatorList(v.Aggregators); err != nil {
invalidParams.AddNested("Aggregators", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsAggregatorList(v []types.OpsAggregator) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsAggregatorList"}
for i := range v {
if err := validateOpsAggregator(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsFilter(v *types.OpsFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsFilter"}
if v.Key == nil {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsFilterList(v []types.OpsFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsFilterList"}
for i := range v {
if err := validateOpsFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsItemEventFilter(v *types.OpsItemEventFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsItemEventFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if len(v.Operator) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Operator"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsItemEventFilters(v []types.OpsItemEventFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsItemEventFilters"}
for i := range v {
if err := validateOpsItemEventFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsItemFilter(v *types.OpsItemFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsItemFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if len(v.Operator) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Operator"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsItemFilters(v []types.OpsItemFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsItemFilters"}
for i := range v {
if err := validateOpsItemFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsItemRelatedItemsFilter(v *types.OpsItemRelatedItemsFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsItemRelatedItemsFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if len(v.Operator) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Operator"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsItemRelatedItemsFilters(v []types.OpsItemRelatedItemsFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsItemRelatedItemsFilters"}
for i := range v {
if err := validateOpsItemRelatedItemsFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsMetadataFilter(v *types.OpsMetadataFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsMetadataFilter"}
if v.Key == nil {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsMetadataFilterList(v []types.OpsMetadataFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsMetadataFilterList"}
for i := range v {
if err := validateOpsMetadataFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsResultAttribute(v *types.OpsResultAttribute) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsResultAttribute"}
if v.TypeName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TypeName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpsResultAttributeList(v []types.OpsResultAttribute) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OpsResultAttributeList"}
for i := range v {
if err := validateOpsResultAttribute(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateParametersFilter(v *types.ParametersFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ParametersFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateParametersFilterList(v []types.ParametersFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ParametersFilterList"}
for i := range v {
if err := validateParametersFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateParameterStringFilter(v *types.ParameterStringFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ParameterStringFilter"}
if v.Key == nil {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateParameterStringFilterList(v []types.ParameterStringFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ParameterStringFilterList"}
for i := range v {
if err := validateParameterStringFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePatchFilter(v *types.PatchFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PatchFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePatchFilterGroup(v *types.PatchFilterGroup) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PatchFilterGroup"}
if v.PatchFilters == nil {
invalidParams.Add(smithy.NewErrParamRequired("PatchFilters"))
} else if v.PatchFilters != nil {
if err := validatePatchFilterList(v.PatchFilters); err != nil {
invalidParams.AddNested("PatchFilters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePatchFilterList(v []types.PatchFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PatchFilterList"}
for i := range v {
if err := validatePatchFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePatchRule(v *types.PatchRule) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PatchRule"}
if v.PatchFilterGroup == nil {
invalidParams.Add(smithy.NewErrParamRequired("PatchFilterGroup"))
} else if v.PatchFilterGroup != nil {
if err := validatePatchFilterGroup(v.PatchFilterGroup); err != nil {
invalidParams.AddNested("PatchFilterGroup", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePatchRuleGroup(v *types.PatchRuleGroup) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PatchRuleGroup"}
if v.PatchRules == nil {
invalidParams.Add(smithy.NewErrParamRequired("PatchRules"))
} else if v.PatchRules != nil {
if err := validatePatchRuleList(v.PatchRules); err != nil {
invalidParams.AddNested("PatchRules", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePatchRuleList(v []types.PatchRule) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PatchRuleList"}
for i := range v {
if err := validatePatchRule(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePatchSource(v *types.PatchSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PatchSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Products == nil {
invalidParams.Add(smithy.NewErrParamRequired("Products"))
}
if v.Configuration == nil {
invalidParams.Add(smithy.NewErrParamRequired("Configuration"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePatchSourceList(v []types.PatchSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PatchSourceList"}
for i := range v {
if err := validatePatchSource(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateRegistrationMetadataItem(v *types.RegistrationMetadataItem) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RegistrationMetadataItem"}
if v.Key == nil {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateRegistrationMetadataList(v []types.RegistrationMetadataItem) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RegistrationMetadataList"}
for i := range v {
if err := validateRegistrationMetadataItem(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateRelatedOpsItem(v *types.RelatedOpsItem) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RelatedOpsItem"}
if v.OpsItemId == nil {
invalidParams.Add(smithy.NewErrParamRequired("OpsItemId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateRelatedOpsItems(v []types.RelatedOpsItem) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RelatedOpsItems"}
for i := range v {
if err := validateRelatedOpsItem(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateResourceDataSyncAwsOrganizationsSource(v *types.ResourceDataSyncAwsOrganizationsSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ResourceDataSyncAwsOrganizationsSource"}
if v.OrganizationSourceType == nil {
invalidParams.Add(smithy.NewErrParamRequired("OrganizationSourceType"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateResourceDataSyncS3Destination(v *types.ResourceDataSyncS3Destination) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ResourceDataSyncS3Destination"}
if v.BucketName == nil {
invalidParams.Add(smithy.NewErrParamRequired("BucketName"))
}
if len(v.SyncFormat) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("SyncFormat"))
}
if v.Region == nil {
invalidParams.Add(smithy.NewErrParamRequired("Region"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateResourceDataSyncSource(v *types.ResourceDataSyncSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ResourceDataSyncSource"}
if v.SourceType == nil {
invalidParams.Add(smithy.NewErrParamRequired("SourceType"))
}
if v.AwsOrganizationsSource != nil {
if err := validateResourceDataSyncAwsOrganizationsSource(v.AwsOrganizationsSource); err != nil {
invalidParams.AddNested("AwsOrganizationsSource", err.(smithy.InvalidParamsError))
}
}
if v.SourceRegions == nil {
invalidParams.Add(smithy.NewErrParamRequired("SourceRegions"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateResultAttribute(v *types.ResultAttribute) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ResultAttribute"}
if v.TypeName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TypeName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateResultAttributeList(v []types.ResultAttribute) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ResultAttributeList"}
for i := range v {
if err := validateResultAttribute(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateRunbook(v *types.Runbook) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Runbook"}
if v.DocumentName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DocumentName"))
}
if v.TargetLocations != nil {
if err := validateTargetLocations(v.TargetLocations); err != nil {
invalidParams.AddNested("TargetLocations", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateRunbooks(v []types.Runbook) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Runbooks"}
for i := range v {
if err := validateRunbook(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSessionFilter(v *types.SessionFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SessionFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSessionFilterList(v []types.SessionFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SessionFilterList"}
for i := range v {
if err := validateSessionFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateStepExecutionFilter(v *types.StepExecutionFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StepExecutionFilter"}
if len(v.Key) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateStepExecutionFilterList(v []types.StepExecutionFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StepExecutionFilterList"}
for i := range v {
if err := validateStepExecutionFilter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTag(v *types.Tag) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Tag"}
if v.Key == nil {
invalidParams.Add(smithy.NewErrParamRequired("Key"))
}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTagList(v []types.Tag) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TagList"}
for i := range v {
if err := validateTag(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTargetLocation(v *types.TargetLocation) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TargetLocation"}
if v.TargetLocationAlarmConfiguration != nil {
if err := validateAlarmConfiguration(v.TargetLocationAlarmConfiguration); err != nil {
invalidParams.AddNested("TargetLocationAlarmConfiguration", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTargetLocations(v []types.TargetLocation) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TargetLocations"}
for i := range v {
if err := validateTargetLocation(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpAddTagsToResourceInput(v *AddTagsToResourceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AddTagsToResourceInput"}
if len(v.ResourceType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("ResourceType"))
}
if v.ResourceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceId"))
}
if v.Tags == nil {
invalidParams.Add(smithy.NewErrParamRequired("Tags"))
} else if v.Tags != nil {
if err := validateTagList(v.Tags); err != nil {
invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpAssociateOpsItemRelatedItemInput(v *AssociateOpsItemRelatedItemInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AssociateOpsItemRelatedItemInput"}
if v.OpsItemId == nil {
invalidParams.Add(smithy.NewErrParamRequired("OpsItemId"))
}
if v.AssociationType == nil {
invalidParams.Add(smithy.NewErrParamRequired("AssociationType"))
}
if v.ResourceType == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceType"))
}
if v.ResourceUri == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceUri"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCancelCommandInput(v *CancelCommandInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CancelCommandInput"}
if v.CommandId == nil {
invalidParams.Add(smithy.NewErrParamRequired("CommandId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCancelMaintenanceWindowExecutionInput(v *CancelMaintenanceWindowExecutionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CancelMaintenanceWindowExecutionInput"}
if v.WindowExecutionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowExecutionId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateActivationInput(v *CreateActivationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateActivationInput"}
if v.IamRole == nil {
invalidParams.Add(smithy.NewErrParamRequired("IamRole"))
}
if v.Tags != nil {
if err := validateTagList(v.Tags); err != nil {
invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError))
}
}
if v.RegistrationMetadata != nil {
if err := validateRegistrationMetadataList(v.RegistrationMetadata); err != nil {
invalidParams.AddNested("RegistrationMetadata", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateAssociationBatchInput(v *CreateAssociationBatchInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateAssociationBatchInput"}
if v.Entries == nil {
invalidParams.Add(smithy.NewErrParamRequired("Entries"))
} else if v.Entries != nil {
if err := validateCreateAssociationBatchRequestEntries(v.Entries); err != nil {
invalidParams.AddNested("Entries", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateAssociationInput(v *CreateAssociationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateAssociationInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.TargetLocations != nil {
if err := validateTargetLocations(v.TargetLocations); err != nil {
invalidParams.AddNested("TargetLocations", err.(smithy.InvalidParamsError))
}
}
if v.Tags != nil {
if err := validateTagList(v.Tags); err != nil {
invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError))
}
}
if v.AlarmConfiguration != nil {
if err := validateAlarmConfiguration(v.AlarmConfiguration); err != nil {
invalidParams.AddNested("AlarmConfiguration", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateDocumentInput(v *CreateDocumentInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateDocumentInput"}
if v.Content == nil {
invalidParams.Add(smithy.NewErrParamRequired("Content"))
}
if v.Requires != nil {
if err := validateDocumentRequiresList(v.Requires); err != nil {
invalidParams.AddNested("Requires", err.(smithy.InvalidParamsError))
}
}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Tags != nil {
if err := validateTagList(v.Tags); err != nil {
invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateMaintenanceWindowInput(v *CreateMaintenanceWindowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateMaintenanceWindowInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Schedule == nil {
invalidParams.Add(smithy.NewErrParamRequired("Schedule"))
}
if v.Tags != nil {
if err := validateTagList(v.Tags); err != nil {
invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateOpsItemInput(v *CreateOpsItemInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateOpsItemInput"}
if v.Description == nil {
invalidParams.Add(smithy.NewErrParamRequired("Description"))
}
if v.RelatedOpsItems != nil {
if err := validateRelatedOpsItems(v.RelatedOpsItems); err != nil {
invalidParams.AddNested("RelatedOpsItems", err.(smithy.InvalidParamsError))
}
}
if v.Source == nil {
invalidParams.Add(smithy.NewErrParamRequired("Source"))
}
if v.Title == nil {
invalidParams.Add(smithy.NewErrParamRequired("Title"))
}
if v.Tags != nil {
if err := validateTagList(v.Tags); err != nil {
invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateOpsMetadataInput(v *CreateOpsMetadataInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateOpsMetadataInput"}
if v.ResourceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceId"))
}
if v.Tags != nil {
if err := validateTagList(v.Tags); err != nil {
invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreatePatchBaselineInput(v *CreatePatchBaselineInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreatePatchBaselineInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.GlobalFilters != nil {
if err := validatePatchFilterGroup(v.GlobalFilters); err != nil {
invalidParams.AddNested("GlobalFilters", err.(smithy.InvalidParamsError))
}
}
if v.ApprovalRules != nil {
if err := validatePatchRuleGroup(v.ApprovalRules); err != nil {
invalidParams.AddNested("ApprovalRules", err.(smithy.InvalidParamsError))
}
}
if v.Sources != nil {
if err := validatePatchSourceList(v.Sources); err != nil {
invalidParams.AddNested("Sources", err.(smithy.InvalidParamsError))
}
}
if v.Tags != nil {
if err := validateTagList(v.Tags); err != nil {
invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateResourceDataSyncInput(v *CreateResourceDataSyncInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateResourceDataSyncInput"}
if v.SyncName == nil {
invalidParams.Add(smithy.NewErrParamRequired("SyncName"))
}
if v.S3Destination != nil {
if err := validateResourceDataSyncS3Destination(v.S3Destination); err != nil {
invalidParams.AddNested("S3Destination", err.(smithy.InvalidParamsError))
}
}
if v.SyncSource != nil {
if err := validateResourceDataSyncSource(v.SyncSource); err != nil {
invalidParams.AddNested("SyncSource", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteActivationInput(v *DeleteActivationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteActivationInput"}
if v.ActivationId == nil {
invalidParams.Add(smithy.NewErrParamRequired("ActivationId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteDocumentInput(v *DeleteDocumentInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteDocumentInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteInventoryInput(v *DeleteInventoryInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteInventoryInput"}
if v.TypeName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TypeName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteMaintenanceWindowInput(v *DeleteMaintenanceWindowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteMaintenanceWindowInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteOpsMetadataInput(v *DeleteOpsMetadataInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteOpsMetadataInput"}
if v.OpsMetadataArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("OpsMetadataArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteParameterInput(v *DeleteParameterInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteParameterInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteParametersInput(v *DeleteParametersInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteParametersInput"}
if v.Names == nil {
invalidParams.Add(smithy.NewErrParamRequired("Names"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeletePatchBaselineInput(v *DeletePatchBaselineInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeletePatchBaselineInput"}
if v.BaselineId == nil {
invalidParams.Add(smithy.NewErrParamRequired("BaselineId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteResourceDataSyncInput(v *DeleteResourceDataSyncInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteResourceDataSyncInput"}
if v.SyncName == nil {
invalidParams.Add(smithy.NewErrParamRequired("SyncName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteResourcePolicyInput(v *DeleteResourcePolicyInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteResourcePolicyInput"}
if v.ResourceArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
}
if v.PolicyId == nil {
invalidParams.Add(smithy.NewErrParamRequired("PolicyId"))
}
if v.PolicyHash == nil {
invalidParams.Add(smithy.NewErrParamRequired("PolicyHash"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeregisterManagedInstanceInput(v *DeregisterManagedInstanceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeregisterManagedInstanceInput"}
if v.InstanceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("InstanceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeregisterPatchBaselineForPatchGroupInput(v *DeregisterPatchBaselineForPatchGroupInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeregisterPatchBaselineForPatchGroupInput"}
if v.BaselineId == nil {
invalidParams.Add(smithy.NewErrParamRequired("BaselineId"))
}
if v.PatchGroup == nil {
invalidParams.Add(smithy.NewErrParamRequired("PatchGroup"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeregisterTargetFromMaintenanceWindowInput(v *DeregisterTargetFromMaintenanceWindowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeregisterTargetFromMaintenanceWindowInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if v.WindowTargetId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowTargetId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeregisterTaskFromMaintenanceWindowInput(v *DeregisterTaskFromMaintenanceWindowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeregisterTaskFromMaintenanceWindowInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if v.WindowTaskId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowTaskId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeAssociationExecutionsInput(v *DescribeAssociationExecutionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeAssociationExecutionsInput"}
if v.AssociationId == nil {
invalidParams.Add(smithy.NewErrParamRequired("AssociationId"))
}
if v.Filters != nil {
if err := validateAssociationExecutionFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeAssociationExecutionTargetsInput(v *DescribeAssociationExecutionTargetsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeAssociationExecutionTargetsInput"}
if v.AssociationId == nil {
invalidParams.Add(smithy.NewErrParamRequired("AssociationId"))
}
if v.ExecutionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("ExecutionId"))
}
if v.Filters != nil {
if err := validateAssociationExecutionTargetsFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeAutomationExecutionsInput(v *DescribeAutomationExecutionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeAutomationExecutionsInput"}
if v.Filters != nil {
if err := validateAutomationExecutionFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeAutomationStepExecutionsInput(v *DescribeAutomationStepExecutionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeAutomationStepExecutionsInput"}
if v.AutomationExecutionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("AutomationExecutionId"))
}
if v.Filters != nil {
if err := validateStepExecutionFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeDocumentInput(v *DescribeDocumentInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeDocumentInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeDocumentPermissionInput(v *DescribeDocumentPermissionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeDocumentPermissionInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if len(v.PermissionType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("PermissionType"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeEffectiveInstanceAssociationsInput(v *DescribeEffectiveInstanceAssociationsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeEffectiveInstanceAssociationsInput"}
if v.InstanceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("InstanceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeEffectivePatchesForPatchBaselineInput(v *DescribeEffectivePatchesForPatchBaselineInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeEffectivePatchesForPatchBaselineInput"}
if v.BaselineId == nil {
invalidParams.Add(smithy.NewErrParamRequired("BaselineId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeInstanceAssociationsStatusInput(v *DescribeInstanceAssociationsStatusInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeInstanceAssociationsStatusInput"}
if v.InstanceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("InstanceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeInstanceInformationInput(v *DescribeInstanceInformationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeInstanceInformationInput"}
if v.InstanceInformationFilterList != nil {
if err := validateInstanceInformationFilterList(v.InstanceInformationFilterList); err != nil {
invalidParams.AddNested("InstanceInformationFilterList", err.(smithy.InvalidParamsError))
}
}
if v.Filters != nil {
if err := validateInstanceInformationStringFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeInstancePatchesInput(v *DescribeInstancePatchesInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeInstancePatchesInput"}
if v.InstanceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("InstanceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeInstancePatchStatesForPatchGroupInput(v *DescribeInstancePatchStatesForPatchGroupInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeInstancePatchStatesForPatchGroupInput"}
if v.PatchGroup == nil {
invalidParams.Add(smithy.NewErrParamRequired("PatchGroup"))
}
if v.Filters != nil {
if err := validateInstancePatchStateFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeInstancePatchStatesInput(v *DescribeInstancePatchStatesInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeInstancePatchStatesInput"}
if v.InstanceIds == nil {
invalidParams.Add(smithy.NewErrParamRequired("InstanceIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeMaintenanceWindowExecutionsInput(v *DescribeMaintenanceWindowExecutionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeMaintenanceWindowExecutionsInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeMaintenanceWindowExecutionTaskInvocationsInput(v *DescribeMaintenanceWindowExecutionTaskInvocationsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeMaintenanceWindowExecutionTaskInvocationsInput"}
if v.WindowExecutionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowExecutionId"))
}
if v.TaskId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TaskId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeMaintenanceWindowExecutionTasksInput(v *DescribeMaintenanceWindowExecutionTasksInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeMaintenanceWindowExecutionTasksInput"}
if v.WindowExecutionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowExecutionId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeMaintenanceWindowsForTargetInput(v *DescribeMaintenanceWindowsForTargetInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeMaintenanceWindowsForTargetInput"}
if v.Targets == nil {
invalidParams.Add(smithy.NewErrParamRequired("Targets"))
}
if len(v.ResourceType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("ResourceType"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeMaintenanceWindowTargetsInput(v *DescribeMaintenanceWindowTargetsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeMaintenanceWindowTargetsInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeMaintenanceWindowTasksInput(v *DescribeMaintenanceWindowTasksInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeMaintenanceWindowTasksInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeOpsItemsInput(v *DescribeOpsItemsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeOpsItemsInput"}
if v.OpsItemFilters != nil {
if err := validateOpsItemFilters(v.OpsItemFilters); err != nil {
invalidParams.AddNested("OpsItemFilters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeParametersInput(v *DescribeParametersInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeParametersInput"}
if v.Filters != nil {
if err := validateParametersFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if v.ParameterFilters != nil {
if err := validateParameterStringFilterList(v.ParameterFilters); err != nil {
invalidParams.AddNested("ParameterFilters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribePatchGroupStateInput(v *DescribePatchGroupStateInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribePatchGroupStateInput"}
if v.PatchGroup == nil {
invalidParams.Add(smithy.NewErrParamRequired("PatchGroup"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribePatchPropertiesInput(v *DescribePatchPropertiesInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribePatchPropertiesInput"}
if len(v.OperatingSystem) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("OperatingSystem"))
}
if len(v.Property) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Property"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeSessionsInput(v *DescribeSessionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeSessionsInput"}
if len(v.State) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("State"))
}
if v.Filters != nil {
if err := validateSessionFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDisassociateOpsItemRelatedItemInput(v *DisassociateOpsItemRelatedItemInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DisassociateOpsItemRelatedItemInput"}
if v.OpsItemId == nil {
invalidParams.Add(smithy.NewErrParamRequired("OpsItemId"))
}
if v.AssociationId == nil {
invalidParams.Add(smithy.NewErrParamRequired("AssociationId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetAutomationExecutionInput(v *GetAutomationExecutionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetAutomationExecutionInput"}
if v.AutomationExecutionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("AutomationExecutionId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetCalendarStateInput(v *GetCalendarStateInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetCalendarStateInput"}
if v.CalendarNames == nil {
invalidParams.Add(smithy.NewErrParamRequired("CalendarNames"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetCommandInvocationInput(v *GetCommandInvocationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetCommandInvocationInput"}
if v.CommandId == nil {
invalidParams.Add(smithy.NewErrParamRequired("CommandId"))
}
if v.InstanceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("InstanceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetConnectionStatusInput(v *GetConnectionStatusInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetConnectionStatusInput"}
if v.Target == nil {
invalidParams.Add(smithy.NewErrParamRequired("Target"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetDeployablePatchSnapshotForInstanceInput(v *GetDeployablePatchSnapshotForInstanceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetDeployablePatchSnapshotForInstanceInput"}
if v.InstanceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("InstanceId"))
}
if v.SnapshotId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SnapshotId"))
}
if v.BaselineOverride != nil {
if err := validateBaselineOverride(v.BaselineOverride); err != nil {
invalidParams.AddNested("BaselineOverride", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetDocumentInput(v *GetDocumentInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetDocumentInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetInventoryInput(v *GetInventoryInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetInventoryInput"}
if v.Filters != nil {
if err := validateInventoryFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if v.Aggregators != nil {
if err := validateInventoryAggregatorList(v.Aggregators); err != nil {
invalidParams.AddNested("Aggregators", err.(smithy.InvalidParamsError))
}
}
if v.ResultAttributes != nil {
if err := validateResultAttributeList(v.ResultAttributes); err != nil {
invalidParams.AddNested("ResultAttributes", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetMaintenanceWindowExecutionInput(v *GetMaintenanceWindowExecutionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetMaintenanceWindowExecutionInput"}
if v.WindowExecutionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowExecutionId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetMaintenanceWindowExecutionTaskInput(v *GetMaintenanceWindowExecutionTaskInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetMaintenanceWindowExecutionTaskInput"}
if v.WindowExecutionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowExecutionId"))
}
if v.TaskId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TaskId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetMaintenanceWindowExecutionTaskInvocationInput(v *GetMaintenanceWindowExecutionTaskInvocationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetMaintenanceWindowExecutionTaskInvocationInput"}
if v.WindowExecutionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowExecutionId"))
}
if v.TaskId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TaskId"))
}
if v.InvocationId == nil {
invalidParams.Add(smithy.NewErrParamRequired("InvocationId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetMaintenanceWindowInput(v *GetMaintenanceWindowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetMaintenanceWindowInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetMaintenanceWindowTaskInput(v *GetMaintenanceWindowTaskInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetMaintenanceWindowTaskInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if v.WindowTaskId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowTaskId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetOpsItemInput(v *GetOpsItemInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetOpsItemInput"}
if v.OpsItemId == nil {
invalidParams.Add(smithy.NewErrParamRequired("OpsItemId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetOpsMetadataInput(v *GetOpsMetadataInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetOpsMetadataInput"}
if v.OpsMetadataArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("OpsMetadataArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetOpsSummaryInput(v *GetOpsSummaryInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetOpsSummaryInput"}
if v.Filters != nil {
if err := validateOpsFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if v.Aggregators != nil {
if err := validateOpsAggregatorList(v.Aggregators); err != nil {
invalidParams.AddNested("Aggregators", err.(smithy.InvalidParamsError))
}
}
if v.ResultAttributes != nil {
if err := validateOpsResultAttributeList(v.ResultAttributes); err != nil {
invalidParams.AddNested("ResultAttributes", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetParameterHistoryInput(v *GetParameterHistoryInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetParameterHistoryInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetParameterInput(v *GetParameterInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetParameterInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetParametersByPathInput(v *GetParametersByPathInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetParametersByPathInput"}
if v.Path == nil {
invalidParams.Add(smithy.NewErrParamRequired("Path"))
}
if v.ParameterFilters != nil {
if err := validateParameterStringFilterList(v.ParameterFilters); err != nil {
invalidParams.AddNested("ParameterFilters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetParametersInput(v *GetParametersInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetParametersInput"}
if v.Names == nil {
invalidParams.Add(smithy.NewErrParamRequired("Names"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetPatchBaselineForPatchGroupInput(v *GetPatchBaselineForPatchGroupInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetPatchBaselineForPatchGroupInput"}
if v.PatchGroup == nil {
invalidParams.Add(smithy.NewErrParamRequired("PatchGroup"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetPatchBaselineInput(v *GetPatchBaselineInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetPatchBaselineInput"}
if v.BaselineId == nil {
invalidParams.Add(smithy.NewErrParamRequired("BaselineId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetResourcePoliciesInput(v *GetResourcePoliciesInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetResourcePoliciesInput"}
if v.ResourceArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetServiceSettingInput(v *GetServiceSettingInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetServiceSettingInput"}
if v.SettingId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SettingId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpLabelParameterVersionInput(v *LabelParameterVersionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "LabelParameterVersionInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Labels == nil {
invalidParams.Add(smithy.NewErrParamRequired("Labels"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListAssociationsInput(v *ListAssociationsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListAssociationsInput"}
if v.AssociationFilterList != nil {
if err := validateAssociationFilterList(v.AssociationFilterList); err != nil {
invalidParams.AddNested("AssociationFilterList", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListAssociationVersionsInput(v *ListAssociationVersionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListAssociationVersionsInput"}
if v.AssociationId == nil {
invalidParams.Add(smithy.NewErrParamRequired("AssociationId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListCommandInvocationsInput(v *ListCommandInvocationsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListCommandInvocationsInput"}
if v.Filters != nil {
if err := validateCommandFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListCommandsInput(v *ListCommandsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListCommandsInput"}
if v.Filters != nil {
if err := validateCommandFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListDocumentMetadataHistoryInput(v *ListDocumentMetadataHistoryInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListDocumentMetadataHistoryInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if len(v.Metadata) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Metadata"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListDocumentsInput(v *ListDocumentsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListDocumentsInput"}
if v.DocumentFilterList != nil {
if err := validateDocumentFilterList(v.DocumentFilterList); err != nil {
invalidParams.AddNested("DocumentFilterList", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListDocumentVersionsInput(v *ListDocumentVersionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListDocumentVersionsInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListInventoryEntriesInput(v *ListInventoryEntriesInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListInventoryEntriesInput"}
if v.InstanceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("InstanceId"))
}
if v.TypeName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TypeName"))
}
if v.Filters != nil {
if err := validateInventoryFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListOpsItemEventsInput(v *ListOpsItemEventsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListOpsItemEventsInput"}
if v.Filters != nil {
if err := validateOpsItemEventFilters(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListOpsItemRelatedItemsInput(v *ListOpsItemRelatedItemsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListOpsItemRelatedItemsInput"}
if v.Filters != nil {
if err := validateOpsItemRelatedItemsFilters(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListOpsMetadataInput(v *ListOpsMetadataInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListOpsMetadataInput"}
if v.Filters != nil {
if err := validateOpsMetadataFilterList(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"}
if len(v.ResourceType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("ResourceType"))
}
if v.ResourceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpModifyDocumentPermissionInput(v *ModifyDocumentPermissionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ModifyDocumentPermissionInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if len(v.PermissionType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("PermissionType"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpPutComplianceItemsInput(v *PutComplianceItemsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PutComplianceItemsInput"}
if v.ResourceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceId"))
}
if v.ResourceType == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceType"))
}
if v.ComplianceType == nil {
invalidParams.Add(smithy.NewErrParamRequired("ComplianceType"))
}
if v.ExecutionSummary == nil {
invalidParams.Add(smithy.NewErrParamRequired("ExecutionSummary"))
} else if v.ExecutionSummary != nil {
if err := validateComplianceExecutionSummary(v.ExecutionSummary); err != nil {
invalidParams.AddNested("ExecutionSummary", err.(smithy.InvalidParamsError))
}
}
if v.Items == nil {
invalidParams.Add(smithy.NewErrParamRequired("Items"))
} else if v.Items != nil {
if err := validateComplianceItemEntryList(v.Items); err != nil {
invalidParams.AddNested("Items", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpPutInventoryInput(v *PutInventoryInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PutInventoryInput"}
if v.InstanceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("InstanceId"))
}
if v.Items == nil {
invalidParams.Add(smithy.NewErrParamRequired("Items"))
} else if v.Items != nil {
if err := validateInventoryItemList(v.Items); err != nil {
invalidParams.AddNested("Items", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpPutParameterInput(v *PutParameterInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PutParameterInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if v.Tags != nil {
if err := validateTagList(v.Tags); err != nil {
invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpPutResourcePolicyInput(v *PutResourcePolicyInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PutResourcePolicyInput"}
if v.ResourceArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
}
if v.Policy == nil {
invalidParams.Add(smithy.NewErrParamRequired("Policy"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpRegisterDefaultPatchBaselineInput(v *RegisterDefaultPatchBaselineInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RegisterDefaultPatchBaselineInput"}
if v.BaselineId == nil {
invalidParams.Add(smithy.NewErrParamRequired("BaselineId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpRegisterPatchBaselineForPatchGroupInput(v *RegisterPatchBaselineForPatchGroupInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RegisterPatchBaselineForPatchGroupInput"}
if v.BaselineId == nil {
invalidParams.Add(smithy.NewErrParamRequired("BaselineId"))
}
if v.PatchGroup == nil {
invalidParams.Add(smithy.NewErrParamRequired("PatchGroup"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpRegisterTargetWithMaintenanceWindowInput(v *RegisterTargetWithMaintenanceWindowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RegisterTargetWithMaintenanceWindowInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if len(v.ResourceType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("ResourceType"))
}
if v.Targets == nil {
invalidParams.Add(smithy.NewErrParamRequired("Targets"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpRegisterTaskWithMaintenanceWindowInput(v *RegisterTaskWithMaintenanceWindowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RegisterTaskWithMaintenanceWindowInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if v.TaskArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("TaskArn"))
}
if len(v.TaskType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("TaskType"))
}
if v.LoggingInfo != nil {
if err := validateLoggingInfo(v.LoggingInfo); err != nil {
invalidParams.AddNested("LoggingInfo", err.(smithy.InvalidParamsError))
}
}
if v.AlarmConfiguration != nil {
if err := validateAlarmConfiguration(v.AlarmConfiguration); err != nil {
invalidParams.AddNested("AlarmConfiguration", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpRemoveTagsFromResourceInput(v *RemoveTagsFromResourceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RemoveTagsFromResourceInput"}
if len(v.ResourceType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("ResourceType"))
}
if v.ResourceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceId"))
}
if v.TagKeys == nil {
invalidParams.Add(smithy.NewErrParamRequired("TagKeys"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpResetServiceSettingInput(v *ResetServiceSettingInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ResetServiceSettingInput"}
if v.SettingId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SettingId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpResumeSessionInput(v *ResumeSessionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ResumeSessionInput"}
if v.SessionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SessionId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpSendAutomationSignalInput(v *SendAutomationSignalInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SendAutomationSignalInput"}
if v.AutomationExecutionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("AutomationExecutionId"))
}
if len(v.SignalType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("SignalType"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpSendCommandInput(v *SendCommandInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SendCommandInput"}
if v.DocumentName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DocumentName"))
}
if v.AlarmConfiguration != nil {
if err := validateAlarmConfiguration(v.AlarmConfiguration); err != nil {
invalidParams.AddNested("AlarmConfiguration", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartAssociationsOnceInput(v *StartAssociationsOnceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartAssociationsOnceInput"}
if v.AssociationIds == nil {
invalidParams.Add(smithy.NewErrParamRequired("AssociationIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartAutomationExecutionInput(v *StartAutomationExecutionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartAutomationExecutionInput"}
if v.DocumentName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DocumentName"))
}
if v.TargetLocations != nil {
if err := validateTargetLocations(v.TargetLocations); err != nil {
invalidParams.AddNested("TargetLocations", err.(smithy.InvalidParamsError))
}
}
if v.Tags != nil {
if err := validateTagList(v.Tags); err != nil {
invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError))
}
}
if v.AlarmConfiguration != nil {
if err := validateAlarmConfiguration(v.AlarmConfiguration); err != nil {
invalidParams.AddNested("AlarmConfiguration", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartChangeRequestExecutionInput(v *StartChangeRequestExecutionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartChangeRequestExecutionInput"}
if v.DocumentName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DocumentName"))
}
if v.Runbooks == nil {
invalidParams.Add(smithy.NewErrParamRequired("Runbooks"))
} else if v.Runbooks != nil {
if err := validateRunbooks(v.Runbooks); err != nil {
invalidParams.AddNested("Runbooks", err.(smithy.InvalidParamsError))
}
}
if v.Tags != nil {
if err := validateTagList(v.Tags); err != nil {
invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartSessionInput(v *StartSessionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartSessionInput"}
if v.Target == nil {
invalidParams.Add(smithy.NewErrParamRequired("Target"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStopAutomationExecutionInput(v *StopAutomationExecutionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StopAutomationExecutionInput"}
if v.AutomationExecutionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("AutomationExecutionId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpTerminateSessionInput(v *TerminateSessionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TerminateSessionInput"}
if v.SessionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SessionId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUnlabelParameterVersionInput(v *UnlabelParameterVersionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UnlabelParameterVersionInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.ParameterVersion == nil {
invalidParams.Add(smithy.NewErrParamRequired("ParameterVersion"))
}
if v.Labels == nil {
invalidParams.Add(smithy.NewErrParamRequired("Labels"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateAssociationInput(v *UpdateAssociationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateAssociationInput"}
if v.AssociationId == nil {
invalidParams.Add(smithy.NewErrParamRequired("AssociationId"))
}
if v.TargetLocations != nil {
if err := validateTargetLocations(v.TargetLocations); err != nil {
invalidParams.AddNested("TargetLocations", err.(smithy.InvalidParamsError))
}
}
if v.AlarmConfiguration != nil {
if err := validateAlarmConfiguration(v.AlarmConfiguration); err != nil {
invalidParams.AddNested("AlarmConfiguration", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateAssociationStatusInput(v *UpdateAssociationStatusInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateAssociationStatusInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.InstanceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("InstanceId"))
}
if v.AssociationStatus == nil {
invalidParams.Add(smithy.NewErrParamRequired("AssociationStatus"))
} else if v.AssociationStatus != nil {
if err := validateAssociationStatus(v.AssociationStatus); err != nil {
invalidParams.AddNested("AssociationStatus", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateDocumentDefaultVersionInput(v *UpdateDocumentDefaultVersionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateDocumentDefaultVersionInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.DocumentVersion == nil {
invalidParams.Add(smithy.NewErrParamRequired("DocumentVersion"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateDocumentInput(v *UpdateDocumentInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateDocumentInput"}
if v.Content == nil {
invalidParams.Add(smithy.NewErrParamRequired("Content"))
}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateDocumentMetadataInput(v *UpdateDocumentMetadataInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateDocumentMetadataInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.DocumentReviews == nil {
invalidParams.Add(smithy.NewErrParamRequired("DocumentReviews"))
} else if v.DocumentReviews != nil {
if err := validateDocumentReviews(v.DocumentReviews); err != nil {
invalidParams.AddNested("DocumentReviews", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateMaintenanceWindowInput(v *UpdateMaintenanceWindowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateMaintenanceWindowInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateMaintenanceWindowTargetInput(v *UpdateMaintenanceWindowTargetInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateMaintenanceWindowTargetInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if v.WindowTargetId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowTargetId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateMaintenanceWindowTaskInput(v *UpdateMaintenanceWindowTaskInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateMaintenanceWindowTaskInput"}
if v.WindowId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowId"))
}
if v.WindowTaskId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WindowTaskId"))
}
if v.LoggingInfo != nil {
if err := validateLoggingInfo(v.LoggingInfo); err != nil {
invalidParams.AddNested("LoggingInfo", err.(smithy.InvalidParamsError))
}
}
if v.AlarmConfiguration != nil {
if err := validateAlarmConfiguration(v.AlarmConfiguration); err != nil {
invalidParams.AddNested("AlarmConfiguration", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateManagedInstanceRoleInput(v *UpdateManagedInstanceRoleInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateManagedInstanceRoleInput"}
if v.InstanceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("InstanceId"))
}
if v.IamRole == nil {
invalidParams.Add(smithy.NewErrParamRequired("IamRole"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateOpsItemInput(v *UpdateOpsItemInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateOpsItemInput"}
if v.RelatedOpsItems != nil {
if err := validateRelatedOpsItems(v.RelatedOpsItems); err != nil {
invalidParams.AddNested("RelatedOpsItems", err.(smithy.InvalidParamsError))
}
}
if v.OpsItemId == nil {
invalidParams.Add(smithy.NewErrParamRequired("OpsItemId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateOpsMetadataInput(v *UpdateOpsMetadataInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateOpsMetadataInput"}
if v.OpsMetadataArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("OpsMetadataArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdatePatchBaselineInput(v *UpdatePatchBaselineInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdatePatchBaselineInput"}
if v.BaselineId == nil {
invalidParams.Add(smithy.NewErrParamRequired("BaselineId"))
}
if v.GlobalFilters != nil {
if err := validatePatchFilterGroup(v.GlobalFilters); err != nil {
invalidParams.AddNested("GlobalFilters", err.(smithy.InvalidParamsError))
}
}
if v.ApprovalRules != nil {
if err := validatePatchRuleGroup(v.ApprovalRules); err != nil {
invalidParams.AddNested("ApprovalRules", err.(smithy.InvalidParamsError))
}
}
if v.Sources != nil {
if err := validatePatchSourceList(v.Sources); err != nil {
invalidParams.AddNested("Sources", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateResourceDataSyncInput(v *UpdateResourceDataSyncInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateResourceDataSyncInput"}
if v.SyncName == nil {
invalidParams.Add(smithy.NewErrParamRequired("SyncName"))
}
if v.SyncType == nil {
invalidParams.Add(smithy.NewErrParamRequired("SyncType"))
}
if v.SyncSource == nil {
invalidParams.Add(smithy.NewErrParamRequired("SyncSource"))
} else if v.SyncSource != nil {
if err := validateResourceDataSyncSource(v.SyncSource); err != nil {
invalidParams.AddNested("SyncSource", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateServiceSettingInput(v *UpdateServiceSettingInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateServiceSettingInput"}
if v.SettingId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SettingId"))
}
if v.SettingValue == nil {
invalidParams.Add(smithy.NewErrParamRequired("SettingValue"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
| 6,817 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package endpoints
import (
"github.com/aws/aws-sdk-go-v2/aws"
endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2"
"github.com/aws/smithy-go/logging"
"regexp"
)
// Options is the endpoint resolver configuration options
type Options struct {
// Logger is a logging implementation that log events should be sent to.
Logger logging.Logger
// LogDeprecated indicates that deprecated endpoints should be logged to the
// provided logger.
LogDeprecated bool
// ResolvedRegion is used to override the region to be resolved, rather then the
// using the value passed to the ResolveEndpoint method. This value is used by the
// SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative
// name. You must not set this value directly in your application.
ResolvedRegion string
// DisableHTTPS informs the resolver to return an endpoint that does not use the
// HTTPS scheme.
DisableHTTPS bool
// UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint.
UseDualStackEndpoint aws.DualStackEndpointState
// UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint.
UseFIPSEndpoint aws.FIPSEndpointState
}
func (o Options) GetResolvedRegion() string {
return o.ResolvedRegion
}
func (o Options) GetDisableHTTPS() bool {
return o.DisableHTTPS
}
func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState {
return o.UseDualStackEndpoint
}
func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState {
return o.UseFIPSEndpoint
}
func transformToSharedOptions(options Options) endpoints.Options {
return endpoints.Options{
Logger: options.Logger,
LogDeprecated: options.LogDeprecated,
ResolvedRegion: options.ResolvedRegion,
DisableHTTPS: options.DisableHTTPS,
UseDualStackEndpoint: options.UseDualStackEndpoint,
UseFIPSEndpoint: options.UseFIPSEndpoint,
}
}
// Resolver SSM endpoint resolver
type Resolver struct {
partitions endpoints.Partitions
}
// ResolveEndpoint resolves the service endpoint for the given region and options
func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) {
if len(region) == 0 {
return endpoint, &aws.MissingRegionError{}
}
opt := transformToSharedOptions(options)
return r.partitions.ResolveEndpoint(region, opt)
}
// New returns a new Resolver
func New() *Resolver {
return &Resolver{
partitions: defaultPartitions,
}
}
var partitionRegexp = struct {
Aws *regexp.Regexp
AwsCn *regexp.Regexp
AwsIso *regexp.Regexp
AwsIsoB *regexp.Regexp
AwsIsoE *regexp.Regexp
AwsIsoF *regexp.Regexp
AwsUsGov *regexp.Regexp
}{
Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"),
AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"),
AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"),
AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"),
AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"),
AwsIsoF: regexp.MustCompile("^us\\-isof\\-\\w+\\-\\d+$"),
AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"),
}
var defaultPartitions = endpoints.Partitions{
{
ID: "aws",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.DualStackVariant,
}: {
Hostname: "ssm.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm-fips.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
}: {
Hostname: "ssm-fips.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "ssm.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.Aws,
IsRegionalized: true,
Endpoints: endpoints.Endpoints{
endpoints.EndpointKey{
Region: "af-south-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-east-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-northeast-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-northeast-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-northeast-3",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-south-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-south-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-southeast-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-southeast-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-southeast-3",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-southeast-4",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ca-central-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ca-central-1",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm-fips.ca-central-1.amazonaws.com",
},
endpoints.EndpointKey{
Region: "eu-central-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-central-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-north-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-south-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-south-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-west-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-west-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-west-3",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "fips-ca-central-1",
}: endpoints.Endpoint{
Hostname: "ssm-fips.ca-central-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "ca-central-1",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "fips-us-east-1",
}: endpoints.Endpoint{
Hostname: "ssm-fips.us-east-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-east-1",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "fips-us-east-2",
}: endpoints.Endpoint{
Hostname: "ssm-fips.us-east-2.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-east-2",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "fips-us-west-1",
}: endpoints.Endpoint{
Hostname: "ssm-fips.us-west-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-west-1",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "fips-us-west-2",
}: endpoints.Endpoint{
Hostname: "ssm-fips.us-west-2.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-west-2",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "me-central-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "me-south-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "sa-east-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-east-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-east-1",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm-fips.us-east-1.amazonaws.com",
},
endpoints.EndpointKey{
Region: "us-east-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-east-2",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm-fips.us-east-2.amazonaws.com",
},
endpoints.EndpointKey{
Region: "us-west-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-west-1",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm-fips.us-west-1.amazonaws.com",
},
endpoints.EndpointKey{
Region: "us-west-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-west-2",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm-fips.us-west-2.amazonaws.com",
},
},
},
{
ID: "aws-cn",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.DualStackVariant,
}: {
Hostname: "ssm.{region}.api.amazonwebservices.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm-fips.{region}.amazonaws.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
}: {
Hostname: "ssm-fips.{region}.api.amazonwebservices.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "ssm.{region}.amazonaws.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsCn,
IsRegionalized: true,
Endpoints: endpoints.Endpoints{
endpoints.EndpointKey{
Region: "cn-north-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "cn-northwest-1",
}: endpoints.Endpoint{},
},
},
{
ID: "aws-iso",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm-fips.{region}.c2s.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "ssm.{region}.c2s.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIso,
IsRegionalized: true,
Endpoints: endpoints.Endpoints{
endpoints.EndpointKey{
Region: "us-iso-east-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-iso-west-1",
}: endpoints.Endpoint{},
},
},
{
ID: "aws-iso-b",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm-fips.{region}.sc2s.sgov.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "ssm.{region}.sc2s.sgov.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIsoB,
IsRegionalized: true,
Endpoints: endpoints.Endpoints{
endpoints.EndpointKey{
Region: "us-isob-east-1",
}: endpoints.Endpoint{},
},
},
{
ID: "aws-iso-e",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm-fips.{region}.cloud.adc-e.uk",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "ssm.{region}.cloud.adc-e.uk",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIsoE,
IsRegionalized: true,
},
{
ID: "aws-iso-f",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm-fips.{region}.csp.hci.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "ssm.{region}.csp.hci.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIsoF,
IsRegionalized: true,
},
{
ID: "aws-us-gov",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.DualStackVariant,
}: {
Hostname: "ssm.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
}: {
Hostname: "ssm-fips.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "ssm.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsUsGov,
IsRegionalized: true,
Endpoints: endpoints.Endpoints{
endpoints.EndpointKey{
Region: "fips-us-gov-east-1",
}: endpoints.Endpoint{
Hostname: "ssm.us-gov-east-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-gov-east-1",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "fips-us-gov-west-1",
}: endpoints.Endpoint{
Hostname: "ssm.us-gov-west-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-gov-west-1",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "us-gov-east-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-gov-east-1",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm.us-gov-east-1.amazonaws.com",
},
endpoints.EndpointKey{
Region: "us-gov-west-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-gov-west-1",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "ssm.us-gov-west-1.amazonaws.com",
},
},
},
}
| 514 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package endpoints
import (
"testing"
)
func TestRegexCompile(t *testing.T) {
_ = defaultPartitions
}
| 12 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package types
type AssociationComplianceSeverity string
// Enum values for AssociationComplianceSeverity
const (
AssociationComplianceSeverityCritical AssociationComplianceSeverity = "CRITICAL"
AssociationComplianceSeverityHigh AssociationComplianceSeverity = "HIGH"
AssociationComplianceSeverityMedium AssociationComplianceSeverity = "MEDIUM"
AssociationComplianceSeverityLow AssociationComplianceSeverity = "LOW"
AssociationComplianceSeverityUnspecified AssociationComplianceSeverity = "UNSPECIFIED"
)
// Values returns all known values for AssociationComplianceSeverity. Note that
// this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (AssociationComplianceSeverity) Values() []AssociationComplianceSeverity {
return []AssociationComplianceSeverity{
"CRITICAL",
"HIGH",
"MEDIUM",
"LOW",
"UNSPECIFIED",
}
}
type AssociationExecutionFilterKey string
// Enum values for AssociationExecutionFilterKey
const (
AssociationExecutionFilterKeyExecutionId AssociationExecutionFilterKey = "ExecutionId"
AssociationExecutionFilterKeyStatus AssociationExecutionFilterKey = "Status"
AssociationExecutionFilterKeyCreatedTime AssociationExecutionFilterKey = "CreatedTime"
)
// Values returns all known values for AssociationExecutionFilterKey. Note that
// this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (AssociationExecutionFilterKey) Values() []AssociationExecutionFilterKey {
return []AssociationExecutionFilterKey{
"ExecutionId",
"Status",
"CreatedTime",
}
}
type AssociationExecutionTargetsFilterKey string
// Enum values for AssociationExecutionTargetsFilterKey
const (
AssociationExecutionTargetsFilterKeyStatus AssociationExecutionTargetsFilterKey = "Status"
AssociationExecutionTargetsFilterKeyResourceId AssociationExecutionTargetsFilterKey = "ResourceId"
AssociationExecutionTargetsFilterKeyResourceType AssociationExecutionTargetsFilterKey = "ResourceType"
)
// Values returns all known values for AssociationExecutionTargetsFilterKey. Note
// that this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (AssociationExecutionTargetsFilterKey) Values() []AssociationExecutionTargetsFilterKey {
return []AssociationExecutionTargetsFilterKey{
"Status",
"ResourceId",
"ResourceType",
}
}
type AssociationFilterKey string
// Enum values for AssociationFilterKey
const (
AssociationFilterKeyInstanceId AssociationFilterKey = "InstanceId"
AssociationFilterKeyName AssociationFilterKey = "Name"
AssociationFilterKeyAssociationId AssociationFilterKey = "AssociationId"
AssociationFilterKeyStatus AssociationFilterKey = "AssociationStatusName"
AssociationFilterKeyLastExecutedBefore AssociationFilterKey = "LastExecutedBefore"
AssociationFilterKeyLastExecutedAfter AssociationFilterKey = "LastExecutedAfter"
AssociationFilterKeyAssociationName AssociationFilterKey = "AssociationName"
AssociationFilterKeyResourceGroupName AssociationFilterKey = "ResourceGroupName"
)
// Values returns all known values for AssociationFilterKey. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (AssociationFilterKey) Values() []AssociationFilterKey {
return []AssociationFilterKey{
"InstanceId",
"Name",
"AssociationId",
"AssociationStatusName",
"LastExecutedBefore",
"LastExecutedAfter",
"AssociationName",
"ResourceGroupName",
}
}
type AssociationFilterOperatorType string
// Enum values for AssociationFilterOperatorType
const (
AssociationFilterOperatorTypeEqual AssociationFilterOperatorType = "EQUAL"
AssociationFilterOperatorTypeLessThan AssociationFilterOperatorType = "LESS_THAN"
AssociationFilterOperatorTypeGreaterThan AssociationFilterOperatorType = "GREATER_THAN"
)
// Values returns all known values for AssociationFilterOperatorType. Note that
// this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (AssociationFilterOperatorType) Values() []AssociationFilterOperatorType {
return []AssociationFilterOperatorType{
"EQUAL",
"LESS_THAN",
"GREATER_THAN",
}
}
type AssociationStatusName string
// Enum values for AssociationStatusName
const (
AssociationStatusNamePending AssociationStatusName = "Pending"
AssociationStatusNameSuccess AssociationStatusName = "Success"
AssociationStatusNameFailed AssociationStatusName = "Failed"
)
// Values returns all known values for AssociationStatusName. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (AssociationStatusName) Values() []AssociationStatusName {
return []AssociationStatusName{
"Pending",
"Success",
"Failed",
}
}
type AssociationSyncCompliance string
// Enum values for AssociationSyncCompliance
const (
AssociationSyncComplianceAuto AssociationSyncCompliance = "AUTO"
AssociationSyncComplianceManual AssociationSyncCompliance = "MANUAL"
)
// Values returns all known values for AssociationSyncCompliance. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (AssociationSyncCompliance) Values() []AssociationSyncCompliance {
return []AssociationSyncCompliance{
"AUTO",
"MANUAL",
}
}
type AttachmentHashType string
// Enum values for AttachmentHashType
const (
AttachmentHashTypeSha256 AttachmentHashType = "Sha256"
)
// Values returns all known values for AttachmentHashType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (AttachmentHashType) Values() []AttachmentHashType {
return []AttachmentHashType{
"Sha256",
}
}
type AttachmentsSourceKey string
// Enum values for AttachmentsSourceKey
const (
AttachmentsSourceKeySourceUrl AttachmentsSourceKey = "SourceUrl"
AttachmentsSourceKeyS3FileUrl AttachmentsSourceKey = "S3FileUrl"
AttachmentsSourceKeyAttachmentReference AttachmentsSourceKey = "AttachmentReference"
)
// Values returns all known values for AttachmentsSourceKey. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (AttachmentsSourceKey) Values() []AttachmentsSourceKey {
return []AttachmentsSourceKey{
"SourceUrl",
"S3FileUrl",
"AttachmentReference",
}
}
type AutomationExecutionFilterKey string
// Enum values for AutomationExecutionFilterKey
const (
AutomationExecutionFilterKeyDocumentNamePrefix AutomationExecutionFilterKey = "DocumentNamePrefix"
AutomationExecutionFilterKeyExecutionStatus AutomationExecutionFilterKey = "ExecutionStatus"
AutomationExecutionFilterKeyExecutionId AutomationExecutionFilterKey = "ExecutionId"
AutomationExecutionFilterKeyParentExecutionId AutomationExecutionFilterKey = "ParentExecutionId"
AutomationExecutionFilterKeyCurrentAction AutomationExecutionFilterKey = "CurrentAction"
AutomationExecutionFilterKeyStartTimeBefore AutomationExecutionFilterKey = "StartTimeBefore"
AutomationExecutionFilterKeyStartTimeAfter AutomationExecutionFilterKey = "StartTimeAfter"
AutomationExecutionFilterKeyAutomationType AutomationExecutionFilterKey = "AutomationType"
AutomationExecutionFilterKeyTagKey AutomationExecutionFilterKey = "TagKey"
AutomationExecutionFilterKeyTargetResourceGroup AutomationExecutionFilterKey = "TargetResourceGroup"
AutomationExecutionFilterKeyAutomationSubtype AutomationExecutionFilterKey = "AutomationSubtype"
AutomationExecutionFilterKeyOpsItemId AutomationExecutionFilterKey = "OpsItemId"
)
// Values returns all known values for AutomationExecutionFilterKey. Note that
// this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (AutomationExecutionFilterKey) Values() []AutomationExecutionFilterKey {
return []AutomationExecutionFilterKey{
"DocumentNamePrefix",
"ExecutionStatus",
"ExecutionId",
"ParentExecutionId",
"CurrentAction",
"StartTimeBefore",
"StartTimeAfter",
"AutomationType",
"TagKey",
"TargetResourceGroup",
"AutomationSubtype",
"OpsItemId",
}
}
type AutomationExecutionStatus string
// Enum values for AutomationExecutionStatus
const (
AutomationExecutionStatusPending AutomationExecutionStatus = "Pending"
AutomationExecutionStatusInprogress AutomationExecutionStatus = "InProgress"
AutomationExecutionStatusWaiting AutomationExecutionStatus = "Waiting"
AutomationExecutionStatusSuccess AutomationExecutionStatus = "Success"
AutomationExecutionStatusTimedout AutomationExecutionStatus = "TimedOut"
AutomationExecutionStatusCancelling AutomationExecutionStatus = "Cancelling"
AutomationExecutionStatusCancelled AutomationExecutionStatus = "Cancelled"
AutomationExecutionStatusFailed AutomationExecutionStatus = "Failed"
AutomationExecutionStatusPendingApproval AutomationExecutionStatus = "PendingApproval"
AutomationExecutionStatusApproved AutomationExecutionStatus = "Approved"
AutomationExecutionStatusRejected AutomationExecutionStatus = "Rejected"
AutomationExecutionStatusScheduled AutomationExecutionStatus = "Scheduled"
AutomationExecutionStatusRunbookInprogress AutomationExecutionStatus = "RunbookInProgress"
AutomationExecutionStatusPendingChangeCalendarOverride AutomationExecutionStatus = "PendingChangeCalendarOverride"
AutomationExecutionStatusChangeCalendarOverrideApproved AutomationExecutionStatus = "ChangeCalendarOverrideApproved"
AutomationExecutionStatusChangeCalendarOverrideRejected AutomationExecutionStatus = "ChangeCalendarOverrideRejected"
AutomationExecutionStatusCompletedWithSuccess AutomationExecutionStatus = "CompletedWithSuccess"
AutomationExecutionStatusCompletedWithFailure AutomationExecutionStatus = "CompletedWithFailure"
)
// Values returns all known values for AutomationExecutionStatus. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (AutomationExecutionStatus) Values() []AutomationExecutionStatus {
return []AutomationExecutionStatus{
"Pending",
"InProgress",
"Waiting",
"Success",
"TimedOut",
"Cancelling",
"Cancelled",
"Failed",
"PendingApproval",
"Approved",
"Rejected",
"Scheduled",
"RunbookInProgress",
"PendingChangeCalendarOverride",
"ChangeCalendarOverrideApproved",
"ChangeCalendarOverrideRejected",
"CompletedWithSuccess",
"CompletedWithFailure",
}
}
type AutomationSubtype string
// Enum values for AutomationSubtype
const (
AutomationSubtypeChangeRequest AutomationSubtype = "ChangeRequest"
)
// Values returns all known values for AutomationSubtype. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (AutomationSubtype) Values() []AutomationSubtype {
return []AutomationSubtype{
"ChangeRequest",
}
}
type AutomationType string
// Enum values for AutomationType
const (
AutomationTypeCrossAccount AutomationType = "CrossAccount"
AutomationTypeLocal AutomationType = "Local"
)
// Values returns all known values for AutomationType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (AutomationType) Values() []AutomationType {
return []AutomationType{
"CrossAccount",
"Local",
}
}
type CalendarState string
// Enum values for CalendarState
const (
CalendarStateOpen CalendarState = "OPEN"
CalendarStateClosed CalendarState = "CLOSED"
)
// Values returns all known values for CalendarState. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (CalendarState) Values() []CalendarState {
return []CalendarState{
"OPEN",
"CLOSED",
}
}
type CommandFilterKey string
// Enum values for CommandFilterKey
const (
CommandFilterKeyInvokedAfter CommandFilterKey = "InvokedAfter"
CommandFilterKeyInvokedBefore CommandFilterKey = "InvokedBefore"
CommandFilterKeyStatus CommandFilterKey = "Status"
CommandFilterKeyExecutionStage CommandFilterKey = "ExecutionStage"
CommandFilterKeyDocumentName CommandFilterKey = "DocumentName"
)
// Values returns all known values for CommandFilterKey. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (CommandFilterKey) Values() []CommandFilterKey {
return []CommandFilterKey{
"InvokedAfter",
"InvokedBefore",
"Status",
"ExecutionStage",
"DocumentName",
}
}
type CommandInvocationStatus string
// Enum values for CommandInvocationStatus
const (
CommandInvocationStatusPending CommandInvocationStatus = "Pending"
CommandInvocationStatusInProgress CommandInvocationStatus = "InProgress"
CommandInvocationStatusDelayed CommandInvocationStatus = "Delayed"
CommandInvocationStatusSuccess CommandInvocationStatus = "Success"
CommandInvocationStatusCancelled CommandInvocationStatus = "Cancelled"
CommandInvocationStatusTimedOut CommandInvocationStatus = "TimedOut"
CommandInvocationStatusFailed CommandInvocationStatus = "Failed"
CommandInvocationStatusCancelling CommandInvocationStatus = "Cancelling"
)
// Values returns all known values for CommandInvocationStatus. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (CommandInvocationStatus) Values() []CommandInvocationStatus {
return []CommandInvocationStatus{
"Pending",
"InProgress",
"Delayed",
"Success",
"Cancelled",
"TimedOut",
"Failed",
"Cancelling",
}
}
type CommandPluginStatus string
// Enum values for CommandPluginStatus
const (
CommandPluginStatusPending CommandPluginStatus = "Pending"
CommandPluginStatusInProgress CommandPluginStatus = "InProgress"
CommandPluginStatusSuccess CommandPluginStatus = "Success"
CommandPluginStatusTimedOut CommandPluginStatus = "TimedOut"
CommandPluginStatusCancelled CommandPluginStatus = "Cancelled"
CommandPluginStatusFailed CommandPluginStatus = "Failed"
)
// Values returns all known values for CommandPluginStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (CommandPluginStatus) Values() []CommandPluginStatus {
return []CommandPluginStatus{
"Pending",
"InProgress",
"Success",
"TimedOut",
"Cancelled",
"Failed",
}
}
type CommandStatus string
// Enum values for CommandStatus
const (
CommandStatusPending CommandStatus = "Pending"
CommandStatusInProgress CommandStatus = "InProgress"
CommandStatusSuccess CommandStatus = "Success"
CommandStatusCancelled CommandStatus = "Cancelled"
CommandStatusFailed CommandStatus = "Failed"
CommandStatusTimedOut CommandStatus = "TimedOut"
CommandStatusCancelling CommandStatus = "Cancelling"
)
// Values returns all known values for CommandStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (CommandStatus) Values() []CommandStatus {
return []CommandStatus{
"Pending",
"InProgress",
"Success",
"Cancelled",
"Failed",
"TimedOut",
"Cancelling",
}
}
type ComplianceQueryOperatorType string
// Enum values for ComplianceQueryOperatorType
const (
ComplianceQueryOperatorTypeEqual ComplianceQueryOperatorType = "EQUAL"
ComplianceQueryOperatorTypeNotEqual ComplianceQueryOperatorType = "NOT_EQUAL"
ComplianceQueryOperatorTypeBeginWith ComplianceQueryOperatorType = "BEGIN_WITH"
ComplianceQueryOperatorTypeLessThan ComplianceQueryOperatorType = "LESS_THAN"
ComplianceQueryOperatorTypeGreaterThan ComplianceQueryOperatorType = "GREATER_THAN"
)
// Values returns all known values for ComplianceQueryOperatorType. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (ComplianceQueryOperatorType) Values() []ComplianceQueryOperatorType {
return []ComplianceQueryOperatorType{
"EQUAL",
"NOT_EQUAL",
"BEGIN_WITH",
"LESS_THAN",
"GREATER_THAN",
}
}
type ComplianceSeverity string
// Enum values for ComplianceSeverity
const (
ComplianceSeverityCritical ComplianceSeverity = "CRITICAL"
ComplianceSeverityHigh ComplianceSeverity = "HIGH"
ComplianceSeverityMedium ComplianceSeverity = "MEDIUM"
ComplianceSeverityLow ComplianceSeverity = "LOW"
ComplianceSeverityInformational ComplianceSeverity = "INFORMATIONAL"
ComplianceSeverityUnspecified ComplianceSeverity = "UNSPECIFIED"
)
// Values returns all known values for ComplianceSeverity. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ComplianceSeverity) Values() []ComplianceSeverity {
return []ComplianceSeverity{
"CRITICAL",
"HIGH",
"MEDIUM",
"LOW",
"INFORMATIONAL",
"UNSPECIFIED",
}
}
type ComplianceStatus string
// Enum values for ComplianceStatus
const (
ComplianceStatusCompliant ComplianceStatus = "COMPLIANT"
ComplianceStatusNonCompliant ComplianceStatus = "NON_COMPLIANT"
)
// Values returns all known values for ComplianceStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ComplianceStatus) Values() []ComplianceStatus {
return []ComplianceStatus{
"COMPLIANT",
"NON_COMPLIANT",
}
}
type ComplianceUploadType string
// Enum values for ComplianceUploadType
const (
ComplianceUploadTypeComplete ComplianceUploadType = "COMPLETE"
ComplianceUploadTypePartial ComplianceUploadType = "PARTIAL"
)
// Values returns all known values for ComplianceUploadType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ComplianceUploadType) Values() []ComplianceUploadType {
return []ComplianceUploadType{
"COMPLETE",
"PARTIAL",
}
}
type ConnectionStatus string
// Enum values for ConnectionStatus
const (
ConnectionStatusConnected ConnectionStatus = "Connected"
ConnectionStatusNotConnected ConnectionStatus = "NotConnected"
)
// Values returns all known values for ConnectionStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ConnectionStatus) Values() []ConnectionStatus {
return []ConnectionStatus{
"Connected",
"NotConnected",
}
}
type DescribeActivationsFilterKeys string
// Enum values for DescribeActivationsFilterKeys
const (
DescribeActivationsFilterKeysActivationIds DescribeActivationsFilterKeys = "ActivationIds"
DescribeActivationsFilterKeysDefaultInstanceName DescribeActivationsFilterKeys = "DefaultInstanceName"
DescribeActivationsFilterKeysIamRole DescribeActivationsFilterKeys = "IamRole"
)
// Values returns all known values for DescribeActivationsFilterKeys. Note that
// this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (DescribeActivationsFilterKeys) Values() []DescribeActivationsFilterKeys {
return []DescribeActivationsFilterKeys{
"ActivationIds",
"DefaultInstanceName",
"IamRole",
}
}
type DocumentFilterKey string
// Enum values for DocumentFilterKey
const (
DocumentFilterKeyName DocumentFilterKey = "Name"
DocumentFilterKeyOwner DocumentFilterKey = "Owner"
DocumentFilterKeyPlatformTypes DocumentFilterKey = "PlatformTypes"
DocumentFilterKeyDocumentType DocumentFilterKey = "DocumentType"
)
// Values returns all known values for DocumentFilterKey. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (DocumentFilterKey) Values() []DocumentFilterKey {
return []DocumentFilterKey{
"Name",
"Owner",
"PlatformTypes",
"DocumentType",
}
}
type DocumentFormat string
// Enum values for DocumentFormat
const (
DocumentFormatYaml DocumentFormat = "YAML"
DocumentFormatJson DocumentFormat = "JSON"
DocumentFormatText DocumentFormat = "TEXT"
)
// Values returns all known values for DocumentFormat. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (DocumentFormat) Values() []DocumentFormat {
return []DocumentFormat{
"YAML",
"JSON",
"TEXT",
}
}
type DocumentHashType string
// Enum values for DocumentHashType
const (
DocumentHashTypeSha256 DocumentHashType = "Sha256"
DocumentHashTypeSha1 DocumentHashType = "Sha1"
)
// Values returns all known values for DocumentHashType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (DocumentHashType) Values() []DocumentHashType {
return []DocumentHashType{
"Sha256",
"Sha1",
}
}
type DocumentMetadataEnum string
// Enum values for DocumentMetadataEnum
const (
DocumentMetadataEnumDocumentReviews DocumentMetadataEnum = "DocumentReviews"
)
// Values returns all known values for DocumentMetadataEnum. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (DocumentMetadataEnum) Values() []DocumentMetadataEnum {
return []DocumentMetadataEnum{
"DocumentReviews",
}
}
type DocumentParameterType string
// Enum values for DocumentParameterType
const (
DocumentParameterTypeString DocumentParameterType = "String"
DocumentParameterTypeStringList DocumentParameterType = "StringList"
)
// Values returns all known values for DocumentParameterType. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (DocumentParameterType) Values() []DocumentParameterType {
return []DocumentParameterType{
"String",
"StringList",
}
}
type DocumentPermissionType string
// Enum values for DocumentPermissionType
const (
DocumentPermissionTypeShare DocumentPermissionType = "Share"
)
// Values returns all known values for DocumentPermissionType. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (DocumentPermissionType) Values() []DocumentPermissionType {
return []DocumentPermissionType{
"Share",
}
}
type DocumentReviewAction string
// Enum values for DocumentReviewAction
const (
DocumentReviewActionSendForReview DocumentReviewAction = "SendForReview"
DocumentReviewActionUpdateReview DocumentReviewAction = "UpdateReview"
DocumentReviewActionApprove DocumentReviewAction = "Approve"
DocumentReviewActionReject DocumentReviewAction = "Reject"
)
// Values returns all known values for DocumentReviewAction. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (DocumentReviewAction) Values() []DocumentReviewAction {
return []DocumentReviewAction{
"SendForReview",
"UpdateReview",
"Approve",
"Reject",
}
}
type DocumentReviewCommentType string
// Enum values for DocumentReviewCommentType
const (
DocumentReviewCommentTypeComment DocumentReviewCommentType = "Comment"
)
// Values returns all known values for DocumentReviewCommentType. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (DocumentReviewCommentType) Values() []DocumentReviewCommentType {
return []DocumentReviewCommentType{
"Comment",
}
}
type DocumentStatus string
// Enum values for DocumentStatus
const (
DocumentStatusCreating DocumentStatus = "Creating"
DocumentStatusActive DocumentStatus = "Active"
DocumentStatusUpdating DocumentStatus = "Updating"
DocumentStatusDeleting DocumentStatus = "Deleting"
DocumentStatusFailed DocumentStatus = "Failed"
)
// Values returns all known values for DocumentStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (DocumentStatus) Values() []DocumentStatus {
return []DocumentStatus{
"Creating",
"Active",
"Updating",
"Deleting",
"Failed",
}
}
type DocumentType string
// Enum values for DocumentType
const (
DocumentTypeCommand DocumentType = "Command"
DocumentTypePolicy DocumentType = "Policy"
DocumentTypeAutomation DocumentType = "Automation"
DocumentTypeSession DocumentType = "Session"
DocumentTypePackage DocumentType = "Package"
DocumentTypeApplicationConfiguration DocumentType = "ApplicationConfiguration"
DocumentTypeApplicationConfigurationSchema DocumentType = "ApplicationConfigurationSchema"
DocumentTypeDeploymentStrategy DocumentType = "DeploymentStrategy"
DocumentTypeChangeCalendar DocumentType = "ChangeCalendar"
DocumentTypeChangeTemplate DocumentType = "Automation.ChangeTemplate"
DocumentTypeProblemAnalysis DocumentType = "ProblemAnalysis"
DocumentTypeProblemAnalysisTemplate DocumentType = "ProblemAnalysisTemplate"
DocumentTypeCloudFormation DocumentType = "CloudFormation"
DocumentTypeConformancePackTemplate DocumentType = "ConformancePackTemplate"
DocumentTypeQuickSetup DocumentType = "QuickSetup"
)
// Values returns all known values for DocumentType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (DocumentType) Values() []DocumentType {
return []DocumentType{
"Command",
"Policy",
"Automation",
"Session",
"Package",
"ApplicationConfiguration",
"ApplicationConfigurationSchema",
"DeploymentStrategy",
"ChangeCalendar",
"Automation.ChangeTemplate",
"ProblemAnalysis",
"ProblemAnalysisTemplate",
"CloudFormation",
"ConformancePackTemplate",
"QuickSetup",
}
}
type ExecutionMode string
// Enum values for ExecutionMode
const (
ExecutionModeAuto ExecutionMode = "Auto"
ExecutionModeInteractive ExecutionMode = "Interactive"
)
// Values returns all known values for ExecutionMode. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ExecutionMode) Values() []ExecutionMode {
return []ExecutionMode{
"Auto",
"Interactive",
}
}
type ExternalAlarmState string
// Enum values for ExternalAlarmState
const (
ExternalAlarmStateUnknown ExternalAlarmState = "UNKNOWN"
ExternalAlarmStateAlarm ExternalAlarmState = "ALARM"
)
// Values returns all known values for ExternalAlarmState. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ExternalAlarmState) Values() []ExternalAlarmState {
return []ExternalAlarmState{
"UNKNOWN",
"ALARM",
}
}
type Fault string
// Enum values for Fault
const (
FaultClient Fault = "Client"
FaultServer Fault = "Server"
FaultUnknown Fault = "Unknown"
)
// Values returns all known values for Fault. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (Fault) Values() []Fault {
return []Fault{
"Client",
"Server",
"Unknown",
}
}
type InstanceInformationFilterKey string
// Enum values for InstanceInformationFilterKey
const (
InstanceInformationFilterKeyInstanceIds InstanceInformationFilterKey = "InstanceIds"
InstanceInformationFilterKeyAgentVersion InstanceInformationFilterKey = "AgentVersion"
InstanceInformationFilterKeyPingStatus InstanceInformationFilterKey = "PingStatus"
InstanceInformationFilterKeyPlatformTypes InstanceInformationFilterKey = "PlatformTypes"
InstanceInformationFilterKeyActivationIds InstanceInformationFilterKey = "ActivationIds"
InstanceInformationFilterKeyIamRole InstanceInformationFilterKey = "IamRole"
InstanceInformationFilterKeyResourceType InstanceInformationFilterKey = "ResourceType"
InstanceInformationFilterKeyAssociationStatus InstanceInformationFilterKey = "AssociationStatus"
)
// Values returns all known values for InstanceInformationFilterKey. Note that
// this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (InstanceInformationFilterKey) Values() []InstanceInformationFilterKey {
return []InstanceInformationFilterKey{
"InstanceIds",
"AgentVersion",
"PingStatus",
"PlatformTypes",
"ActivationIds",
"IamRole",
"ResourceType",
"AssociationStatus",
}
}
type InstancePatchStateOperatorType string
// Enum values for InstancePatchStateOperatorType
const (
InstancePatchStateOperatorTypeEqual InstancePatchStateOperatorType = "Equal"
InstancePatchStateOperatorTypeNotEqual InstancePatchStateOperatorType = "NotEqual"
InstancePatchStateOperatorTypeLessThan InstancePatchStateOperatorType = "LessThan"
InstancePatchStateOperatorTypeGreaterThan InstancePatchStateOperatorType = "GreaterThan"
)
// Values returns all known values for InstancePatchStateOperatorType. Note that
// this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (InstancePatchStateOperatorType) Values() []InstancePatchStateOperatorType {
return []InstancePatchStateOperatorType{
"Equal",
"NotEqual",
"LessThan",
"GreaterThan",
}
}
type InventoryAttributeDataType string
// Enum values for InventoryAttributeDataType
const (
InventoryAttributeDataTypeString InventoryAttributeDataType = "string"
InventoryAttributeDataTypeNumber InventoryAttributeDataType = "number"
)
// Values returns all known values for InventoryAttributeDataType. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (InventoryAttributeDataType) Values() []InventoryAttributeDataType {
return []InventoryAttributeDataType{
"string",
"number",
}
}
type InventoryDeletionStatus string
// Enum values for InventoryDeletionStatus
const (
InventoryDeletionStatusInProgress InventoryDeletionStatus = "InProgress"
InventoryDeletionStatusComplete InventoryDeletionStatus = "Complete"
)
// Values returns all known values for InventoryDeletionStatus. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (InventoryDeletionStatus) Values() []InventoryDeletionStatus {
return []InventoryDeletionStatus{
"InProgress",
"Complete",
}
}
type InventoryQueryOperatorType string
// Enum values for InventoryQueryOperatorType
const (
InventoryQueryOperatorTypeEqual InventoryQueryOperatorType = "Equal"
InventoryQueryOperatorTypeNotEqual InventoryQueryOperatorType = "NotEqual"
InventoryQueryOperatorTypeBeginWith InventoryQueryOperatorType = "BeginWith"
InventoryQueryOperatorTypeLessThan InventoryQueryOperatorType = "LessThan"
InventoryQueryOperatorTypeGreaterThan InventoryQueryOperatorType = "GreaterThan"
InventoryQueryOperatorTypeExists InventoryQueryOperatorType = "Exists"
)
// Values returns all known values for InventoryQueryOperatorType. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (InventoryQueryOperatorType) Values() []InventoryQueryOperatorType {
return []InventoryQueryOperatorType{
"Equal",
"NotEqual",
"BeginWith",
"LessThan",
"GreaterThan",
"Exists",
}
}
type InventorySchemaDeleteOption string
// Enum values for InventorySchemaDeleteOption
const (
InventorySchemaDeleteOptionDisableSchema InventorySchemaDeleteOption = "DisableSchema"
InventorySchemaDeleteOptionDeleteSchema InventorySchemaDeleteOption = "DeleteSchema"
)
// Values returns all known values for InventorySchemaDeleteOption. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (InventorySchemaDeleteOption) Values() []InventorySchemaDeleteOption {
return []InventorySchemaDeleteOption{
"DisableSchema",
"DeleteSchema",
}
}
type LastResourceDataSyncStatus string
// Enum values for LastResourceDataSyncStatus
const (
LastResourceDataSyncStatusSuccessful LastResourceDataSyncStatus = "Successful"
LastResourceDataSyncStatusFailed LastResourceDataSyncStatus = "Failed"
LastResourceDataSyncStatusInprogress LastResourceDataSyncStatus = "InProgress"
)
// Values returns all known values for LastResourceDataSyncStatus. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (LastResourceDataSyncStatus) Values() []LastResourceDataSyncStatus {
return []LastResourceDataSyncStatus{
"Successful",
"Failed",
"InProgress",
}
}
type MaintenanceWindowExecutionStatus string
// Enum values for MaintenanceWindowExecutionStatus
const (
MaintenanceWindowExecutionStatusPending MaintenanceWindowExecutionStatus = "PENDING"
MaintenanceWindowExecutionStatusInProgress MaintenanceWindowExecutionStatus = "IN_PROGRESS"
MaintenanceWindowExecutionStatusSuccess MaintenanceWindowExecutionStatus = "SUCCESS"
MaintenanceWindowExecutionStatusFailed MaintenanceWindowExecutionStatus = "FAILED"
MaintenanceWindowExecutionStatusTimedOut MaintenanceWindowExecutionStatus = "TIMED_OUT"
MaintenanceWindowExecutionStatusCancelling MaintenanceWindowExecutionStatus = "CANCELLING"
MaintenanceWindowExecutionStatusCancelled MaintenanceWindowExecutionStatus = "CANCELLED"
MaintenanceWindowExecutionStatusSkippedOverlapping MaintenanceWindowExecutionStatus = "SKIPPED_OVERLAPPING"
)
// Values returns all known values for MaintenanceWindowExecutionStatus. Note that
// this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (MaintenanceWindowExecutionStatus) Values() []MaintenanceWindowExecutionStatus {
return []MaintenanceWindowExecutionStatus{
"PENDING",
"IN_PROGRESS",
"SUCCESS",
"FAILED",
"TIMED_OUT",
"CANCELLING",
"CANCELLED",
"SKIPPED_OVERLAPPING",
}
}
type MaintenanceWindowResourceType string
// Enum values for MaintenanceWindowResourceType
const (
MaintenanceWindowResourceTypeInstance MaintenanceWindowResourceType = "INSTANCE"
MaintenanceWindowResourceTypeResourceGroup MaintenanceWindowResourceType = "RESOURCE_GROUP"
)
// Values returns all known values for MaintenanceWindowResourceType. Note that
// this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (MaintenanceWindowResourceType) Values() []MaintenanceWindowResourceType {
return []MaintenanceWindowResourceType{
"INSTANCE",
"RESOURCE_GROUP",
}
}
type MaintenanceWindowTaskCutoffBehavior string
// Enum values for MaintenanceWindowTaskCutoffBehavior
const (
MaintenanceWindowTaskCutoffBehaviorContinueTask MaintenanceWindowTaskCutoffBehavior = "CONTINUE_TASK"
MaintenanceWindowTaskCutoffBehaviorCancelTask MaintenanceWindowTaskCutoffBehavior = "CANCEL_TASK"
)
// Values returns all known values for MaintenanceWindowTaskCutoffBehavior. Note
// that this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (MaintenanceWindowTaskCutoffBehavior) Values() []MaintenanceWindowTaskCutoffBehavior {
return []MaintenanceWindowTaskCutoffBehavior{
"CONTINUE_TASK",
"CANCEL_TASK",
}
}
type MaintenanceWindowTaskType string
// Enum values for MaintenanceWindowTaskType
const (
MaintenanceWindowTaskTypeRunCommand MaintenanceWindowTaskType = "RUN_COMMAND"
MaintenanceWindowTaskTypeAutomation MaintenanceWindowTaskType = "AUTOMATION"
MaintenanceWindowTaskTypeStepFunctions MaintenanceWindowTaskType = "STEP_FUNCTIONS"
MaintenanceWindowTaskTypeLambda MaintenanceWindowTaskType = "LAMBDA"
)
// Values returns all known values for MaintenanceWindowTaskType. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (MaintenanceWindowTaskType) Values() []MaintenanceWindowTaskType {
return []MaintenanceWindowTaskType{
"RUN_COMMAND",
"AUTOMATION",
"STEP_FUNCTIONS",
"LAMBDA",
}
}
type NotificationEvent string
// Enum values for NotificationEvent
const (
NotificationEventAll NotificationEvent = "All"
NotificationEventInProgress NotificationEvent = "InProgress"
NotificationEventSuccess NotificationEvent = "Success"
NotificationEventTimedOut NotificationEvent = "TimedOut"
NotificationEventCancelled NotificationEvent = "Cancelled"
NotificationEventFailed NotificationEvent = "Failed"
)
// Values returns all known values for NotificationEvent. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (NotificationEvent) Values() []NotificationEvent {
return []NotificationEvent{
"All",
"InProgress",
"Success",
"TimedOut",
"Cancelled",
"Failed",
}
}
type NotificationType string
// Enum values for NotificationType
const (
NotificationTypeCommand NotificationType = "Command"
NotificationTypeInvocation NotificationType = "Invocation"
)
// Values returns all known values for NotificationType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (NotificationType) Values() []NotificationType {
return []NotificationType{
"Command",
"Invocation",
}
}
type OperatingSystem string
// Enum values for OperatingSystem
const (
OperatingSystemWindows OperatingSystem = "WINDOWS"
OperatingSystemAmazonLinux OperatingSystem = "AMAZON_LINUX"
OperatingSystemAmazonLinux2 OperatingSystem = "AMAZON_LINUX_2"
OperatingSystemAmazonLinux2022 OperatingSystem = "AMAZON_LINUX_2022"
OperatingSystemUbuntu OperatingSystem = "UBUNTU"
OperatingSystemRedhatEnterpriseLinux OperatingSystem = "REDHAT_ENTERPRISE_LINUX"
OperatingSystemSuse OperatingSystem = "SUSE"
OperatingSystemCentOS OperatingSystem = "CENTOS"
OperatingSystemOracleLinux OperatingSystem = "ORACLE_LINUX"
OperatingSystemDebian OperatingSystem = "DEBIAN"
OperatingSystemMacOS OperatingSystem = "MACOS"
OperatingSystemRaspbian OperatingSystem = "RASPBIAN"
OperatingSystemRockyLinux OperatingSystem = "ROCKY_LINUX"
OperatingSystemAlmaLinux OperatingSystem = "ALMA_LINUX"
OperatingSystemAmazonLinux2023 OperatingSystem = "AMAZON_LINUX_2023"
)
// Values returns all known values for OperatingSystem. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (OperatingSystem) Values() []OperatingSystem {
return []OperatingSystem{
"WINDOWS",
"AMAZON_LINUX",
"AMAZON_LINUX_2",
"AMAZON_LINUX_2022",
"UBUNTU",
"REDHAT_ENTERPRISE_LINUX",
"SUSE",
"CENTOS",
"ORACLE_LINUX",
"DEBIAN",
"MACOS",
"RASPBIAN",
"ROCKY_LINUX",
"ALMA_LINUX",
"AMAZON_LINUX_2023",
}
}
type OpsFilterOperatorType string
// Enum values for OpsFilterOperatorType
const (
OpsFilterOperatorTypeEqual OpsFilterOperatorType = "Equal"
OpsFilterOperatorTypeNotEqual OpsFilterOperatorType = "NotEqual"
OpsFilterOperatorTypeBeginWith OpsFilterOperatorType = "BeginWith"
OpsFilterOperatorTypeLessThan OpsFilterOperatorType = "LessThan"
OpsFilterOperatorTypeGreaterThan OpsFilterOperatorType = "GreaterThan"
OpsFilterOperatorTypeExists OpsFilterOperatorType = "Exists"
)
// Values returns all known values for OpsFilterOperatorType. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (OpsFilterOperatorType) Values() []OpsFilterOperatorType {
return []OpsFilterOperatorType{
"Equal",
"NotEqual",
"BeginWith",
"LessThan",
"GreaterThan",
"Exists",
}
}
type OpsItemDataType string
// Enum values for OpsItemDataType
const (
OpsItemDataTypeSearchableString OpsItemDataType = "SearchableString"
OpsItemDataTypeString OpsItemDataType = "String"
)
// Values returns all known values for OpsItemDataType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (OpsItemDataType) Values() []OpsItemDataType {
return []OpsItemDataType{
"SearchableString",
"String",
}
}
type OpsItemEventFilterKey string
// Enum values for OpsItemEventFilterKey
const (
OpsItemEventFilterKeyOpsitemId OpsItemEventFilterKey = "OpsItemId"
)
// Values returns all known values for OpsItemEventFilterKey. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (OpsItemEventFilterKey) Values() []OpsItemEventFilterKey {
return []OpsItemEventFilterKey{
"OpsItemId",
}
}
type OpsItemEventFilterOperator string
// Enum values for OpsItemEventFilterOperator
const (
OpsItemEventFilterOperatorEqual OpsItemEventFilterOperator = "Equal"
)
// Values returns all known values for OpsItemEventFilterOperator. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (OpsItemEventFilterOperator) Values() []OpsItemEventFilterOperator {
return []OpsItemEventFilterOperator{
"Equal",
}
}
type OpsItemFilterKey string
// Enum values for OpsItemFilterKey
const (
OpsItemFilterKeyStatus OpsItemFilterKey = "Status"
OpsItemFilterKeyCreatedBy OpsItemFilterKey = "CreatedBy"
OpsItemFilterKeySource OpsItemFilterKey = "Source"
OpsItemFilterKeyPriority OpsItemFilterKey = "Priority"
OpsItemFilterKeyTitle OpsItemFilterKey = "Title"
OpsItemFilterKeyOpsitemId OpsItemFilterKey = "OpsItemId"
OpsItemFilterKeyCreatedTime OpsItemFilterKey = "CreatedTime"
OpsItemFilterKeyLastModifiedTime OpsItemFilterKey = "LastModifiedTime"
OpsItemFilterKeyActualStartTime OpsItemFilterKey = "ActualStartTime"
OpsItemFilterKeyActualEndTime OpsItemFilterKey = "ActualEndTime"
OpsItemFilterKeyPlannedStartTime OpsItemFilterKey = "PlannedStartTime"
OpsItemFilterKeyPlannedEndTime OpsItemFilterKey = "PlannedEndTime"
OpsItemFilterKeyOperationalData OpsItemFilterKey = "OperationalData"
OpsItemFilterKeyOperationalDataKey OpsItemFilterKey = "OperationalDataKey"
OpsItemFilterKeyOperationalDataValue OpsItemFilterKey = "OperationalDataValue"
OpsItemFilterKeyResourceId OpsItemFilterKey = "ResourceId"
OpsItemFilterKeyAutomationId OpsItemFilterKey = "AutomationId"
OpsItemFilterKeyCategory OpsItemFilterKey = "Category"
OpsItemFilterKeySeverity OpsItemFilterKey = "Severity"
OpsItemFilterKeyOpsitemType OpsItemFilterKey = "OpsItemType"
OpsItemFilterKeyChangeRequestRequesterArn OpsItemFilterKey = "ChangeRequestByRequesterArn"
OpsItemFilterKeyChangeRequestRequesterName OpsItemFilterKey = "ChangeRequestByRequesterName"
OpsItemFilterKeyChangeRequestApproverArn OpsItemFilterKey = "ChangeRequestByApproverArn"
OpsItemFilterKeyChangeRequestApproverName OpsItemFilterKey = "ChangeRequestByApproverName"
OpsItemFilterKeyChangeRequestTemplate OpsItemFilterKey = "ChangeRequestByTemplate"
OpsItemFilterKeyChangeRequestTargetsResourceGroup OpsItemFilterKey = "ChangeRequestByTargetsResourceGroup"
OpsItemFilterKeyInsightType OpsItemFilterKey = "InsightByType"
OpsItemFilterKeyAccountId OpsItemFilterKey = "AccountId"
)
// Values returns all known values for OpsItemFilterKey. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (OpsItemFilterKey) Values() []OpsItemFilterKey {
return []OpsItemFilterKey{
"Status",
"CreatedBy",
"Source",
"Priority",
"Title",
"OpsItemId",
"CreatedTime",
"LastModifiedTime",
"ActualStartTime",
"ActualEndTime",
"PlannedStartTime",
"PlannedEndTime",
"OperationalData",
"OperationalDataKey",
"OperationalDataValue",
"ResourceId",
"AutomationId",
"Category",
"Severity",
"OpsItemType",
"ChangeRequestByRequesterArn",
"ChangeRequestByRequesterName",
"ChangeRequestByApproverArn",
"ChangeRequestByApproverName",
"ChangeRequestByTemplate",
"ChangeRequestByTargetsResourceGroup",
"InsightByType",
"AccountId",
}
}
type OpsItemFilterOperator string
// Enum values for OpsItemFilterOperator
const (
OpsItemFilterOperatorEqual OpsItemFilterOperator = "Equal"
OpsItemFilterOperatorContains OpsItemFilterOperator = "Contains"
OpsItemFilterOperatorGreaterThan OpsItemFilterOperator = "GreaterThan"
OpsItemFilterOperatorLessThan OpsItemFilterOperator = "LessThan"
)
// Values returns all known values for OpsItemFilterOperator. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (OpsItemFilterOperator) Values() []OpsItemFilterOperator {
return []OpsItemFilterOperator{
"Equal",
"Contains",
"GreaterThan",
"LessThan",
}
}
type OpsItemRelatedItemsFilterKey string
// Enum values for OpsItemRelatedItemsFilterKey
const (
OpsItemRelatedItemsFilterKeyResourceType OpsItemRelatedItemsFilterKey = "ResourceType"
OpsItemRelatedItemsFilterKeyAssociationId OpsItemRelatedItemsFilterKey = "AssociationId"
OpsItemRelatedItemsFilterKeyResourceUri OpsItemRelatedItemsFilterKey = "ResourceUri"
)
// Values returns all known values for OpsItemRelatedItemsFilterKey. Note that
// this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (OpsItemRelatedItemsFilterKey) Values() []OpsItemRelatedItemsFilterKey {
return []OpsItemRelatedItemsFilterKey{
"ResourceType",
"AssociationId",
"ResourceUri",
}
}
type OpsItemRelatedItemsFilterOperator string
// Enum values for OpsItemRelatedItemsFilterOperator
const (
OpsItemRelatedItemsFilterOperatorEqual OpsItemRelatedItemsFilterOperator = "Equal"
)
// Values returns all known values for OpsItemRelatedItemsFilterOperator. Note
// that this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (OpsItemRelatedItemsFilterOperator) Values() []OpsItemRelatedItemsFilterOperator {
return []OpsItemRelatedItemsFilterOperator{
"Equal",
}
}
type OpsItemStatus string
// Enum values for OpsItemStatus
const (
OpsItemStatusOpen OpsItemStatus = "Open"
OpsItemStatusInProgress OpsItemStatus = "InProgress"
OpsItemStatusResolved OpsItemStatus = "Resolved"
OpsItemStatusPending OpsItemStatus = "Pending"
OpsItemStatusTimedOut OpsItemStatus = "TimedOut"
OpsItemStatusCancelling OpsItemStatus = "Cancelling"
OpsItemStatusCancelled OpsItemStatus = "Cancelled"
OpsItemStatusFailed OpsItemStatus = "Failed"
OpsItemStatusCompletedWithSuccess OpsItemStatus = "CompletedWithSuccess"
OpsItemStatusCompletedWithFailure OpsItemStatus = "CompletedWithFailure"
OpsItemStatusScheduled OpsItemStatus = "Scheduled"
OpsItemStatusRunbookInProgress OpsItemStatus = "RunbookInProgress"
OpsItemStatusPendingChangeCalendarOverride OpsItemStatus = "PendingChangeCalendarOverride"
OpsItemStatusChangeCalendarOverrideApproved OpsItemStatus = "ChangeCalendarOverrideApproved"
OpsItemStatusChangeCalendarOverrideRejected OpsItemStatus = "ChangeCalendarOverrideRejected"
OpsItemStatusPendingApproval OpsItemStatus = "PendingApproval"
OpsItemStatusApproved OpsItemStatus = "Approved"
OpsItemStatusRejected OpsItemStatus = "Rejected"
OpsItemStatusClosed OpsItemStatus = "Closed"
)
// Values returns all known values for OpsItemStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (OpsItemStatus) Values() []OpsItemStatus {
return []OpsItemStatus{
"Open",
"InProgress",
"Resolved",
"Pending",
"TimedOut",
"Cancelling",
"Cancelled",
"Failed",
"CompletedWithSuccess",
"CompletedWithFailure",
"Scheduled",
"RunbookInProgress",
"PendingChangeCalendarOverride",
"ChangeCalendarOverrideApproved",
"ChangeCalendarOverrideRejected",
"PendingApproval",
"Approved",
"Rejected",
"Closed",
}
}
type ParametersFilterKey string
// Enum values for ParametersFilterKey
const (
ParametersFilterKeyName ParametersFilterKey = "Name"
ParametersFilterKeyType ParametersFilterKey = "Type"
ParametersFilterKeyKeyId ParametersFilterKey = "KeyId"
)
// Values returns all known values for ParametersFilterKey. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ParametersFilterKey) Values() []ParametersFilterKey {
return []ParametersFilterKey{
"Name",
"Type",
"KeyId",
}
}
type ParameterTier string
// Enum values for ParameterTier
const (
ParameterTierStandard ParameterTier = "Standard"
ParameterTierAdvanced ParameterTier = "Advanced"
ParameterTierIntelligentTiering ParameterTier = "Intelligent-Tiering"
)
// Values returns all known values for ParameterTier. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ParameterTier) Values() []ParameterTier {
return []ParameterTier{
"Standard",
"Advanced",
"Intelligent-Tiering",
}
}
type ParameterType string
// Enum values for ParameterType
const (
ParameterTypeString ParameterType = "String"
ParameterTypeStringList ParameterType = "StringList"
ParameterTypeSecureString ParameterType = "SecureString"
)
// Values returns all known values for ParameterType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ParameterType) Values() []ParameterType {
return []ParameterType{
"String",
"StringList",
"SecureString",
}
}
type PatchAction string
// Enum values for PatchAction
const (
PatchActionAllowAsDependency PatchAction = "ALLOW_AS_DEPENDENCY"
PatchActionBlock PatchAction = "BLOCK"
)
// Values returns all known values for PatchAction. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (PatchAction) Values() []PatchAction {
return []PatchAction{
"ALLOW_AS_DEPENDENCY",
"BLOCK",
}
}
type PatchComplianceDataState string
// Enum values for PatchComplianceDataState
const (
PatchComplianceDataStateInstalled PatchComplianceDataState = "INSTALLED"
PatchComplianceDataStateInstalledOther PatchComplianceDataState = "INSTALLED_OTHER"
PatchComplianceDataStateInstalledPendingReboot PatchComplianceDataState = "INSTALLED_PENDING_REBOOT"
PatchComplianceDataStateInstalledRejected PatchComplianceDataState = "INSTALLED_REJECTED"
PatchComplianceDataStateMissing PatchComplianceDataState = "MISSING"
PatchComplianceDataStateNotApplicable PatchComplianceDataState = "NOT_APPLICABLE"
PatchComplianceDataStateFailed PatchComplianceDataState = "FAILED"
)
// Values returns all known values for PatchComplianceDataState. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (PatchComplianceDataState) Values() []PatchComplianceDataState {
return []PatchComplianceDataState{
"INSTALLED",
"INSTALLED_OTHER",
"INSTALLED_PENDING_REBOOT",
"INSTALLED_REJECTED",
"MISSING",
"NOT_APPLICABLE",
"FAILED",
}
}
type PatchComplianceLevel string
// Enum values for PatchComplianceLevel
const (
PatchComplianceLevelCritical PatchComplianceLevel = "CRITICAL"
PatchComplianceLevelHigh PatchComplianceLevel = "HIGH"
PatchComplianceLevelMedium PatchComplianceLevel = "MEDIUM"
PatchComplianceLevelLow PatchComplianceLevel = "LOW"
PatchComplianceLevelInformational PatchComplianceLevel = "INFORMATIONAL"
PatchComplianceLevelUnspecified PatchComplianceLevel = "UNSPECIFIED"
)
// Values returns all known values for PatchComplianceLevel. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (PatchComplianceLevel) Values() []PatchComplianceLevel {
return []PatchComplianceLevel{
"CRITICAL",
"HIGH",
"MEDIUM",
"LOW",
"INFORMATIONAL",
"UNSPECIFIED",
}
}
type PatchDeploymentStatus string
// Enum values for PatchDeploymentStatus
const (
PatchDeploymentStatusApproved PatchDeploymentStatus = "APPROVED"
PatchDeploymentStatusPendingApproval PatchDeploymentStatus = "PENDING_APPROVAL"
PatchDeploymentStatusExplicitApproved PatchDeploymentStatus = "EXPLICIT_APPROVED"
PatchDeploymentStatusExplicitRejected PatchDeploymentStatus = "EXPLICIT_REJECTED"
)
// Values returns all known values for PatchDeploymentStatus. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (PatchDeploymentStatus) Values() []PatchDeploymentStatus {
return []PatchDeploymentStatus{
"APPROVED",
"PENDING_APPROVAL",
"EXPLICIT_APPROVED",
"EXPLICIT_REJECTED",
}
}
type PatchFilterKey string
// Enum values for PatchFilterKey
const (
PatchFilterKeyArch PatchFilterKey = "ARCH"
PatchFilterKeyAdvisoryId PatchFilterKey = "ADVISORY_ID"
PatchFilterKeyBugzillaId PatchFilterKey = "BUGZILLA_ID"
PatchFilterKeyPatchSet PatchFilterKey = "PATCH_SET"
PatchFilterKeyProduct PatchFilterKey = "PRODUCT"
PatchFilterKeyProductFamily PatchFilterKey = "PRODUCT_FAMILY"
PatchFilterKeyClassification PatchFilterKey = "CLASSIFICATION"
PatchFilterKeyCVEId PatchFilterKey = "CVE_ID"
PatchFilterKeyEpoch PatchFilterKey = "EPOCH"
PatchFilterKeyMsrcSeverity PatchFilterKey = "MSRC_SEVERITY"
PatchFilterKeyName PatchFilterKey = "NAME"
PatchFilterKeyPatchId PatchFilterKey = "PATCH_ID"
PatchFilterKeySection PatchFilterKey = "SECTION"
PatchFilterKeyPriority PatchFilterKey = "PRIORITY"
PatchFilterKeyRepository PatchFilterKey = "REPOSITORY"
PatchFilterKeyRelease PatchFilterKey = "RELEASE"
PatchFilterKeySeverity PatchFilterKey = "SEVERITY"
PatchFilterKeySecurity PatchFilterKey = "SECURITY"
PatchFilterKeyVersion PatchFilterKey = "VERSION"
)
// Values returns all known values for PatchFilterKey. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (PatchFilterKey) Values() []PatchFilterKey {
return []PatchFilterKey{
"ARCH",
"ADVISORY_ID",
"BUGZILLA_ID",
"PATCH_SET",
"PRODUCT",
"PRODUCT_FAMILY",
"CLASSIFICATION",
"CVE_ID",
"EPOCH",
"MSRC_SEVERITY",
"NAME",
"PATCH_ID",
"SECTION",
"PRIORITY",
"REPOSITORY",
"RELEASE",
"SEVERITY",
"SECURITY",
"VERSION",
}
}
type PatchOperationType string
// Enum values for PatchOperationType
const (
PatchOperationTypeScan PatchOperationType = "Scan"
PatchOperationTypeInstall PatchOperationType = "Install"
)
// Values returns all known values for PatchOperationType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (PatchOperationType) Values() []PatchOperationType {
return []PatchOperationType{
"Scan",
"Install",
}
}
type PatchProperty string
// Enum values for PatchProperty
const (
PatchPropertyProduct PatchProperty = "PRODUCT"
PatchPropertyPatchProductFamily PatchProperty = "PRODUCT_FAMILY"
PatchPropertyPatchClassification PatchProperty = "CLASSIFICATION"
PatchPropertyPatchMsrcSeverity PatchProperty = "MSRC_SEVERITY"
PatchPropertyPatchPriority PatchProperty = "PRIORITY"
PatchPropertyPatchSeverity PatchProperty = "SEVERITY"
)
// Values returns all known values for PatchProperty. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (PatchProperty) Values() []PatchProperty {
return []PatchProperty{
"PRODUCT",
"PRODUCT_FAMILY",
"CLASSIFICATION",
"MSRC_SEVERITY",
"PRIORITY",
"SEVERITY",
}
}
type PatchSet string
// Enum values for PatchSet
const (
PatchSetOs PatchSet = "OS"
PatchSetApplication PatchSet = "APPLICATION"
)
// Values returns all known values for PatchSet. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (PatchSet) Values() []PatchSet {
return []PatchSet{
"OS",
"APPLICATION",
}
}
type PingStatus string
// Enum values for PingStatus
const (
PingStatusOnline PingStatus = "Online"
PingStatusConnectionLost PingStatus = "ConnectionLost"
PingStatusInactive PingStatus = "Inactive"
)
// Values returns all known values for PingStatus. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (PingStatus) Values() []PingStatus {
return []PingStatus{
"Online",
"ConnectionLost",
"Inactive",
}
}
type PlatformType string
// Enum values for PlatformType
const (
PlatformTypeWindows PlatformType = "Windows"
PlatformTypeLinux PlatformType = "Linux"
PlatformTypeMacos PlatformType = "MacOS"
)
// Values returns all known values for PlatformType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (PlatformType) Values() []PlatformType {
return []PlatformType{
"Windows",
"Linux",
"MacOS",
}
}
type RebootOption string
// Enum values for RebootOption
const (
RebootOptionRebootIfNeeded RebootOption = "RebootIfNeeded"
RebootOptionNoReboot RebootOption = "NoReboot"
)
// Values returns all known values for RebootOption. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (RebootOption) Values() []RebootOption {
return []RebootOption{
"RebootIfNeeded",
"NoReboot",
}
}
type ResourceDataSyncS3Format string
// Enum values for ResourceDataSyncS3Format
const (
ResourceDataSyncS3FormatJsonSerde ResourceDataSyncS3Format = "JsonSerDe"
)
// Values returns all known values for ResourceDataSyncS3Format. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (ResourceDataSyncS3Format) Values() []ResourceDataSyncS3Format {
return []ResourceDataSyncS3Format{
"JsonSerDe",
}
}
type ResourceType string
// Enum values for ResourceType
const (
ResourceTypeManagedInstance ResourceType = "ManagedInstance"
ResourceTypeDocument ResourceType = "Document"
ResourceTypeEc2Instance ResourceType = "EC2Instance"
)
// Values returns all known values for ResourceType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ResourceType) Values() []ResourceType {
return []ResourceType{
"ManagedInstance",
"Document",
"EC2Instance",
}
}
type ResourceTypeForTagging string
// Enum values for ResourceTypeForTagging
const (
ResourceTypeForTaggingDocument ResourceTypeForTagging = "Document"
ResourceTypeForTaggingManagedInstance ResourceTypeForTagging = "ManagedInstance"
ResourceTypeForTaggingMaintenanceWindow ResourceTypeForTagging = "MaintenanceWindow"
ResourceTypeForTaggingParameter ResourceTypeForTagging = "Parameter"
ResourceTypeForTaggingPatchBaseline ResourceTypeForTagging = "PatchBaseline"
ResourceTypeForTaggingOpsItem ResourceTypeForTagging = "OpsItem"
ResourceTypeForTaggingOpsmetadata ResourceTypeForTagging = "OpsMetadata"
ResourceTypeForTaggingAutomation ResourceTypeForTagging = "Automation"
ResourceTypeForTaggingAssociation ResourceTypeForTagging = "Association"
)
// Values returns all known values for ResourceTypeForTagging. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ResourceTypeForTagging) Values() []ResourceTypeForTagging {
return []ResourceTypeForTagging{
"Document",
"ManagedInstance",
"MaintenanceWindow",
"Parameter",
"PatchBaseline",
"OpsItem",
"OpsMetadata",
"Automation",
"Association",
}
}
type ReviewStatus string
// Enum values for ReviewStatus
const (
ReviewStatusApproved ReviewStatus = "APPROVED"
ReviewStatusNotReviewed ReviewStatus = "NOT_REVIEWED"
ReviewStatusPending ReviewStatus = "PENDING"
ReviewStatusRejected ReviewStatus = "REJECTED"
)
// Values returns all known values for ReviewStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ReviewStatus) Values() []ReviewStatus {
return []ReviewStatus{
"APPROVED",
"NOT_REVIEWED",
"PENDING",
"REJECTED",
}
}
type SessionFilterKey string
// Enum values for SessionFilterKey
const (
SessionFilterKeyInvokedAfter SessionFilterKey = "InvokedAfter"
SessionFilterKeyInvokedBefore SessionFilterKey = "InvokedBefore"
SessionFilterKeyTargetId SessionFilterKey = "Target"
SessionFilterKeyOwner SessionFilterKey = "Owner"
SessionFilterKeyStatus SessionFilterKey = "Status"
SessionFilterKeySessionId SessionFilterKey = "SessionId"
)
// Values returns all known values for SessionFilterKey. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (SessionFilterKey) Values() []SessionFilterKey {
return []SessionFilterKey{
"InvokedAfter",
"InvokedBefore",
"Target",
"Owner",
"Status",
"SessionId",
}
}
type SessionState string
// Enum values for SessionState
const (
SessionStateActive SessionState = "Active"
SessionStateHistory SessionState = "History"
)
// Values returns all known values for SessionState. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (SessionState) Values() []SessionState {
return []SessionState{
"Active",
"History",
}
}
type SessionStatus string
// Enum values for SessionStatus
const (
SessionStatusConnected SessionStatus = "Connected"
SessionStatusConnecting SessionStatus = "Connecting"
SessionStatusDisconnected SessionStatus = "Disconnected"
SessionStatusTerminated SessionStatus = "Terminated"
SessionStatusTerminating SessionStatus = "Terminating"
SessionStatusFailed SessionStatus = "Failed"
)
// Values returns all known values for SessionStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (SessionStatus) Values() []SessionStatus {
return []SessionStatus{
"Connected",
"Connecting",
"Disconnected",
"Terminated",
"Terminating",
"Failed",
}
}
type SignalType string
// Enum values for SignalType
const (
SignalTypeApprove SignalType = "Approve"
SignalTypeReject SignalType = "Reject"
SignalTypeStartStep SignalType = "StartStep"
SignalTypeStopStep SignalType = "StopStep"
SignalTypeResume SignalType = "Resume"
)
// Values returns all known values for SignalType. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (SignalType) Values() []SignalType {
return []SignalType{
"Approve",
"Reject",
"StartStep",
"StopStep",
"Resume",
}
}
type SourceType string
// Enum values for SourceType
const (
SourceTypeAwsEc2Instance SourceType = "AWS::EC2::Instance"
SourceTypeAwsIotThing SourceType = "AWS::IoT::Thing"
SourceTypeAwsSsmManagedinstance SourceType = "AWS::SSM::ManagedInstance"
)
// Values returns all known values for SourceType. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (SourceType) Values() []SourceType {
return []SourceType{
"AWS::EC2::Instance",
"AWS::IoT::Thing",
"AWS::SSM::ManagedInstance",
}
}
type StepExecutionFilterKey string
// Enum values for StepExecutionFilterKey
const (
StepExecutionFilterKeyStartTimeBefore StepExecutionFilterKey = "StartTimeBefore"
StepExecutionFilterKeyStartTimeAfter StepExecutionFilterKey = "StartTimeAfter"
StepExecutionFilterKeyStepExecutionStatus StepExecutionFilterKey = "StepExecutionStatus"
StepExecutionFilterKeyStepExecutionId StepExecutionFilterKey = "StepExecutionId"
StepExecutionFilterKeyStepName StepExecutionFilterKey = "StepName"
StepExecutionFilterKeyAction StepExecutionFilterKey = "Action"
)
// Values returns all known values for StepExecutionFilterKey. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (StepExecutionFilterKey) Values() []StepExecutionFilterKey {
return []StepExecutionFilterKey{
"StartTimeBefore",
"StartTimeAfter",
"StepExecutionStatus",
"StepExecutionId",
"StepName",
"Action",
}
}
type StopType string
// Enum values for StopType
const (
StopTypeComplete StopType = "Complete"
StopTypeCancel StopType = "Cancel"
)
// Values returns all known values for StopType. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (StopType) Values() []StopType {
return []StopType{
"Complete",
"Cancel",
}
}
| 2,007 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
"fmt"
smithy "github.com/aws/smithy-go"
)
// Error returned if an attempt is made to register a patch group with a patch
// baseline that is already registered with a different patch baseline.
type AlreadyExistsException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AlreadyExistsException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AlreadyExistsException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AlreadyExistsException"
}
return *e.ErrorCodeOverride
}
func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You must disassociate a document from all managed nodes before you can delete
// it.
type AssociatedInstances struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AssociatedInstances) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AssociatedInstances) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AssociatedInstances) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AssociatedInstances"
}
return *e.ErrorCodeOverride
}
func (e *AssociatedInstances) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified association already exists.
type AssociationAlreadyExists struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AssociationAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AssociationAlreadyExists) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AssociationAlreadyExists) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AssociationAlreadyExists"
}
return *e.ErrorCodeOverride
}
func (e *AssociationAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified association doesn't exist.
type AssociationDoesNotExist struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AssociationDoesNotExist) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AssociationDoesNotExist) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AssociationDoesNotExist) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AssociationDoesNotExist"
}
return *e.ErrorCodeOverride
}
func (e *AssociationDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified execution ID doesn't exist. Verify the ID number and try again.
type AssociationExecutionDoesNotExist struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AssociationExecutionDoesNotExist) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AssociationExecutionDoesNotExist) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AssociationExecutionDoesNotExist) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AssociationExecutionDoesNotExist"
}
return *e.ErrorCodeOverride
}
func (e *AssociationExecutionDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You can have at most 2,000 active associations.
type AssociationLimitExceeded struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AssociationLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AssociationLimitExceeded) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AssociationLimitExceeded) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AssociationLimitExceeded"
}
return *e.ErrorCodeOverride
}
func (e *AssociationLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You have reached the maximum number versions allowed for an association. Each
// association has a limit of 1,000 versions.
type AssociationVersionLimitExceeded struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AssociationVersionLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AssociationVersionLimitExceeded) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AssociationVersionLimitExceeded) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AssociationVersionLimitExceeded"
}
return *e.ErrorCodeOverride
}
func (e *AssociationVersionLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Indicates that the Change Manager change template used in the change request
// was rejected or is still in a pending state.
type AutomationDefinitionNotApprovedException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AutomationDefinitionNotApprovedException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AutomationDefinitionNotApprovedException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AutomationDefinitionNotApprovedException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AutomationDefinitionNotApprovedException"
}
return *e.ErrorCodeOverride
}
func (e *AutomationDefinitionNotApprovedException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// An Automation runbook with the specified name couldn't be found.
type AutomationDefinitionNotFoundException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AutomationDefinitionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AutomationDefinitionNotFoundException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AutomationDefinitionNotFoundException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AutomationDefinitionNotFoundException"
}
return *e.ErrorCodeOverride
}
func (e *AutomationDefinitionNotFoundException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// An Automation runbook with the specified name and version couldn't be found.
type AutomationDefinitionVersionNotFoundException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AutomationDefinitionVersionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AutomationDefinitionVersionNotFoundException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AutomationDefinitionVersionNotFoundException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AutomationDefinitionVersionNotFoundException"
}
return *e.ErrorCodeOverride
}
func (e *AutomationDefinitionVersionNotFoundException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The number of simultaneously running Automation executions exceeded the
// allowable limit.
type AutomationExecutionLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AutomationExecutionLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AutomationExecutionLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AutomationExecutionLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AutomationExecutionLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *AutomationExecutionLimitExceededException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// There is no automation execution information for the requested automation
// execution ID.
type AutomationExecutionNotFoundException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AutomationExecutionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AutomationExecutionNotFoundException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AutomationExecutionNotFoundException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AutomationExecutionNotFoundException"
}
return *e.ErrorCodeOverride
}
func (e *AutomationExecutionNotFoundException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The specified step name and execution ID don't exist. Verify the information
// and try again.
type AutomationStepNotFoundException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AutomationStepNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AutomationStepNotFoundException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AutomationStepNotFoundException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AutomationStepNotFoundException"
}
return *e.ErrorCodeOverride
}
func (e *AutomationStepNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You specified too many custom compliance types. You can specify a maximum of 10
// different types.
type ComplianceTypeCountLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ComplianceTypeCountLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ComplianceTypeCountLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ComplianceTypeCountLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ComplianceTypeCountLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *ComplianceTypeCountLimitExceededException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// You have exceeded the limit for custom schemas. Delete one or more custom
// schemas and try again.
type CustomSchemaCountLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *CustomSchemaCountLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *CustomSchemaCountLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *CustomSchemaCountLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "CustomSchemaCountLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *CustomSchemaCountLimitExceededException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The specified document already exists.
type DocumentAlreadyExists struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DocumentAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DocumentAlreadyExists) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DocumentAlreadyExists) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DocumentAlreadyExists"
}
return *e.ErrorCodeOverride
}
func (e *DocumentAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You can have at most 500 active SSM documents.
type DocumentLimitExceeded struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DocumentLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DocumentLimitExceeded) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DocumentLimitExceeded) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DocumentLimitExceeded"
}
return *e.ErrorCodeOverride
}
func (e *DocumentLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The document can't be shared with more Amazon Web Services accounts. You can
// specify a maximum of 20 accounts per API operation to share a private document.
// By default, you can share a private document with a maximum of 1,000 accounts
// and publicly share up to five documents. If you need to increase the quota for
// privately or publicly shared Systems Manager documents, contact Amazon Web
// Services Support.
type DocumentPermissionLimit struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DocumentPermissionLimit) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DocumentPermissionLimit) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DocumentPermissionLimit) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DocumentPermissionLimit"
}
return *e.ErrorCodeOverride
}
func (e *DocumentPermissionLimit) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The document has too many versions. Delete one or more document versions and
// try again.
type DocumentVersionLimitExceeded struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DocumentVersionLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DocumentVersionLimitExceeded) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DocumentVersionLimitExceeded) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DocumentVersionLimitExceeded"
}
return *e.ErrorCodeOverride
}
func (e *DocumentVersionLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Error returned when the ID specified for a resource, such as a maintenance
// window or patch baseline, doesn't exist. For information about resource quotas
// in Amazon Web Services Systems Manager, see Systems Manager service quotas (https://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the Amazon Web Services General Reference.
type DoesNotExistException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DoesNotExistException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DoesNotExistException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DoesNotExistException"
}
return *e.ErrorCodeOverride
}
func (e *DoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The content of the association document matches another document. Change the
// content of the document and try again.
type DuplicateDocumentContent struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DuplicateDocumentContent) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DuplicateDocumentContent) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DuplicateDocumentContent) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DuplicateDocumentContent"
}
return *e.ErrorCodeOverride
}
func (e *DuplicateDocumentContent) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The version name has already been used in this document. Specify a different
// version name, and then try again.
type DuplicateDocumentVersionName struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DuplicateDocumentVersionName) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DuplicateDocumentVersionName) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DuplicateDocumentVersionName) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DuplicateDocumentVersionName"
}
return *e.ErrorCodeOverride
}
func (e *DuplicateDocumentVersionName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You can't specify a managed node ID in more than one association.
type DuplicateInstanceId struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DuplicateInstanceId) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DuplicateInstanceId) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DuplicateInstanceId) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DuplicateInstanceId"
}
return *e.ErrorCodeOverride
}
func (e *DuplicateInstanceId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You attempted to register a LAMBDA or STEP_FUNCTIONS task in a region where the
// corresponding service isn't available.
type FeatureNotAvailableException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *FeatureNotAvailableException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *FeatureNotAvailableException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *FeatureNotAvailableException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "FeatureNotAvailableException"
}
return *e.ErrorCodeOverride
}
func (e *FeatureNotAvailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A hierarchy can have a maximum of 15 levels. For more information, see
// Requirements and constraints for parameter names (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html)
// in the Amazon Web Services Systems Manager User Guide.
type HierarchyLevelLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *HierarchyLevelLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *HierarchyLevelLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *HierarchyLevelLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "HierarchyLevelLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *HierarchyLevelLimitExceededException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// Parameter Store doesn't support changing a parameter type in a hierarchy. For
// example, you can't change a parameter from a String type to a SecureString
// type. You must create a new, unique parameter.
type HierarchyTypeMismatchException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *HierarchyTypeMismatchException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *HierarchyTypeMismatchException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *HierarchyTypeMismatchException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "HierarchyTypeMismatchException"
}
return *e.ErrorCodeOverride
}
func (e *HierarchyTypeMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Error returned when an idempotent operation is retried and the parameters don't
// match the original call to the API with the same idempotency token.
type IdempotentParameterMismatch struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *IdempotentParameterMismatch) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *IdempotentParameterMismatch) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *IdempotentParameterMismatch) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "IdempotentParameterMismatch"
}
return *e.ErrorCodeOverride
}
func (e *IdempotentParameterMismatch) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// There is a conflict in the policies specified for this parameter. You can't,
// for example, specify two Expiration policies for a parameter. Review your
// policies, and try again.
type IncompatiblePolicyException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *IncompatiblePolicyException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *IncompatiblePolicyException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *IncompatiblePolicyException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "IncompatiblePolicyException"
}
return *e.ErrorCodeOverride
}
func (e *IncompatiblePolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// An error occurred on the server side.
type InternalServerError struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InternalServerError) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InternalServerError) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InternalServerError) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InternalServerError"
}
return *e.ErrorCodeOverride
}
func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
// The activation isn't valid. The activation might have been deleted, or the
// ActivationId and the ActivationCode don't match.
type InvalidActivation struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidActivation) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidActivation) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidActivation) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidActivation"
}
return *e.ErrorCodeOverride
}
func (e *InvalidActivation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The activation ID isn't valid. Verify the you entered the correct ActivationId
// or ActivationCode and try again.
type InvalidActivationId struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidActivationId) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidActivationId) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidActivationId) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidActivationId"
}
return *e.ErrorCodeOverride
}
func (e *InvalidActivationId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified aggregator isn't valid for inventory groups. Verify that the
// aggregator uses a valid inventory type such as AWS:Application or
// AWS:InstanceInformation .
type InvalidAggregatorException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidAggregatorException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidAggregatorException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidAggregatorException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidAggregatorException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidAggregatorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The request doesn't meet the regular expression requirement.
type InvalidAllowedPatternException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidAllowedPatternException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidAllowedPatternException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidAllowedPatternException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidAllowedPatternException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidAllowedPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The association isn't valid or doesn't exist.
type InvalidAssociation struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidAssociation) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidAssociation) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidAssociation) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidAssociation"
}
return *e.ErrorCodeOverride
}
func (e *InvalidAssociation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The version you specified isn't valid. Use ListAssociationVersions to view all
// versions of an association according to the association ID. Or, use the $LATEST
// parameter to view the latest version of the association.
type InvalidAssociationVersion struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidAssociationVersion) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidAssociationVersion) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidAssociationVersion) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidAssociationVersion"
}
return *e.ErrorCodeOverride
}
func (e *InvalidAssociationVersion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The supplied parameters for invoking the specified Automation runbook are
// incorrect. For example, they may not match the set of parameters permitted for
// the specified Automation document.
type InvalidAutomationExecutionParametersException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidAutomationExecutionParametersException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidAutomationExecutionParametersException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidAutomationExecutionParametersException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidAutomationExecutionParametersException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidAutomationExecutionParametersException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The signal isn't valid for the current Automation execution.
type InvalidAutomationSignalException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidAutomationSignalException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidAutomationSignalException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidAutomationSignalException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidAutomationSignalException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidAutomationSignalException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified update status operation isn't valid.
type InvalidAutomationStatusUpdateException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidAutomationStatusUpdateException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidAutomationStatusUpdateException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidAutomationStatusUpdateException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidAutomationStatusUpdateException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidAutomationStatusUpdateException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The specified command ID isn't valid. Verify the ID and try again.
type InvalidCommandId struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidCommandId) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidCommandId) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidCommandId) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidCommandId"
}
return *e.ErrorCodeOverride
}
func (e *InvalidCommandId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// One or more of the parameters specified for the delete operation isn't valid.
// Verify all parameters and try again.
type InvalidDeleteInventoryParametersException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidDeleteInventoryParametersException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidDeleteInventoryParametersException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidDeleteInventoryParametersException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidDeleteInventoryParametersException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidDeleteInventoryParametersException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The ID specified for the delete operation doesn't exist or isn't valid. Verify
// the ID and try again.
type InvalidDeletionIdException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidDeletionIdException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidDeletionIdException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidDeletionIdException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidDeletionIdException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidDeletionIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified SSM document doesn't exist.
type InvalidDocument struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidDocument) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidDocument) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidDocument) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidDocument"
}
return *e.ErrorCodeOverride
}
func (e *InvalidDocument) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The content for the document isn't valid.
type InvalidDocumentContent struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidDocumentContent) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidDocumentContent) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidDocumentContent) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidDocumentContent"
}
return *e.ErrorCodeOverride
}
func (e *InvalidDocumentContent) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You attempted to delete a document while it is still shared. You must stop
// sharing the document before you can delete it.
type InvalidDocumentOperation struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidDocumentOperation) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidDocumentOperation) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidDocumentOperation) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidDocumentOperation"
}
return *e.ErrorCodeOverride
}
func (e *InvalidDocumentOperation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The version of the document schema isn't supported.
type InvalidDocumentSchemaVersion struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidDocumentSchemaVersion) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidDocumentSchemaVersion) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidDocumentSchemaVersion) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidDocumentSchemaVersion"
}
return *e.ErrorCodeOverride
}
func (e *InvalidDocumentSchemaVersion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The SSM document type isn't valid. Valid document types are described in the
// DocumentType property.
type InvalidDocumentType struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidDocumentType) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidDocumentType) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidDocumentType) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidDocumentType"
}
return *e.ErrorCodeOverride
}
func (e *InvalidDocumentType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The document version isn't valid or doesn't exist.
type InvalidDocumentVersion struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidDocumentVersion) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidDocumentVersion) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidDocumentVersion) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidDocumentVersion"
}
return *e.ErrorCodeOverride
}
func (e *InvalidDocumentVersion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The filter name isn't valid. Verify the you entered the correct name and try
// again.
type InvalidFilter struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidFilter) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidFilter) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidFilter) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidFilter"
}
return *e.ErrorCodeOverride
}
func (e *InvalidFilter) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified key isn't valid.
type InvalidFilterKey struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidFilterKey) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidFilterKey) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidFilterKey) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidFilterKey"
}
return *e.ErrorCodeOverride
}
func (e *InvalidFilterKey) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified filter option isn't valid. Valid options are Equals and
// BeginsWith. For Path filter, valid options are Recursive and OneLevel.
type InvalidFilterOption struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidFilterOption) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidFilterOption) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidFilterOption) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidFilterOption"
}
return *e.ErrorCodeOverride
}
func (e *InvalidFilterOption) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The filter value isn't valid. Verify the value and try again.
type InvalidFilterValue struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidFilterValue) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidFilterValue) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidFilterValue) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidFilterValue"
}
return *e.ErrorCodeOverride
}
func (e *InvalidFilterValue) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The following problems can cause this exception:
// - You don't have permission to access the managed node.
// - Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify
// that SSM Agent is running.
// - SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM
// Agent.
// - The managed node isn't in valid state. Valid states are: Running , Pending ,
// Stopped , and Stopping . Invalid states are: Shutting-down and Terminated .
type InvalidInstanceId struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidInstanceId) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidInstanceId) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidInstanceId) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidInstanceId"
}
return *e.ErrorCodeOverride
}
func (e *InvalidInstanceId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified filter value isn't valid.
type InvalidInstanceInformationFilterValue struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidInstanceInformationFilterValue) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidInstanceInformationFilterValue) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidInstanceInformationFilterValue) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidInstanceInformationFilterValue"
}
return *e.ErrorCodeOverride
}
func (e *InvalidInstanceInformationFilterValue) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The specified inventory group isn't valid.
type InvalidInventoryGroupException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidInventoryGroupException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidInventoryGroupException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidInventoryGroupException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidInventoryGroupException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidInventoryGroupException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You specified invalid keys or values in the Context attribute for InventoryItem
// . Verify the keys and values, and try again.
type InvalidInventoryItemContextException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidInventoryItemContextException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidInventoryItemContextException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidInventoryItemContextException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidInventoryItemContextException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidInventoryItemContextException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The request isn't valid.
type InvalidInventoryRequestException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidInventoryRequestException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidInventoryRequestException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidInventoryRequestException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidInventoryRequestException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidInventoryRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// One or more content items isn't valid.
type InvalidItemContentException struct {
Message *string
ErrorCodeOverride *string
TypeName *string
noSmithyDocumentSerde
}
func (e *InvalidItemContentException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidItemContentException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidItemContentException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidItemContentException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidItemContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The query key ID isn't valid.
type InvalidKeyId struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidKeyId) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidKeyId) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidKeyId) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidKeyId"
}
return *e.ErrorCodeOverride
}
func (e *InvalidKeyId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified token isn't valid.
type InvalidNextToken struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidNextToken) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidNextToken) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidNextToken) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidNextToken"
}
return *e.ErrorCodeOverride
}
func (e *InvalidNextToken) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// One or more configuration items isn't valid. Verify that a valid Amazon
// Resource Name (ARN) was provided for an Amazon Simple Notification Service
// topic.
type InvalidNotificationConfig struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidNotificationConfig) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidNotificationConfig) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidNotificationConfig) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidNotificationConfig"
}
return *e.ErrorCodeOverride
}
func (e *InvalidNotificationConfig) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The delete inventory option specified isn't valid. Verify the option and try
// again.
type InvalidOptionException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidOptionException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidOptionException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidOptionException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidOptionException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidOptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The S3 bucket doesn't exist.
type InvalidOutputFolder struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidOutputFolder) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidOutputFolder) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidOutputFolder) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidOutputFolder"
}
return *e.ErrorCodeOverride
}
func (e *InvalidOutputFolder) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The output location isn't valid or doesn't exist.
type InvalidOutputLocation struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidOutputLocation) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidOutputLocation) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidOutputLocation) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidOutputLocation"
}
return *e.ErrorCodeOverride
}
func (e *InvalidOutputLocation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You must specify values for all required parameters in the Amazon Web Services
// Systems Manager document (SSM document). You can only supply values to
// parameters defined in the SSM document.
type InvalidParameters struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidParameters) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidParameters) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidParameters) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidParameters"
}
return *e.ErrorCodeOverride
}
func (e *InvalidParameters) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The permission type isn't supported. Share is the only supported permission
// type.
type InvalidPermissionType struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidPermissionType) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidPermissionType) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidPermissionType) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidPermissionType"
}
return *e.ErrorCodeOverride
}
func (e *InvalidPermissionType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The plugin name isn't valid.
type InvalidPluginName struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidPluginName) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidPluginName) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidPluginName) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidPluginName"
}
return *e.ErrorCodeOverride
}
func (e *InvalidPluginName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A policy attribute or its value is invalid.
type InvalidPolicyAttributeException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidPolicyAttributeException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidPolicyAttributeException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidPolicyAttributeException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidPolicyAttributeException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidPolicyAttributeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The policy type isn't supported. Parameter Store supports the following policy
// types: Expiration, ExpirationNotification, and NoChangeNotification.
type InvalidPolicyTypeException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidPolicyTypeException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidPolicyTypeException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidPolicyTypeException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidPolicyTypeException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidPolicyTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The resource ID isn't valid. Verify that you entered the correct ID and try
// again.
type InvalidResourceId struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidResourceId) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidResourceId) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidResourceId) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidResourceId"
}
return *e.ErrorCodeOverride
}
func (e *InvalidResourceId) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The resource type isn't valid. For example, if you are attempting to tag an EC2
// instance, the instance must be a registered managed node.
type InvalidResourceType struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidResourceType) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidResourceType) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidResourceType) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidResourceType"
}
return *e.ErrorCodeOverride
}
func (e *InvalidResourceType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified inventory item result attribute isn't valid.
type InvalidResultAttributeException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidResultAttributeException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidResultAttributeException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidResultAttributeException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidResultAttributeException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidResultAttributeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The role name can't contain invalid characters. Also verify that you specified
// an IAM role for notifications that includes the required trust policy. For
// information about configuring the IAM role for Run Command notifications, see
// Configuring Amazon SNS Notifications for Run Command (https://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html)
// in the Amazon Web Services Systems Manager User Guide.
type InvalidRole struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidRole) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidRole) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidRole) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidRole"
}
return *e.ErrorCodeOverride
}
func (e *InvalidRole) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The schedule is invalid. Verify your cron or rate expression and try again.
type InvalidSchedule struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidSchedule) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidSchedule) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidSchedule) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidSchedule"
}
return *e.ErrorCodeOverride
}
func (e *InvalidSchedule) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified tag key or value isn't valid.
type InvalidTag struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidTag) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidTag) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidTag) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidTag"
}
return *e.ErrorCodeOverride
}
func (e *InvalidTag) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The target isn't valid or doesn't exist. It might not be configured for Systems
// Manager or you might not have permission to perform the operation.
type InvalidTarget struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidTarget) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidTarget) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidTarget) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidTarget"
}
return *e.ErrorCodeOverride
}
func (e *InvalidTarget) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// TargetMap parameter isn't valid.
type InvalidTargetMaps struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidTargetMaps) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidTargetMaps) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidTargetMaps) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidTargetMaps"
}
return *e.ErrorCodeOverride
}
func (e *InvalidTargetMaps) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The parameter type name isn't valid.
type InvalidTypeNameException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidTypeNameException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidTypeNameException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidTypeNameException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidTypeNameException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidTypeNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The update isn't valid.
type InvalidUpdate struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidUpdate) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidUpdate) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidUpdate) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidUpdate"
}
return *e.ErrorCodeOverride
}
func (e *InvalidUpdate) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The command ID and managed node ID you specified didn't match any invocations.
// Verify the command ID and the managed node ID and try again.
type InvocationDoesNotExist struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvocationDoesNotExist) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvocationDoesNotExist) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvocationDoesNotExist) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvocationDoesNotExist"
}
return *e.ErrorCodeOverride
}
func (e *InvocationDoesNotExist) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The inventory item has invalid content.
type ItemContentMismatchException struct {
Message *string
ErrorCodeOverride *string
TypeName *string
noSmithyDocumentSerde
}
func (e *ItemContentMismatchException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ItemContentMismatchException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ItemContentMismatchException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ItemContentMismatchException"
}
return *e.ErrorCodeOverride
}
func (e *ItemContentMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The inventory item size has exceeded the size limit.
type ItemSizeLimitExceededException struct {
Message *string
ErrorCodeOverride *string
TypeName *string
noSmithyDocumentSerde
}
func (e *ItemSizeLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ItemSizeLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ItemSizeLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ItemSizeLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *ItemSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The size limit of a document is 64 KB.
type MaxDocumentSizeExceeded struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *MaxDocumentSizeExceeded) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *MaxDocumentSizeExceeded) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *MaxDocumentSizeExceeded) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "MaxDocumentSizeExceeded"
}
return *e.ErrorCodeOverride
}
func (e *MaxDocumentSizeExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You don't have permission to view OpsItems in the specified account. Verify
// that your account is configured either as a Systems Manager delegated
// administrator or that you are logged into the Organizations management account.
type OpsItemAccessDeniedException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *OpsItemAccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsItemAccessDeniedException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsItemAccessDeniedException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsItemAccessDeniedException"
}
return *e.ErrorCodeOverride
}
func (e *OpsItemAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The OpsItem already exists.
type OpsItemAlreadyExistsException struct {
Message *string
ErrorCodeOverride *string
OpsItemId *string
noSmithyDocumentSerde
}
func (e *OpsItemAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsItemAlreadyExistsException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsItemAlreadyExistsException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsItemAlreadyExistsException"
}
return *e.ErrorCodeOverride
}
func (e *OpsItemAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A specified parameter argument isn't valid. Verify the available arguments and
// try again.
type OpsItemInvalidParameterException struct {
Message *string
ErrorCodeOverride *string
ParameterNames []string
noSmithyDocumentSerde
}
func (e *OpsItemInvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsItemInvalidParameterException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsItemInvalidParameterException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsItemInvalidParameterException"
}
return *e.ErrorCodeOverride
}
func (e *OpsItemInvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The request caused OpsItems to exceed one or more quotas.
type OpsItemLimitExceededException struct {
Message *string
ErrorCodeOverride *string
ResourceTypes []string
Limit int32
LimitType *string
noSmithyDocumentSerde
}
func (e *OpsItemLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsItemLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsItemLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsItemLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *OpsItemLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified OpsItem ID doesn't exist. Verify the ID and try again.
type OpsItemNotFoundException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *OpsItemNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsItemNotFoundException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsItemNotFoundException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsItemNotFoundException"
}
return *e.ErrorCodeOverride
}
func (e *OpsItemNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The Amazon Resource Name (ARN) is already associated with the OpsItem.
type OpsItemRelatedItemAlreadyExistsException struct {
Message *string
ErrorCodeOverride *string
ResourceUri *string
OpsItemId *string
noSmithyDocumentSerde
}
func (e *OpsItemRelatedItemAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsItemRelatedItemAlreadyExistsException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsItemRelatedItemAlreadyExistsException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsItemRelatedItemAlreadyExistsException"
}
return *e.ErrorCodeOverride
}
func (e *OpsItemRelatedItemAlreadyExistsException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The association wasn't found using the parameters you specified in the call.
// Verify the information and try again.
type OpsItemRelatedItemAssociationNotFoundException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *OpsItemRelatedItemAssociationNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsItemRelatedItemAssociationNotFoundException"
}
return *e.ErrorCodeOverride
}
func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// An OpsMetadata object already exists for the selected resource.
type OpsMetadataAlreadyExistsException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *OpsMetadataAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsMetadataAlreadyExistsException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsMetadataAlreadyExistsException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsMetadataAlreadyExistsException"
}
return *e.ErrorCodeOverride
}
func (e *OpsMetadataAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// One of the arguments passed is invalid.
type OpsMetadataInvalidArgumentException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *OpsMetadataInvalidArgumentException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsMetadataInvalidArgumentException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsMetadataInvalidArgumentException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsMetadataInvalidArgumentException"
}
return *e.ErrorCodeOverride
}
func (e *OpsMetadataInvalidArgumentException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The OpsMetadata object exceeds the maximum number of OpsMetadata keys that you
// can assign to an application in Application Manager.
type OpsMetadataKeyLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *OpsMetadataKeyLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsMetadataKeyLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsMetadataKeyLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsMetadataKeyLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *OpsMetadataKeyLimitExceededException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// Your account reached the maximum number of OpsMetadata objects allowed by
// Application Manager. The maximum is 200 OpsMetadata objects. Delete one or more
// OpsMetadata object and try again.
type OpsMetadataLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *OpsMetadataLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsMetadataLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsMetadataLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsMetadataLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *OpsMetadataLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The OpsMetadata object doesn't exist.
type OpsMetadataNotFoundException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *OpsMetadataNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsMetadataNotFoundException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsMetadataNotFoundException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsMetadataNotFoundException"
}
return *e.ErrorCodeOverride
}
func (e *OpsMetadataNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The system is processing too many concurrent updates. Wait a few moments and
// try again.
type OpsMetadataTooManyUpdatesException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *OpsMetadataTooManyUpdatesException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OpsMetadataTooManyUpdatesException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OpsMetadataTooManyUpdatesException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OpsMetadataTooManyUpdatesException"
}
return *e.ErrorCodeOverride
}
func (e *OpsMetadataTooManyUpdatesException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The parameter already exists. You can't create duplicate parameters.
type ParameterAlreadyExists struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ParameterAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ParameterAlreadyExists) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ParameterAlreadyExists) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ParameterAlreadyExists"
}
return *e.ErrorCodeOverride
}
func (e *ParameterAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You have exceeded the number of parameters for this Amazon Web Services
// account. Delete one or more parameters and try again.
type ParameterLimitExceeded struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ParameterLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ParameterLimitExceeded) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ParameterLimitExceeded) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ParameterLimitExceeded"
}
return *e.ErrorCodeOverride
}
func (e *ParameterLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Parameter Store retains the 100 most recently created versions of a parameter.
// After this number of versions has been created, Parameter Store deletes the
// oldest version when a new one is created. However, if the oldest version has a
// label attached to it, Parameter Store won't delete the version and instead
// presents this error message: An error occurred
// (ParameterMaxVersionLimitExceeded) when calling the PutParameter operation: You
// attempted to create a new version of parameter-name by calling the PutParameter
// API with the overwrite flag. Version version-number, the oldest version, can't
// be deleted because it has a label associated with it. Move the label to another
// version of the parameter, and try again. This safeguard is to prevent parameter
// versions with mission critical labels assigned to them from being deleted. To
// continue creating new parameters, first move the label from the oldest version
// of the parameter to a newer one for use in your operations. For information
// about moving parameter labels, see Move a parameter label (console) (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html#sysman-paramstore-labels-console-move)
// or Move a parameter label (CLI) (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html#sysman-paramstore-labels-cli-move)
// in the Amazon Web Services Systems Manager User Guide.
type ParameterMaxVersionLimitExceeded struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ParameterMaxVersionLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ParameterMaxVersionLimitExceeded) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ParameterMaxVersionLimitExceeded) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ParameterMaxVersionLimitExceeded"
}
return *e.ErrorCodeOverride
}
func (e *ParameterMaxVersionLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The parameter couldn't be found. Verify the name and try again.
type ParameterNotFound struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ParameterNotFound) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ParameterNotFound) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ParameterNotFound) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ParameterNotFound"
}
return *e.ErrorCodeOverride
}
func (e *ParameterNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The parameter name isn't valid.
type ParameterPatternMismatchException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ParameterPatternMismatchException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ParameterPatternMismatchException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ParameterPatternMismatchException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ParameterPatternMismatchException"
}
return *e.ErrorCodeOverride
}
func (e *ParameterPatternMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A parameter version can have a maximum of ten labels.
type ParameterVersionLabelLimitExceeded struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ParameterVersionLabelLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ParameterVersionLabelLimitExceeded) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ParameterVersionLabelLimitExceeded) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ParameterVersionLabelLimitExceeded"
}
return *e.ErrorCodeOverride
}
func (e *ParameterVersionLabelLimitExceeded) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The specified parameter version wasn't found. Verify the parameter name and
// version, and try again.
type ParameterVersionNotFound struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ParameterVersionNotFound) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ParameterVersionNotFound) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ParameterVersionNotFound) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ParameterVersionNotFound"
}
return *e.ErrorCodeOverride
}
func (e *ParameterVersionNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You specified more than the maximum number of allowed policies for the
// parameter. The maximum is 10.
type PoliciesLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *PoliciesLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *PoliciesLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *PoliciesLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "PoliciesLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *PoliciesLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A sync configuration with the same name already exists.
type ResourceDataSyncAlreadyExistsException struct {
Message *string
ErrorCodeOverride *string
SyncName *string
noSmithyDocumentSerde
}
func (e *ResourceDataSyncAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourceDataSyncAlreadyExistsException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourceDataSyncAlreadyExistsException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourceDataSyncAlreadyExistsException"
}
return *e.ErrorCodeOverride
}
func (e *ResourceDataSyncAlreadyExistsException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// Another UpdateResourceDataSync request is being processed. Wait a few minutes
// and try again.
type ResourceDataSyncConflictException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ResourceDataSyncConflictException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourceDataSyncConflictException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourceDataSyncConflictException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourceDataSyncConflictException"
}
return *e.ErrorCodeOverride
}
func (e *ResourceDataSyncConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You have exceeded the allowed maximum sync configurations.
type ResourceDataSyncCountExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ResourceDataSyncCountExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourceDataSyncCountExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourceDataSyncCountExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourceDataSyncCountExceededException"
}
return *e.ErrorCodeOverride
}
func (e *ResourceDataSyncCountExceededException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The specified sync configuration is invalid.
type ResourceDataSyncInvalidConfigurationException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ResourceDataSyncInvalidConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourceDataSyncInvalidConfigurationException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourceDataSyncInvalidConfigurationException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourceDataSyncInvalidConfigurationException"
}
return *e.ErrorCodeOverride
}
func (e *ResourceDataSyncInvalidConfigurationException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The specified sync name wasn't found.
type ResourceDataSyncNotFoundException struct {
Message *string
ErrorCodeOverride *string
SyncName *string
SyncType *string
noSmithyDocumentSerde
}
func (e *ResourceDataSyncNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourceDataSyncNotFoundException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourceDataSyncNotFoundException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourceDataSyncNotFoundException"
}
return *e.ErrorCodeOverride
}
func (e *ResourceDataSyncNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Error returned if an attempt is made to delete a patch baseline that is
// registered for a patch group.
type ResourceInUseException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourceInUseException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourceInUseException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourceInUseException"
}
return *e.ErrorCodeOverride
}
func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Error returned when the caller has exceeded the default resource quotas. For
// example, too many maintenance windows or patch baselines have been created. For
// information about resource quotas in Systems Manager, see Systems Manager
// service quotas (https://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the Amazon Web Services General Reference.
type ResourceLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ResourceLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourceLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourceLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourceLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The hash provided in the call doesn't match the stored hash. This exception is
// thrown when trying to update an obsolete policy version or when multiple
// requests to update a policy are sent.
type ResourcePolicyConflictException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ResourcePolicyConflictException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourcePolicyConflictException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourcePolicyConflictException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourcePolicyConflictException"
}
return *e.ErrorCodeOverride
}
func (e *ResourcePolicyConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// One or more parameters specified for the call aren't valid. Verify the
// parameters and their values and try again.
type ResourcePolicyInvalidParameterException struct {
Message *string
ErrorCodeOverride *string
ParameterNames []string
noSmithyDocumentSerde
}
func (e *ResourcePolicyInvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourcePolicyInvalidParameterException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourcePolicyInvalidParameterException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourcePolicyInvalidParameterException"
}
return *e.ErrorCodeOverride
}
func (e *ResourcePolicyInvalidParameterException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The PutResourcePolicy API action enforces two limits. A policy can't be greater
// than 1024 bytes in size. And only one policy can be attached to OpsItemGroup .
// Verify these limits and try again.
type ResourcePolicyLimitExceededException struct {
Message *string
ErrorCodeOverride *string
Limit int32
LimitType *string
noSmithyDocumentSerde
}
func (e *ResourcePolicyLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourcePolicyLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourcePolicyLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourcePolicyLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *ResourcePolicyLimitExceededException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The specified service setting wasn't found. Either the service name or the
// setting hasn't been provisioned by the Amazon Web Services service team.
type ServiceSettingNotFound struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ServiceSettingNotFound) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ServiceSettingNotFound) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ServiceSettingNotFound) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ServiceSettingNotFound"
}
return *e.ErrorCodeOverride
}
func (e *ServiceSettingNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The updated status is the same as the current status.
type StatusUnchanged struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *StatusUnchanged) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *StatusUnchanged) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *StatusUnchanged) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "StatusUnchanged"
}
return *e.ErrorCodeOverride
}
func (e *StatusUnchanged) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The sub-type count exceeded the limit for the inventory type.
type SubTypeCountLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *SubTypeCountLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *SubTypeCountLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *SubTypeCountLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "SubTypeCountLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *SubTypeCountLimitExceededException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// You specified the Safe option for the DeregisterTargetFromMaintenanceWindow
// operation, but the target is still referenced in a task.
type TargetInUseException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *TargetInUseException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *TargetInUseException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *TargetInUseException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "TargetInUseException"
}
return *e.ErrorCodeOverride
}
func (e *TargetInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified target managed node for the session isn't fully configured for
// use with Session Manager. For more information, see Getting started with
// Session Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html)
// in the Amazon Web Services Systems Manager User Guide. This error is also
// returned if you attempt to start a session on a managed node that is located in
// a different account or Region
type TargetNotConnected struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *TargetNotConnected) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *TargetNotConnected) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *TargetNotConnected) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "TargetNotConnected"
}
return *e.ErrorCodeOverride
}
func (e *TargetNotConnected) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The Targets parameter includes too many tags. Remove one or more tags and try
// the command again.
type TooManyTagsError struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *TooManyTagsError) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *TooManyTagsError) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *TooManyTagsError) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "TooManyTagsError"
}
return *e.ErrorCodeOverride
}
func (e *TooManyTagsError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// There are concurrent updates for a resource that supports one update at a time.
type TooManyUpdates struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *TooManyUpdates) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *TooManyUpdates) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *TooManyUpdates) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "TooManyUpdates"
}
return *e.ErrorCodeOverride
}
func (e *TooManyUpdates) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The size of inventory data has exceeded the total size limit for the resource.
type TotalSizeLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *TotalSizeLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *TotalSizeLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *TotalSizeLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "TotalSizeLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *TotalSizeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The calendar entry contained in the specified SSM document isn't supported.
type UnsupportedCalendarException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *UnsupportedCalendarException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *UnsupportedCalendarException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *UnsupportedCalendarException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "UnsupportedCalendarException"
}
return *e.ErrorCodeOverride
}
func (e *UnsupportedCalendarException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Patching for applications released by Microsoft is only available on EC2
// instances and advanced instances. To patch applications released by Microsoft on
// on-premises servers and VMs, you must enable advanced instances. For more
// information, see Enabling the advanced-instances tier (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances-advanced.html)
// in the Amazon Web Services Systems Manager User Guide.
type UnsupportedFeatureRequiredException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *UnsupportedFeatureRequiredException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *UnsupportedFeatureRequiredException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *UnsupportedFeatureRequiredException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "UnsupportedFeatureRequiredException"
}
return *e.ErrorCodeOverride
}
func (e *UnsupportedFeatureRequiredException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The Context attribute that you specified for the InventoryItem isn't allowed
// for this inventory type. You can only use the Context attribute with inventory
// types like AWS:ComplianceItem .
type UnsupportedInventoryItemContextException struct {
Message *string
ErrorCodeOverride *string
TypeName *string
noSmithyDocumentSerde
}
func (e *UnsupportedInventoryItemContextException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *UnsupportedInventoryItemContextException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *UnsupportedInventoryItemContextException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "UnsupportedInventoryItemContextException"
}
return *e.ErrorCodeOverride
}
func (e *UnsupportedInventoryItemContextException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// Inventory item type schema version has to match supported versions in the
// service. Check output of GetInventorySchema to see the available schema version
// for each type.
type UnsupportedInventorySchemaVersionException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *UnsupportedInventorySchemaVersionException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *UnsupportedInventorySchemaVersionException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *UnsupportedInventorySchemaVersionException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "UnsupportedInventorySchemaVersionException"
}
return *e.ErrorCodeOverride
}
func (e *UnsupportedInventorySchemaVersionException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The operating systems you specified isn't supported, or the operation isn't
// supported for the operating system.
type UnsupportedOperatingSystem struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *UnsupportedOperatingSystem) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *UnsupportedOperatingSystem) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *UnsupportedOperatingSystem) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "UnsupportedOperatingSystem"
}
return *e.ErrorCodeOverride
}
func (e *UnsupportedOperatingSystem) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The parameter type isn't supported.
type UnsupportedParameterType struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *UnsupportedParameterType) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *UnsupportedParameterType) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *UnsupportedParameterType) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "UnsupportedParameterType"
}
return *e.ErrorCodeOverride
}
func (e *UnsupportedParameterType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The document doesn't support the platform type of the given managed node ID(s).
// For example, you sent an document for a Windows managed node to a Linux node.
type UnsupportedPlatformType struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *UnsupportedPlatformType) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *UnsupportedPlatformType) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *UnsupportedPlatformType) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "UnsupportedPlatformType"
}
return *e.ErrorCodeOverride
}
func (e *UnsupportedPlatformType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
| 3,542 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Information includes the Amazon Web Services account ID where the current
// document is shared and the version shared with that account.
type AccountSharingInfo struct {
// The Amazon Web Services account ID where the current document is shared.
AccountId *string
// The version of the current document shared with the account.
SharedDocumentVersion *string
noSmithyDocumentSerde
}
// An activation registers one or more on-premises servers or virtual machines
// (VMs) with Amazon Web Services so that you can configure those servers or VMs
// using Run Command. A server or VM that has been registered with Amazon Web
// Services Systems Manager is called a managed node.
type Activation struct {
// The ID created by Systems Manager when you submitted the activation.
ActivationId *string
// The date the activation was created.
CreatedDate *time.Time
// A name for the managed node when it is created.
DefaultInstanceName *string
// A user defined description of the activation.
Description *string
// The date when this activation can no longer be used to register managed nodes.
ExpirationDate *time.Time
// Whether or not the activation is expired.
Expired bool
// The Identity and Access Management (IAM) role to assign to the managed node.
IamRole *string
// The maximum number of managed nodes that can be registered using this
// activation.
RegistrationLimit int32
// The number of managed nodes already registered with this activation.
RegistrationsCount int32
// Tags assigned to the activation.
Tags []Tag
noSmithyDocumentSerde
}
// A CloudWatch alarm you apply to an automation or command.
type Alarm struct {
// The name of your CloudWatch alarm.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// The details for the CloudWatch alarm you want to apply to an automation or
// command.
type AlarmConfiguration struct {
// The name of the CloudWatch alarm specified in the configuration.
//
// This member is required.
Alarms []Alarm
// When this value is true, your automation or command continues to run in cases
// where we can’t retrieve alarm status information from CloudWatch. In cases where
// we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the
// automation or command continues to run, regardless of this value. Default is
// false.
IgnorePollAlarmFailure bool
noSmithyDocumentSerde
}
// The details about the state of your CloudWatch alarm.
type AlarmStateInformation struct {
// The name of your CloudWatch alarm.
//
// This member is required.
Name *string
// The state of your CloudWatch alarm.
//
// This member is required.
State ExternalAlarmState
noSmithyDocumentSerde
}
// Describes an association of a Amazon Web Services Systems Manager document (SSM
// document) and a managed node.
type Association struct {
// The ID created by the system when you create an association. An association is
// a binding between a document and a set of targets with a schedule.
AssociationId *string
// The association name.
AssociationName *string
// The association version.
AssociationVersion *string
// The version of the document used in the association. If you change a document
// version for a State Manager association, Systems Manager immediately runs the
// association unless you previously specifed the apply-only-at-cron-interval
// parameter. State Manager doesn't support running associations that use a new
// version of a document if that document is shared from another account. State
// Manager always runs the default version of a document if shared from another
// account, even though the Systems Manager console shows that a new version was
// processed. If you want to run an association using a new version of a document
// shared form another account, you must set the document version to default .
DocumentVersion *string
// The managed node ID.
InstanceId *string
// The date on which the association was last run.
LastExecutionDate *time.Time
// The name of the SSM document.
Name *string
// Information about the association.
Overview *AssociationOverview
// A cron expression that specifies a schedule when the association runs. The
// schedule runs in Coordinated Universal Time (UTC).
ScheduleExpression *string
// Number of days to wait after the scheduled day to run an association.
ScheduleOffset *int32
// A key-value mapping of document parameters to target resources. Both Targets
// and TargetMaps can't be specified together.
TargetMaps []map[string][]string
// The managed nodes targeted by the request to create an association. You can
// target all managed nodes in an Amazon Web Services account by specifying the
// InstanceIds key with a value of * .
Targets []Target
noSmithyDocumentSerde
}
// Describes the parameters for a document.
type AssociationDescription struct {
// The details for the CloudWatch alarm you want to apply to an automation or
// command.
AlarmConfiguration *AlarmConfiguration
// By default, when you create a new associations, the system runs it immediately
// after it is created and then according to the schedule you specified. Specify
// this option if you don't want an association to run immediately after you create
// it. This parameter isn't supported for rate expressions.
ApplyOnlyAtCronInterval bool
// The association ID.
AssociationId *string
// The association name.
AssociationName *string
// The association version.
AssociationVersion *string
// Choose the parameter that will define how your automation will branch out. This
// target is required for associations that use an Automation runbook and target
// resources by using rate controls. Automation is a capability of Amazon Web
// Services Systems Manager.
AutomationTargetParameterName *string
// The names or Amazon Resource Names (ARNs) of the Change Calendar type documents
// your associations are gated under. The associations only run when that change
// calendar is open. For more information, see Amazon Web Services Systems Manager
// Change Calendar (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-change-calendar)
// .
CalendarNames []string
// The severity level that is assigned to the association.
ComplianceSeverity AssociationComplianceSeverity
// The date when the association was made.
Date *time.Time
// The document version.
DocumentVersion *string
// The managed node ID.
InstanceId *string
// The date on which the association was last run.
LastExecutionDate *time.Time
// The last date on which the association was successfully run.
LastSuccessfulExecutionDate *time.Time
// The date when the association was last updated.
LastUpdateAssociationDate *time.Time
// The maximum number of targets allowed to run the association at the same time.
// You can specify a number, for example 10, or a percentage of the target set, for
// example 10%. The default value is 100%, which means all targets run the
// association at the same time. If a new managed node starts and attempts to run
// an association while Systems Manager is running MaxConcurrency associations,
// the association is allowed to run. During the next association interval, the new
// managed node will process its association within the limit specified for
// MaxConcurrency .
MaxConcurrency *string
// The number of errors that are allowed before the system stops sending requests
// to run the association on additional targets. You can specify either an absolute
// number of errors, for example 10, or a percentage of the target set, for example
// 10%. If you specify 3, for example, the system stops sending requests when the
// fourth error is received. If you specify 0, then the system stops sending
// requests after the first error is returned. If you run an association on 50
// managed nodes and set MaxError to 10%, then the system stops sending the
// request when the sixth error is received. Executions that are already running an
// association when MaxErrors is reached are allowed to complete, but some of
// these executions may fail as well. If you need to ensure that there won't be
// more than max-errors failed executions, set MaxConcurrency to 1 so that
// executions proceed one at a time.
MaxErrors *string
// The name of the SSM document.
Name *string
// An S3 bucket where you want to store the output details of the request.
OutputLocation *InstanceAssociationOutputLocation
// Information about the association.
Overview *AssociationOverview
// A description of the parameters for a document.
Parameters map[string][]string
// A cron expression that specifies a schedule when the association runs.
ScheduleExpression *string
// Number of days to wait after the scheduled day to run an association.
ScheduleOffset *int32
// The association status.
Status *AssociationStatus
// The mode for generating association compliance. You can specify AUTO or MANUAL .
// In AUTO mode, the system uses the status of the association execution to
// determine the compliance status. If the association execution runs successfully,
// then the association is COMPLIANT . If the association execution doesn't run
// successfully, the association is NON-COMPLIANT . In MANUAL mode, you must
// specify the AssociationId as a parameter for the PutComplianceItems API
// operation. In this case, compliance data isn't managed by State Manager, a
// capability of Amazon Web Services Systems Manager. It is managed by your direct
// call to the PutComplianceItems API operation. By default, all associations use
// AUTO mode.
SyncCompliance AssociationSyncCompliance
// The combination of Amazon Web Services Regions and Amazon Web Services accounts
// where you want to run the association.
TargetLocations []TargetLocation
// A key-value mapping of document parameters to target resources. Both Targets
// and TargetMaps can't be specified together.
TargetMaps []map[string][]string
// The managed nodes targeted by the request.
Targets []Target
// The CloudWatch alarm that was invoked during the association.
TriggeredAlarms []AlarmStateInformation
noSmithyDocumentSerde
}
// Includes information about the specified association.
type AssociationExecution struct {
// The details for the CloudWatch alarm you want to apply to an automation or
// command.
AlarmConfiguration *AlarmConfiguration
// The association ID.
AssociationId *string
// The association version.
AssociationVersion *string
// The time the execution started.
CreatedTime *time.Time
// Detailed status information about the execution.
DetailedStatus *string
// The execution ID for the association.
ExecutionId *string
// The date of the last execution.
LastExecutionDate *time.Time
// An aggregate status of the resources in the execution based on the status type.
ResourceCountByStatus *string
// The status of the association execution.
Status *string
// The CloudWatch alarms that were invoked by the association.
TriggeredAlarms []AlarmStateInformation
noSmithyDocumentSerde
}
// Filters used in the request.
type AssociationExecutionFilter struct {
// The key value used in the request.
//
// This member is required.
Key AssociationExecutionFilterKey
// The filter type specified in the request.
//
// This member is required.
Type AssociationFilterOperatorType
// The value specified for the key.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Includes information about the specified association execution.
type AssociationExecutionTarget struct {
// The association ID.
AssociationId *string
// The association version.
AssociationVersion *string
// Detailed information about the execution status.
DetailedStatus *string
// The execution ID.
ExecutionId *string
// The date of the last execution.
LastExecutionDate *time.Time
// The location where the association details are saved.
OutputSource *OutputSource
// The resource ID, for example, the managed node ID where the association ran.
ResourceId *string
// The resource type, for example, EC2.
ResourceType *string
// The association execution status.
Status *string
noSmithyDocumentSerde
}
// Filters for the association execution.
type AssociationExecutionTargetsFilter struct {
// The key value used in the request.
//
// This member is required.
Key AssociationExecutionTargetsFilterKey
// The value specified for the key.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Describes a filter.
type AssociationFilter struct {
// The name of the filter. InstanceId has been deprecated.
//
// This member is required.
Key AssociationFilterKey
// The filter value.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Information about the association.
type AssociationOverview struct {
// Returns the number of targets for the association status. For example, if you
// created an association with two managed nodes, and one of them was successful,
// this would return the count of managed nodes by status.
AssociationStatusAggregatedCount map[string]int32
// A detailed status of the association.
DetailedStatus *string
// The status of the association. Status can be: Pending, Success, or Failed.
Status *string
noSmithyDocumentSerde
}
// Describes an association status.
type AssociationStatus struct {
// The date when the status changed.
//
// This member is required.
Date *time.Time
// The reason for the status.
//
// This member is required.
Message *string
// The status.
//
// This member is required.
Name AssociationStatusName
// A user-defined string.
AdditionalInfo *string
noSmithyDocumentSerde
}
// Information about the association version.
type AssociationVersionInfo struct {
// By default, when you create a new associations, the system runs it immediately
// after it is created and then according to the schedule you specified. Specify
// this option if you don't want an association to run immediately after you create
// it. This parameter isn't supported for rate expressions.
ApplyOnlyAtCronInterval bool
// The ID created by the system when the association was created.
AssociationId *string
// The name specified for the association version when the association version was
// created.
AssociationName *string
// The association version.
AssociationVersion *string
// The names or Amazon Resource Names (ARNs) of the Change Calendar type documents
// your associations are gated under. The associations for this version only run
// when that Change Calendar is open. For more information, see Amazon Web
// Services Systems Manager Change Calendar (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-change-calendar)
// .
CalendarNames []string
// The severity level that is assigned to the association.
ComplianceSeverity AssociationComplianceSeverity
// The date the association version was created.
CreatedDate *time.Time
// The version of an Amazon Web Services Systems Manager document (SSM document)
// used when the association version was created.
DocumentVersion *string
// The maximum number of targets allowed to run the association at the same time.
// You can specify a number, for example 10, or a percentage of the target set, for
// example 10%. The default value is 100%, which means all targets run the
// association at the same time. If a new managed node starts and attempts to run
// an association while Systems Manager is running MaxConcurrency associations,
// the association is allowed to run. During the next association interval, the new
// managed node will process its association within the limit specified for
// MaxConcurrency .
MaxConcurrency *string
// The number of errors that are allowed before the system stops sending requests
// to run the association on additional targets. You can specify either an absolute
// number of errors, for example 10, or a percentage of the target set, for example
// 10%. If you specify 3, for example, the system stops sending requests when the
// fourth error is received. If you specify 0, then the system stops sending
// requests after the first error is returned. If you run an association on 50
// managed nodes and set MaxError to 10%, then the system stops sending the
// request when the sixth error is received. Executions that are already running an
// association when MaxErrors is reached are allowed to complete, but some of
// these executions may fail as well. If you need to ensure that there won't be
// more than max-errors failed executions, set MaxConcurrency to 1 so that
// executions proceed one at a time.
MaxErrors *string
// The name specified when the association was created.
Name *string
// The location in Amazon S3 specified for the association when the association
// version was created.
OutputLocation *InstanceAssociationOutputLocation
// Parameters specified when the association version was created.
Parameters map[string][]string
// The cron or rate schedule specified for the association when the association
// version was created.
ScheduleExpression *string
// Number of days to wait after the scheduled day to run an association.
ScheduleOffset *int32
// The mode for generating association compliance. You can specify AUTO or MANUAL .
// In AUTO mode, the system uses the status of the association execution to
// determine the compliance status. If the association execution runs successfully,
// then the association is COMPLIANT . If the association execution doesn't run
// successfully, the association is NON-COMPLIANT . In MANUAL mode, you must
// specify the AssociationId as a parameter for the PutComplianceItems API
// operation. In this case, compliance data isn't managed by State Manager, a
// capability of Amazon Web Services Systems Manager. It is managed by your direct
// call to the PutComplianceItems API operation. By default, all associations use
// AUTO mode.
SyncCompliance AssociationSyncCompliance
// The combination of Amazon Web Services Regions and Amazon Web Services accounts
// where you wanted to run the association when this association version was
// created.
TargetLocations []TargetLocation
// A key-value mapping of document parameters to target resources. Both Targets
// and TargetMaps can't be specified together.
TargetMaps []map[string][]string
// The targets specified for the association when the association version was
// created.
Targets []Target
noSmithyDocumentSerde
}
// A structure that includes attributes that describe a document attachment.
type AttachmentContent struct {
// The cryptographic hash value of the document content.
Hash *string
// The hash algorithm used to calculate the hash value.
HashType AttachmentHashType
// The name of an attachment.
Name *string
// The size of an attachment in bytes.
Size int64
// The URL location of the attachment content.
Url *string
noSmithyDocumentSerde
}
// An attribute of an attachment, such as the attachment name.
type AttachmentInformation struct {
// The name of the attachment.
Name *string
noSmithyDocumentSerde
}
// Identifying information about a document attachment, including the file name
// and a key-value pair that identifies the location of an attachment to a
// document.
type AttachmentsSource struct {
// The key of a key-value pair that identifies the location of an attachment to a
// document.
Key AttachmentsSourceKey
// The name of the document attachment file.
Name *string
// The value of a key-value pair that identifies the location of an attachment to
// a document. The format for Value depends on the type of key you specify.
// - For the key SourceUrl, the value is an S3 bucket location. For example:
// "Values": [ "s3://doc-example-bucket/my-folder" ]
// - For the key S3FileUrl, the value is a file in an S3 bucket. For example:
// "Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]
// - For the key AttachmentReference, the value is constructed from the name of
// another SSM document in your account, a version number of that document, and a
// file attached to that document version that you want to reuse. For example:
// "Values": [ "MyOtherDocument/3/my-other-file.py" ] However, if the SSM
// document is shared with you from another account, the full SSM document ARN must
// be specified instead of the document name only. For example: "Values": [
// "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py"
// ]
Values []string
noSmithyDocumentSerde
}
// Detailed information about the current state of an individual Automation
// execution.
type AutomationExecution struct {
// The details for the CloudWatch alarm applied to your automation.
AlarmConfiguration *AlarmConfiguration
// The ID of a State Manager association used in the Automation operation.
AssociationId *string
// The execution ID.
AutomationExecutionId *string
// The execution status of the Automation.
AutomationExecutionStatus AutomationExecutionStatus
// The subtype of the Automation operation. Currently, the only supported value is
// ChangeRequest .
AutomationSubtype AutomationSubtype
// The name of the Change Manager change request.
ChangeRequestName *string
// The action of the step that is currently running.
CurrentAction *string
// The name of the step that is currently running.
CurrentStepName *string
// The name of the Automation runbook used during the execution.
DocumentName *string
// The version of the document to use during execution.
DocumentVersion *string
// The Amazon Resource Name (ARN) of the user who ran the automation.
ExecutedBy *string
// The time the execution finished.
ExecutionEndTime *time.Time
// The time the execution started.
ExecutionStartTime *time.Time
// A message describing why an execution has failed, if the status is set to
// Failed.
FailureMessage *string
// The MaxConcurrency value specified by the user when the execution started.
MaxConcurrency *string
// The MaxErrors value specified by the user when the execution started.
MaxErrors *string
// The automation execution mode.
Mode ExecutionMode
// The ID of an OpsItem that is created to represent a Change Manager change
// request.
OpsItemId *string
// The list of execution outputs as defined in the Automation runbook.
Outputs map[string][]string
// The key-value map of execution parameters, which were supplied when calling
// StartAutomationExecution .
Parameters map[string][]string
// The AutomationExecutionId of the parent automation.
ParentAutomationExecutionId *string
// An aggregate of step execution statuses displayed in the Amazon Web Services
// Systems Manager console for a multi-Region and multi-account Automation
// execution.
ProgressCounters *ProgressCounters
// A list of resolved targets in the rate control execution.
ResolvedTargets *ResolvedTargets
// Information about the Automation runbooks that are run as part of a runbook
// workflow. The Automation runbooks specified for the runbook workflow can't run
// until all required approvals for the change request have been received.
Runbooks []Runbook
// The date and time the Automation operation is scheduled to start.
ScheduledTime *time.Time
// A list of details about the current state of all steps that comprise an
// execution. An Automation runbook contains a list of steps that are run in order.
StepExecutions []StepExecution
// A boolean value that indicates if the response contains the full list of the
// Automation step executions. If true, use the DescribeAutomationStepExecutions
// API operation to get the full list of step executions.
StepExecutionsTruncated bool
// The target of the execution.
Target *string
// The combination of Amazon Web Services Regions and/or Amazon Web Services
// accounts where you want to run the Automation.
TargetLocations []TargetLocation
// The specified key-value mapping of document parameters to target resources.
TargetMaps []map[string][]string
// The parameter name.
TargetParameterName *string
// The specified targets.
Targets []Target
// The CloudWatch alarm that was invoked by the automation.
TriggeredAlarms []AlarmStateInformation
noSmithyDocumentSerde
}
// A filter used to match specific automation executions. This is used to limit
// the scope of Automation execution information returned.
type AutomationExecutionFilter struct {
// One or more keys to limit the results.
//
// This member is required.
Key AutomationExecutionFilterKey
// The values used to limit the execution information associated with the filter's
// key.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Details about a specific Automation execution.
type AutomationExecutionMetadata struct {
// The details for the CloudWatch alarm applied to your automation.
AlarmConfiguration *AlarmConfiguration
// The ID of a State Manager association used in the Automation operation.
AssociationId *string
// The execution ID.
AutomationExecutionId *string
// The status of the execution.
AutomationExecutionStatus AutomationExecutionStatus
// The subtype of the Automation operation. Currently, the only supported value is
// ChangeRequest .
AutomationSubtype AutomationSubtype
// Use this filter with DescribeAutomationExecutions . Specify either Local or
// CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web
// Services Regions and Amazon Web Services accounts. For more information, see
// Running Automation workflows in multiple Amazon Web Services Regions and
// accounts (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-automation-multiple-accounts-and-regions.html)
// in the Amazon Web Services Systems Manager User Guide.
AutomationType AutomationType
// The name of the Change Manager change request.
ChangeRequestName *string
// The action of the step that is currently running.
CurrentAction *string
// The name of the step that is currently running.
CurrentStepName *string
// The name of the Automation runbook used during execution.
DocumentName *string
// The document version used during the execution.
DocumentVersion *string
// The IAM role ARN of the user who ran the automation.
ExecutedBy *string
// The time the execution finished. This isn't populated if the execution is still
// in progress.
ExecutionEndTime *time.Time
// The time the execution started.
ExecutionStartTime *time.Time
// The list of execution outputs as defined in the Automation runbook.
FailureMessage *string
// An S3 bucket where execution information is stored.
LogFile *string
// The MaxConcurrency value specified by the user when starting the automation.
MaxConcurrency *string
// The MaxErrors value specified by the user when starting the automation.
MaxErrors *string
// The Automation execution mode.
Mode ExecutionMode
// The ID of an OpsItem that is created to represent a Change Manager change
// request.
OpsItemId *string
// The list of execution outputs as defined in the Automation runbook.
Outputs map[string][]string
// The execution ID of the parent automation.
ParentAutomationExecutionId *string
// A list of targets that resolved during the execution.
ResolvedTargets *ResolvedTargets
// Information about the Automation runbooks that are run during a runbook
// workflow in Change Manager. The Automation runbooks specified for the runbook
// workflow can't run until all required approvals for the change request have been
// received.
Runbooks []Runbook
// The date and time the Automation operation is scheduled to start.
ScheduledTime *time.Time
// The list of execution outputs as defined in the Automation runbook.
Target *string
// The specified key-value mapping of document parameters to target resources.
TargetMaps []map[string][]string
// The list of execution outputs as defined in the Automation runbook.
TargetParameterName *string
// The targets defined by the user when starting the automation.
Targets []Target
// The CloudWatch alarm that was invoked by the automation.
TriggeredAlarms []AlarmStateInformation
noSmithyDocumentSerde
}
// Defines the basic information about a patch baseline override.
type BaselineOverride struct {
// A set of rules defining the approval rules for a patch baseline.
ApprovalRules *PatchRuleGroup
// A list of explicitly approved patches for the baseline. For information about
// accepted formats for lists of approved patches and rejected patches, see About
// package name formats for approved and rejected patch lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
// in the Amazon Web Services Systems Manager User Guide.
ApprovedPatches []string
// Defines the compliance level for approved patches. When an approved patch is
// reported as missing, this value describes the severity of the compliance
// violation.
ApprovedPatchesComplianceLevel PatchComplianceLevel
// Indicates whether the list of approved patches includes non-security updates
// that should be applied to the managed nodes. The default value is false .
// Applies to Linux managed nodes only.
ApprovedPatchesEnableNonSecurity bool
// A set of patch filters, typically used for approval rules.
GlobalFilters *PatchFilterGroup
// The operating system rule used by the patch baseline override.
OperatingSystem OperatingSystem
// A list of explicitly rejected patches for the baseline. For information about
// accepted formats for lists of approved patches and rejected patches, see About
// package name formats for approved and rejected patch lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
// in the Amazon Web Services Systems Manager User Guide.
RejectedPatches []string
// The action for Patch Manager to take on patches included in the RejectedPackages
// list. A patch can be allowed only if it is a dependency of another package, or
// blocked entirely along with packages that include it as a dependency.
RejectedPatchesAction PatchAction
// Information about the patches to use to update the managed nodes, including
// target operating systems and source repositories. Applies to Linux managed nodes
// only.
Sources []PatchSource
noSmithyDocumentSerde
}
// Configuration options for sending command output to Amazon CloudWatch Logs.
type CloudWatchOutputConfig struct {
// The name of the CloudWatch Logs log group where you want to send command
// output. If you don't specify a group name, Amazon Web Services Systems Manager
// automatically creates a log group for you. The log group uses the following
// naming format: aws/ssm/SystemsManagerDocumentName
CloudWatchLogGroupName *string
// Enables Systems Manager to send command output to CloudWatch Logs.
CloudWatchOutputEnabled bool
noSmithyDocumentSerde
}
// Describes a command request.
type Command struct {
// The details for the CloudWatch alarm applied to your command.
AlarmConfiguration *AlarmConfiguration
// Amazon CloudWatch Logs information where you want Amazon Web Services Systems
// Manager to send the command output.
CloudWatchOutputConfig *CloudWatchOutputConfig
// A unique identifier for this command.
CommandId *string
// User-specified information about the command, such as a brief description of
// what the command should do.
Comment *string
// The number of targets for which the command invocation reached a terminal
// state. Terminal states include the following: Success, Failed, Execution Timed
// Out, Delivery Timed Out, Cancelled, Terminated, or Undeliverable.
CompletedCount int32
// The number of targets for which the status is Delivery Timed Out.
DeliveryTimedOutCount int32
// The name of the document requested for execution.
DocumentName *string
// The Systems Manager document (SSM document) version.
DocumentVersion *string
// The number of targets for which the status is Failed or Execution Timed Out.
ErrorCount int32
// If a command expires, it changes status to DeliveryTimedOut for all invocations
// that have the status InProgress , Pending , or Delayed . ExpiresAfter is
// calculated based on the total timeout for the overall command. For more
// information, see Understanding command timeout values (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html?icmpid=docs_ec2_console#monitor-about-status-timeouts)
// in the Amazon Web Services Systems Manager User Guide.
ExpiresAfter *time.Time
// The managed node IDs against which this command was requested.
InstanceIds []string
// The maximum number of managed nodes that are allowed to run the command at the
// same time. You can specify a number of managed nodes, such as 10, or a
// percentage of nodes, such as 10%. The default value is 50. For more information
// about how to use MaxConcurrency , see Running commands using Systems Manager
// Run Command (https://docs.aws.amazon.com/systems-manager/latest/userguide/run-command.html)
// in the Amazon Web Services Systems Manager User Guide.
MaxConcurrency *string
// The maximum number of errors allowed before the system stops sending the
// command to additional targets. You can specify a number of errors, such as 10,
// or a percentage or errors, such as 10%. The default value is 0 . For more
// information about how to use MaxErrors , see Running commands using Systems
// Manager Run Command (https://docs.aws.amazon.com/systems-manager/latest/userguide/run-command.html)
// in the Amazon Web Services Systems Manager User Guide.
MaxErrors *string
// Configurations for sending notifications about command status changes.
NotificationConfig *NotificationConfig
// The S3 bucket where the responses to the command executions should be stored.
// This was requested when issuing the command.
OutputS3BucketName *string
// The S3 directory path inside the bucket where the responses to the command
// executions should be stored. This was requested when issuing the command.
OutputS3KeyPrefix *string
// (Deprecated) You can no longer specify this parameter. The system ignores it.
// Instead, Systems Manager automatically determines the Amazon Web Services Region
// of the S3 bucket.
OutputS3Region *string
// The parameter values to be inserted in the document when running the command.
Parameters map[string][]string
// The date and time the command was requested.
RequestedDateTime *time.Time
// The Identity and Access Management (IAM) service role that Run Command, a
// capability of Amazon Web Services Systems Manager, uses to act on your behalf
// when sending notifications about command status changes.
ServiceRole *string
// The status of the command.
Status CommandStatus
// A detailed status of the command execution. StatusDetails includes more
// information than Status because it includes states resulting from error and
// concurrency control parameters. StatusDetails can show different results than
// Status. For more information about these statuses, see Understanding command
// statuses (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
// in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one
// of the following values:
// - Pending: The command hasn't been sent to any managed nodes.
// - In Progress: The command has been sent to at least one managed node but
// hasn't reached a final state on all managed nodes.
// - Success: The command successfully ran on all invocations. This is a
// terminal state.
// - Delivery Timed Out: The value of MaxErrors or more command invocations
// shows a status of Delivery Timed Out. This is a terminal state.
// - Execution Timed Out: The value of MaxErrors or more command invocations
// shows a status of Execution Timed Out. This is a terminal state.
// - Failed: The value of MaxErrors or more command invocations shows a status
// of Failed. This is a terminal state.
// - Incomplete: The command was attempted on all managed nodes and one or more
// invocations doesn't have a value of Success but not enough invocations failed
// for the status to be Failed. This is a terminal state.
// - Cancelled: The command was terminated before it was completed. This is a
// terminal state.
// - Rate Exceeded: The number of managed nodes targeted by the command exceeded
// the account limit for pending invocations. The system has canceled the command
// before running it on any managed node. This is a terminal state.
// - Delayed: The system attempted to send the command to the managed node but
// wasn't successful. The system retries again.
StatusDetails *string
// The number of targets for the command.
TargetCount int32
// An array of search criteria that targets managed nodes using a Key,Value
// combination that you specify. Targets is required if you don't provide one or
// more managed node IDs in the call.
Targets []Target
// The TimeoutSeconds value specified for a command.
TimeoutSeconds int32
// The CloudWatch alarm that was invoked by the command.
TriggeredAlarms []AlarmStateInformation
noSmithyDocumentSerde
}
// Describes a command filter. A managed node ID can't be specified when a command
// status is Pending because the command hasn't run on the node yet.
type CommandFilter struct {
// The name of the filter. The ExecutionStage filter can't be used with the
// ListCommandInvocations operation, only with ListCommands .
//
// This member is required.
Key CommandFilterKey
// The filter value. Valid values for each filter key are as follows:
// - InvokedAfter: Specify a timestamp to limit your results. For example,
// specify 2021-07-07T00:00:00Z to see a list of command executions occurring
// July 7, 2021, and later.
// - InvokedBefore: Specify a timestamp to limit your results. For example,
// specify 2021-07-07T00:00:00Z to see a list of command executions from before
// July 7, 2021.
// - Status: Specify a valid command status to see a list of all command
// executions with that status. The status choices depend on the API you call. The
// status values you can specify for ListCommands are:
// - Pending
// - InProgress
// - Success
// - Cancelled
// - Failed
// - TimedOut (this includes both Delivery and Execution time outs)
// - AccessDenied
// - DeliveryTimedOut
// - ExecutionTimedOut
// - Incomplete
// - NoInstancesInTag
// - LimitExceeded The status values you can specify for ListCommandInvocations
// are:
// - Pending
// - InProgress
// - Delayed
// - Success
// - Cancelled
// - Failed
// - TimedOut (this includes both Delivery and Execution time outs)
// - AccessDenied
// - DeliveryTimedOut
// - ExecutionTimedOut
// - Undeliverable
// - InvalidPlatform
// - Terminated
// - DocumentName: Specify name of the Amazon Web Services Systems Manager
// document (SSM document) for which you want to see command execution results. For
// example, specify AWS-RunPatchBaseline to see command executions that used this
// SSM document to perform security patching operations on managed nodes.
// - ExecutionStage: Specify one of the following values ( ListCommands
// operations only):
// - Executing : Returns a list of command executions that are currently still
// running.
// - Complete : Returns a list of command executions that have already completed.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// An invocation is a copy of a command sent to a specific managed node. A command
// can apply to one or more managed nodes. A command invocation applies to one
// managed node. For example, if a user runs SendCommand against three managed
// nodes, then a command invocation is created for each requested managed node ID.
// A command invocation returns status and detail information about a command you
// ran.
type CommandInvocation struct {
// Amazon CloudWatch Logs information where you want Amazon Web Services Systems
// Manager to send the command output.
CloudWatchOutputConfig *CloudWatchOutputConfig
// The command against which this invocation was requested.
CommandId *string
// Plugins processed by the command.
CommandPlugins []CommandPlugin
// User-specified information about the command, such as a brief description of
// what the command should do.
Comment *string
// The document name that was requested for execution.
DocumentName *string
// The Systems Manager document (SSM document) version.
DocumentVersion *string
// The managed node ID in which this invocation was requested.
InstanceId *string
// The fully qualified host name of the managed node.
InstanceName *string
// Configurations for sending notifications about command status changes on a per
// managed node basis.
NotificationConfig *NotificationConfig
// The time and date the request was sent to this managed node.
RequestedDateTime *time.Time
// The Identity and Access Management (IAM) service role that Run Command, a
// capability of Amazon Web Services Systems Manager, uses to act on your behalf
// when sending notifications about command status changes on a per managed node
// basis.
ServiceRole *string
// The URL to the plugin's StdErr file in Amazon Simple Storage Service (Amazon
// S3), if the S3 bucket was defined for the parent command. For an invocation,
// StandardErrorUrl is populated if there is just one plugin defined for the
// command, and the S3 bucket was defined for the command.
StandardErrorUrl *string
// The URL to the plugin's StdOut file in Amazon Simple Storage Service (Amazon
// S3), if the S3 bucket was defined for the parent command. For an invocation,
// StandardOutputUrl is populated if there is just one plugin defined for the
// command, and the S3 bucket was defined for the command.
StandardOutputUrl *string
// Whether or not the invocation succeeded, failed, or is pending.
Status CommandInvocationStatus
// A detailed status of the command execution for each invocation (each managed
// node targeted by the command). StatusDetails includes more information than
// Status because it includes states resulting from error and concurrency control
// parameters. StatusDetails can show different results than Status. For more
// information about these statuses, see Understanding command statuses (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
// in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one
// of the following values:
// - Pending: The command hasn't been sent to the managed node.
// - In Progress: The command has been sent to the managed node but hasn't
// reached a terminal state.
// - Success: The execution of the command or plugin was successfully completed.
// This is a terminal state.
// - Delivery Timed Out: The command wasn't delivered to the managed node before
// the delivery timeout expired. Delivery timeouts don't count against the parent
// command's MaxErrors limit, but they do contribute to whether the parent
// command status is Success or Incomplete. This is a terminal state.
// - Execution Timed Out: Command execution started on the managed node, but the
// execution wasn't complete before the execution timeout expired. Execution
// timeouts count against the MaxErrors limit of the parent command. This is a
// terminal state.
// - Failed: The command wasn't successful on the managed node. For a plugin,
// this indicates that the result code wasn't zero. For a command invocation, this
// indicates that the result code for one or more plugins wasn't zero. Invocation
// failures count against the MaxErrors limit of the parent command. This is a
// terminal state.
// - Cancelled: The command was terminated before it was completed. This is a
// terminal state.
// - Undeliverable: The command can't be delivered to the managed node. The
// managed node might not exist or might not be responding. Undeliverable
// invocations don't count against the parent command's MaxErrors limit and don't
// contribute to whether the parent command status is Success or Incomplete. This
// is a terminal state.
// - Terminated: The parent command exceeded its MaxErrors limit and subsequent
// command invocations were canceled by the system. This is a terminal state.
// - Delayed: The system attempted to send the command to the managed node but
// wasn't successful. The system retries again.
StatusDetails *string
// Gets the trace output sent by the agent.
TraceOutput *string
noSmithyDocumentSerde
}
// Describes plugin details.
type CommandPlugin struct {
// The name of the plugin. Must be one of the following: aws:updateAgent ,
// aws:domainjoin , aws:applications , aws:runPowerShellScript , aws:psmodule ,
// aws:cloudWatch , aws:runShellScript , or aws:updateSSMAgent .
Name *string
// Output of the plugin execution.
Output *string
// The S3 bucket where the responses to the command executions should be stored.
// This was requested when issuing the command. For example, in the following
// response:
// doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript
// doc-example-bucket is the name of the S3 bucket;
// ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;
// i-02573cafcfEXAMPLE is the managed node ID; awsrunShellScript is the name of
// the plugin.
OutputS3BucketName *string
// The S3 directory path inside the bucket where the responses to the command
// executions should be stored. This was requested when issuing the command. For
// example, in the following response:
// doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript
// doc-example-bucket is the name of the S3 bucket;
// ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;
// i-02573cafcfEXAMPLE is the managed node ID; awsrunShellScript is the name of
// the plugin.
OutputS3KeyPrefix *string
// (Deprecated) You can no longer specify this parameter. The system ignores it.
// Instead, Amazon Web Services Systems Manager automatically determines the S3
// bucket region.
OutputS3Region *string
// A numeric response code generated after running the plugin.
ResponseCode int32
// The time the plugin stopped running. Could stop prematurely if, for example, a
// cancel command was sent.
ResponseFinishDateTime *time.Time
// The time the plugin started running.
ResponseStartDateTime *time.Time
// The URL for the complete text written by the plugin to stderr. If execution
// isn't yet complete, then this string is empty.
StandardErrorUrl *string
// The URL for the complete text written by the plugin to stdout in Amazon S3. If
// the S3 bucket for the command wasn't specified, then this string is empty.
StandardOutputUrl *string
// The status of this plugin. You can run a document with multiple plugins.
Status CommandPluginStatus
// A detailed status of the plugin execution. StatusDetails includes more
// information than Status because it includes states resulting from error and
// concurrency control parameters. StatusDetails can show different results than
// Status. For more information about these statuses, see Understanding command
// statuses (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
// in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one
// of the following values:
// - Pending: The command hasn't been sent to the managed node.
// - In Progress: The command has been sent to the managed node but hasn't
// reached a terminal state.
// - Success: The execution of the command or plugin was successfully completed.
// This is a terminal state.
// - Delivery Timed Out: The command wasn't delivered to the managed node before
// the delivery timeout expired. Delivery timeouts don't count against the parent
// command's MaxErrors limit, but they do contribute to whether the parent
// command status is Success or Incomplete. This is a terminal state.
// - Execution Timed Out: Command execution started on the managed node, but the
// execution wasn't complete before the execution timeout expired. Execution
// timeouts count against the MaxErrors limit of the parent command. This is a
// terminal state.
// - Failed: The command wasn't successful on the managed node. For a plugin,
// this indicates that the result code wasn't zero. For a command invocation, this
// indicates that the result code for one or more plugins wasn't zero. Invocation
// failures count against the MaxErrors limit of the parent command. This is a
// terminal state.
// - Cancelled: The command was terminated before it was completed. This is a
// terminal state.
// - Undeliverable: The command can't be delivered to the managed node. The
// managed node might not exist, or it might not be responding. Undeliverable
// invocations don't count against the parent command's MaxErrors limit, and they
// don't contribute to whether the parent command status is Success or Incomplete.
// This is a terminal state.
// - Terminated: The parent command exceeded its MaxErrors limit and subsequent
// command invocations were canceled by the system. This is a terminal state.
StatusDetails *string
noSmithyDocumentSerde
}
// A summary of the call execution that includes an execution ID, the type of
// execution (for example, Command ), and the date/time of the execution using a
// datetime object that is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'.
type ComplianceExecutionSummary struct {
// The time the execution ran as a datetime object that is saved in the following
// format: yyyy-MM-dd'T'HH:mm:ss'Z'.
//
// This member is required.
ExecutionTime *time.Time
// An ID created by the system when PutComplianceItems was called. For example,
// CommandID is a valid execution ID. You can use this ID in subsequent calls.
ExecutionId *string
// The type of execution. For example, Command is a valid execution type.
ExecutionType *string
noSmithyDocumentSerde
}
// Information about the compliance as defined by the resource type. For example,
// for a patch resource type, Items includes information about the PatchSeverity,
// Classification, and so on.
type ComplianceItem struct {
// The compliance type. For example, Association (for a State Manager
// association), Patch, or Custom: string are all valid compliance types.
ComplianceType *string
// A "Key": "Value" tag combination for the compliance item.
Details map[string]string
// A summary for the compliance item. The summary includes an execution ID, the
// execution type (for example, command), and the execution time.
ExecutionSummary *ComplianceExecutionSummary
// An ID for the compliance item. For example, if the compliance item is a Windows
// patch, the ID could be the number of the KB article; for example: KB4010320.
Id *string
// An ID for the resource. For a managed node, this is the node ID.
ResourceId *string
// The type of resource. ManagedInstance is currently the only supported resource
// type.
ResourceType *string
// The severity of the compliance status. Severity can be one of the following:
// Critical, High, Medium, Low, Informational, Unspecified.
Severity ComplianceSeverity
// The status of the compliance item. An item is either COMPLIANT, NON_COMPLIANT,
// or an empty string (for Windows patches that aren't applicable).
Status ComplianceStatus
// A title for the compliance item. For example, if the compliance item is a
// Windows patch, the title could be the title of the KB article for the patch; for
// example: Security Update for Active Directory Federation Services.
Title *string
noSmithyDocumentSerde
}
// Information about a compliance item.
type ComplianceItemEntry struct {
// The severity of the compliance status. Severity can be one of the following:
// Critical, High, Medium, Low, Informational, Unspecified.
//
// This member is required.
Severity ComplianceSeverity
// The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT.
//
// This member is required.
Status ComplianceStatus
// A "Key": "Value" tag combination for the compliance item.
Details map[string]string
// The compliance item ID. For example, if the compliance item is a Windows patch,
// the ID could be the number of the KB article.
Id *string
// The title of the compliance item. For example, if the compliance item is a
// Windows patch, the title could be the title of the KB article for the patch; for
// example: Security Update for Active Directory Federation Services.
Title *string
noSmithyDocumentSerde
}
// One or more filters. Use a filter to return a more specific list of results.
type ComplianceStringFilter struct {
// The name of the filter.
Key *string
// The type of comparison that should be performed for the value: Equal, NotEqual,
// BeginWith, LessThan, or GreaterThan.
Type ComplianceQueryOperatorType
// The value for which to search.
Values []string
noSmithyDocumentSerde
}
// A summary of compliance information by compliance type.
type ComplianceSummaryItem struct {
// The type of compliance item. For example, the compliance type can be
// Association, Patch, or Custom:string.
ComplianceType *string
// A list of COMPLIANT items for the specified compliance type.
CompliantSummary *CompliantSummary
// A list of NON_COMPLIANT items for the specified compliance type.
NonCompliantSummary *NonCompliantSummary
noSmithyDocumentSerde
}
// A summary of resources that are compliant. The summary is organized according
// to the resource count for each compliance type.
type CompliantSummary struct {
// The total number of resources that are compliant.
CompliantCount int32
// A summary of the compliance severity by compliance type.
SeveritySummary *SeveritySummary
noSmithyDocumentSerde
}
// Describes the association of a Amazon Web Services Systems Manager document
// (SSM document) and a managed node.
type CreateAssociationBatchRequestEntry struct {
// The name of the SSM document that contains the configuration information for
// the managed node. You can specify Command or Automation runbooks. You can
// specify Amazon Web Services-predefined documents, documents you created, or a
// document that is shared with you from another account. For SSM documents that
// are shared with you from other Amazon Web Services accounts, you must specify
// the complete SSM document ARN, in the following format:
// arn:aws:ssm:region:account-id:document/document-name For example:
// arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document For Amazon Web
// Services-predefined documents and SSM documents you created in your account, you
// only need to specify the document name. For example, AWS-ApplyPatchBaseline or
// My-Document .
//
// This member is required.
Name *string
// The details for the CloudWatch alarm you want to apply to an automation or
// command.
AlarmConfiguration *AlarmConfiguration
// By default, when you create a new associations, the system runs it immediately
// after it is created and then according to the schedule you specified. Specify
// this option if you don't want an association to run immediately after you create
// it. This parameter isn't supported for rate expressions.
ApplyOnlyAtCronInterval bool
// Specify a descriptive name for the association.
AssociationName *string
// Specify the target for the association. This target is required for
// associations that use an Automation runbook and target resources by using rate
// controls. Automation is a capability of Amazon Web Services Systems Manager.
AutomationTargetParameterName *string
// The names or Amazon Resource Names (ARNs) of the Change Calendar type documents
// your associations are gated under. The associations only run when that Change
// Calendar is open. For more information, see Amazon Web Services Systems Manager
// Change Calendar (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-change-calendar)
// .
CalendarNames []string
// The severity level to assign to the association.
ComplianceSeverity AssociationComplianceSeverity
// The document version.
DocumentVersion *string
// The managed node ID. InstanceId has been deprecated. To specify a managed node
// ID for an association, use the Targets parameter. Requests that include the
// parameter InstanceID with Systems Manager documents (SSM documents) that use
// schema version 2.0 or later will fail. In addition, if you use the parameter
// InstanceId , you can't use the parameters AssociationName , DocumentVersion ,
// MaxErrors , MaxConcurrency , OutputLocation , or ScheduleExpression . To use
// these parameters, you must use the Targets parameter.
InstanceId *string
// The maximum number of targets allowed to run the association at the same time.
// You can specify a number, for example 10, or a percentage of the target set, for
// example 10%. The default value is 100%, which means all targets run the
// association at the same time. If a new managed node starts and attempts to run
// an association while Systems Manager is running MaxConcurrency associations,
// the association is allowed to run. During the next association interval, the new
// managed node will process its association within the limit specified for
// MaxConcurrency .
MaxConcurrency *string
// The number of errors that are allowed before the system stops sending requests
// to run the association on additional targets. You can specify either an absolute
// number of errors, for example 10, or a percentage of the target set, for example
// 10%. If you specify 3, for example, the system stops sending requests when the
// fourth error is received. If you specify 0, then the system stops sending
// requests after the first error is returned. If you run an association on 50
// managed nodes and set MaxError to 10%, then the system stops sending the
// request when the sixth error is received. Executions that are already running an
// association when MaxErrors is reached are allowed to complete, but some of
// these executions may fail as well. If you need to ensure that there won't be
// more than max-errors failed executions, set MaxConcurrency to 1 so that
// executions proceed one at a time.
MaxErrors *string
// An S3 bucket where you want to store the results of this request.
OutputLocation *InstanceAssociationOutputLocation
// A description of the parameters for a document.
Parameters map[string][]string
// A cron expression that specifies a schedule when the association runs.
ScheduleExpression *string
// Number of days to wait after the scheduled day to run an association.
ScheduleOffset *int32
// The mode for generating association compliance. You can specify AUTO or MANUAL .
// In AUTO mode, the system uses the status of the association execution to
// determine the compliance status. If the association execution runs successfully,
// then the association is COMPLIANT . If the association execution doesn't run
// successfully, the association is NON-COMPLIANT . In MANUAL mode, you must
// specify the AssociationId as a parameter for the PutComplianceItems API
// operation. In this case, compliance data isn't managed by State Manager, a
// capability of Amazon Web Services Systems Manager. It is managed by your direct
// call to the PutComplianceItems API operation. By default, all associations use
// AUTO mode.
SyncCompliance AssociationSyncCompliance
// Use this action to create an association in multiple Regions and multiple
// accounts.
TargetLocations []TargetLocation
// A key-value mapping of document parameters to target resources. Both Targets
// and TargetMaps can't be specified together.
TargetMaps []map[string][]string
// The managed nodes targeted by the request.
Targets []Target
noSmithyDocumentSerde
}
// Filter for the DescribeActivation API.
type DescribeActivationsFilter struct {
// The name of the filter.
FilterKey DescribeActivationsFilterKeys
// The filter values.
FilterValues []string
noSmithyDocumentSerde
}
// A default version of a document.
type DocumentDefaultVersionDescription struct {
// The default version of the document.
DefaultVersion *string
// The default version of the artifact associated with the document.
DefaultVersionName *string
// The name of the document.
Name *string
noSmithyDocumentSerde
}
// Describes an Amazon Web Services Systems Manager document (SSM document).
type DocumentDescription struct {
// The version of the document currently approved for use in the organization.
ApprovedVersion *string
// Details about the document attachments, including names, locations, sizes, and
// so on.
AttachmentsInformation []AttachmentInformation
// The user in your organization who created the document.
Author *string
// The classification of a document to help you identify and categorize its use.
Category []string
// The value that identifies a document's category.
CategoryEnum []string
// The date when the document was created.
CreatedDate *time.Time
// The default version.
DefaultVersion *string
// A description of the document.
Description *string
// The friendly name of the SSM document. This value can differ for each version
// of the document. If you want to update this value, see UpdateDocument .
DisplayName *string
// The document format, either JSON or YAML.
DocumentFormat DocumentFormat
// The type of document.
DocumentType DocumentType
// The document version.
DocumentVersion *string
// The Sha256 or Sha1 hash created by the system when the document was created.
// Sha1 hashes have been deprecated.
Hash *string
// The hash type of the document. Valid values include Sha256 or Sha1 . Sha1 hashes
// have been deprecated.
HashType DocumentHashType
// The latest version of the document.
LatestVersion *string
// The name of the SSM document.
Name *string
// The Amazon Web Services user that created the document.
Owner *string
// A description of the parameters for a document.
Parameters []DocumentParameter
// The version of the document that is currently under review.
PendingReviewVersion *string
// The list of operating system (OS) platforms compatible with this SSM document.
PlatformTypes []PlatformType
// A list of SSM documents required by a document. For example, an
// ApplicationConfiguration document requires an ApplicationConfigurationSchema
// document.
Requires []DocumentRequires
// Details about the review of a document.
ReviewInformation []ReviewInformation
// The current status of the review.
ReviewStatus ReviewStatus
// The schema version.
SchemaVersion *string
// The SHA1 hash of the document, which you can use for verification.
Sha1 *string
// The status of the SSM document.
Status DocumentStatus
// A message returned by Amazon Web Services Systems Manager that explains the
// Status value. For example, a Failed status might be explained by the
// StatusInformation message, "The specified S3 bucket doesn't exist. Verify that
// the URL of the S3 bucket is correct."
StatusInformation *string
// The tags, or metadata, that have been applied to the document.
Tags []Tag
// The target type which defines the kinds of resources the document can run on.
// For example, /AWS::EC2::Instance . For a list of valid resource types, see
// Amazon Web Services resource and property types reference (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html)
// in the CloudFormation User Guide.
TargetType *string
// The version of the artifact associated with the document.
VersionName *string
noSmithyDocumentSerde
}
// This data type is deprecated. Instead, use DocumentKeyValuesFilter .
type DocumentFilter struct {
// The name of the filter.
//
// This member is required.
Key DocumentFilterKey
// The value of the filter.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Describes the name of a SSM document.
type DocumentIdentifier struct {
// The user in your organization who created the document.
Author *string
// The date the SSM document was created.
CreatedDate *time.Time
// An optional field where you can specify a friendly name for the SSM document.
// This value can differ for each version of the document. If you want to update
// this value, see UpdateDocument .
DisplayName *string
// The document format, either JSON or YAML.
DocumentFormat DocumentFormat
// The document type.
DocumentType DocumentType
// The document version.
DocumentVersion *string
// The name of the SSM document.
Name *string
// The Amazon Web Services user that created the document.
Owner *string
// The operating system platform.
PlatformTypes []PlatformType
// A list of SSM documents required by a document. For example, an
// ApplicationConfiguration document requires an ApplicationConfigurationSchema
// document.
Requires []DocumentRequires
// The current status of a document review.
ReviewStatus ReviewStatus
// The schema version.
SchemaVersion *string
// The tags, or metadata, that have been applied to the document.
Tags []Tag
// The target type which defines the kinds of resources the document can run on.
// For example, /AWS::EC2::Instance . For a list of valid resource types, see
// Amazon Web Services resource and property types reference (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html)
// in the CloudFormation User Guide.
TargetType *string
// An optional field specifying the version of the artifact associated with the
// document. For example, "Release 12, Update 6". This value is unique across all
// versions of a document, and can't be changed.
VersionName *string
noSmithyDocumentSerde
}
// One or more filters. Use a filter to return a more specific list of documents.
// For keys, you can specify one or more tags that have been applied to a document.
// You can also use Amazon Web Services-provided keys, some of which have specific
// allowed values. These keys and their associated values are as follows:
// DocumentType
// - ApplicationConfiguration
// - ApplicationConfigurationSchema
// - Automation
// - ChangeCalendar
// - Command
// - Package
// - Policy
// - Session
//
// Owner Note that only one Owner can be specified in a request. For example:
// Key=Owner,Values=Self .
// - Amazon
// - Private
// - Public
// - Self
// - ThirdParty
//
// PlatformTypes
// - Linux
// - Windows
//
// Name is another Amazon Web Services-provided key. If you use Name as a key, you
// can use a name prefix to return a list of documents. For example, in the Amazon
// Web Services CLI, to return a list of all documents that begin with Te , run the
// following command: aws ssm list-documents --filters Key=Name,Values=Te You can
// also use the TargetType Amazon Web Services-provided key. For a list of valid
// resource type values that can be used with this key, see Amazon Web Services
// resource and property types reference (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html)
// in the CloudFormation User Guide. If you specify more than two keys, only
// documents that are identified by all the tags are returned in the results. If
// you specify more than two values for a key, documents that are identified by any
// of the values are returned in the results. To specify a custom key-value pair,
// use the format Key=tag:tagName,Values=valueName . For example, if you created a
// key called region and are using the Amazon Web Services CLI to call the
// list-documents command: aws ssm list-documents --filters
// Key=tag:region,Values=east,west Key=Owner,Values=Self
type DocumentKeyValuesFilter struct {
// The name of the filter key.
Key *string
// The value for the filter key.
Values []string
noSmithyDocumentSerde
}
// Details about the response to a document review request.
type DocumentMetadataResponseInfo struct {
// Details about a reviewer's response to a document review request.
ReviewerResponse []DocumentReviewerResponseSource
noSmithyDocumentSerde
}
// Parameters specified in a Systems Manager document that run on the server when
// the command is run.
type DocumentParameter struct {
// If specified, the default values for the parameters. Parameters without a
// default value are required. Parameters with a default value are optional.
DefaultValue *string
// A description of what the parameter does, how to use it, the default value, and
// whether or not the parameter is optional.
Description *string
// The name of the parameter.
Name *string
// The type of parameter. The type can be either String or StringList.
Type DocumentParameterType
noSmithyDocumentSerde
}
// An SSM document required by the current document.
type DocumentRequires struct {
// The name of the required SSM document. The name can be an Amazon Resource Name
// (ARN).
//
// This member is required.
Name *string
// The document type of the required SSM document.
RequireType *string
// The document version required by the current document.
Version *string
// An optional field specifying the version of the artifact associated with the
// document. For example, "Release 12, Update 6". This value is unique across all
// versions of a document, and can't be changed.
VersionName *string
noSmithyDocumentSerde
}
// Information about comments added to a document review request.
type DocumentReviewCommentSource struct {
// The content of a comment entered by a user who requests a review of a new
// document version, or who reviews the new version.
Content *string
// The type of information added to a review request. Currently, only the value
// Comment is supported.
Type DocumentReviewCommentType
noSmithyDocumentSerde
}
// Information about a reviewer's response to a document review request.
type DocumentReviewerResponseSource struct {
// The comment entered by a reviewer as part of their document review response.
Comment []DocumentReviewCommentSource
// The date and time that a reviewer entered a response to a document review
// request.
CreateTime *time.Time
// The current review status of a new custom SSM document created by a member of
// your organization, or of the latest version of an existing SSM document. Only
// one version of a document can be in the APPROVED state at a time. When a new
// version is approved, the status of the previous version changes to REJECTED.
// Only one version of a document can be in review, or PENDING, at a time.
ReviewStatus ReviewStatus
// The user in your organization assigned to review a document request.
Reviewer *string
// The date and time that a reviewer last updated a response to a document review
// request.
UpdatedTime *time.Time
noSmithyDocumentSerde
}
// Information about a document approval review.
type DocumentReviews struct {
// The action to take on a document approval review request.
//
// This member is required.
Action DocumentReviewAction
// A comment entered by a user in your organization about the document review
// request.
Comment []DocumentReviewCommentSource
noSmithyDocumentSerde
}
// Version information about the document.
type DocumentVersionInfo struct {
// The date the document was created.
CreatedDate *time.Time
// The friendly name of the SSM document. This value can differ for each version
// of the document. If you want to update this value, see UpdateDocument .
DisplayName *string
// The document format, either JSON or YAML.
DocumentFormat DocumentFormat
// The document version.
DocumentVersion *string
// An identifier for the default version of the document.
IsDefaultVersion bool
// The document name.
Name *string
// The current status of the approval review for the latest version of the
// document.
ReviewStatus ReviewStatus
// The status of the SSM document, such as Creating , Active , Failed , and
// Deleting .
Status DocumentStatus
// A message returned by Amazon Web Services Systems Manager that explains the
// Status value. For example, a Failed status might be explained by the
// StatusInformation message, "The specified S3 bucket doesn't exist. Verify that
// the URL of the S3 bucket is correct."
StatusInformation *string
// The version of the artifact associated with the document. For example, "Release
// 12, Update 6". This value is unique across all versions of a document, and can't
// be changed.
VersionName *string
noSmithyDocumentSerde
}
// The EffectivePatch structure defines metadata about a patch along with the
// approval state of the patch in a particular patch baseline. The approval state
// includes information about whether the patch is currently approved, due to be
// approved by a rule, explicitly approved, or explicitly rejected and the date the
// patch was or will be approved.
type EffectivePatch struct {
// Provides metadata for a patch, including information such as the KB ID,
// severity, classification and a URL for where more information can be obtained
// about the patch.
Patch *Patch
// The status of the patch in a patch baseline. This includes information about
// whether the patch is currently approved, due to be approved by a rule,
// explicitly approved, or explicitly rejected and the date the patch was or will
// be approved.
PatchStatus *PatchStatus
noSmithyDocumentSerde
}
// Describes a failed association.
type FailedCreateAssociation struct {
// The association.
Entry *CreateAssociationBatchRequestEntry
// The source of the failure.
Fault Fault
// A description of the failure.
Message *string
noSmithyDocumentSerde
}
// Information about an Automation failure.
type FailureDetails struct {
// Detailed information about the Automation step failure.
Details map[string][]string
// The stage of the Automation execution when the failure occurred. The stages
// include the following: InputValidation, PreVerification, Invocation,
// PostVerification.
FailureStage *string
// The type of Automation failure. Failure types include the following: Action,
// Permission, Throttling, Verification, Internal.
FailureType *string
noSmithyDocumentSerde
}
// A resource policy helps you to define the IAM entity (for example, an Amazon
// Web Services account) that can manage your Systems Manager resources. Currently,
// OpsItemGroup is the only resource that supports Systems Manager resource
// policies. The resource policy for OpsItemGroup enables Amazon Web Services
// accounts to view and interact with OpsCenter operational work items (OpsItems).
type GetResourcePoliciesResponseEntry struct {
// A resource policy helps you to define the IAM entity (for example, an Amazon
// Web Services account) that can manage your Systems Manager resources. Currently,
// OpsItemGroup is the only resource that supports Systems Manager resource
// policies. The resource policy for OpsItemGroup enables Amazon Web Services
// accounts to view and interact with OpsCenter operational work items (OpsItems).
Policy *string
// ID of the current policy version. The hash helps to prevent a situation where
// multiple users attempt to overwrite a policy. You must provide this hash when
// updating or deleting a policy.
PolicyHash *string
// A policy ID.
PolicyId *string
noSmithyDocumentSerde
}
// Status information about the aggregated associations.
type InstanceAggregatedAssociationOverview struct {
// Detailed status information about the aggregated associations.
DetailedStatus *string
// The number of associations for the managed node(s).
InstanceAssociationStatusAggregatedCount map[string]int32
noSmithyDocumentSerde
}
// One or more association documents on the managed node.
type InstanceAssociation struct {
// The association ID.
AssociationId *string
// Version information for the association on the managed node.
AssociationVersion *string
// The content of the association document for the managed node(s).
Content *string
// The managed node ID.
InstanceId *string
noSmithyDocumentSerde
}
// An S3 bucket where you want to store the results of this request. For the
// minimal permissions required to enable Amazon S3 output for an association, see
// Creating associations (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-state-assoc.html)
// in the Systems Manager User Guide.
type InstanceAssociationOutputLocation struct {
// An S3 bucket where you want to store the results of this request.
S3Location *S3OutputLocation
noSmithyDocumentSerde
}
// The URL of S3 bucket where you want to store the results of this request.
type InstanceAssociationOutputUrl struct {
// The URL of S3 bucket where you want to store the results of this request.
S3OutputUrl *S3OutputUrl
noSmithyDocumentSerde
}
// Status information about the association.
type InstanceAssociationStatusInfo struct {
// The association ID.
AssociationId *string
// The name of the association applied to the managed node.
AssociationName *string
// The version of the association applied to the managed node.
AssociationVersion *string
// Detailed status information about the association.
DetailedStatus *string
// The association document versions.
DocumentVersion *string
// An error code returned by the request to create the association.
ErrorCode *string
// The date the association ran.
ExecutionDate *time.Time
// Summary information about association execution.
ExecutionSummary *string
// The managed node ID where the association was created.
InstanceId *string
// The name of the association.
Name *string
// A URL for an S3 bucket where you want to store the results of this request.
OutputUrl *InstanceAssociationOutputUrl
// Status information about the association.
Status *string
noSmithyDocumentSerde
}
// Describes a filter for a specific list of managed nodes.
type InstanceInformation struct {
// The activation ID created by Amazon Web Services Systems Manager when the
// server or virtual machine (VM) was registered.
ActivationId *string
// The version of SSM Agent running on your Linux managed node.
AgentVersion *string
// Information about the association.
AssociationOverview *InstanceAggregatedAssociationOverview
// The status of the association.
AssociationStatus *string
// The fully qualified host name of the managed node.
ComputerName *string
// The IP address of the managed node.
IPAddress *string
// The Identity and Access Management (IAM) role assigned to the on-premises
// Systems Manager managed node. This call doesn't return the IAM role for Amazon
// Elastic Compute Cloud (Amazon EC2) instances. To retrieve the IAM role for an
// EC2 instance, use the Amazon EC2 DescribeInstances operation. For information,
// see DescribeInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html)
// in the Amazon EC2 API Reference or describe-instances (https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html)
// in the Amazon Web Services CLI Command Reference.
IamRole *string
// The managed node ID.
InstanceId *string
// Indicates whether the latest version of SSM Agent is running on your Linux
// managed node. This field doesn't indicate whether or not the latest version is
// installed on Windows managed nodes, because some older versions of Windows
// Server use the EC2Config service to process Systems Manager requests.
IsLatestVersion *bool
// The date the association was last run.
LastAssociationExecutionDate *time.Time
// The date and time when the agent last pinged the Systems Manager service.
LastPingDateTime *time.Time
// The last date the association was successfully run.
LastSuccessfulAssociationExecutionDate *time.Time
// The name assigned to an on-premises server, edge device, or virtual machine
// (VM) when it is activated as a Systems Manager managed node. The name is
// specified as the DefaultInstanceName property using the CreateActivation
// command. It is applied to the managed node by specifying the Activation Code and
// Activation ID when you install SSM Agent on the node, as explained in Install
// SSM Agent for a hybrid environment (Linux) (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-managed-linux.html)
// and Install SSM Agent for a hybrid environment (Windows) (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-managed-win.html)
// . To retrieve the Name tag of an EC2 instance, use the Amazon EC2
// DescribeInstances operation. For information, see DescribeInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html)
// in the Amazon EC2 API Reference or describe-instances (https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html)
// in the Amazon Web Services CLI Command Reference.
Name *string
// Connection status of SSM Agent. The status Inactive has been deprecated and is
// no longer in use.
PingStatus PingStatus
// The name of the operating system platform running on your managed node.
PlatformName *string
// The operating system platform type.
PlatformType PlatformType
// The version of the OS platform running on your managed node.
PlatformVersion *string
// The date the server or VM was registered with Amazon Web Services as a managed
// node.
RegistrationDate *time.Time
// The type of instance. Instances are either EC2 instances or managed instances.
ResourceType ResourceType
// The ID of the source resource. For IoT Greengrass devices, SourceId is the
// Thing name.
SourceId *string
// The type of the source resource. For IoT Greengrass devices, SourceType is
// AWS::IoT::Thing .
SourceType SourceType
noSmithyDocumentSerde
}
// Describes a filter for a specific list of managed nodes. You can filter node
// information by using tags. You specify tags by using a key-value mapping. Use
// this operation instead of the
// DescribeInstanceInformationRequest$InstanceInformationFilterList method. The
// InstanceInformationFilterList method is a legacy method and doesn't support tags.
type InstanceInformationFilter struct {
// The name of the filter.
//
// This member is required.
Key InstanceInformationFilterKey
// The filter values.
//
// This member is required.
ValueSet []string
noSmithyDocumentSerde
}
// The filters to describe or get information about your managed nodes.
type InstanceInformationStringFilter struct {
// The filter key name to describe your managed nodes. Valid filter key values:
// ActivationIds | AgentVersion | AssociationStatus | IamRole | InstanceIds |
// PingStatus | PlatformTypes | ResourceType | SourceIds | SourceTypes | "tag-key"
// | "tag: {keyname}
// - Valid values for the AssociationStatus filter key: Success | Pending |
// Failed
// - Valid values for the PingStatus filter key: Online | ConnectionLost |
// Inactive (deprecated)
// - Valid values for the PlatformType filter key: Windows | Linux | MacOS
// - Valid values for the ResourceType filter key: EC2Instance | ManagedInstance
// - Valid values for the SourceType filter key: AWS::EC2::Instance |
// AWS::SSM::ManagedInstance | AWS::IoT::Thing
// - Valid tag examples: Key=tag-key,Values=Purpose | Key=tag:Purpose,Values=Test
// .
//
// This member is required.
Key *string
// The filter values.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Defines the high-level patch compliance state for a managed node, providing
// information about the number of installed, missing, not applicable, and failed
// patches along with metadata about the operation when this information was
// gathered for the managed node.
type InstancePatchState struct {
// The ID of the patch baseline used to patch the managed node.
//
// This member is required.
BaselineId *string
// The ID of the managed node the high-level patch compliance information was
// collected for.
//
// This member is required.
InstanceId *string
// The type of patching operation that was performed: or
// - SCAN assesses the patch compliance state.
// - INSTALL installs missing patches.
//
// This member is required.
Operation PatchOperationType
// The time the most recent patching operation completed on the managed node.
//
// This member is required.
OperationEndTime *time.Time
// The time the most recent patching operation was started on the managed node.
//
// This member is required.
OperationStartTime *time.Time
// The name of the patch group the managed node belongs to.
//
// This member is required.
PatchGroup *string
// The number of patches per node that are specified as Critical for compliance
// reporting in the patch baseline aren't installed. These patches might be
// missing, have failed installation, were rejected, or were installed but awaiting
// a required managed node reboot. The status of these managed nodes is
// NON_COMPLIANT .
CriticalNonCompliantCount *int32
// The number of patches from the patch baseline that were attempted to be
// installed during the last patching operation, but failed to install.
FailedCount int32
// An https URL or an Amazon Simple Storage Service (Amazon S3) path-style URL to
// a list of patches to be installed. This patch installation list, which you
// maintain in an S3 bucket in YAML format and specify in the SSM document
// AWS-RunPatchBaseline , overrides the patches specified by the default patch
// baseline. For more information about the InstallOverrideList parameter, see
// About the AWS-RunPatchBaseline (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-about-aws-runpatchbaseline.html)
// SSM document in the Amazon Web Services Systems Manager User Guide.
InstallOverrideList *string
// The number of patches from the patch baseline that are installed on the managed
// node.
InstalledCount int32
// The number of patches not specified in the patch baseline that are installed on
// the managed node.
InstalledOtherCount int32
// The number of patches installed by Patch Manager since the last time the
// managed node was rebooted.
InstalledPendingRebootCount *int32
// The number of patches installed on a managed node that are specified in a
// RejectedPatches list. Patches with a status of InstalledRejected were typically
// installed before they were added to a RejectedPatches list. If
// ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction , the
// value of InstalledRejectedCount will always be 0 (zero).
InstalledRejectedCount *int32
// The time of the last attempt to patch the managed node with NoReboot specified
// as the reboot option.
LastNoRebootInstallOperationTime *time.Time
// The number of patches from the patch baseline that are applicable for the
// managed node but aren't currently installed.
MissingCount int32
// The number of patches from the patch baseline that aren't applicable for the
// managed node and therefore aren't installed on the node. This number may be
// truncated if the list of patch names is very large. The number of patches beyond
// this limit are reported in UnreportedNotApplicableCount .
NotApplicableCount int32
// The number of patches per node that are specified as other than Critical or
// Security but aren't compliant with the patch baseline. The status of these
// managed nodes is NON_COMPLIANT .
OtherNonCompliantCount *int32
// Placeholder information. This field will always be empty in the current release
// of the service.
OwnerInformation *string
// Indicates the reboot option specified in the patch baseline. Reboot options
// apply to Install operations only. Reboots aren't attempted for Patch Manager
// Scan operations.
// - RebootIfNeeded : Patch Manager tries to reboot the managed node if it
// installed any patches, or if any patches are detected with a status of
// InstalledPendingReboot .
// - NoReboot : Patch Manager attempts to install missing packages without trying
// to reboot the system. Patches installed with this option are assigned a status
// of InstalledPendingReboot . These patches might not be in effect until a
// reboot is performed.
RebootOption RebootOption
// The number of patches per node that are specified as Security in a patch
// advisory aren't installed. These patches might be missing, have failed
// installation, were rejected, or were installed but awaiting a required managed
// node reboot. The status of these managed nodes is NON_COMPLIANT .
SecurityNonCompliantCount *int32
// The ID of the patch baseline snapshot used during the patching operation when
// this compliance data was collected.
SnapshotId *string
// The number of patches beyond the supported limit of NotApplicableCount that
// aren't reported by name to Inventory. Inventory is a capability of Amazon Web
// Services Systems Manager.
UnreportedNotApplicableCount *int32
noSmithyDocumentSerde
}
// Defines a filter used in DescribeInstancePatchStatesForPatchGroup to scope down
// the information returned by the API. Example: To filter for all managed nodes in
// a patch group having more than three patches with a FailedCount status, use the
// following for the filter:
// - Value for Key : FailedCount
// - Value for Type : GreaterThan
// - Value for Values : 3
type InstancePatchStateFilter struct {
// The key for the filter. Supported values include the following:
// - InstalledCount
// - InstalledOtherCount
// - InstalledPendingRebootCount
// - InstalledRejectedCount
// - MissingCount
// - FailedCount
// - UnreportedNotApplicableCount
// - NotApplicableCount
//
// This member is required.
Key *string
// The type of comparison that should be performed for the value.
//
// This member is required.
Type InstancePatchStateOperatorType
// The value for the filter. Must be an integer greater than or equal to 0.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Specifies the inventory type and attribute for the aggregation execution.
type InventoryAggregator struct {
// Nested aggregators to further refine aggregation for an inventory type.
Aggregators []InventoryAggregator
// The inventory type and attribute name for aggregation.
Expression *string
// A user-defined set of one or more filters on which to aggregate inventory data.
// Groups return a count of resources that match and don't match the specified
// criteria.
Groups []InventoryGroup
noSmithyDocumentSerde
}
// Status information returned by the DeleteInventory operation.
type InventoryDeletionStatusItem struct {
// The deletion ID returned by the DeleteInventory operation.
DeletionId *string
// The UTC timestamp when the delete operation started.
DeletionStartTime *time.Time
// Information about the delete operation. For more information about this
// summary, see Understanding the delete inventory summary (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete)
// in the Amazon Web Services Systems Manager User Guide.
DeletionSummary *InventoryDeletionSummary
// The status of the operation. Possible values are InProgress and Complete.
LastStatus InventoryDeletionStatus
// Information about the status.
LastStatusMessage *string
// The UTC timestamp of when the last status report.
LastStatusUpdateTime *time.Time
// The name of the inventory data type.
TypeName *string
noSmithyDocumentSerde
}
// Information about the delete operation.
type InventoryDeletionSummary struct {
// Remaining number of items to delete.
RemainingCount int32
// A list of counts and versions for deleted items.
SummaryItems []InventoryDeletionSummaryItem
// The total number of items to delete. This count doesn't change during the
// delete operation.
TotalCount int32
noSmithyDocumentSerde
}
// Either a count, remaining count, or a version number in a delete inventory
// summary.
type InventoryDeletionSummaryItem struct {
// A count of the number of deleted items.
Count int32
// The remaining number of items to delete.
RemainingCount int32
// The inventory type version.
Version *string
noSmithyDocumentSerde
}
// One or more filters. Use a filter to return a more specific list of results.
type InventoryFilter struct {
// The name of the filter key.
//
// This member is required.
Key *string
// Inventory filter values. Example: inventory filter where managed node IDs are
// specified as values Key=AWS:InstanceInformation.InstanceId,Values=
// i-a12b3c4d5e6g, i-1a2b3c4d5e6,Type=Equal .
//
// This member is required.
Values []string
// The type of filter. The Exists filter must be used with aggregators. For more
// information, see Aggregating inventory data (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-aggregate.html)
// in the Amazon Web Services Systems Manager User Guide.
Type InventoryQueryOperatorType
noSmithyDocumentSerde
}
// A user-defined set of one or more filters on which to aggregate inventory data.
// Groups return a count of resources that match and don't match the specified
// criteria.
type InventoryGroup struct {
// Filters define the criteria for the group. The matchingCount field displays the
// number of resources that match the criteria. The notMatchingCount field
// displays the number of resources that don't match the criteria.
//
// This member is required.
Filters []InventoryFilter
// The name of the group.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Information collected from managed nodes based on your inventory policy document
type InventoryItem struct {
// The time the inventory information was collected.
//
// This member is required.
CaptureTime *string
// The schema version for the inventory item.
//
// This member is required.
SchemaVersion *string
// The name of the inventory type. Default inventory item type names start with AWS
// . Custom inventory type names will start with Custom. Default inventory item
// types include the following: AWS:AWSComponent , AWS:Application ,
// AWS:InstanceInformation , AWS:Network , and AWS:WindowsUpdate .
//
// This member is required.
TypeName *string
// The inventory data of the inventory type.
Content []map[string]string
// MD5 hash of the inventory item type contents. The content hash is used to
// determine whether to update inventory information. The PutInventory API doesn't
// update the inventory item type contents if the MD5 hash hasn't changed since
// last update.
ContentHash *string
// A map of associated properties for a specified inventory type. For example,
// with this attribute, you can specify the ExecutionId , ExecutionType ,
// ComplianceType properties of the AWS:ComplianceItem type.
Context map[string]string
noSmithyDocumentSerde
}
// Attributes are the entries within the inventory item content. It contains name
// and value.
type InventoryItemAttribute struct {
// The data type of the inventory item attribute.
//
// This member is required.
DataType InventoryAttributeDataType
// Name of the inventory item attribute.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// The inventory item schema definition. Users can use this to compose inventory
// query filters.
type InventoryItemSchema struct {
// The schema attributes for inventory. This contains data type and attribute name.
//
// This member is required.
Attributes []InventoryItemAttribute
// The name of the inventory type. Default inventory item type names start with
// Amazon Web Services. Custom inventory type names will start with Custom. Default
// inventory item types include the following: AWS:AWSComponent , AWS:Application ,
// AWS:InstanceInformation , AWS:Network , and AWS:WindowsUpdate .
//
// This member is required.
TypeName *string
// The alias name of the inventory type. The alias name is used for display
// purposes.
DisplayName *string
// The schema version for the inventory item.
Version *string
noSmithyDocumentSerde
}
// Inventory query results.
type InventoryResultEntity struct {
// The data section in the inventory result entity JSON.
Data map[string]InventoryResultItem
// ID of the inventory result entity. For example, for managed node inventory the
// result will be the managed node ID. For EC2 instance inventory, the result will
// be the instance ID.
Id *string
noSmithyDocumentSerde
}
// The inventory result item.
type InventoryResultItem struct {
// Contains all the inventory data of the item type. Results include attribute
// names and values.
//
// This member is required.
Content []map[string]string
// The schema version for the inventory result item/
//
// This member is required.
SchemaVersion *string
// The name of the inventory result item type.
//
// This member is required.
TypeName *string
// The time inventory item data was captured.
CaptureTime *string
// MD5 hash of the inventory item type contents. The content hash is used to
// determine whether to update inventory information. The PutInventory API doesn't
// update the inventory item type contents if the MD5 hash hasn't changed since
// last update.
ContentHash *string
noSmithyDocumentSerde
}
// Information about an Amazon Simple Storage Service (Amazon S3) bucket to write
// managed node-level logs to. LoggingInfo has been deprecated. To specify an
// Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use
// the OutputS3BucketName and OutputS3KeyPrefix options in the
// TaskInvocationParameters structure. For information about how Amazon Web
// Services Systems Manager handles these options for the supported maintenance
// window task types, see MaintenanceWindowTaskInvocationParameters .
type LoggingInfo struct {
// The name of an S3 bucket where execution logs are stored.
//
// This member is required.
S3BucketName *string
// The Amazon Web Services Region where the S3 bucket is located.
//
// This member is required.
S3Region *string
// (Optional) The S3 bucket subfolder.
S3KeyPrefix *string
noSmithyDocumentSerde
}
// The parameters for an AUTOMATION task type.
type MaintenanceWindowAutomationParameters struct {
// The version of an Automation runbook to use during task execution.
DocumentVersion *string
// The parameters for the AUTOMATION task. For information about specifying and
// updating task parameters, see RegisterTaskWithMaintenanceWindow and
// UpdateMaintenanceWindowTask . LoggingInfo has been deprecated. To specify an
// Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use
// the OutputS3BucketName and OutputS3KeyPrefix options in the
// TaskInvocationParameters structure. For information about how Amazon Web
// Services Systems Manager handles these options for the supported maintenance
// window task types, see MaintenanceWindowTaskInvocationParameters .
// TaskParameters has been deprecated. To specify parameters to pass to a task when
// it runs, instead use the Parameters option in the TaskInvocationParameters
// structure. For information about how Systems Manager handles these options for
// the supported maintenance window task types, see
// MaintenanceWindowTaskInvocationParameters . For AUTOMATION task types, Amazon
// Web Services Systems Manager ignores any values specified for these parameters.
Parameters map[string][]string
noSmithyDocumentSerde
}
// Describes the information about an execution of a maintenance window.
type MaintenanceWindowExecution struct {
// The time the execution finished.
EndTime *time.Time
// The time the execution started.
StartTime *time.Time
// The status of the execution.
Status MaintenanceWindowExecutionStatus
// The details explaining the status. Not available for all status values.
StatusDetails *string
// The ID of the maintenance window execution.
WindowExecutionId *string
// The ID of the maintenance window.
WindowId *string
noSmithyDocumentSerde
}
// Information about a task execution performed as part of a maintenance window
// execution.
type MaintenanceWindowExecutionTaskIdentity struct {
// The details for the CloudWatch alarm applied to your maintenance window task.
AlarmConfiguration *AlarmConfiguration
// The time the task execution finished.
EndTime *time.Time
// The time the task execution started.
StartTime *time.Time
// The status of the task execution.
Status MaintenanceWindowExecutionStatus
// The details explaining the status of the task execution. Not available for all
// status values.
StatusDetails *string
// The Amazon Resource Name (ARN) of the task that ran.
TaskArn *string
// The ID of the specific task execution in the maintenance window execution.
TaskExecutionId *string
// The type of task that ran.
TaskType MaintenanceWindowTaskType
// The CloudWatch alarm that was invoked by the maintenance window task.
TriggeredAlarms []AlarmStateInformation
// The ID of the maintenance window execution that ran the task.
WindowExecutionId *string
noSmithyDocumentSerde
}
// Describes the information about a task invocation for a particular target as
// part of a task execution performed as part of a maintenance window execution.
type MaintenanceWindowExecutionTaskInvocationIdentity struct {
// The time the invocation finished.
EndTime *time.Time
// The ID of the action performed in the service that actually handled the task
// invocation. If the task type is RUN_COMMAND , this value is the command ID.
ExecutionId *string
// The ID of the task invocation.
InvocationId *string
// User-provided value that was specified when the target was registered with the
// maintenance window. This was also included in any Amazon CloudWatch Events
// events raised during the task invocation.
OwnerInformation *string
// The parameters that were provided for the invocation when it was run.
Parameters *string
// The time the invocation started.
StartTime *time.Time
// The status of the task invocation.
Status MaintenanceWindowExecutionStatus
// The details explaining the status of the task invocation. Not available for all
// status values.
StatusDetails *string
// The ID of the specific task execution in the maintenance window execution.
TaskExecutionId *string
// The task type.
TaskType MaintenanceWindowTaskType
// The ID of the maintenance window execution that ran the task.
WindowExecutionId *string
// The ID of the target definition in this maintenance window the invocation was
// performed for.
WindowTargetId *string
noSmithyDocumentSerde
}
// Filter used in the request. Supported filter keys depend on the API operation
// that includes the filter. API operations that use MaintenanceWindowFilter>
// include the following:
// - DescribeMaintenanceWindowExecutions
// - DescribeMaintenanceWindowExecutionTaskInvocations
// - DescribeMaintenanceWindowExecutionTasks
// - DescribeMaintenanceWindows
// - DescribeMaintenanceWindowTargets
// - DescribeMaintenanceWindowTasks
type MaintenanceWindowFilter struct {
// The name of the filter.
Key *string
// The filter values.
Values []string
noSmithyDocumentSerde
}
// Information about the maintenance window.
type MaintenanceWindowIdentity struct {
// The number of hours before the end of the maintenance window that Amazon Web
// Services Systems Manager stops scheduling new tasks for execution.
Cutoff int32
// A description of the maintenance window.
Description *string
// The duration of the maintenance window in hours.
Duration int32
// Indicates whether the maintenance window is enabled.
Enabled bool
// The date and time, in ISO-8601 Extended format, for when the maintenance window
// is scheduled to become inactive.
EndDate *string
// The name of the maintenance window.
Name *string
// The next time the maintenance window will actually run, taking into account any
// specified times for the maintenance window to become active or inactive.
NextExecutionTime *string
// The schedule of the maintenance window in the form of a cron or rate expression.
Schedule *string
// The number of days to wait to run a maintenance window after the scheduled cron
// expression date and time.
ScheduleOffset *int32
// The time zone that the scheduled maintenance window executions are based on, in
// Internet Assigned Numbers Authority (IANA) format.
ScheduleTimezone *string
// The date and time, in ISO-8601 Extended format, for when the maintenance window
// is scheduled to become active.
StartDate *string
// The ID of the maintenance window.
WindowId *string
noSmithyDocumentSerde
}
// The maintenance window to which the specified target belongs.
type MaintenanceWindowIdentityForTarget struct {
// The name of the maintenance window.
Name *string
// The ID of the maintenance window.
WindowId *string
noSmithyDocumentSerde
}
// The parameters for a LAMBDA task type. For information about specifying and
// updating task parameters, see RegisterTaskWithMaintenanceWindow and
// UpdateMaintenanceWindowTask . LoggingInfo has been deprecated. To specify an
// Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use
// the OutputS3BucketName and OutputS3KeyPrefix options in the
// TaskInvocationParameters structure. For information about how Amazon Web
// Services Systems Manager handles these options for the supported maintenance
// window task types, see MaintenanceWindowTaskInvocationParameters .
// TaskParameters has been deprecated. To specify parameters to pass to a task when
// it runs, instead use the Parameters option in the TaskInvocationParameters
// structure. For information about how Systems Manager handles these options for
// the supported maintenance window task types, see
// MaintenanceWindowTaskInvocationParameters . For Lambda tasks, Systems Manager
// ignores any values specified for TaskParameters and LoggingInfo.
type MaintenanceWindowLambdaParameters struct {
// Pass client-specific information to the Lambda function that you are invoking.
// You can then process the client information in your Lambda function as you
// choose through the context variable.
ClientContext *string
// JSON to provide to your Lambda function as input.
Payload []byte
// (Optional) Specify an Lambda function version or alias name. If you specify a
// function version, the operation uses the qualified function Amazon Resource Name
// (ARN) to invoke a specific Lambda function. If you specify an alias name, the
// operation uses the alias ARN to invoke the Lambda function version to which the
// alias points.
Qualifier *string
noSmithyDocumentSerde
}
// The parameters for a RUN_COMMAND task type. For information about specifying
// and updating task parameters, see RegisterTaskWithMaintenanceWindow and
// UpdateMaintenanceWindowTask . LoggingInfo has been deprecated. To specify an
// Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use
// the OutputS3BucketName and OutputS3KeyPrefix options in the
// TaskInvocationParameters structure. For information about how Amazon Web
// Services Systems Manager handles these options for the supported maintenance
// window task types, see MaintenanceWindowTaskInvocationParameters .
// TaskParameters has been deprecated. To specify parameters to pass to a task when
// it runs, instead use the Parameters option in the TaskInvocationParameters
// structure. For information about how Systems Manager handles these options for
// the supported maintenance window task types, see
// MaintenanceWindowTaskInvocationParameters . For RUN_COMMAND tasks, Systems
// Manager uses specified values for TaskParameters and LoggingInfo only if no
// values are specified for TaskInvocationParameters .
type MaintenanceWindowRunCommandParameters struct {
// Configuration options for sending command output to Amazon CloudWatch Logs.
CloudWatchOutputConfig *CloudWatchOutputConfig
// Information about the commands to run.
Comment *string
// The SHA-256 or SHA-1 hash created by the system when the document was created.
// SHA-1 hashes have been deprecated.
DocumentHash *string
// SHA-256 or SHA-1. SHA-1 hashes have been deprecated.
DocumentHashType DocumentHashType
// The Amazon Web Services Systems Manager document (SSM document) version to use
// in the request. You can specify $DEFAULT , $LATEST , or a specific version
// number. If you run commands by using the Amazon Web Services CLI, then you must
// escape the first two options by using a backslash. If you specify a version
// number, then you don't need to use the backslash. For example:
// --document-version "\$DEFAULT"
// --document-version "\$LATEST"
//
// --document-version "3"
DocumentVersion *string
// Configurations for sending notifications about command status changes on a
// per-managed node basis.
NotificationConfig *NotificationConfig
// The name of the Amazon Simple Storage Service (Amazon S3) bucket.
OutputS3BucketName *string
// The S3 bucket subfolder.
OutputS3KeyPrefix *string
// The parameters for the RUN_COMMAND task execution.
Parameters map[string][]string
// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
// service role to use to publish Amazon Simple Notification Service (Amazon SNS)
// notifications for maintenance window Run Command tasks.
ServiceRoleArn *string
// If this time is reached and the command hasn't already started running, it
// doesn't run.
TimeoutSeconds *int32
noSmithyDocumentSerde
}
// The parameters for a STEP_FUNCTIONS task. For information about specifying and
// updating task parameters, see RegisterTaskWithMaintenanceWindow and
// UpdateMaintenanceWindowTask . LoggingInfo has been deprecated. To specify an
// Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use
// the OutputS3BucketName and OutputS3KeyPrefix options in the
// TaskInvocationParameters structure. For information about how Amazon Web
// Services Systems Manager handles these options for the supported maintenance
// window task types, see MaintenanceWindowTaskInvocationParameters .
// TaskParameters has been deprecated. To specify parameters to pass to a task when
// it runs, instead use the Parameters option in the TaskInvocationParameters
// structure. For information about how Systems Manager handles these options for
// the supported maintenance window task types, see
// MaintenanceWindowTaskInvocationParameters . For Step Functions tasks, Systems
// Manager ignores any values specified for TaskParameters and LoggingInfo .
type MaintenanceWindowStepFunctionsParameters struct {
// The inputs for the STEP_FUNCTIONS task.
Input *string
// The name of the STEP_FUNCTIONS task.
Name *string
noSmithyDocumentSerde
}
// The target registered with the maintenance window.
type MaintenanceWindowTarget struct {
// A description for the target.
Description *string
// The name for the maintenance window target.
Name *string
// A user-provided value that will be included in any Amazon CloudWatch Events
// events that are raised while running tasks for these targets in this maintenance
// window.
OwnerInformation *string
// The type of target that is being registered with the maintenance window.
ResourceType MaintenanceWindowResourceType
// The targets, either managed nodes or tags. Specify managed nodes using the
// following format: Key=instanceids,Values=, Tags are specified using the
// following format: Key=,Values= .
Targets []Target
// The ID of the maintenance window to register the target with.
WindowId *string
// The ID of the target.
WindowTargetId *string
noSmithyDocumentSerde
}
// Information about a task defined for a maintenance window.
type MaintenanceWindowTask struct {
// The details for the CloudWatch alarm applied to your maintenance window task.
AlarmConfiguration *AlarmConfiguration
// The specification for whether tasks should continue to run after the cutoff
// time specified in the maintenance windows is reached.
CutoffBehavior MaintenanceWindowTaskCutoffBehavior
// A description of the task.
Description *string
// Information about an S3 bucket to write task-level logs to. LoggingInfo has
// been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket
// to contain logs, instead use the OutputS3BucketName and OutputS3KeyPrefix
// options in the TaskInvocationParameters structure. For information about how
// Amazon Web Services Systems Manager handles these options for the supported
// maintenance window task types, see MaintenanceWindowTaskInvocationParameters .
LoggingInfo *LoggingInfo
// The maximum number of targets this task can be run for, in parallel. Although
// this element is listed as "Required: No", a value can be omitted only when you
// are registering or updating a targetless task (https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html)
// You must provide a value in all other cases. For maintenance window tasks
// without a target specified, you can't supply a value for this option. Instead,
// the system inserts a placeholder value of 1 . This value doesn't affect the
// running of your task.
MaxConcurrency *string
// The maximum number of errors allowed before this task stops being scheduled.
// Although this element is listed as "Required: No", a value can be omitted only
// when you are registering or updating a targetless task (https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html)
// You must provide a value in all other cases. For maintenance window tasks
// without a target specified, you can't supply a value for this option. Instead,
// the system inserts a placeholder value of 1 . This value doesn't affect the
// running of your task.
MaxErrors *string
// The task name.
Name *string
// The priority of the task in the maintenance window. The lower the number, the
// higher the priority. Tasks that have the same priority are scheduled in
// parallel.
Priority int32
// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
// service role to use to publish Amazon Simple Notification Service (Amazon SNS)
// notifications for maintenance window Run Command tasks.
ServiceRoleArn *string
// The targets (either managed nodes or tags). Managed nodes are specified using
// Key=instanceids,Values=, . Tags are specified using Key=,Values= .
Targets []Target
// The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION
// task types, TaskArn is the Amazon Web Services Systems Manager (SSM document)
// name or ARN. For LAMBDA tasks, it's the function name or ARN. For STEP_FUNCTIONS
// tasks, it's the state machine ARN.
TaskArn *string
// The parameters that should be passed to the task when it is run. TaskParameters
// has been deprecated. To specify parameters to pass to a task when it runs,
// instead use the Parameters option in the TaskInvocationParameters structure.
// For information about how Systems Manager handles these options for the
// supported maintenance window task types, see
// MaintenanceWindowTaskInvocationParameters .
TaskParameters map[string]MaintenanceWindowTaskParameterValueExpression
// The type of task.
Type MaintenanceWindowTaskType
// The ID of the maintenance window where the task is registered.
WindowId *string
// The task ID.
WindowTaskId *string
noSmithyDocumentSerde
}
// The parameters for task execution.
type MaintenanceWindowTaskInvocationParameters struct {
// The parameters for an AUTOMATION task type.
Automation *MaintenanceWindowAutomationParameters
// The parameters for a LAMBDA task type.
Lambda *MaintenanceWindowLambdaParameters
// The parameters for a RUN_COMMAND task type.
RunCommand *MaintenanceWindowRunCommandParameters
// The parameters for a STEP_FUNCTIONS task type.
StepFunctions *MaintenanceWindowStepFunctionsParameters
noSmithyDocumentSerde
}
// Defines the values for a task parameter.
type MaintenanceWindowTaskParameterValueExpression struct {
// This field contains an array of 0 or more strings, each 1 to 255 characters in
// length.
Values []string
noSmithyDocumentSerde
}
// Metadata to assign to an Application Manager application.
type MetadataValue struct {
// Metadata value to assign to an Application Manager application.
Value *string
noSmithyDocumentSerde
}
// A summary of resources that aren't compliant. The summary is organized
// according to resource type.
type NonCompliantSummary struct {
// The total number of compliance items that aren't compliant.
NonCompliantCount int32
// A summary of the non-compliance severity by compliance type
SeveritySummary *SeveritySummary
noSmithyDocumentSerde
}
// Configurations for sending notifications.
type NotificationConfig struct {
// An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon
// SNS) topic. Run Command pushes notifications about command status changes to
// this topic.
NotificationArn *string
// The different events for which you can receive notifications. To learn more
// about these events, see Monitoring Systems Manager status changes using Amazon
// SNS notifications (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html)
// in the Amazon Web Services Systems Manager User Guide.
NotificationEvents []NotificationEvent
// The type of notification.
// - Command : Receive notification when the status of a command changes.
// - Invocation : For commands sent to multiple managed nodes, receive
// notification on a per-node basis when the status of a command changes.
NotificationType NotificationType
noSmithyDocumentSerde
}
// One or more aggregators for viewing counts of OpsData using different
// dimensions such as Source , CreatedTime , or Source and CreatedTime , to name a
// few.
type OpsAggregator struct {
// Either a Range or Count aggregator for limiting an OpsData summary.
AggregatorType *string
// A nested aggregator for viewing counts of OpsData.
Aggregators []OpsAggregator
// The name of an OpsData attribute on which to limit the count of OpsData.
AttributeName *string
// The aggregator filters.
Filters []OpsFilter
// The data type name to use for viewing counts of OpsData.
TypeName *string
// The aggregator value.
Values map[string]string
noSmithyDocumentSerde
}
// The result of the query.
type OpsEntity struct {
// The data returned by the query.
Data map[string]OpsEntityItem
// The query ID.
Id *string
noSmithyDocumentSerde
}
// The OpsData summary.
type OpsEntityItem struct {
// The time the OpsData was captured.
CaptureTime *string
// The details of an OpsData summary.
Content []map[string]string
noSmithyDocumentSerde
}
// A filter for viewing OpsData summaries.
type OpsFilter struct {
// The name of the filter.
//
// This member is required.
Key *string
// The filter value.
//
// This member is required.
Values []string
// The type of filter.
Type OpsFilterOperatorType
noSmithyDocumentSerde
}
// Operations engineers and IT professionals use Amazon Web Services Systems
// Manager OpsCenter to view, investigate, and remediate operational work items
// (OpsItems) impacting the performance and health of their Amazon Web Services
// resources. OpsCenter is integrated with Amazon EventBridge and Amazon
// CloudWatch. This means you can configure these services to automatically create
// an OpsItem in OpsCenter when a CloudWatch alarm enters the ALARM state or when
// EventBridge processes an event from any Amazon Web Services service that
// publishes events. Configuring Amazon CloudWatch alarms and EventBridge events to
// automatically create OpsItems allows you to quickly diagnose and remediate
// issues with Amazon Web Services resources from a single console. To help you
// diagnose issues, each OpsItem includes contextually relevant information such as
// the name and ID of the Amazon Web Services resource that generated the OpsItem,
// alarm or event details, alarm history, and an alarm timeline graph. For the
// Amazon Web Services resource, OpsCenter aggregates information from Config,
// CloudTrail logs, and EventBridge, so you don't have to navigate across multiple
// console pages during your investigation. For more information, see OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
// in the Amazon Web Services Systems Manager User Guide.
type OpsItem struct {
// The time a runbook workflow ended. Currently reported only for the OpsItem type
// /aws/changerequest .
ActualEndTime *time.Time
// The time a runbook workflow started. Currently reported only for the OpsItem
// type /aws/changerequest .
ActualStartTime *time.Time
// An OpsItem category. Category options include: Availability, Cost, Performance,
// Recovery, Security.
Category *string
// The ARN of the Amazon Web Services account that created the OpsItem.
CreatedBy *string
// The date and time the OpsItem was created.
CreatedTime *time.Time
// The OpsItem description.
Description *string
// The ARN of the Amazon Web Services account that last updated the OpsItem.
LastModifiedBy *string
// The date and time the OpsItem was last updated.
LastModifiedTime *time.Time
// The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon
// SNS) topic where notifications are sent when this OpsItem is edited or changed.
Notifications []OpsItemNotification
// Operational data is custom data that provides useful reference details about
// the OpsItem. For example, you can specify log files, error strings, license
// keys, troubleshooting tips, or other relevant data. You enter operational data
// as key-value pairs. The key has a maximum length of 128 characters. The value
// has a maximum size of 20 KB. Operational data keys can't begin with the
// following: amazon , aws , amzn , ssm , /amazon , /aws , /amzn , /ssm . You can
// choose to make the data searchable by other users in the account or you can
// restrict search access. Searchable data means that all users with access to the
// OpsItem Overview page (as provided by the DescribeOpsItems API operation) can
// view and search on the specified data. Operational data that isn't searchable is
// only viewable by users who have access to the OpsItem (as provided by the
// GetOpsItem API operation). Use the /aws/resources key in OperationalData to
// specify a related resource in the request. Use the /aws/automations key in
// OperationalData to associate an Automation runbook with the OpsItem. To view
// Amazon Web Services CLI example commands that use these keys, see Creating
// OpsItems manually (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-manually-create-OpsItems.html)
// in the Amazon Web Services Systems Manager User Guide.
OperationalData map[string]OpsItemDataValue
// The OpsItem Amazon Resource Name (ARN).
OpsItemArn *string
// The ID of the OpsItem.
OpsItemId *string
// The type of OpsItem. Systems Manager supports the following types of OpsItems:
// - /aws/issue This type of OpsItem is used for default OpsItems created by
// OpsCenter.
// - /aws/changerequest This type of OpsItem is used by Change Manager for
// reviewing and approving or rejecting change requests.
// - /aws/insights This type of OpsItem is used by OpsCenter for aggregating and
// reporting on duplicate OpsItems.
OpsItemType *string
// The time specified in a change request for a runbook workflow to end. Currently
// supported only for the OpsItem type /aws/changerequest .
PlannedEndTime *time.Time
// The time specified in a change request for a runbook workflow to start.
// Currently supported only for the OpsItem type /aws/changerequest .
PlannedStartTime *time.Time
// The importance of this OpsItem in relation to other OpsItems in the system.
Priority *int32
// One or more OpsItems that share something in common with the current OpsItem.
// For example, related OpsItems can include OpsItems with similar error messages,
// impacted resources, or statuses for the impacted resource.
RelatedOpsItems []RelatedOpsItem
// The severity of the OpsItem. Severity options range from 1 to 4.
Severity *string
// The origin of the OpsItem, such as Amazon EC2 or Systems Manager. The impacted
// resource is a subset of source.
Source *string
// The OpsItem status. Status can be Open , In Progress , or Resolved . For more
// information, see Editing OpsItem details (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems-editing-details.html)
// in the Amazon Web Services Systems Manager User Guide.
Status OpsItemStatus
// A short heading that describes the nature of the OpsItem and the impacted
// resource.
Title *string
// The version of this OpsItem. Each time the OpsItem is edited the version number
// increments by one.
Version *string
noSmithyDocumentSerde
}
// An object that defines the value of the key and its type in the OperationalData
// map.
type OpsItemDataValue struct {
// The type of key-value pair. Valid types include SearchableString and String .
Type OpsItemDataType
// The value of the OperationalData key.
Value *string
noSmithyDocumentSerde
}
// Describes a filter for a specific list of OpsItem events. You can filter event
// information by using tags. You specify tags by using a key-value pair mapping.
type OpsItemEventFilter struct {
// The name of the filter key. Currently, the only supported value is OpsItemId .
//
// This member is required.
Key OpsItemEventFilterKey
// The operator used by the filter call. Currently, the only supported value is
// Equal .
//
// This member is required.
Operator OpsItemEventFilterOperator
// The values for the filter, consisting of one or more OpsItem IDs.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Summary information about an OpsItem event or that associated an OpsItem with a
// related item.
type OpsItemEventSummary struct {
// Information about the user or resource that created the OpsItem event.
CreatedBy *OpsItemIdentity
// The date and time the OpsItem event was created.
CreatedTime *time.Time
// Specific information about the OpsItem event.
Detail *string
// The type of information provided as a detail.
DetailType *string
// The ID of the OpsItem event.
EventId *string
// The ID of the OpsItem.
OpsItemId *string
// The source of the OpsItem event.
Source *string
noSmithyDocumentSerde
}
// Describes an OpsItem filter.
type OpsItemFilter struct {
// The name of the filter.
//
// This member is required.
Key OpsItemFilterKey
// The operator used by the filter call.
//
// This member is required.
Operator OpsItemFilterOperator
// The filter value.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Information about the user or resource that created an OpsItem event.
type OpsItemIdentity struct {
// The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem event.
Arn *string
noSmithyDocumentSerde
}
// A notification about the OpsItem.
type OpsItemNotification struct {
// The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon
// SNS) topic where notifications are sent when this OpsItem is edited or changed.
Arn *string
noSmithyDocumentSerde
}
// Describes a filter for a specific list of related-item resources.
type OpsItemRelatedItemsFilter struct {
// The name of the filter key. Supported values include ResourceUri , ResourceType
// , or AssociationId .
//
// This member is required.
Key OpsItemRelatedItemsFilterKey
// The operator used by the filter call. The only supported operator is EQUAL .
//
// This member is required.
Operator OpsItemRelatedItemsFilterOperator
// The values for the filter.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Summary information about related-item resources for an OpsItem.
type OpsItemRelatedItemSummary struct {
// The association ID.
AssociationId *string
// The association type.
AssociationType *string
// Information about the user or resource that created an OpsItem event.
CreatedBy *OpsItemIdentity
// The time the related-item association was created.
CreatedTime *time.Time
// Information about the user or resource that created an OpsItem event.
LastModifiedBy *OpsItemIdentity
// The time the related-item association was last updated.
LastModifiedTime *time.Time
// The OpsItem ID.
OpsItemId *string
// The resource type.
ResourceType *string
// The Amazon Resource Name (ARN) of the related-item resource.
ResourceUri *string
noSmithyDocumentSerde
}
// A count of OpsItems.
type OpsItemSummary struct {
// The time a runbook workflow ended. Currently reported only for the OpsItem type
// /aws/changerequest .
ActualEndTime *time.Time
// The time a runbook workflow started. Currently reported only for the OpsItem
// type /aws/changerequest .
ActualStartTime *time.Time
// A list of OpsItems by category.
Category *string
// The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
CreatedBy *string
// The date and time the OpsItem was created.
CreatedTime *time.Time
// The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem.
LastModifiedBy *string
// The date and time the OpsItem was last updated.
LastModifiedTime *time.Time
// Operational data is custom data that provides useful reference details about
// the OpsItem.
OperationalData map[string]OpsItemDataValue
// The ID of the OpsItem.
OpsItemId *string
// The type of OpsItem. Systems Manager supports the following types of OpsItems:
// - /aws/issue This type of OpsItem is used for default OpsItems created by
// OpsCenter.
// - /aws/changerequest This type of OpsItem is used by Change Manager for
// reviewing and approving or rejecting change requests.
// - /aws/insights This type of OpsItem is used by OpsCenter for aggregating and
// reporting on duplicate OpsItems.
OpsItemType *string
// The time specified in a change request for a runbook workflow to end. Currently
// supported only for the OpsItem type /aws/changerequest .
PlannedEndTime *time.Time
// The time specified in a change request for a runbook workflow to start.
// Currently supported only for the OpsItem type /aws/changerequest .
PlannedStartTime *time.Time
// The importance of this OpsItem in relation to other OpsItems in the system.
Priority *int32
// A list of OpsItems by severity.
Severity *string
// The impacted Amazon Web Services resource.
Source *string
// The OpsItem status. Status can be Open , In Progress , or Resolved .
Status OpsItemStatus
// A short heading that describes the nature of the OpsItem and the impacted
// resource.
Title *string
noSmithyDocumentSerde
}
// Operational metadata for an application in Application Manager.
type OpsMetadata struct {
// The date the OpsMetadata objects was created.
CreationDate *time.Time
// The date the OpsMetadata object was last updated.
LastModifiedDate *time.Time
// The user name who last updated the OpsMetadata object.
LastModifiedUser *string
// The Amazon Resource Name (ARN) of the OpsMetadata Object or blob.
OpsMetadataArn *string
// The ID of the Application Manager application.
ResourceId *string
noSmithyDocumentSerde
}
// A filter to limit the number of OpsMetadata objects displayed.
type OpsMetadataFilter struct {
// A filter key.
//
// This member is required.
Key *string
// A filter value.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// The OpsItem data type to return.
type OpsResultAttribute struct {
// Name of the data type. Valid value: AWS:OpsItem , AWS:EC2InstanceInformation ,
// AWS:OpsItemTrendline , or AWS:ComplianceSummary .
//
// This member is required.
TypeName *string
noSmithyDocumentSerde
}
// Information about the source where the association execution details are stored.
type OutputSource struct {
// The ID of the output source, for example the URL of an S3 bucket.
OutputSourceId *string
// The type of source where the association execution details are stored, for
// example, Amazon S3.
OutputSourceType *string
noSmithyDocumentSerde
}
// An Amazon Web Services Systems Manager parameter in Parameter Store.
type Parameter struct {
// The Amazon Resource Name (ARN) of the parameter.
ARN *string
// The data type of the parameter, such as text or aws:ec2:image . The default is
// text .
DataType *string
// Date the parameter was last changed or updated and the parameter version was
// created.
LastModifiedDate *time.Time
// The name of the parameter.
Name *string
// Either the version number or the label used to retrieve the parameter value.
// Specify selectors by using one of the following formats: parameter_name:version
// parameter_name:label
Selector *string
// Applies to parameters that reference information in other Amazon Web Services
// services. SourceResult is the raw result or response from the source.
SourceResult *string
// The type of parameter. Valid values include the following: String , StringList ,
// and SecureString . If type is StringList , the system returns a comma-separated
// string with no spaces between commas in the Value field.
Type ParameterType
// The parameter value. If type is StringList , the system returns a
// comma-separated string with no spaces between commas in the Value field.
Value *string
// The parameter version.
Version int64
noSmithyDocumentSerde
}
// Information about parameter usage.
type ParameterHistory struct {
// Parameter names can include the following letters and symbols. a-zA-Z0-9_.-
AllowedPattern *string
// The data type of the parameter, such as text or aws:ec2:image . The default is
// text .
DataType *string
// Information about the parameter.
Description *string
// The ID of the query key used for this parameter.
KeyId *string
// Labels assigned to the parameter version.
Labels []string
// Date the parameter was last changed or updated.
LastModifiedDate *time.Time
// Amazon Resource Name (ARN) of the Amazon Web Services user who last changed the
// parameter.
LastModifiedUser *string
// The name of the parameter.
Name *string
// Information about the policies assigned to a parameter. Assigning parameter
// policies (https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-policies.html)
// in the Amazon Web Services Systems Manager User Guide.
Policies []ParameterInlinePolicy
// The parameter tier.
Tier ParameterTier
// The type of parameter used.
Type ParameterType
// The parameter value.
Value *string
// The parameter version.
Version int64
noSmithyDocumentSerde
}
// One or more policies assigned to a parameter.
type ParameterInlinePolicy struct {
// The status of the policy. Policies report the following statuses: Pending (the
// policy hasn't been enforced or applied yet), Finished (the policy was applied),
// Failed (the policy wasn't applied), or InProgress (the policy is being applied
// now).
PolicyStatus *string
// The JSON text of the policy.
PolicyText *string
// The type of policy. Parameter Store, a capability of Amazon Web Services
// Systems Manager, supports the following policy types: Expiration,
// ExpirationNotification, and NoChangeNotification.
PolicyType *string
noSmithyDocumentSerde
}
// Metadata includes information like the ARN of the last user and the date/time
// the parameter was last used.
type ParameterMetadata struct {
// A parameter name can include only the following letters and symbols.
// a-zA-Z0-9_.-
AllowedPattern *string
// The data type of the parameter, such as text or aws:ec2:image . The default is
// text .
DataType *string
// Description of the parameter actions.
Description *string
// The ID of the query key used for this parameter.
KeyId *string
// Date the parameter was last changed or updated.
LastModifiedDate *time.Time
// Amazon Resource Name (ARN) of the Amazon Web Services user who last changed the
// parameter.
LastModifiedUser *string
// The parameter name.
Name *string
// A list of policies associated with a parameter.
Policies []ParameterInlinePolicy
// The parameter tier.
Tier ParameterTier
// The type of parameter. Valid parameter types include the following: String ,
// StringList , and SecureString .
Type ParameterType
// The parameter version.
Version int64
noSmithyDocumentSerde
}
// This data type is deprecated. Instead, use ParameterStringFilter .
type ParametersFilter struct {
// The name of the filter.
//
// This member is required.
Key ParametersFilterKey
// The filter values.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// One or more filters. Use a filter to return a more specific list of results.
type ParameterStringFilter struct {
// The name of the filter. The ParameterStringFilter object is used by the
// DescribeParameters and GetParametersByPath API operations. However, not all of
// the pattern values listed for Key can be used with both operations. For
// DescribeParameters , all of the listed patterns are valid except Label . For
// GetParametersByPath , the following patterns listed for Key aren't valid: tag ,
// DataType , Name , Path , and Tier . For examples of Amazon Web Services CLI
// commands demonstrating valid parameter filter constructions, see Searching for
// Systems Manager parameters (https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-search.html)
// in the Amazon Web Services Systems Manager User Guide.
//
// This member is required.
Key *string
// For all filters used with DescribeParameters , valid options include Equals and
// BeginsWith . The Name filter additionally supports the Contains option.
// (Exception: For filters using the key Path , valid options include Recursive
// and OneLevel .) For filters used with GetParametersByPath , valid options
// include Equals and BeginsWith . (Exception: For filters using Label as the Key
// name, the only valid option is Equals .)
Option *string
// The value you want to search for.
Values []string
noSmithyDocumentSerde
}
// Represents metadata about a patch.
type Patch struct {
// The Advisory ID of the patch. For example, RHSA-2020:3779 . Applies to
// Linux-based managed nodes only.
AdvisoryIds []string
// The architecture of the patch. For example, in
// example-pkg-0.710.10-2.7.abcd.x86_64 , the architecture is indicated by x86_64 .
// Applies to Linux-based managed nodes only.
Arch *string
// The Bugzilla ID of the patch. For example, 1600646 . Applies to Linux-based
// managed nodes only.
BugzillaIds []string
// The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example,
// CVE-2011-3192 . Applies to Linux-based managed nodes only.
CVEIds []string
// The classification of the patch. For example, SecurityUpdates , Updates , or
// CriticalUpdates .
Classification *string
// The URL where more information can be obtained about the patch.
ContentUrl *string
// The description of the patch.
Description *string
// The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch
// , the epoch value is 20180914-2 . Applies to Linux-based managed nodes only.
Epoch int32
// The ID of the patch. Applies to Windows patches only. This ID isn't the same as
// the Microsoft Knowledge Base ID.
Id *string
// The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.
KbNumber *string
// The language of the patch if it's language-specific.
Language *string
// The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is
// related to. For example, MS14-045 . Applies to Windows patches only.
MsrcNumber *string
// The severity of the patch, such as Critical , Important , or Moderate . Applies
// to Windows patches only.
MsrcSeverity *string
// The name of the patch. Applies to Linux-based managed nodes only.
Name *string
// The specific product the patch is applicable for. For example, WindowsServer2016
// or AmazonLinux2018.03 .
Product *string
// The product family the patch is applicable for. For example, Windows or Amazon
// Linux 2 .
ProductFamily *string
// The particular release of a patch. For example, in
// pkg-example-EE-20180914-2.2.amzn1.noarch , the release is 2.amaz1 . Applies to
// Linux-based managed nodes only.
Release *string
// The date the patch was released.
ReleaseDate *time.Time
// The source patch repository for the operating system and version, such as
// trusty-security for Ubuntu Server 14.04 LTE and focal-security for Ubuntu
// Server 20.04 LTE. Applies to Linux-based managed nodes only.
Repository *string
// The severity level of the patch. For example, CRITICAL or MODERATE .
Severity *string
// The title of the patch.
Title *string
// The name of the vendor providing the patch.
Vendor *string
// The version number of the patch. For example, in
// example-pkg-1.710.10-2.7.abcd.x86_64 , the version number is indicated by -1 .
// Applies to Linux-based managed nodes only.
Version *string
noSmithyDocumentSerde
}
// Defines the basic information about a patch baseline.
type PatchBaselineIdentity struct {
// The description of the patch baseline.
BaselineDescription *string
// The ID of the patch baseline.
BaselineId *string
// The name of the patch baseline.
BaselineName *string
// Whether this is the default baseline. Amazon Web Services Systems Manager
// supports creating multiple default patch baselines. For example, you can create
// a default patch baseline for each operating system.
DefaultBaseline bool
// Defines the operating system the patch baseline applies to. The default value
// is WINDOWS .
OperatingSystem OperatingSystem
noSmithyDocumentSerde
}
// Information about the state of a patch on a particular managed node as it
// relates to the patch baseline used to patch the node.
type PatchComplianceData struct {
// The classification of the patch, such as SecurityUpdates , Updates , and
// CriticalUpdates .
//
// This member is required.
Classification *string
// The date/time the patch was installed on the managed node. Not all operating
// systems provide this level of information.
//
// This member is required.
InstalledTime *time.Time
// The operating system-specific ID of the patch.
//
// This member is required.
KBId *string
// The severity of the patch such as Critical , Important , and Moderate .
//
// This member is required.
Severity *string
// The state of the patch on the managed node, such as INSTALLED or FAILED. For
// descriptions of each patch state, see About patch compliance (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-compliance-about.html#sysman-compliance-monitor-patch)
// in the Amazon Web Services Systems Manager User Guide.
//
// This member is required.
State PatchComplianceDataState
// The title of the patch.
//
// This member is required.
Title *string
// The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that
// are resolved by the patch.
CVEIds *string
noSmithyDocumentSerde
}
// Defines which patches should be included in a patch baseline. A patch filter
// consists of a key and a set of values. The filter key is a patch property. For
// example, the available filter keys for WINDOWS are PATCH_SET , PRODUCT ,
// PRODUCT_FAMILY , CLASSIFICATION , and MSRC_SEVERITY . The filter values define a
// matching criterion for the patch property indicated by the key. For example, if
// the filter key is PRODUCT and the filter values are ["Office 2013", "Office
// 2016"] , then the filter accepts all patches where product name is either
// "Office 2013" or "Office 2016". The filter values can be exact values for the
// patch property given as a key, or a wildcard (*), which matches all values. You
// can view lists of valid values for the patch properties by running the
// DescribePatchProperties command. For information about which patch properties
// can be used with each major operating system, see DescribePatchProperties .
type PatchFilter struct {
// The key for the filter. Run the DescribePatchProperties command to view lists
// of valid keys for each operating system type.
//
// This member is required.
Key PatchFilterKey
// The value for the filter key. Run the DescribePatchProperties command to view
// lists of valid values for each key based on operating system type.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// A set of patch filters, typically used for approval rules.
type PatchFilterGroup struct {
// The set of patch filters that make up the group.
//
// This member is required.
PatchFilters []PatchFilter
noSmithyDocumentSerde
}
// The mapping between a patch group and the patch baseline the patch group is
// registered with.
type PatchGroupPatchBaselineMapping struct {
// The patch baseline the patch group is registered with.
BaselineIdentity *PatchBaselineIdentity
// The name of the patch group registered with the patch baseline.
PatchGroup *string
noSmithyDocumentSerde
}
// Defines a filter used in Patch Manager APIs. Supported filter keys depend on
// the API operation that includes the filter. Patch Manager API operations that
// use PatchOrchestratorFilter include the following:
// - DescribeAvailablePatches
// - DescribeInstancePatches
// - DescribePatchBaselines
// - DescribePatchGroups
type PatchOrchestratorFilter struct {
// The key for the filter.
Key *string
// The value for the filter.
Values []string
noSmithyDocumentSerde
}
// Defines an approval rule for a patch baseline.
type PatchRule struct {
// The patch filter group that defines the criteria for the rule.
//
// This member is required.
PatchFilterGroup *PatchFilterGroup
// The number of days after the release date of each patch matched by the rule
// that the patch is marked as approved in the patch baseline. For example, a value
// of 7 means that patches are approved seven days after they are released. Not
// supported on Debian Server or Ubuntu Server.
ApproveAfterDays *int32
// The cutoff date for auto approval of released patches. Any patches released on
// or before this date are installed automatically. Not supported on Debian Server
// or Ubuntu Server. Enter dates in the format YYYY-MM-DD . For example, 2021-12-31
// .
ApproveUntilDate *string
// A compliance severity level for all approved patches in a patch baseline.
ComplianceLevel PatchComplianceLevel
// For managed nodes identified by the approval rule filters, enables a patch
// baseline to apply non-security updates available in the specified repository.
// The default value is false . Applies to Linux managed nodes only.
EnableNonSecurity *bool
noSmithyDocumentSerde
}
// A set of rules defining the approval rules for a patch baseline.
type PatchRuleGroup struct {
// The rules that make up the rule group.
//
// This member is required.
PatchRules []PatchRule
noSmithyDocumentSerde
}
// Information about the patches to use to update the managed nodes, including
// target operating systems and source repository. Applies to Linux managed nodes
// only.
type PatchSource struct {
// The value of the yum repo configuration. For example: [main]
// name=MyCustomRepository
//
// baseurl=https://my-custom-repository
// enabled=1 For information about other options available for your yum repository
// configuration, see dnf.conf(5) (https://man7.org/linux/man-pages/man5/dnf.conf.5.html)
// .
//
// This member is required.
Configuration *string
// The name specified to identify the patch source.
//
// This member is required.
Name *string
// The specific operating system versions a patch repository applies to, such as
// "Ubuntu16.04", "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7".
// For lists of supported product values, see PatchFilter .
//
// This member is required.
Products []string
noSmithyDocumentSerde
}
// Information about the approval status of a patch.
type PatchStatus struct {
// The date the patch was approved (or will be approved if the status is
// PENDING_APPROVAL ).
ApprovalDate *time.Time
// The compliance severity level for a patch.
ComplianceLevel PatchComplianceLevel
// The approval status of a patch.
DeploymentStatus PatchDeploymentStatus
noSmithyDocumentSerde
}
// An aggregate of step execution statuses displayed in the Amazon Web Services
// Systems Manager console for a multi-Region and multi-account Automation
// execution.
type ProgressCounters struct {
// The total number of steps that the system cancelled in all specified Amazon Web
// Services Regions and Amazon Web Services accounts for the current Automation
// execution.
CancelledSteps int32
// The total number of steps that failed to run in all specified Amazon Web
// Services Regions and Amazon Web Services accounts for the current Automation
// execution.
FailedSteps int32
// The total number of steps that successfully completed in all specified Amazon
// Web Services Regions and Amazon Web Services accounts for the current Automation
// execution.
SuccessSteps int32
// The total number of steps that timed out in all specified Amazon Web Services
// Regions and Amazon Web Services accounts for the current Automation execution.
TimedOutSteps int32
// The total number of steps run in all specified Amazon Web Services Regions and
// Amazon Web Services accounts for the current Automation execution.
TotalSteps int32
noSmithyDocumentSerde
}
// Reserved for internal use.
type RegistrationMetadataItem struct {
// Reserved for internal use.
//
// This member is required.
Key *string
// Reserved for internal use.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// An OpsItems that shares something in common with the current OpsItem. For
// example, related OpsItems can include OpsItems with similar error messages,
// impacted resources, or statuses for the impacted resource.
type RelatedOpsItem struct {
// The ID of an OpsItem related to the current OpsItem.
//
// This member is required.
OpsItemId *string
noSmithyDocumentSerde
}
// Information about targets that resolved during the Automation execution.
type ResolvedTargets struct {
// A list of parameter values sent to targets that resolved during the Automation
// execution.
ParameterValues []string
// A boolean value indicating whether the resolved target list is truncated.
Truncated bool
noSmithyDocumentSerde
}
// Compliance summary information for a specific resource.
type ResourceComplianceSummaryItem struct {
// The compliance type.
ComplianceType *string
// A list of items that are compliant for the resource.
CompliantSummary *CompliantSummary
// Information about the execution.
ExecutionSummary *ComplianceExecutionSummary
// A list of items that aren't compliant for the resource.
NonCompliantSummary *NonCompliantSummary
// The highest severity item found for the resource. The resource is compliant for
// this item.
OverallSeverity ComplianceSeverity
// The resource ID.
ResourceId *string
// The resource type.
ResourceType *string
// The compliance status for the resource.
Status ComplianceStatus
noSmithyDocumentSerde
}
// Information about the AwsOrganizationsSource resource data sync source. A sync
// source of this type can synchronize data from Organizations or, if an Amazon Web
// Services organization isn't present, from multiple Amazon Web Services Regions.
type ResourceDataSyncAwsOrganizationsSource struct {
// If an Amazon Web Services organization is present, this is either
// OrganizationalUnits or EntireOrganization . For OrganizationalUnits , the data
// is aggregated from a set of organization units. For EntireOrganization , the
// data is aggregated from the entire Amazon Web Services organization.
//
// This member is required.
OrganizationSourceType *string
// The Organizations organization units included in the sync.
OrganizationalUnits []ResourceDataSyncOrganizationalUnit
noSmithyDocumentSerde
}
// Synchronize Amazon Web Services Systems Manager Inventory data from multiple
// Amazon Web Services accounts defined in Organizations to a centralized Amazon S3
// bucket. Data is synchronized to individual key prefixes in the central bucket.
// Each key prefix represents a different Amazon Web Services account ID.
type ResourceDataSyncDestinationDataSharing struct {
// The sharing data type. Only Organization is supported.
DestinationDataSharingType *string
noSmithyDocumentSerde
}
// Information about a resource data sync configuration, including its current
// status and last successful sync.
type ResourceDataSyncItem struct {
// The status reported by the last sync.
LastStatus LastResourceDataSyncStatus
// The last time the sync operations returned a status of SUCCESSFUL (UTC).
LastSuccessfulSyncTime *time.Time
// The status message details reported by the last sync.
LastSyncStatusMessage *string
// The last time the configuration attempted to sync (UTC).
LastSyncTime *time.Time
// Configuration information for the target S3 bucket.
S3Destination *ResourceDataSyncS3Destination
// The date and time the configuration was created (UTC).
SyncCreatedTime *time.Time
// The date and time the resource data sync was changed.
SyncLastModifiedTime *time.Time
// The name of the resource data sync.
SyncName *string
// Information about the source where the data was synchronized.
SyncSource *ResourceDataSyncSourceWithState
// The type of resource data sync. If SyncType is SyncToDestination , then the
// resource data sync synchronizes data to an S3 bucket. If the SyncType is
// SyncFromSource then the resource data sync synchronizes data from Organizations
// or from multiple Amazon Web Services Regions.
SyncType *string
noSmithyDocumentSerde
}
// The Organizations organizational unit data source for the sync.
type ResourceDataSyncOrganizationalUnit struct {
// The Organizations unit ID data source for the sync.
OrganizationalUnitId *string
noSmithyDocumentSerde
}
// Information about the target S3 bucket for the resource data sync.
type ResourceDataSyncS3Destination struct {
// The name of the S3 bucket where the aggregated data is stored.
//
// This member is required.
BucketName *string
// The Amazon Web Services Region with the S3 bucket targeted by the resource data
// sync.
//
// This member is required.
Region *string
// A supported sync format. The following format is currently supported: JsonSerDe
//
// This member is required.
SyncFormat ResourceDataSyncS3Format
// The ARN of an encryption key for a destination in Amazon S3. Must belong to the
// same Region as the destination S3 bucket.
AWSKMSKeyARN *string
// Enables destination data sharing. By default, this field is null .
DestinationDataSharing *ResourceDataSyncDestinationDataSharing
// An Amazon S3 prefix for the bucket.
Prefix *string
noSmithyDocumentSerde
}
// Information about the source of the data included in the resource data sync.
type ResourceDataSyncSource struct {
// The SyncSource Amazon Web Services Regions included in the resource data sync.
//
// This member is required.
SourceRegions []string
// The type of data source for the resource data sync. SourceType is either
// AwsOrganizations (if an organization is present in Organizations) or
// SingleAccountMultiRegions .
//
// This member is required.
SourceType *string
// Information about the AwsOrganizationsSource resource data sync source. A sync
// source of this type can synchronize data from Organizations.
AwsOrganizationsSource *ResourceDataSyncAwsOrganizationsSource
// When you create a resource data sync, if you choose one of the Organizations
// options, then Systems Manager automatically enables all OpsData sources in the
// selected Amazon Web Services Regions for all Amazon Web Services accounts in
// your organization (or in the selected organization units). For more information,
// see About multiple account and Region resource data syncs (https://docs.aws.amazon.com/systems-manager/latest/userguide/Explorer-resouce-data-sync-multiple-accounts-and-regions.html)
// in the Amazon Web Services Systems Manager User Guide.
EnableAllOpsDataSources bool
// Whether to automatically synchronize and aggregate data from new Amazon Web
// Services Regions when those Regions come online.
IncludeFutureRegions bool
noSmithyDocumentSerde
}
// The data type name for including resource data sync state. There are four sync
// states: OrganizationNotExists (Your organization doesn't exist) NoPermissions
// (The system can't locate the service-linked role. This role is automatically
// created when a user creates a resource data sync in Amazon Web Services Systems
// Manager Explorer.) InvalidOrganizationalUnit (You specified or selected an
// invalid unit in the resource data sync configuration.) TrustedAccessDisabled
// (You disabled Systems Manager access in the organization in Organizations.)
type ResourceDataSyncSourceWithState struct {
// The field name in SyncSource for the ResourceDataSyncAwsOrganizationsSource
// type.
AwsOrganizationsSource *ResourceDataSyncAwsOrganizationsSource
// When you create a resource data sync, if you choose one of the Organizations
// options, then Systems Manager automatically enables all OpsData sources in the
// selected Amazon Web Services Regions for all Amazon Web Services accounts in
// your organization (or in the selected organization units). For more information,
// see About multiple account and Region resource data syncs (https://docs.aws.amazon.com/systems-manager/latest/userguide/Explorer-resouce-data-sync-multiple-accounts-and-regions.html)
// in the Amazon Web Services Systems Manager User Guide.
EnableAllOpsDataSources bool
// Whether to automatically synchronize and aggregate data from new Amazon Web
// Services Regions when those Regions come online.
IncludeFutureRegions bool
// The SyncSource Amazon Web Services Regions included in the resource data sync.
SourceRegions []string
// The type of data source for the resource data sync. SourceType is either
// AwsOrganizations (if an organization is present in Organizations) or
// singleAccountMultiRegions .
SourceType *string
// The data type name for including resource data sync state. There are four sync
// states: OrganizationNotExists : Your organization doesn't exist. NoPermissions :
// The system can't locate the service-linked role. This role is automatically
// created when a user creates a resource data sync in Explorer.
// InvalidOrganizationalUnit : You specified or selected an invalid unit in the
// resource data sync configuration. TrustedAccessDisabled : You disabled Systems
// Manager access in the organization in Organizations.
State *string
noSmithyDocumentSerde
}
// The inventory item result attribute.
type ResultAttribute struct {
// Name of the inventory item type. Valid value: AWS:InstanceInformation . Default
// Value: AWS:InstanceInformation .
//
// This member is required.
TypeName *string
noSmithyDocumentSerde
}
// Information about the result of a document review request.
type ReviewInformation struct {
// The time that the reviewer took action on the document review request.
ReviewedTime *time.Time
// The reviewer assigned to take action on the document review request.
Reviewer *string
// The current status of the document review request.
Status ReviewStatus
noSmithyDocumentSerde
}
// Information about an Automation runbook used in a runbook workflow in Change
// Manager. The Automation runbooks specified for the runbook workflow can't run
// until all required approvals for the change request have been received.
type Runbook struct {
// The name of the Automation runbook used in a runbook workflow.
//
// This member is required.
DocumentName *string
// The version of the Automation runbook used in a runbook workflow.
DocumentVersion *string
// The MaxConcurrency value specified by the user when the operation started,
// indicating the maximum number of resources that the runbook operation can run on
// at the same time.
MaxConcurrency *string
// The MaxErrors value specified by the user when the execution started,
// indicating the maximum number of errors that can occur during the operation
// before the updates are stopped or rolled back.
MaxErrors *string
// The key-value map of execution parameters, which were supplied when calling
// StartChangeRequestExecution .
Parameters map[string][]string
// Information about the Amazon Web Services Regions and Amazon Web Services
// accounts targeted by the current Runbook operation.
TargetLocations []TargetLocation
// A key-value mapping of runbook parameters to target resources. Both Targets and
// TargetMaps can't be specified together.
TargetMaps []map[string][]string
// The name of the parameter used as the target resource for the rate-controlled
// runbook workflow. Required if you specify Targets .
TargetParameterName *string
// A key-value mapping to target resources that the runbook operation performs
// tasks on. Required if you specify TargetParameterName .
Targets []Target
noSmithyDocumentSerde
}
// An S3 bucket where you want to store the results of this request.
type S3OutputLocation struct {
// The name of the S3 bucket.
OutputS3BucketName *string
// The S3 bucket subfolder.
OutputS3KeyPrefix *string
// The Amazon Web Services Region of the S3 bucket.
OutputS3Region *string
noSmithyDocumentSerde
}
// A URL for the Amazon Web Services Systems Manager (Systems Manager) bucket
// where you want to store the results of this request.
type S3OutputUrl struct {
// A URL for an S3 bucket where you want to store the results of this request.
OutputUrl *string
noSmithyDocumentSerde
}
// Information about a scheduled execution for a maintenance window.
type ScheduledWindowExecution struct {
// The time, in ISO-8601 Extended format, that the maintenance window is scheduled
// to be run.
ExecutionTime *string
// The name of the maintenance window to be run.
Name *string
// The ID of the maintenance window to be run.
WindowId *string
noSmithyDocumentSerde
}
// The service setting data structure. ServiceSetting is an account-level setting
// for an Amazon Web Services service. This setting defines how a user interacts
// with or uses a service or a feature of a service. For example, if an Amazon Web
// Services service charges money to the account based on feature or service usage,
// then the Amazon Web Services service team might create a default setting of
// "false". This means the user can't use this feature unless they change the
// setting to "true" and intentionally opt in for a paid feature. Services map a
// SettingId object to a setting value. Amazon Web Services services teams define
// the default value for a SettingId . You can't create a new SettingId , but you
// can overwrite the default value if you have the ssm:UpdateServiceSetting
// permission for the setting. Use the UpdateServiceSetting API operation to
// change the default setting. Or, use the ResetServiceSetting to change the value
// back to the original value defined by the Amazon Web Services service team.
type ServiceSetting struct {
// The ARN of the service setting.
ARN *string
// The last time the service setting was modified.
LastModifiedDate *time.Time
// The ARN of the last modified user. This field is populated only if the setting
// value was overwritten.
LastModifiedUser *string
// The ID of the service setting.
SettingId *string
// The value of the service setting.
SettingValue *string
// The status of the service setting. The value can be Default, Customized or
// PendingUpdate.
// - Default: The current setting uses a default value provisioned by the Amazon
// Web Services service team.
// - Customized: The current setting use a custom value specified by the
// customer.
// - PendingUpdate: The current setting uses a default or custom value, but a
// setting change request is pending approval.
Status *string
noSmithyDocumentSerde
}
// Information about a Session Manager connection to a managed node.
type Session struct {
// Reserved for future use.
Details *string
// The name of the Session Manager SSM document used to define the parameters and
// plugin settings for the session. For example, SSM-SessionManagerRunShell .
DocumentName *string
// The date and time, in ISO-8601 Extended format, when the session was terminated.
EndDate *time.Time
// The maximum duration of a session before it terminates.
MaxSessionDuration *string
// Reserved for future use.
OutputUrl *SessionManagerOutputUrl
// The ID of the Amazon Web Services user that started the session.
Owner *string
// The reason for connecting to the instance.
Reason *string
// The ID of the session.
SessionId *string
// The date and time, in ISO-8601 Extended format, when the session began.
StartDate *time.Time
// The status of the session. For example, "Connected" or "Terminated".
Status SessionStatus
// The managed node that the Session Manager session connected to.
Target *string
noSmithyDocumentSerde
}
// Describes a filter for Session Manager information.
type SessionFilter struct {
// The name of the filter.
//
// This member is required.
Key SessionFilterKey
// The filter value. Valid values for each filter key are as follows:
// - InvokedAfter: Specify a timestamp to limit your results. For example,
// specify 2018-08-29T00:00:00Z to see sessions that started August 29, 2018, and
// later.
// - InvokedBefore: Specify a timestamp to limit your results. For example,
// specify 2018-08-29T00:00:00Z to see sessions that started before August 29,
// 2018.
// - Target: Specify a managed node to which session connections have been made.
// - Owner: Specify an Amazon Web Services user to see a list of sessions
// started by that user.
// - Status: Specify a valid session status to see a list of all sessions with
// that status. Status values you can specify include:
// - Connected
// - Connecting
// - Disconnected
// - Terminated
// - Terminating
// - Failed
// - SessionId: Specify a session ID to return details about the session.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Reserved for future use.
type SessionManagerOutputUrl struct {
// Reserved for future use.
CloudWatchOutputUrl *string
// Reserved for future use.
S3OutputUrl *string
noSmithyDocumentSerde
}
// The number of managed nodes found for each patch severity level defined in the
// request filter.
type SeveritySummary struct {
// The total number of resources or compliance items that have a severity level of
// Critical . Critical severity is determined by the organization that published
// the compliance items.
CriticalCount int32
// The total number of resources or compliance items that have a severity level of
// high. High severity is determined by the organization that published the
// compliance items.
HighCount int32
// The total number of resources or compliance items that have a severity level of
// informational. Informational severity is determined by the organization that
// published the compliance items.
InformationalCount int32
// The total number of resources or compliance items that have a severity level of
// low. Low severity is determined by the organization that published the
// compliance items.
LowCount int32
// The total number of resources or compliance items that have a severity level of
// medium. Medium severity is determined by the organization that published the
// compliance items.
MediumCount int32
// The total number of resources or compliance items that have a severity level of
// unspecified. Unspecified severity is determined by the organization that
// published the compliance items.
UnspecifiedCount int32
noSmithyDocumentSerde
}
// Detailed information about an the execution state of an Automation step.
type StepExecution struct {
// The action this step performs. The action determines the behavior of the step.
Action *string
// If a step has finished execution, this contains the time the execution ended.
// If the step hasn't yet concluded, this field isn't populated.
ExecutionEndTime *time.Time
// If a step has begun execution, this contains the time the step started. If the
// step is in Pending status, this field isn't populated.
ExecutionStartTime *time.Time
// Information about the Automation failure.
FailureDetails *FailureDetails
// If a step failed, this message explains why the execution failed.
FailureMessage *string
// Fully-resolved values passed into the step before execution.
Inputs map[string]string
// The flag which can be used to help decide whether the failure of current step
// leads to the Automation failure.
IsCritical *bool
// The flag which can be used to end automation no matter whether the step
// succeeds or fails.
IsEnd *bool
// The maximum number of tries to run the action of the step. The default value is
// 1 .
MaxAttempts *int32
// The next step after the step succeeds.
NextStep *string
// The action to take if the step fails. The default value is Abort .
OnFailure *string
// Returned values from the execution of the step.
Outputs map[string][]string
// A user-specified list of parameters to override when running a step.
OverriddenParameters map[string][]string
// A message associated with the response code for an execution.
Response *string
// The response code returned by the execution of the step.
ResponseCode *string
// The unique ID of a step execution.
StepExecutionId *string
// The name of this execution step.
StepName *string
// The execution status for this step.
StepStatus AutomationExecutionStatus
// The combination of Amazon Web Services Regions and Amazon Web Services accounts
// targeted by the current Automation execution.
TargetLocation *TargetLocation
// The targets for the step execution.
Targets []Target
// The timeout seconds of the step.
TimeoutSeconds *int64
// The CloudWatch alarms that were invoked by the automation.
TriggeredAlarms []AlarmStateInformation
// Strategies used when step fails, we support Continue and Abort. Abort will fail
// the automation when the step fails. Continue will ignore the failure of current
// step and allow automation to run the next step. With conditional branching, we
// add step:stepName to support the automation to go to another specific step.
ValidNextSteps []string
noSmithyDocumentSerde
}
// A filter to limit the amount of step execution information returned by the call.
type StepExecutionFilter struct {
// One or more keys to limit the results. Valid filter keys include the following:
// StepName, Action, StepExecutionId, StepExecutionStatus, StartTimeBefore,
// StartTimeAfter.
//
// This member is required.
Key StepExecutionFilterKey
// The values of the filter key.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Metadata that you assign to your Amazon Web Services resources. Tags enable you
// to categorize your resources in different ways, for example, by purpose, owner,
// or environment. In Amazon Web Services Systems Manager, you can apply tags to
// Systems Manager documents (SSM documents), managed nodes, maintenance windows,
// parameters, patch baselines, OpsItems, and OpsMetadata.
type Tag struct {
// The name of the tag.
//
// This member is required.
Key *string
// The value of the tag.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// An array of search criteria that targets managed nodes using a key-value pair
// that you specify. One or more targets must be specified for maintenance window
// Run Command-type tasks. Depending on the task, targets are optional for other
// maintenance window task types (Automation, Lambda, and Step Functions). For more
// information about running tasks that don't specify targets, see Registering
// maintenance window tasks without targets (https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html)
// in the Amazon Web Services Systems Manager User Guide. Supported formats include
// the following.
// - Key=InstanceIds,Values=,,
// - Key=tag:,Values=,
// - Key=tag-key,Values=,
// - Run Command and Maintenance window targets only:
// Key=resource-groups:Name,Values=
// - Maintenance window targets only:
// Key=resource-groups:ResourceTypeFilters,Values=,
// - Automation targets only: Key=ResourceGroup;Values=
//
// For example:
//
// -
// Key=InstanceIds,Values=i-02573cafcfEXAMPLE,i-0471e04240EXAMPLE,i-07782c72faEXAMPLE
// - Key=tag:CostCenter,Values=CostCenter1,CostCenter2,CostCenter3
// - Key=tag-key,Values=Name,Instance-Type,CostCenter
// - Run Command and Maintenance window targets only:
// Key=resource-groups:Name,Values=ProductionResourceGroup This example
// demonstrates how to target all resources in the resource group
// ProductionResourceGroup in your maintenance window.
// - Maintenance window targets only:
// Key=resource-groups:ResourceTypeFilters,Values=AWS::EC2::INSTANCE,AWS::EC2::VPC
// This example demonstrates how to target only Amazon Elastic Compute Cloud
// (Amazon EC2) instances and VPCs in your maintenance window.
// - Automation targets only: Key=ResourceGroup,Values=MyResourceGroup
// - State Manager association targets only: Key=InstanceIds,Values=* This
// example demonstrates how to target all managed instances in the Amazon Web
// Services Region where the association was created.
//
// For more information about how to send commands that target managed nodes using
// Key,Value parameters, see Targeting multiple instances (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-targeting)
// in the Amazon Web Services Systems Manager User Guide.
type Target struct {
// User-defined criteria for sending commands that target managed nodes that meet
// the criteria.
Key *string
// User-defined criteria that maps to Key . For example, if you specified
// tag:ServerRole , you could specify value:WebServer to run a command on
// instances that include EC2 tags of ServerRole,WebServer . Depending on the type
// of target, the maximum number of values for a key might be lower than the global
// maximum of 50.
Values []string
noSmithyDocumentSerde
}
// The combination of Amazon Web Services Regions and Amazon Web Services accounts
// targeted by the current Automation execution.
type TargetLocation struct {
// The Amazon Web Services accounts targeted by the current Automation execution.
Accounts []string
// The Automation execution role used by the currently running Automation. If not
// specified, the default value is AWS-SystemsManager-AutomationExecutionRole .
ExecutionRoleName *string
// The Amazon Web Services Regions targeted by the current Automation execution.
Regions []string
// The details for the CloudWatch alarm you want to apply to an automation or
// command.
TargetLocationAlarmConfiguration *AlarmConfiguration
// The maximum number of Amazon Web Services Regions and Amazon Web Services
// accounts allowed to run the Automation concurrently.
TargetLocationMaxConcurrency *string
// The maximum number of errors allowed before the system stops queueing
// additional Automation executions for the currently running Automation.
TargetLocationMaxErrors *string
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
| 5,072 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssmcontacts
import (
"context"
cryptorand "crypto/rand"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/defaults"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/retry"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources"
smithy "github.com/aws/smithy-go"
smithydocument "github.com/aws/smithy-go/document"
"github.com/aws/smithy-go/logging"
"github.com/aws/smithy-go/middleware"
smithyrand "github.com/aws/smithy-go/rand"
smithyhttp "github.com/aws/smithy-go/transport/http"
"net"
"net/http"
"time"
)
const ServiceID = "SSM Contacts"
const ServiceAPIVersion = "2021-05-03"
// Client provides the API client to make operations call for AWS Systems Manager
// Incident Manager Contacts.
type Client struct {
options Options
}
// 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 New(options Options, optFns ...func(*Options)) *Client {
options = options.Copy()
resolveDefaultLogger(&options)
setResolvedDefaultsMode(&options)
resolveRetryer(&options)
resolveHTTPClient(&options)
resolveHTTPSignerV4(&options)
resolveDefaultEndpointConfiguration(&options)
resolveIdempotencyTokenProvider(&options)
for _, fn := range optFns {
fn(&options)
}
client := &Client{
options: options,
}
return client
}
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
// 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.
EndpointResolver EndpointResolver
// Signature Version 4 (SigV4) Signer
HTTPSignerV4 HTTPSignerV4
// Provides idempotency tokens values that will be automatically populated into
// idempotent API operations.
IdempotencyTokenProvider IdempotencyTokenProvider
// 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. 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. 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 initial DefaultsMode used when the client options were constructed. If the
// DefaultsMode was set to aws.DefaultsModeAuto this will store what the resolved
// value was at that point in time. Currently does not support per operation call
// overrides, may in the future.
resolvedDefaultsMode aws.DefaultsMode
// The HTTP client to invoke API calls with. Defaults to client's default HTTP
// implementation if nil.
HTTPClient HTTPClient
}
// WithAPIOptions returns a functional option for setting the Client's APIOptions
// option.
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) {
return func(o *Options) {
o.APIOptions = append(o.APIOptions, optFns...)
}
}
// WithEndpointResolver returns a functional option for setting the Client's
// EndpointResolver option.
func WithEndpointResolver(v EndpointResolver) func(*Options) {
return func(o *Options) {
o.EndpointResolver = v
}
}
type HTTPClient interface {
Do(*http.Request) (*http.Response, error)
}
// Copy creates a clone where the APIOptions list is deep copied.
func (o Options) Copy() Options {
to := o
to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions))
copy(to.APIOptions, o.APIOptions)
return to
}
func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) {
ctx = middleware.ClearStackValues(ctx)
stack := middleware.NewStack(opID, smithyhttp.NewStackRequest)
options := c.options.Copy()
for _, fn := range optFns {
fn(&options)
}
finalizeRetryMaxAttemptOptions(&options, *c)
finalizeClientEndpointResolverOptions(&options)
for _, fn := range stackFns {
if err := fn(stack, options); err != nil {
return nil, metadata, err
}
}
for _, fn := range options.APIOptions {
if err := fn(stack); err != nil {
return nil, metadata, err
}
}
handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack)
result, metadata, err = handler.Handle(ctx, params)
if err != nil {
err = &smithy.OperationError{
ServiceID: ServiceID,
OperationName: opID,
Err: err,
}
}
return result, metadata, err
}
type noSmithyDocumentSerde = smithydocument.NoSerde
func resolveDefaultLogger(o *Options) {
if o.Logger != nil {
return
}
o.Logger = logging.Nop{}
}
func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error {
return middleware.AddSetLoggerMiddleware(stack, o.Logger)
}
func setResolvedDefaultsMode(o *Options) {
if len(o.resolvedDefaultsMode) > 0 {
return
}
var mode aws.DefaultsMode
mode.SetFromString(string(o.DefaultsMode))
if mode == aws.DefaultsModeAuto {
mode = defaults.ResolveDefaultsModeAuto(o.Region, o.RuntimeEnvironment)
}
o.resolvedDefaultsMode = mode
}
// NewFromConfig returns a new client from the provided config.
func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client {
opts := Options{
Region: cfg.Region,
DefaultsMode: cfg.DefaultsMode,
RuntimeEnvironment: cfg.RuntimeEnvironment,
HTTPClient: cfg.HTTPClient,
Credentials: cfg.Credentials,
APIOptions: cfg.APIOptions,
Logger: cfg.Logger,
ClientLogMode: cfg.ClientLogMode,
}
resolveAWSRetryerProvider(cfg, &opts)
resolveAWSRetryMaxAttempts(cfg, &opts)
resolveAWSRetryMode(cfg, &opts)
resolveAWSEndpointResolver(cfg, &opts)
resolveUseDualStackEndpoint(cfg, &opts)
resolveUseFIPSEndpoint(cfg, &opts)
return New(opts, optFns...)
}
func resolveHTTPClient(o *Options) {
var buildable *awshttp.BuildableClient
if o.HTTPClient != nil {
var ok bool
buildable, ok = o.HTTPClient.(*awshttp.BuildableClient)
if !ok {
return
}
} else {
buildable = awshttp.NewBuildableClient()
}
modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
if err == nil {
buildable = buildable.WithDialerOptions(func(dialer *net.Dialer) {
if dialerTimeout, ok := modeConfig.GetConnectTimeout(); ok {
dialer.Timeout = dialerTimeout
}
})
buildable = buildable.WithTransportOptions(func(transport *http.Transport) {
if tlsHandshakeTimeout, ok := modeConfig.GetTLSNegotiationTimeout(); ok {
transport.TLSHandshakeTimeout = tlsHandshakeTimeout
}
})
}
o.HTTPClient = buildable
}
func resolveRetryer(o *Options) {
if o.Retryer != nil {
return
}
if len(o.RetryMode) == 0 {
modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
if err == nil {
o.RetryMode = modeConfig.RetryMode
}
}
if len(o.RetryMode) == 0 {
o.RetryMode = aws.RetryModeStandard
}
var standardOptions []func(*retry.StandardOptions)
if v := o.RetryMaxAttempts; v != 0 {
standardOptions = append(standardOptions, func(so *retry.StandardOptions) {
so.MaxAttempts = v
})
}
switch o.RetryMode {
case aws.RetryModeAdaptive:
var adaptiveOptions []func(*retry.AdaptiveModeOptions)
if len(standardOptions) != 0 {
adaptiveOptions = append(adaptiveOptions, func(ao *retry.AdaptiveModeOptions) {
ao.StandardOptions = append(ao.StandardOptions, standardOptions...)
})
}
o.Retryer = retry.NewAdaptiveMode(adaptiveOptions...)
default:
o.Retryer = retry.NewStandard(standardOptions...)
}
}
func resolveAWSRetryerProvider(cfg aws.Config, o *Options) {
if cfg.Retryer == nil {
return
}
o.Retryer = cfg.Retryer()
}
func resolveAWSRetryMode(cfg aws.Config, o *Options) {
if len(cfg.RetryMode) == 0 {
return
}
o.RetryMode = cfg.RetryMode
}
func resolveAWSRetryMaxAttempts(cfg aws.Config, o *Options) {
if cfg.RetryMaxAttempts == 0 {
return
}
o.RetryMaxAttempts = cfg.RetryMaxAttempts
}
func finalizeRetryMaxAttemptOptions(o *Options, client Client) {
if v := o.RetryMaxAttempts; v == 0 || v == client.options.RetryMaxAttempts {
return
}
o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts)
}
func resolveAWSEndpointResolver(cfg aws.Config, o *Options) {
if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil {
return
}
o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions, NewDefaultEndpointResolver())
}
func addClientUserAgent(stack *middleware.Stack) error {
return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "ssmcontacts", goModuleVersion)(stack)
}
func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error {
mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{
CredentialsProvider: o.Credentials,
Signer: o.HTTPSignerV4,
LogSigning: o.ClientLogMode.IsSigning(),
})
return stack.Finalize.Add(mw, middleware.After)
}
type HTTPSignerV4 interface {
SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error
}
func resolveHTTPSignerV4(o *Options) {
if o.HTTPSignerV4 != nil {
return
}
o.HTTPSignerV4 = newDefaultV4Signer(*o)
}
func newDefaultV4Signer(o Options) *v4.Signer {
return v4.NewSigner(func(so *v4.SignerOptions) {
so.Logger = o.Logger
so.LogSigning = o.ClientLogMode.IsSigning()
})
}
func resolveIdempotencyTokenProvider(o *Options) {
if o.IdempotencyTokenProvider != nil {
return
}
o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader)
}
func addRetryMiddlewares(stack *middleware.Stack, o Options) error {
mo := retry.AddRetryMiddlewaresOptions{
Retryer: o.Retryer,
LogRetryAttempts: o.ClientLogMode.IsRetries(),
}
return retry.AddRetryMiddlewares(stack, mo)
}
// resolves dual-stack endpoint configuration
func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error {
if len(cfg.ConfigSources) == 0 {
return nil
}
value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources)
if err != nil {
return err
}
if found {
o.EndpointOptions.UseDualStackEndpoint = value
}
return nil
}
// resolves FIPS endpoint configuration
func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error {
if len(cfg.ConfigSources) == 0 {
return nil
}
value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources)
if err != nil {
return err
}
if found {
o.EndpointOptions.UseFIPSEndpoint = value
}
return nil
}
// IdempotencyTokenProvider interface for providing idempotency token
type IdempotencyTokenProvider interface {
GetIdempotencyToken() (string, error)
}
func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error {
return awsmiddleware.AddRequestIDRetrieverMiddleware(stack)
}
func addResponseErrorMiddleware(stack *middleware.Stack) error {
return awshttp.AddResponseErrorMiddleware(stack)
}
func addRequestResponseLogging(stack *middleware.Stack, o Options) error {
return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{
LogRequest: o.ClientLogMode.IsRequest(),
LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(),
LogResponse: o.ClientLogMode.IsResponse(),
LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(),
}, middleware.After)
}
| 455 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ssmcontacts
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"io/ioutil"
"net/http"
"strings"
"testing"
)
func TestClient_resolveRetryOptions(t *testing.T) {
nopClient := smithyhttp.ClientDoFunc(func(_ *http.Request) (*http.Response, error) {
return &http.Response{
StatusCode: 200,
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader("")),
}, nil
})
cases := map[string]struct {
defaultsMode aws.DefaultsMode
retryer aws.Retryer
retryMaxAttempts int
opRetryMaxAttempts *int
retryMode aws.RetryMode
expectClientRetryMode aws.RetryMode
expectClientMaxAttempts int
expectOpMaxAttempts int
}{
"defaults": {
defaultsMode: aws.DefaultsModeStandard,
expectClientRetryMode: aws.RetryModeStandard,
expectClientMaxAttempts: 3,
expectOpMaxAttempts: 3,
},
"custom default retry": {
retryMode: aws.RetryModeAdaptive,
retryMaxAttempts: 10,
expectClientRetryMode: aws.RetryModeAdaptive,
expectClientMaxAttempts: 10,
expectOpMaxAttempts: 10,
},
"custom op max attempts": {
retryMode: aws.RetryModeAdaptive,
retryMaxAttempts: 10,
opRetryMaxAttempts: aws.Int(2),
expectClientRetryMode: aws.RetryModeAdaptive,
expectClientMaxAttempts: 10,
expectOpMaxAttempts: 2,
},
"custom op no change max attempts": {
retryMode: aws.RetryModeAdaptive,
retryMaxAttempts: 10,
opRetryMaxAttempts: aws.Int(10),
expectClientRetryMode: aws.RetryModeAdaptive,
expectClientMaxAttempts: 10,
expectOpMaxAttempts: 10,
},
"custom op 0 max attempts": {
retryMode: aws.RetryModeAdaptive,
retryMaxAttempts: 10,
opRetryMaxAttempts: aws.Int(0),
expectClientRetryMode: aws.RetryModeAdaptive,
expectClientMaxAttempts: 10,
expectOpMaxAttempts: 10,
},
}
for name, c := range cases {
t.Run(name, func(t *testing.T) {
client := NewFromConfig(aws.Config{
DefaultsMode: c.defaultsMode,
Retryer: func() func() aws.Retryer {
if c.retryer == nil {
return nil
}
return func() aws.Retryer { return c.retryer }
}(),
HTTPClient: nopClient,
RetryMaxAttempts: c.retryMaxAttempts,
RetryMode: c.retryMode,
})
if e, a := c.expectClientRetryMode, client.options.RetryMode; e != a {
t.Errorf("expect %v retry mode, got %v", e, a)
}
if e, a := c.expectClientMaxAttempts, client.options.Retryer.MaxAttempts(); e != a {
t.Errorf("expect %v max attempts, got %v", e, a)
}
_, _, err := client.invokeOperation(context.Background(), "mockOperation", struct{}{},
[]func(*Options){
func(o *Options) {
if c.opRetryMaxAttempts == nil {
return
}
o.RetryMaxAttempts = *c.opRetryMaxAttempts
},
},
func(s *middleware.Stack, o Options) error {
s.Initialize.Clear()
s.Serialize.Clear()
s.Build.Clear()
s.Finalize.Clear()
s.Deserialize.Clear()
if e, a := c.expectOpMaxAttempts, o.Retryer.MaxAttempts(); e != a {
t.Errorf("expect %v op max attempts, got %v", e, a)
}
return nil
})
if err != nil {
t.Fatalf("expect no operation error, got %v", err)
}
})
}
}
| 124 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.