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 servicecatalog 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 a self-service action. func (c *Client) DeleteServiceAction(ctx context.Context, params *DeleteServiceActionInput, optFns ...func(*Options)) (*DeleteServiceActionOutput, error) { if params == nil { params = &DeleteServiceActionInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteServiceAction", params, optFns, c.addOperationDeleteServiceActionMiddlewares) if err != nil { return nil, err } out := result.(*DeleteServiceActionOutput) out.ResultMetadata = metadata return out, nil } type DeleteServiceActionInput struct { // The self-service action identifier. For example, act-fs7abcd89wxyz . // // This member is required. Id *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type DeleteServiceActionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteServiceActionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteServiceAction{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteServiceAction{}, 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 = addOpDeleteServiceActionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteServiceAction(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_opDeleteServiceAction(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DeleteServiceAction", } }
125
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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 specified TagOption. You cannot delete a TagOption if it is // associated with a product or portfolio. func (c *Client) DeleteTagOption(ctx context.Context, params *DeleteTagOptionInput, optFns ...func(*Options)) (*DeleteTagOptionOutput, error) { if params == nil { params = &DeleteTagOptionInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteTagOption", params, optFns, c.addOperationDeleteTagOptionMiddlewares) if err != nil { return nil, err } out := result.(*DeleteTagOptionOutput) out.ResultMetadata = metadata return out, nil } type DeleteTagOptionInput struct { // The TagOption identifier. // // This member is required. Id *string noSmithyDocumentSerde } type DeleteTagOptionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteTagOptionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteTagOption{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteTagOption{}, 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 = addOpDeleteTagOptionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTagOption(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_opDeleteTagOption(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DeleteTagOption", } }
121
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the specified constraint. func (c *Client) DescribeConstraint(ctx context.Context, params *DescribeConstraintInput, optFns ...func(*Options)) (*DescribeConstraintOutput, error) { if params == nil { params = &DescribeConstraintInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeConstraint", params, optFns, c.addOperationDescribeConstraintMiddlewares) if err != nil { return nil, err } out := result.(*DescribeConstraintOutput) out.ResultMetadata = metadata return out, nil } type DescribeConstraintInput struct { // The identifier of the constraint. // // This member is required. Id *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type DescribeConstraintOutput struct { // Information about the constraint. ConstraintDetail *types.ConstraintDetail // The constraint parameters. ConstraintParameters *string // The status of the current request. Status types.Status // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeConstraintMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeConstraint{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeConstraint{}, 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 = addOpDescribeConstraintValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeConstraint(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_opDescribeConstraint(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeConstraint", } }
136
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets the status of the specified copy product operation. func (c *Client) DescribeCopyProductStatus(ctx context.Context, params *DescribeCopyProductStatusInput, optFns ...func(*Options)) (*DescribeCopyProductStatusOutput, error) { if params == nil { params = &DescribeCopyProductStatusInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeCopyProductStatus", params, optFns, c.addOperationDescribeCopyProductStatusMiddlewares) if err != nil { return nil, err } out := result.(*DescribeCopyProductStatusOutput) out.ResultMetadata = metadata return out, nil } type DescribeCopyProductStatusInput struct { // The token for the copy product operation. This token is returned by CopyProduct . // // This member is required. CopyProductToken *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type DescribeCopyProductStatusOutput struct { // The status of the copy product operation. CopyProductStatus types.CopyProductStatus // The status message. StatusDetail *string // The identifier of the copied product. TargetProductId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeCopyProductStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeCopyProductStatus{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeCopyProductStatus{}, 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 = addOpDescribeCopyProductStatusValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCopyProductStatus(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_opDescribeCopyProductStatus(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeCopyProductStatus", } }
136
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the specified portfolio. A delegated admin is authorized // to invoke this command. func (c *Client) DescribePortfolio(ctx context.Context, params *DescribePortfolioInput, optFns ...func(*Options)) (*DescribePortfolioOutput, error) { if params == nil { params = &DescribePortfolioInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribePortfolio", params, optFns, c.addOperationDescribePortfolioMiddlewares) if err != nil { return nil, err } out := result.(*DescribePortfolioOutput) out.ResultMetadata = metadata return out, nil } type DescribePortfolioInput struct { // The portfolio identifier. // // This member is required. Id *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type DescribePortfolioOutput struct { // Information about the associated budgets. Budgets []types.BudgetDetail // Information about the portfolio. PortfolioDetail *types.PortfolioDetail // Information about the TagOptions associated with the portfolio. TagOptions []types.TagOptionDetail // Information about the tags associated with the portfolio. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribePortfolioMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribePortfolio{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribePortfolio{}, 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 = addOpDescribePortfolioValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribePortfolio(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_opDescribePortfolio(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribePortfolio", } }
140
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Returns a summary of each of the portfolio shares that were created for the // specified portfolio. You can use this API to determine which accounts or // organizational nodes this portfolio have been shared, whether the recipient // entity has imported the share, and whether TagOptions are included with the // share. The PortfolioId and Type parameters are both required. func (c *Client) DescribePortfolioShares(ctx context.Context, params *DescribePortfolioSharesInput, optFns ...func(*Options)) (*DescribePortfolioSharesOutput, error) { if params == nil { params = &DescribePortfolioSharesInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribePortfolioShares", params, optFns, c.addOperationDescribePortfolioSharesMiddlewares) if err != nil { return nil, err } out := result.(*DescribePortfolioSharesOutput) out.ResultMetadata = metadata return out, nil } type DescribePortfolioSharesInput struct { // The unique identifier of the portfolio for which shares will be retrieved. // // This member is required. PortfolioId *string // The type of portfolio share to summarize. This field acts as a filter on the // type of portfolio share, which can be one of the following: 1. ACCOUNT - // Represents an external account to account share. 2. ORGANIZATION - Represents a // share to an organization. This share is available to every account in the // organization. 3. ORGANIZATIONAL_UNIT - Represents a share to an organizational // unit. 4. ORGANIZATION_MEMBER_ACCOUNT - Represents a share to an account in the // organization. // // This member is required. Type types.DescribePortfolioShareType // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type DescribePortfolioSharesOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Summaries about each of the portfolio shares. PortfolioShareDetails []types.PortfolioShareDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribePortfolioSharesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribePortfolioShares{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribePortfolioShares{}, 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 = addOpDescribePortfolioSharesValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribePortfolioShares(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 } // DescribePortfolioSharesAPIClient is a client that implements the // DescribePortfolioShares operation. type DescribePortfolioSharesAPIClient interface { DescribePortfolioShares(context.Context, *DescribePortfolioSharesInput, ...func(*Options)) (*DescribePortfolioSharesOutput, error) } var _ DescribePortfolioSharesAPIClient = (*Client)(nil) // DescribePortfolioSharesPaginatorOptions is the paginator options for // DescribePortfolioShares type DescribePortfolioSharesPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // DescribePortfolioSharesPaginator is a paginator for DescribePortfolioShares type DescribePortfolioSharesPaginator struct { options DescribePortfolioSharesPaginatorOptions client DescribePortfolioSharesAPIClient params *DescribePortfolioSharesInput nextToken *string firstPage bool } // NewDescribePortfolioSharesPaginator returns a new // DescribePortfolioSharesPaginator func NewDescribePortfolioSharesPaginator(client DescribePortfolioSharesAPIClient, params *DescribePortfolioSharesInput, optFns ...func(*DescribePortfolioSharesPaginatorOptions)) *DescribePortfolioSharesPaginator { if params == nil { params = &DescribePortfolioSharesInput{} } options := DescribePortfolioSharesPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &DescribePortfolioSharesPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *DescribePortfolioSharesPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next DescribePortfolioShares page. func (p *DescribePortfolioSharesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribePortfolioSharesOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.DescribePortfolioShares(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opDescribePortfolioShares(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribePortfolioShares", } }
240
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets the status of the specified portfolio share operation. This API can only // be called by the management account in the organization or by a delegated admin. func (c *Client) DescribePortfolioShareStatus(ctx context.Context, params *DescribePortfolioShareStatusInput, optFns ...func(*Options)) (*DescribePortfolioShareStatusOutput, error) { if params == nil { params = &DescribePortfolioShareStatusInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribePortfolioShareStatus", params, optFns, c.addOperationDescribePortfolioShareStatusMiddlewares) if err != nil { return nil, err } out := result.(*DescribePortfolioShareStatusOutput) out.ResultMetadata = metadata return out, nil } type DescribePortfolioShareStatusInput struct { // The token for the portfolio share operation. This token is returned either by // CreatePortfolioShare or by DeletePortfolioShare. // // This member is required. PortfolioShareToken *string noSmithyDocumentSerde } type DescribePortfolioShareStatusOutput struct { // Organization node identifier. It can be either account id, organizational unit // id or organization id. OrganizationNodeValue *string // The portfolio identifier. PortfolioId *string // The token for the portfolio share operation. For example, share-6v24abcdefghi . PortfolioShareToken *string // Information about the portfolio share operation. ShareDetails *types.ShareDetails // Status of the portfolio share operation. Status types.ShareStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribePortfolioShareStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribePortfolioShareStatus{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribePortfolioShareStatus{}, 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 = addOpDescribePortfolioShareStatusValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribePortfolioShareStatus(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_opDescribePortfolioShareStatus(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribePortfolioShareStatus", } }
140
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the specified product. Running this operation with // administrator access results in a failure. DescribeProductAsAdmin should be // used instead. func (c *Client) DescribeProduct(ctx context.Context, params *DescribeProductInput, optFns ...func(*Options)) (*DescribeProductOutput, error) { if params == nil { params = &DescribeProductInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeProduct", params, optFns, c.addOperationDescribeProductMiddlewares) if err != nil { return nil, err } out := result.(*DescribeProductOutput) out.ResultMetadata = metadata return out, nil } type DescribeProductInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The product identifier. Id *string // The product name. Name *string noSmithyDocumentSerde } type DescribeProductOutput struct { // Information about the associated budgets. Budgets []types.BudgetDetail // Information about the associated launch paths. LaunchPaths []types.LaunchPath // Summary information about the product view. ProductViewSummary *types.ProductViewSummary // Information about the provisioning artifacts for the specified product. ProvisioningArtifacts []types.ProvisioningArtifact // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeProductMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeProduct{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeProduct{}, 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_opDescribeProduct(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_opDescribeProduct(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeProduct", } }
139
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the specified product. This operation is run with // administrator access. func (c *Client) DescribeProductAsAdmin(ctx context.Context, params *DescribeProductAsAdminInput, optFns ...func(*Options)) (*DescribeProductAsAdminOutput, error) { if params == nil { params = &DescribeProductAsAdminInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeProductAsAdmin", params, optFns, c.addOperationDescribeProductAsAdminMiddlewares) if err != nil { return nil, err } out := result.(*DescribeProductAsAdminOutput) out.ResultMetadata = metadata return out, nil } type DescribeProductAsAdminInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The product identifier. Id *string // The product name. Name *string // The unique identifier of the shared portfolio that the specified product is // associated with. You can provide this parameter to retrieve the shared // TagOptions associated with the product. If this parameter is provided and if // TagOptions sharing is enabled in the portfolio share, the API returns both local // and shared TagOptions associated with the product. Otherwise only local // TagOptions will be returned. SourcePortfolioId *string noSmithyDocumentSerde } type DescribeProductAsAdminOutput struct { // Information about the associated budgets. Budgets []types.BudgetDetail // Information about the product view. ProductViewDetail *types.ProductViewDetail // Information about the provisioning artifacts (also known as versions) for the // specified product. ProvisioningArtifactSummaries []types.ProvisioningArtifactSummary // Information about the TagOptions associated with the product. TagOptions []types.TagOptionDetail // Information about the tags associated with the product. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeProductAsAdminMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeProductAsAdmin{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeProductAsAdmin{}, 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_opDescribeProductAsAdmin(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_opDescribeProductAsAdmin(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeProductAsAdmin", } }
150
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the specified product. func (c *Client) DescribeProductView(ctx context.Context, params *DescribeProductViewInput, optFns ...func(*Options)) (*DescribeProductViewOutput, error) { if params == nil { params = &DescribeProductViewInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeProductView", params, optFns, c.addOperationDescribeProductViewMiddlewares) if err != nil { return nil, err } out := result.(*DescribeProductViewOutput) out.ResultMetadata = metadata return out, nil } type DescribeProductViewInput struct { // The product view identifier. // // This member is required. Id *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type DescribeProductViewOutput struct { // Summary information about the product. ProductViewSummary *types.ProductViewSummary // Information about the provisioning artifacts for the product. ProvisioningArtifacts []types.ProvisioningArtifact // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeProductViewMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeProductView{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeProductView{}, 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 = addOpDescribeProductViewValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeProductView(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_opDescribeProductView(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeProductView", } }
133
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the specified provisioned product. func (c *Client) DescribeProvisionedProduct(ctx context.Context, params *DescribeProvisionedProductInput, optFns ...func(*Options)) (*DescribeProvisionedProductOutput, error) { if params == nil { params = &DescribeProvisionedProductInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeProvisionedProduct", params, optFns, c.addOperationDescribeProvisionedProductMiddlewares) if err != nil { return nil, err } out := result.(*DescribeProvisionedProductOutput) out.ResultMetadata = metadata return out, nil } // DescribeProvisionedProductAPI input structure. AcceptLanguage - [Optional] The // language code for localization. Id - [Optional] The provisioned product // identifier. Name - [Optional] Another provisioned product identifier. Customers // must provide either Id or Name. type DescribeProvisionedProductInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The provisioned product identifier. You must provide the name or ID, but not // both. If you do not provide a name or ID, or you provide both name and ID, an // InvalidParametersException will occur. Id *string // The name of the provisioned product. You must provide the name or ID, but not // both. If you do not provide a name or ID, or you provide both name and ID, an // InvalidParametersException will occur. Name *string noSmithyDocumentSerde } type DescribeProvisionedProductOutput struct { // Any CloudWatch dashboards that were created when provisioning the product. CloudWatchDashboards []types.CloudWatchDashboard // Information about the provisioned product. ProvisionedProductDetail *types.ProvisionedProductDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeProvisionedProductMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeProvisionedProduct{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeProvisionedProduct{}, 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_opDescribeProvisionedProduct(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_opDescribeProvisionedProduct(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeProvisionedProduct", } }
139
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the resource changes for the specified plan. func (c *Client) DescribeProvisionedProductPlan(ctx context.Context, params *DescribeProvisionedProductPlanInput, optFns ...func(*Options)) (*DescribeProvisionedProductPlanOutput, error) { if params == nil { params = &DescribeProvisionedProductPlanInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeProvisionedProductPlan", params, optFns, c.addOperationDescribeProvisionedProductPlanMiddlewares) if err != nil { return nil, err } out := result.(*DescribeProvisionedProductPlanOutput) out.ResultMetadata = metadata return out, nil } type DescribeProvisionedProductPlanInput struct { // The plan identifier. // // This member is required. PlanId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type DescribeProvisionedProductPlanOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Information about the plan. ProvisionedProductPlanDetails *types.ProvisionedProductPlanDetails // Information about the resource changes that will occur when the plan is // executed. ResourceChanges []types.ResourceChange // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeProvisionedProductPlanMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeProvisionedProductPlan{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeProvisionedProductPlan{}, 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 = addOpDescribeProvisionedProductPlanValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeProvisionedProductPlan(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_opDescribeProvisionedProductPlan(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeProvisionedProductPlan", } }
145
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the specified provisioning artifact (also known as a // version) for the specified product. func (c *Client) DescribeProvisioningArtifact(ctx context.Context, params *DescribeProvisioningArtifactInput, optFns ...func(*Options)) (*DescribeProvisioningArtifactOutput, error) { if params == nil { params = &DescribeProvisioningArtifactInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeProvisioningArtifact", params, optFns, c.addOperationDescribeProvisioningArtifactMiddlewares) if err != nil { return nil, err } out := result.(*DescribeProvisioningArtifactOutput) out.ResultMetadata = metadata return out, nil } type DescribeProvisioningArtifactInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // Indicates if the API call response does or does not include additional details // about the provisioning parameters. IncludeProvisioningArtifactParameters bool // The product identifier. ProductId *string // The product name. ProductName *string // The identifier of the provisioning artifact. ProvisioningArtifactId *string // The provisioning artifact name. ProvisioningArtifactName *string // Indicates whether a verbose level of detail is enabled. Verbose bool noSmithyDocumentSerde } type DescribeProvisioningArtifactOutput struct { // The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. Info map[string]string // Information about the provisioning artifact. ProvisioningArtifactDetail *types.ProvisioningArtifactDetail // Information about the parameters used to provision the product. ProvisioningArtifactParameters []types.ProvisioningArtifactParameter // The status of the current request. Status types.Status // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeProvisioningArtifactMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeProvisioningArtifact{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeProvisioningArtifact{}, 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_opDescribeProvisioningArtifact(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_opDescribeProvisioningArtifact(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeProvisioningArtifact", } }
151
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the configuration required to provision the specified // product using the specified provisioning artifact. If the output contains a // TagOption key with an empty list of values, there is a TagOption conflict for // that key. The end user cannot take action to fix the conflict, and launch is not // blocked. In subsequent calls to ProvisionProduct , do not include conflicted // TagOption keys as tags, or this causes the error "Parameter validation failed: // Missing required parameter in Tags[N]:Value". Tag the provisioned product with // the value sc-tagoption-conflict-portfolioId-productId . func (c *Client) DescribeProvisioningParameters(ctx context.Context, params *DescribeProvisioningParametersInput, optFns ...func(*Options)) (*DescribeProvisioningParametersOutput, error) { if params == nil { params = &DescribeProvisioningParametersInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeProvisioningParameters", params, optFns, c.addOperationDescribeProvisioningParametersMiddlewares) if err != nil { return nil, err } out := result.(*DescribeProvisioningParametersOutput) out.ResultMetadata = metadata return out, nil } type DescribeProvisioningParametersInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The path identifier of the product. This value is optional if the product has a // default path, and required if the product has more than one path. To list the // paths for a product, use ListLaunchPaths . You must provide the name or ID, but // not both. PathId *string // The name of the path. You must provide the name or ID, but not both. PathName *string // The product identifier. You must provide the product name or ID, but not both. ProductId *string // The name of the product. You must provide the name or ID, but not both. ProductName *string // The identifier of the provisioning artifact. You must provide the name or ID, // but not both. ProvisioningArtifactId *string // The name of the provisioning artifact. You must provide the name or ID, but not // both. ProvisioningArtifactName *string noSmithyDocumentSerde } type DescribeProvisioningParametersOutput struct { // Information about the constraints used to provision the product. ConstraintSummaries []types.ConstraintSummary // A list of the keys and descriptions of the outputs. These outputs can be // referenced from a provisioned product launched from this provisioning artifact. ProvisioningArtifactOutputKeys []types.ProvisioningArtifactOutput // The output of the provisioning artifact. // // Deprecated: This property is deprecated and returns the Id and Description of // the Provisioning Artifact. Use ProvisioningArtifactOutputKeys instead to get the // Keys and Descriptions of the outputs. ProvisioningArtifactOutputs []types.ProvisioningArtifactOutput // Information about the parameters used to provision the product. ProvisioningArtifactParameters []types.ProvisioningArtifactParameter // An object that contains information about preferences, such as Regions and // accounts, for the provisioning artifact. ProvisioningArtifactPreferences *types.ProvisioningArtifactPreferences // Information about the TagOptions associated with the resource. TagOptions []types.TagOptionSummary // Any additional metadata specifically related to the provisioning of the // product. For example, see the Version field of the CloudFormation template. UsageInstructions []types.UsageInstruction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeProvisioningParametersMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeProvisioningParameters{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeProvisioningParameters{}, 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_opDescribeProvisioningParameters(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_opDescribeProvisioningParameters(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeProvisioningParameters", } }
177
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the specified request operation. Use this operation // after calling a request operation (for example, ProvisionProduct , // TerminateProvisionedProduct , or UpdateProvisionedProduct ). If a provisioned // product was transferred to a new owner using UpdateProvisionedProductProperties // , the new owner will be able to describe all past records for that product. The // previous owner will no longer be able to describe the records, but will be able // to use ListRecordHistory to see the product's history from when he was the // owner. func (c *Client) DescribeRecord(ctx context.Context, params *DescribeRecordInput, optFns ...func(*Options)) (*DescribeRecordOutput, error) { if params == nil { params = &DescribeRecordInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeRecord", params, optFns, c.addOperationDescribeRecordMiddlewares) if err != nil { return nil, err } out := result.(*DescribeRecordOutput) out.ResultMetadata = metadata return out, nil } type DescribeRecordInput struct { // The record identifier of the provisioned product. This identifier is returned // by the request operation. // // This member is required. Id *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type DescribeRecordOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Information about the product. RecordDetail *types.RecordDetail // Information about the product created as the result of a request. For example, // the output for a CloudFormation-backed product that creates an S3 bucket would // include the S3 bucket URL. RecordOutputs []types.RecordOutput // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeRecordMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeRecord{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeRecord{}, 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 = addOpDescribeRecordValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeRecord(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_opDescribeRecord(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeRecord", } }
154
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Describes a self-service action. func (c *Client) DescribeServiceAction(ctx context.Context, params *DescribeServiceActionInput, optFns ...func(*Options)) (*DescribeServiceActionOutput, error) { if params == nil { params = &DescribeServiceActionInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeServiceAction", params, optFns, c.addOperationDescribeServiceActionMiddlewares) if err != nil { return nil, err } out := result.(*DescribeServiceActionOutput) out.ResultMetadata = metadata return out, nil } type DescribeServiceActionInput struct { // The self-service action identifier. // // This member is required. Id *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type DescribeServiceActionOutput struct { // Detailed information about the self-service action. ServiceActionDetail *types.ServiceActionDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeServiceActionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeServiceAction{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeServiceAction{}, 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 = addOpDescribeServiceActionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeServiceAction(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_opDescribeServiceAction(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeServiceAction", } }
130
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Finds the default parameters for a specific self-service action on a specific // provisioned product and returns a map of the results to the user. func (c *Client) DescribeServiceActionExecutionParameters(ctx context.Context, params *DescribeServiceActionExecutionParametersInput, optFns ...func(*Options)) (*DescribeServiceActionExecutionParametersOutput, error) { if params == nil { params = &DescribeServiceActionExecutionParametersInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeServiceActionExecutionParameters", params, optFns, c.addOperationDescribeServiceActionExecutionParametersMiddlewares) if err != nil { return nil, err } out := result.(*DescribeServiceActionExecutionParametersOutput) out.ResultMetadata = metadata return out, nil } type DescribeServiceActionExecutionParametersInput struct { // The identifier of the provisioned product. // // This member is required. ProvisionedProductId *string // The self-service action identifier. // // This member is required. ServiceActionId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type DescribeServiceActionExecutionParametersOutput struct { // The parameters of the self-service action. ServiceActionParameters []types.ExecutionParameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeServiceActionExecutionParametersMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeServiceActionExecutionParameters{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeServiceActionExecutionParameters{}, 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 = addOpDescribeServiceActionExecutionParametersValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeServiceActionExecutionParameters(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_opDescribeServiceActionExecutionParameters(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeServiceActionExecutionParameters", } }
136
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the specified TagOption. func (c *Client) DescribeTagOption(ctx context.Context, params *DescribeTagOptionInput, optFns ...func(*Options)) (*DescribeTagOptionOutput, error) { if params == nil { params = &DescribeTagOptionInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeTagOption", params, optFns, c.addOperationDescribeTagOptionMiddlewares) if err != nil { return nil, err } out := result.(*DescribeTagOptionOutput) out.ResultMetadata = metadata return out, nil } type DescribeTagOptionInput struct { // The TagOption identifier. // // This member is required. Id *string noSmithyDocumentSerde } type DescribeTagOptionOutput struct { // Information about the TagOption. TagOptionDetail *types.TagOptionDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeTagOptionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeTagOption{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeTagOption{}, 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 = addOpDescribeTagOptionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTagOption(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_opDescribeTagOption(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DescribeTagOption", } }
125
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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" ) // Disable portfolio sharing through the Organizations service. This command will // not delete your current shares, but prevents you from creating new shares // throughout your organization. Current shares are not kept in sync with your // organization structure if the structure changes after calling this API. Only the // management account in the organization can call this API. You cannot call this // API if there are active delegated administrators in the organization. Note that // a delegated administrator is not authorized to invoke // DisableAWSOrganizationsAccess . If you share an Service Catalog portfolio in an // organization within Organizations, and then disable Organizations access for // Service Catalog, the portfolio access permissions will not sync with the latest // changes to the organization structure. Specifically, accounts that you removed // from the organization after disabling Service Catalog access will retain access // to the previously shared portfolio. func (c *Client) DisableAWSOrganizationsAccess(ctx context.Context, params *DisableAWSOrganizationsAccessInput, optFns ...func(*Options)) (*DisableAWSOrganizationsAccessOutput, error) { if params == nil { params = &DisableAWSOrganizationsAccessInput{} } result, metadata, err := c.invokeOperation(ctx, "DisableAWSOrganizationsAccess", params, optFns, c.addOperationDisableAWSOrganizationsAccessMiddlewares) if err != nil { return nil, err } out := result.(*DisableAWSOrganizationsAccessOutput) out.ResultMetadata = metadata return out, nil } type DisableAWSOrganizationsAccessInput struct { noSmithyDocumentSerde } type DisableAWSOrganizationsAccessOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDisableAWSOrganizationsAccessMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisableAWSOrganizationsAccess{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisableAWSOrganizationsAccess{}, 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_opDisableAWSOrganizationsAccess(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_opDisableAWSOrganizationsAccess(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DisableAWSOrganizationsAccess", } }
123
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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" ) // Disassociates the specified budget from the specified resource. func (c *Client) DisassociateBudgetFromResource(ctx context.Context, params *DisassociateBudgetFromResourceInput, optFns ...func(*Options)) (*DisassociateBudgetFromResourceOutput, error) { if params == nil { params = &DisassociateBudgetFromResourceInput{} } result, metadata, err := c.invokeOperation(ctx, "DisassociateBudgetFromResource", params, optFns, c.addOperationDisassociateBudgetFromResourceMiddlewares) if err != nil { return nil, err } out := result.(*DisassociateBudgetFromResourceOutput) out.ResultMetadata = metadata return out, nil } type DisassociateBudgetFromResourceInput struct { // The name of the budget you want to disassociate. // // This member is required. BudgetName *string // The resource identifier you want to disassociate from. Either a portfolio-id or // a product-id. // // This member is required. ResourceId *string noSmithyDocumentSerde } type DisassociateBudgetFromResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDisassociateBudgetFromResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateBudgetFromResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateBudgetFromResource{}, 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 = addOpDisassociateBudgetFromResourceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateBudgetFromResource(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_opDisassociateBudgetFromResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DisassociateBudgetFromResource", } }
126
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Disassociates a previously associated principal ARN from a specified portfolio. // The PrincipalType and PrincipalARN must match the // AssociatePrincipalWithPortfolio call request details. For example, to // disassociate an association created with a PrincipalARN of PrincipalType IAM // you must use the PrincipalType IAM when calling // DisassociatePrincipalFromPortfolio . For portfolios that have been shared with // principal name sharing enabled: after disassociating a principal, share // recipient accounts will no longer be able to provision products in this // portfolio using a role matching the name of the associated principal. For more // information, review associate-principal-with-portfolio (https://docs.aws.amazon.com/cli/latest/reference/servicecatalog/associate-principal-with-portfolio.html#options) // in the Amazon Web Services CLI Command Reference. If you disassociate a // principal from a portfolio, with PrincipalType as IAM , the same principal will // still have access to the portfolio if it matches one of the associated // principals of type IAM_PATTERN . To fully remove access for a principal, verify // all the associated Principals of type IAM_PATTERN , and then ensure you // disassociate any IAM_PATTERN principals that match the principal whose access // you are removing. func (c *Client) DisassociatePrincipalFromPortfolio(ctx context.Context, params *DisassociatePrincipalFromPortfolioInput, optFns ...func(*Options)) (*DisassociatePrincipalFromPortfolioOutput, error) { if params == nil { params = &DisassociatePrincipalFromPortfolioInput{} } result, metadata, err := c.invokeOperation(ctx, "DisassociatePrincipalFromPortfolio", params, optFns, c.addOperationDisassociatePrincipalFromPortfolioMiddlewares) if err != nil { return nil, err } out := result.(*DisassociatePrincipalFromPortfolioOutput) out.ResultMetadata = metadata return out, nil } type DisassociatePrincipalFromPortfolioInput struct { // The portfolio identifier. // // This member is required. PortfolioId *string // The ARN of the principal (user, role, or group). This field allows an ARN with // no accountID with or without wildcard characters if PrincipalType is IAM_PATTERN // . // // This member is required. PrincipalARN *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The supported value is IAM if you use a fully defined ARN, or IAM_PATTERN if // you specify an IAM ARN with no AccountId, with or without wildcard characters. PrincipalType types.PrincipalType noSmithyDocumentSerde } type DisassociatePrincipalFromPortfolioOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDisassociatePrincipalFromPortfolioMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociatePrincipalFromPortfolio{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociatePrincipalFromPortfolio{}, 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 = addOpDisassociatePrincipalFromPortfolioValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociatePrincipalFromPortfolio(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_opDisassociatePrincipalFromPortfolio(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DisassociatePrincipalFromPortfolio", } }
153
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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" ) // Disassociates the specified product from the specified portfolio. A delegated // admin is authorized to invoke this command. func (c *Client) DisassociateProductFromPortfolio(ctx context.Context, params *DisassociateProductFromPortfolioInput, optFns ...func(*Options)) (*DisassociateProductFromPortfolioOutput, error) { if params == nil { params = &DisassociateProductFromPortfolioInput{} } result, metadata, err := c.invokeOperation(ctx, "DisassociateProductFromPortfolio", params, optFns, c.addOperationDisassociateProductFromPortfolioMiddlewares) if err != nil { return nil, err } out := result.(*DisassociateProductFromPortfolioOutput) out.ResultMetadata = metadata return out, nil } type DisassociateProductFromPortfolioInput struct { // The portfolio identifier. // // This member is required. PortfolioId *string // The product identifier. // // This member is required. ProductId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type DisassociateProductFromPortfolioOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDisassociateProductFromPortfolioMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateProductFromPortfolio{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateProductFromPortfolio{}, 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 = addOpDisassociateProductFromPortfolioValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateProductFromPortfolio(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_opDisassociateProductFromPortfolio(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DisassociateProductFromPortfolio", } }
131
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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" ) // Disassociates the specified self-service action association from the specified // provisioning artifact. func (c *Client) DisassociateServiceActionFromProvisioningArtifact(ctx context.Context, params *DisassociateServiceActionFromProvisioningArtifactInput, optFns ...func(*Options)) (*DisassociateServiceActionFromProvisioningArtifactOutput, error) { if params == nil { params = &DisassociateServiceActionFromProvisioningArtifactInput{} } result, metadata, err := c.invokeOperation(ctx, "DisassociateServiceActionFromProvisioningArtifact", params, optFns, c.addOperationDisassociateServiceActionFromProvisioningArtifactMiddlewares) if err != nil { return nil, err } out := result.(*DisassociateServiceActionFromProvisioningArtifactOutput) out.ResultMetadata = metadata return out, nil } type DisassociateServiceActionFromProvisioningArtifactInput struct { // The product identifier. For example, prod-abcdzk7xy33qa . // // This member is required. ProductId *string // The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne . // // This member is required. ProvisioningArtifactId *string // The self-service action identifier. For example, act-fs7abcd89wxyz . // // This member is required. ServiceActionId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type DisassociateServiceActionFromProvisioningArtifactOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDisassociateServiceActionFromProvisioningArtifactMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateServiceActionFromProvisioningArtifact{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateServiceActionFromProvisioningArtifact{}, 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 = addOpDisassociateServiceActionFromProvisioningArtifactValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateServiceActionFromProvisioningArtifact(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_opDisassociateServiceActionFromProvisioningArtifact(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DisassociateServiceActionFromProvisioningArtifact", } }
136
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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" ) // Disassociates the specified TagOption from the specified resource. func (c *Client) DisassociateTagOptionFromResource(ctx context.Context, params *DisassociateTagOptionFromResourceInput, optFns ...func(*Options)) (*DisassociateTagOptionFromResourceOutput, error) { if params == nil { params = &DisassociateTagOptionFromResourceInput{} } result, metadata, err := c.invokeOperation(ctx, "DisassociateTagOptionFromResource", params, optFns, c.addOperationDisassociateTagOptionFromResourceMiddlewares) if err != nil { return nil, err } out := result.(*DisassociateTagOptionFromResourceOutput) out.ResultMetadata = metadata return out, nil } type DisassociateTagOptionFromResourceInput struct { // The resource identifier. // // This member is required. ResourceId *string // The TagOption identifier. // // This member is required. TagOptionId *string noSmithyDocumentSerde } type DisassociateTagOptionFromResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDisassociateTagOptionFromResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateTagOptionFromResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateTagOptionFromResource{}, 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 = addOpDisassociateTagOptionFromResourceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateTagOptionFromResource(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_opDisassociateTagOptionFromResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DisassociateTagOptionFromResource", } }
125
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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" ) // Enable portfolio sharing feature through Organizations. This API will allow // Service Catalog to receive updates on your organization in order to sync your // shares with the current structure. This API can only be called by the management // account in the organization. When you call this API, Service Catalog calls // organizations:EnableAWSServiceAccess on your behalf so that your shares stay in // sync with any changes in your Organizations structure. Note that a delegated // administrator is not authorized to invoke EnableAWSOrganizationsAccess . If you // have previously disabled Organizations access for Service Catalog, and then // enable access again, the portfolio access permissions might not sync with the // latest changes to the organization structure. Specifically, accounts that you // removed from the organization after disabling Service Catalog access, and before // you enabled access again, can retain access to the previously shared portfolio. // As a result, an account that has been removed from the organization might still // be able to create or manage Amazon Web Services resources when it is no longer // authorized to do so. Amazon Web Services is working to resolve this issue. func (c *Client) EnableAWSOrganizationsAccess(ctx context.Context, params *EnableAWSOrganizationsAccessInput, optFns ...func(*Options)) (*EnableAWSOrganizationsAccessOutput, error) { if params == nil { params = &EnableAWSOrganizationsAccessInput{} } result, metadata, err := c.invokeOperation(ctx, "EnableAWSOrganizationsAccess", params, optFns, c.addOperationEnableAWSOrganizationsAccessMiddlewares) if err != nil { return nil, err } out := result.(*EnableAWSOrganizationsAccessOutput) out.ResultMetadata = metadata return out, nil } type EnableAWSOrganizationsAccessInput struct { noSmithyDocumentSerde } type EnableAWSOrganizationsAccessOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationEnableAWSOrganizationsAccessMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpEnableAWSOrganizationsAccess{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpEnableAWSOrganizationsAccess{}, 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_opEnableAWSOrganizationsAccess(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_opEnableAWSOrganizationsAccess(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "EnableAWSOrganizationsAccess", } }
125
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Provisions or modifies a product based on the resource changes for the // specified plan. func (c *Client) ExecuteProvisionedProductPlan(ctx context.Context, params *ExecuteProvisionedProductPlanInput, optFns ...func(*Options)) (*ExecuteProvisionedProductPlanOutput, error) { if params == nil { params = &ExecuteProvisionedProductPlanInput{} } result, metadata, err := c.invokeOperation(ctx, "ExecuteProvisionedProductPlan", params, optFns, c.addOperationExecuteProvisionedProductPlanMiddlewares) if err != nil { return nil, err } out := result.(*ExecuteProvisionedProductPlanOutput) out.ResultMetadata = metadata return out, nil } type ExecuteProvisionedProductPlanInput struct { // A unique identifier that you provide to ensure idempotency. If multiple // requests differ only by the idempotency token, the same response is returned for // each repeated request. // // This member is required. IdempotencyToken *string // The plan identifier. // // This member is required. PlanId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type ExecuteProvisionedProductPlanOutput struct { // Information about the result of provisioning the product. RecordDetail *types.RecordDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationExecuteProvisionedProductPlanMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpExecuteProvisionedProductPlan{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpExecuteProvisionedProductPlan{}, 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_opExecuteProvisionedProductPlanMiddleware(stack, options); err != nil { return err } if err = addOpExecuteProvisionedProductPlanValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opExecuteProvisionedProductPlan(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_initializeOpExecuteProvisionedProductPlan struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpExecuteProvisionedProductPlan) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpExecuteProvisionedProductPlan) 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.(*ExecuteProvisionedProductPlanInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *ExecuteProvisionedProductPlanInput ") } if input.IdempotencyToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.IdempotencyToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opExecuteProvisionedProductPlanMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpExecuteProvisionedProductPlan{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opExecuteProvisionedProductPlan(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ExecuteProvisionedProductPlan", } }
175
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Executes a self-service action against a provisioned product. func (c *Client) ExecuteProvisionedProductServiceAction(ctx context.Context, params *ExecuteProvisionedProductServiceActionInput, optFns ...func(*Options)) (*ExecuteProvisionedProductServiceActionOutput, error) { if params == nil { params = &ExecuteProvisionedProductServiceActionInput{} } result, metadata, err := c.invokeOperation(ctx, "ExecuteProvisionedProductServiceAction", params, optFns, c.addOperationExecuteProvisionedProductServiceActionMiddlewares) if err != nil { return nil, err } out := result.(*ExecuteProvisionedProductServiceActionOutput) out.ResultMetadata = metadata return out, nil } type ExecuteProvisionedProductServiceActionInput struct { // An idempotency token that uniquely identifies the execute request. // // This member is required. ExecuteToken *string // The identifier of the provisioned product. // // This member is required. ProvisionedProductId *string // The self-service action identifier. For example, act-fs7abcd89wxyz . // // This member is required. ServiceActionId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // A map of all self-service action parameters and their values. If a provided // parameter is of a special type, such as TARGET , the provided value will // override the default value generated by Service Catalog. If the parameters field // is not provided, no additional parameters are passed and default values will be // used for any special parameters such as TARGET . Parameters map[string][]string noSmithyDocumentSerde } type ExecuteProvisionedProductServiceActionOutput struct { // An object containing detailed information about the result of provisioning the // product. RecordDetail *types.RecordDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationExecuteProvisionedProductServiceActionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpExecuteProvisionedProductServiceAction{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpExecuteProvisionedProductServiceAction{}, 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_opExecuteProvisionedProductServiceActionMiddleware(stack, options); err != nil { return err } if err = addOpExecuteProvisionedProductServiceActionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opExecuteProvisionedProductServiceAction(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_initializeOpExecuteProvisionedProductServiceAction struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpExecuteProvisionedProductServiceAction) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpExecuteProvisionedProductServiceAction) 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.(*ExecuteProvisionedProductServiceActionInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *ExecuteProvisionedProductServiceActionInput ") } if input.ExecuteToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.ExecuteToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opExecuteProvisionedProductServiceActionMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpExecuteProvisionedProductServiceAction{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opExecuteProvisionedProductServiceAction(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ExecuteProvisionedProductServiceAction", } }
185
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Get the Access Status for Organizations portfolio share feature. This API can // only be called by the management account in the organization or by a delegated // admin. func (c *Client) GetAWSOrganizationsAccessStatus(ctx context.Context, params *GetAWSOrganizationsAccessStatusInput, optFns ...func(*Options)) (*GetAWSOrganizationsAccessStatusOutput, error) { if params == nil { params = &GetAWSOrganizationsAccessStatusInput{} } result, metadata, err := c.invokeOperation(ctx, "GetAWSOrganizationsAccessStatus", params, optFns, c.addOperationGetAWSOrganizationsAccessStatusMiddlewares) if err != nil { return nil, err } out := result.(*GetAWSOrganizationsAccessStatusOutput) out.ResultMetadata = metadata return out, nil } type GetAWSOrganizationsAccessStatusInput struct { noSmithyDocumentSerde } type GetAWSOrganizationsAccessStatusOutput struct { // The status of the portfolio share feature. AccessStatus types.AccessStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationGetAWSOrganizationsAccessStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetAWSOrganizationsAccessStatus{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetAWSOrganizationsAccessStatus{}, 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_opGetAWSOrganizationsAccessStatus(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_opGetAWSOrganizationsAccessStatus(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "GetAWSOrganizationsAccessStatus", } }
118
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // This API takes either a ProvisonedProductId or a ProvisionedProductName , along // with a list of one or more output keys, and responds with the key/value pairs of // those outputs. func (c *Client) GetProvisionedProductOutputs(ctx context.Context, params *GetProvisionedProductOutputsInput, optFns ...func(*Options)) (*GetProvisionedProductOutputsOutput, error) { if params == nil { params = &GetProvisionedProductOutputsInput{} } result, metadata, err := c.invokeOperation(ctx, "GetProvisionedProductOutputs", params, optFns, c.addOperationGetProvisionedProductOutputsMiddlewares) if err != nil { return nil, err } out := result.(*GetProvisionedProductOutputsOutput) out.ResultMetadata = metadata return out, nil } type GetProvisionedProductOutputsInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The list of keys that the API should return with their values. If none are // provided, the API will return all outputs of the provisioned product. OutputKeys []string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string // The identifier of the provisioned product that you want the outputs from. ProvisionedProductId *string // The name of the provisioned product that you want the outputs from. ProvisionedProductName *string noSmithyDocumentSerde } type GetProvisionedProductOutputsOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Information about the product created as the result of a request. For example, // the output for a CloudFormation-backed product that creates an S3 bucket would // include the S3 bucket URL. Outputs []types.RecordOutput // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationGetProvisionedProductOutputsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetProvisionedProductOutputs{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetProvisionedProductOutputs{}, 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_opGetProvisionedProductOutputs(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 } // GetProvisionedProductOutputsAPIClient is a client that implements the // GetProvisionedProductOutputs operation. type GetProvisionedProductOutputsAPIClient interface { GetProvisionedProductOutputs(context.Context, *GetProvisionedProductOutputsInput, ...func(*Options)) (*GetProvisionedProductOutputsOutput, error) } var _ GetProvisionedProductOutputsAPIClient = (*Client)(nil) // GetProvisionedProductOutputsPaginatorOptions is the paginator options for // GetProvisionedProductOutputs type GetProvisionedProductOutputsPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // GetProvisionedProductOutputsPaginator is a paginator for // GetProvisionedProductOutputs type GetProvisionedProductOutputsPaginator struct { options GetProvisionedProductOutputsPaginatorOptions client GetProvisionedProductOutputsAPIClient params *GetProvisionedProductOutputsInput nextToken *string firstPage bool } // NewGetProvisionedProductOutputsPaginator returns a new // GetProvisionedProductOutputsPaginator func NewGetProvisionedProductOutputsPaginator(client GetProvisionedProductOutputsAPIClient, params *GetProvisionedProductOutputsInput, optFns ...func(*GetProvisionedProductOutputsPaginatorOptions)) *GetProvisionedProductOutputsPaginator { if params == nil { params = &GetProvisionedProductOutputsInput{} } options := GetProvisionedProductOutputsPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &GetProvisionedProductOutputsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *GetProvisionedProductOutputsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next GetProvisionedProductOutputs page. func (p *GetProvisionedProductOutputsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetProvisionedProductOutputsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.GetProvisionedProductOutputs(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opGetProvisionedProductOutputs(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "GetProvisionedProductOutputs", } }
237
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Requests the import of a resource as an Service Catalog provisioned product // that is associated to an Service Catalog product and provisioning artifact. Once // imported, all supported governance actions are supported on the provisioned // product. Resource import only supports CloudFormation stack ARNs. CloudFormation // StackSets, and non-root nested stacks are not supported. The CloudFormation // stack must have one of the following statuses to be imported: CREATE_COMPLETE , // UPDATE_COMPLETE , UPDATE_ROLLBACK_COMPLETE , IMPORT_COMPLETE , and // IMPORT_ROLLBACK_COMPLETE . Import of the resource requires that the // CloudFormation stack template matches the associated Service Catalog product // provisioning artifact. When you import an existing CloudFormation stack into a // portfolio, constraints that are associated with the product aren't applied // during the import process. The constraints are applied after you call // UpdateProvisionedProduct for the provisioned product. The user or role that // performs this operation must have the cloudformation:GetTemplate and // cloudformation:DescribeStacks IAM policy permissions. func (c *Client) ImportAsProvisionedProduct(ctx context.Context, params *ImportAsProvisionedProductInput, optFns ...func(*Options)) (*ImportAsProvisionedProductOutput, error) { if params == nil { params = &ImportAsProvisionedProductInput{} } result, metadata, err := c.invokeOperation(ctx, "ImportAsProvisionedProduct", params, optFns, c.addOperationImportAsProvisionedProductMiddlewares) if err != nil { return nil, err } out := result.(*ImportAsProvisionedProductOutput) out.ResultMetadata = metadata return out, nil } type ImportAsProvisionedProductInput struct { // A unique identifier that you provide to ensure idempotency. If multiple // requests differ only by the idempotency token, the same response is returned for // each repeated request. // // This member is required. IdempotencyToken *string // The unique identifier of the resource to be imported. It only currently // supports CloudFormation stack IDs. // // This member is required. PhysicalId *string // The product identifier. // // This member is required. ProductId *string // The user-friendly name of the provisioned product. The value must be unique for // the Amazon Web Services account. The name cannot be updated after the product is // provisioned. // // This member is required. ProvisionedProductName *string // The identifier of the provisioning artifact. // // This member is required. ProvisioningArtifactId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type ImportAsProvisionedProductOutput struct { // Information about a request operation. RecordDetail *types.RecordDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationImportAsProvisionedProductMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpImportAsProvisionedProduct{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpImportAsProvisionedProduct{}, 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_opImportAsProvisionedProductMiddleware(stack, options); err != nil { return err } if err = addOpImportAsProvisionedProductValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportAsProvisionedProduct(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_initializeOpImportAsProvisionedProduct struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpImportAsProvisionedProduct) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpImportAsProvisionedProduct) 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.(*ImportAsProvisionedProductInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *ImportAsProvisionedProductInput ") } if input.IdempotencyToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.IdempotencyToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opImportAsProvisionedProductMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpImportAsProvisionedProduct{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opImportAsProvisionedProduct(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ImportAsProvisionedProduct", } }
206
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all imported portfolios for which account-to-account shares were accepted // by this account. By specifying the PortfolioShareType , you can list portfolios // for which organizational shares were accepted by this account. func (c *Client) ListAcceptedPortfolioShares(ctx context.Context, params *ListAcceptedPortfolioSharesInput, optFns ...func(*Options)) (*ListAcceptedPortfolioSharesOutput, error) { if params == nil { params = &ListAcceptedPortfolioSharesInput{} } result, metadata, err := c.invokeOperation(ctx, "ListAcceptedPortfolioShares", params, optFns, c.addOperationListAcceptedPortfolioSharesMiddlewares) if err != nil { return nil, err } out := result.(*ListAcceptedPortfolioSharesOutput) out.ResultMetadata = metadata return out, nil } type ListAcceptedPortfolioSharesInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string // The type of shared portfolios to list. The default is to list imported // portfolios. // - AWS_ORGANIZATIONS - List portfolios accepted and shared via organizational // sharing by the management account or delegated administrator of your // organization. // - AWS_SERVICECATALOG - Deprecated type. // - IMPORTED - List imported portfolios that have been accepted and shared // through account-to-account sharing. PortfolioShareType types.PortfolioShareType noSmithyDocumentSerde } type ListAcceptedPortfolioSharesOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Information about the portfolios. PortfolioDetails []types.PortfolioDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListAcceptedPortfolioSharesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListAcceptedPortfolioShares{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListAcceptedPortfolioShares{}, 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_opListAcceptedPortfolioShares(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 } // ListAcceptedPortfolioSharesAPIClient is a client that implements the // ListAcceptedPortfolioShares operation. type ListAcceptedPortfolioSharesAPIClient interface { ListAcceptedPortfolioShares(context.Context, *ListAcceptedPortfolioSharesInput, ...func(*Options)) (*ListAcceptedPortfolioSharesOutput, error) } var _ ListAcceptedPortfolioSharesAPIClient = (*Client)(nil) // ListAcceptedPortfolioSharesPaginatorOptions is the paginator options for // ListAcceptedPortfolioShares type ListAcceptedPortfolioSharesPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListAcceptedPortfolioSharesPaginator is a paginator for // ListAcceptedPortfolioShares type ListAcceptedPortfolioSharesPaginator struct { options ListAcceptedPortfolioSharesPaginatorOptions client ListAcceptedPortfolioSharesAPIClient params *ListAcceptedPortfolioSharesInput nextToken *string firstPage bool } // NewListAcceptedPortfolioSharesPaginator returns a new // ListAcceptedPortfolioSharesPaginator func NewListAcceptedPortfolioSharesPaginator(client ListAcceptedPortfolioSharesAPIClient, params *ListAcceptedPortfolioSharesInput, optFns ...func(*ListAcceptedPortfolioSharesPaginatorOptions)) *ListAcceptedPortfolioSharesPaginator { if params == nil { params = &ListAcceptedPortfolioSharesInput{} } options := ListAcceptedPortfolioSharesPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListAcceptedPortfolioSharesPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListAcceptedPortfolioSharesPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListAcceptedPortfolioShares page. func (p *ListAcceptedPortfolioSharesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAcceptedPortfolioSharesOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListAcceptedPortfolioShares(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListAcceptedPortfolioShares(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListAcceptedPortfolioShares", } }
235
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all the budgets associated to the specified resource. func (c *Client) ListBudgetsForResource(ctx context.Context, params *ListBudgetsForResourceInput, optFns ...func(*Options)) (*ListBudgetsForResourceOutput, error) { if params == nil { params = &ListBudgetsForResourceInput{} } result, metadata, err := c.invokeOperation(ctx, "ListBudgetsForResource", params, optFns, c.addOperationListBudgetsForResourceMiddlewares) if err != nil { return nil, err } out := result.(*ListBudgetsForResourceOutput) out.ResultMetadata = metadata return out, nil } type ListBudgetsForResourceInput struct { // The resource identifier. // // This member is required. ResourceId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListBudgetsForResourceOutput struct { // Information about the associated budgets. Budgets []types.BudgetDetail // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListBudgetsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListBudgetsForResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListBudgetsForResource{}, 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 = addOpListBudgetsForResourceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListBudgetsForResource(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 } // ListBudgetsForResourceAPIClient is a client that implements the // ListBudgetsForResource operation. type ListBudgetsForResourceAPIClient interface { ListBudgetsForResource(context.Context, *ListBudgetsForResourceInput, ...func(*Options)) (*ListBudgetsForResourceOutput, error) } var _ ListBudgetsForResourceAPIClient = (*Client)(nil) // ListBudgetsForResourcePaginatorOptions is the paginator options for // ListBudgetsForResource type ListBudgetsForResourcePaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListBudgetsForResourcePaginator is a paginator for ListBudgetsForResource type ListBudgetsForResourcePaginator struct { options ListBudgetsForResourcePaginatorOptions client ListBudgetsForResourceAPIClient params *ListBudgetsForResourceInput nextToken *string firstPage bool } // NewListBudgetsForResourcePaginator returns a new ListBudgetsForResourcePaginator func NewListBudgetsForResourcePaginator(client ListBudgetsForResourceAPIClient, params *ListBudgetsForResourceInput, optFns ...func(*ListBudgetsForResourcePaginatorOptions)) *ListBudgetsForResourcePaginator { if params == nil { params = &ListBudgetsForResourceInput{} } options := ListBudgetsForResourcePaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListBudgetsForResourcePaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListBudgetsForResourcePaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListBudgetsForResource page. func (p *ListBudgetsForResourcePaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListBudgetsForResourceOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListBudgetsForResource(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListBudgetsForResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListBudgetsForResource", } }
229
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists the constraints for the specified portfolio and product. func (c *Client) ListConstraintsForPortfolio(ctx context.Context, params *ListConstraintsForPortfolioInput, optFns ...func(*Options)) (*ListConstraintsForPortfolioOutput, error) { if params == nil { params = &ListConstraintsForPortfolioInput{} } result, metadata, err := c.invokeOperation(ctx, "ListConstraintsForPortfolio", params, optFns, c.addOperationListConstraintsForPortfolioMiddlewares) if err != nil { return nil, err } out := result.(*ListConstraintsForPortfolioOutput) out.ResultMetadata = metadata return out, nil } type ListConstraintsForPortfolioInput struct { // The portfolio identifier. // // This member is required. PortfolioId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string // The product identifier. ProductId *string noSmithyDocumentSerde } type ListConstraintsForPortfolioOutput struct { // Information about the constraints. ConstraintDetails []types.ConstraintDetail // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListConstraintsForPortfolioMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListConstraintsForPortfolio{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListConstraintsForPortfolio{}, 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 = addOpListConstraintsForPortfolioValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListConstraintsForPortfolio(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 } // ListConstraintsForPortfolioAPIClient is a client that implements the // ListConstraintsForPortfolio operation. type ListConstraintsForPortfolioAPIClient interface { ListConstraintsForPortfolio(context.Context, *ListConstraintsForPortfolioInput, ...func(*Options)) (*ListConstraintsForPortfolioOutput, error) } var _ ListConstraintsForPortfolioAPIClient = (*Client)(nil) // ListConstraintsForPortfolioPaginatorOptions is the paginator options for // ListConstraintsForPortfolio type ListConstraintsForPortfolioPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListConstraintsForPortfolioPaginator is a paginator for // ListConstraintsForPortfolio type ListConstraintsForPortfolioPaginator struct { options ListConstraintsForPortfolioPaginatorOptions client ListConstraintsForPortfolioAPIClient params *ListConstraintsForPortfolioInput nextToken *string firstPage bool } // NewListConstraintsForPortfolioPaginator returns a new // ListConstraintsForPortfolioPaginator func NewListConstraintsForPortfolioPaginator(client ListConstraintsForPortfolioAPIClient, params *ListConstraintsForPortfolioInput, optFns ...func(*ListConstraintsForPortfolioPaginatorOptions)) *ListConstraintsForPortfolioPaginator { if params == nil { params = &ListConstraintsForPortfolioInput{} } options := ListConstraintsForPortfolioPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListConstraintsForPortfolioPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListConstraintsForPortfolioPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListConstraintsForPortfolio page. func (p *ListConstraintsForPortfolioPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListConstraintsForPortfolioOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListConstraintsForPortfolio(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListConstraintsForPortfolio(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListConstraintsForPortfolio", } }
234
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists the paths to the specified product. A path describes how the user gets // access to a specified product and is necessary when provisioning a product. A // path also determines the constraints that are put on a product. A path is // dependent on a specific product, porfolio, and principal. When provisioning a // product that's been added to a portfolio, you must grant your user, group, or // role access to the portfolio. For more information, see Granting users access (https://docs.aws.amazon.com/servicecatalog/latest/adminguide/catalogs_portfolios_users.html) // in the Service Catalog User Guide. func (c *Client) ListLaunchPaths(ctx context.Context, params *ListLaunchPathsInput, optFns ...func(*Options)) (*ListLaunchPathsOutput, error) { if params == nil { params = &ListLaunchPathsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListLaunchPaths", params, optFns, c.addOperationListLaunchPathsMiddlewares) if err != nil { return nil, err } out := result.(*ListLaunchPathsOutput) out.ResultMetadata = metadata return out, nil } type ListLaunchPathsInput struct { // The product identifier. // // This member is required. ProductId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListLaunchPathsOutput struct { // Information about the launch path. LaunchPathSummaries []types.LaunchPathSummary // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListLaunchPathsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListLaunchPaths{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListLaunchPaths{}, 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 = addOpListLaunchPathsValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListLaunchPaths(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 } // ListLaunchPathsAPIClient is a client that implements the ListLaunchPaths // operation. type ListLaunchPathsAPIClient interface { ListLaunchPaths(context.Context, *ListLaunchPathsInput, ...func(*Options)) (*ListLaunchPathsOutput, error) } var _ ListLaunchPathsAPIClient = (*Client)(nil) // ListLaunchPathsPaginatorOptions is the paginator options for ListLaunchPaths type ListLaunchPathsPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListLaunchPathsPaginator is a paginator for ListLaunchPaths type ListLaunchPathsPaginator struct { options ListLaunchPathsPaginatorOptions client ListLaunchPathsAPIClient params *ListLaunchPathsInput nextToken *string firstPage bool } // NewListLaunchPathsPaginator returns a new ListLaunchPathsPaginator func NewListLaunchPathsPaginator(client ListLaunchPathsAPIClient, params *ListLaunchPathsInput, optFns ...func(*ListLaunchPathsPaginatorOptions)) *ListLaunchPathsPaginator { if params == nil { params = &ListLaunchPathsInput{} } options := ListLaunchPathsPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListLaunchPathsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListLaunchPathsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListLaunchPaths page. func (p *ListLaunchPathsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListLaunchPathsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListLaunchPaths(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListLaunchPaths(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListLaunchPaths", } }
234
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists the organization nodes that have access to the specified portfolio. This // API can only be called by the management account in the organization or by a // delegated admin. If a delegated admin is de-registered, they can no longer // perform this operation. func (c *Client) ListOrganizationPortfolioAccess(ctx context.Context, params *ListOrganizationPortfolioAccessInput, optFns ...func(*Options)) (*ListOrganizationPortfolioAccessOutput, error) { if params == nil { params = &ListOrganizationPortfolioAccessInput{} } result, metadata, err := c.invokeOperation(ctx, "ListOrganizationPortfolioAccess", params, optFns, c.addOperationListOrganizationPortfolioAccessMiddlewares) if err != nil { return nil, err } out := result.(*ListOrganizationPortfolioAccessOutput) out.ResultMetadata = metadata return out, nil } type ListOrganizationPortfolioAccessInput struct { // The organization node type that will be returned in the output. // - ORGANIZATION - Organization that has access to the portfolio. // - ORGANIZATIONAL_UNIT - Organizational unit that has access to the portfolio // within your organization. // - ACCOUNT - Account that has access to the portfolio within your organization. // // This member is required. OrganizationNodeType types.OrganizationNodeType // The portfolio identifier. For example, port-2abcdext3y5fk . // // This member is required. PortfolioId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListOrganizationPortfolioAccessOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Displays information about the organization nodes. OrganizationNodes []types.OrganizationNode // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListOrganizationPortfolioAccessMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListOrganizationPortfolioAccess{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListOrganizationPortfolioAccess{}, 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 = addOpListOrganizationPortfolioAccessValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListOrganizationPortfolioAccess(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 } // ListOrganizationPortfolioAccessAPIClient is a client that implements the // ListOrganizationPortfolioAccess operation. type ListOrganizationPortfolioAccessAPIClient interface { ListOrganizationPortfolioAccess(context.Context, *ListOrganizationPortfolioAccessInput, ...func(*Options)) (*ListOrganizationPortfolioAccessOutput, error) } var _ ListOrganizationPortfolioAccessAPIClient = (*Client)(nil) // ListOrganizationPortfolioAccessPaginatorOptions is the paginator options for // ListOrganizationPortfolioAccess type ListOrganizationPortfolioAccessPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListOrganizationPortfolioAccessPaginator is a paginator for // ListOrganizationPortfolioAccess type ListOrganizationPortfolioAccessPaginator struct { options ListOrganizationPortfolioAccessPaginatorOptions client ListOrganizationPortfolioAccessAPIClient params *ListOrganizationPortfolioAccessInput nextToken *string firstPage bool } // NewListOrganizationPortfolioAccessPaginator returns a new // ListOrganizationPortfolioAccessPaginator func NewListOrganizationPortfolioAccessPaginator(client ListOrganizationPortfolioAccessAPIClient, params *ListOrganizationPortfolioAccessInput, optFns ...func(*ListOrganizationPortfolioAccessPaginatorOptions)) *ListOrganizationPortfolioAccessPaginator { if params == nil { params = &ListOrganizationPortfolioAccessInput{} } options := ListOrganizationPortfolioAccessPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListOrganizationPortfolioAccessPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListOrganizationPortfolioAccessPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListOrganizationPortfolioAccess page. func (p *ListOrganizationPortfolioAccessPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListOrganizationPortfolioAccessOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListOrganizationPortfolioAccess(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListOrganizationPortfolioAccess(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListOrganizationPortfolioAccess", } }
243
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists the account IDs that have access to the specified portfolio. A delegated // admin can list the accounts that have access to the shared portfolio. Note that // if a delegated admin is de-registered, they can no longer perform this // operation. func (c *Client) ListPortfolioAccess(ctx context.Context, params *ListPortfolioAccessInput, optFns ...func(*Options)) (*ListPortfolioAccessOutput, error) { if params == nil { params = &ListPortfolioAccessInput{} } result, metadata, err := c.invokeOperation(ctx, "ListPortfolioAccess", params, optFns, c.addOperationListPortfolioAccessMiddlewares) if err != nil { return nil, err } out := result.(*ListPortfolioAccessOutput) out.ResultMetadata = metadata return out, nil } type ListPortfolioAccessInput struct { // The portfolio identifier. // // This member is required. PortfolioId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The ID of an organization node the portfolio is shared with. All children of // this node with an inherited portfolio share will be returned. OrganizationParentId *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListPortfolioAccessOutput struct { // Information about the Amazon Web Services accounts with access to the portfolio. AccountIds []string // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListPortfolioAccessMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListPortfolioAccess{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListPortfolioAccess{}, 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 = addOpListPortfolioAccessValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListPortfolioAccess(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 } // ListPortfolioAccessAPIClient is a client that implements the // ListPortfolioAccess operation. type ListPortfolioAccessAPIClient interface { ListPortfolioAccess(context.Context, *ListPortfolioAccessInput, ...func(*Options)) (*ListPortfolioAccessOutput, error) } var _ ListPortfolioAccessAPIClient = (*Client)(nil) // ListPortfolioAccessPaginatorOptions is the paginator options for // ListPortfolioAccess type ListPortfolioAccessPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListPortfolioAccessPaginator is a paginator for ListPortfolioAccess type ListPortfolioAccessPaginator struct { options ListPortfolioAccessPaginatorOptions client ListPortfolioAccessAPIClient params *ListPortfolioAccessInput nextToken *string firstPage bool } // NewListPortfolioAccessPaginator returns a new ListPortfolioAccessPaginator func NewListPortfolioAccessPaginator(client ListPortfolioAccessAPIClient, params *ListPortfolioAccessInput, optFns ...func(*ListPortfolioAccessPaginatorOptions)) *ListPortfolioAccessPaginator { if params == nil { params = &ListPortfolioAccessInput{} } options := ListPortfolioAccessPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListPortfolioAccessPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListPortfolioAccessPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListPortfolioAccess page. func (p *ListPortfolioAccessPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListPortfolioAccessOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListPortfolioAccess(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListPortfolioAccess(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListPortfolioAccess", } }
235
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all portfolios in the catalog. func (c *Client) ListPortfolios(ctx context.Context, params *ListPortfoliosInput, optFns ...func(*Options)) (*ListPortfoliosOutput, error) { if params == nil { params = &ListPortfoliosInput{} } result, metadata, err := c.invokeOperation(ctx, "ListPortfolios", params, optFns, c.addOperationListPortfoliosMiddlewares) if err != nil { return nil, err } out := result.(*ListPortfoliosOutput) out.ResultMetadata = metadata return out, nil } type ListPortfoliosInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListPortfoliosOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Information about the portfolios. PortfolioDetails []types.PortfolioDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListPortfoliosMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListPortfolios{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListPortfolios{}, 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_opListPortfolios(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 } // ListPortfoliosAPIClient is a client that implements the ListPortfolios // operation. type ListPortfoliosAPIClient interface { ListPortfolios(context.Context, *ListPortfoliosInput, ...func(*Options)) (*ListPortfoliosOutput, error) } var _ ListPortfoliosAPIClient = (*Client)(nil) // ListPortfoliosPaginatorOptions is the paginator options for ListPortfolios type ListPortfoliosPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListPortfoliosPaginator is a paginator for ListPortfolios type ListPortfoliosPaginator struct { options ListPortfoliosPaginatorOptions client ListPortfoliosAPIClient params *ListPortfoliosInput nextToken *string firstPage bool } // NewListPortfoliosPaginator returns a new ListPortfoliosPaginator func NewListPortfoliosPaginator(client ListPortfoliosAPIClient, params *ListPortfoliosInput, optFns ...func(*ListPortfoliosPaginatorOptions)) *ListPortfoliosPaginator { if params == nil { params = &ListPortfoliosInput{} } options := ListPortfoliosPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListPortfoliosPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListPortfoliosPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListPortfolios page. func (p *ListPortfoliosPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListPortfoliosOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListPortfolios(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListPortfolios(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListPortfolios", } }
220
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all portfolios that the specified product is associated with. func (c *Client) ListPortfoliosForProduct(ctx context.Context, params *ListPortfoliosForProductInput, optFns ...func(*Options)) (*ListPortfoliosForProductOutput, error) { if params == nil { params = &ListPortfoliosForProductInput{} } result, metadata, err := c.invokeOperation(ctx, "ListPortfoliosForProduct", params, optFns, c.addOperationListPortfoliosForProductMiddlewares) if err != nil { return nil, err } out := result.(*ListPortfoliosForProductOutput) out.ResultMetadata = metadata return out, nil } type ListPortfoliosForProductInput struct { // The product identifier. // // This member is required. ProductId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListPortfoliosForProductOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Information about the portfolios. PortfolioDetails []types.PortfolioDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListPortfoliosForProductMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListPortfoliosForProduct{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListPortfoliosForProduct{}, 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 = addOpListPortfoliosForProductValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListPortfoliosForProduct(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 } // ListPortfoliosForProductAPIClient is a client that implements the // ListPortfoliosForProduct operation. type ListPortfoliosForProductAPIClient interface { ListPortfoliosForProduct(context.Context, *ListPortfoliosForProductInput, ...func(*Options)) (*ListPortfoliosForProductOutput, error) } var _ ListPortfoliosForProductAPIClient = (*Client)(nil) // ListPortfoliosForProductPaginatorOptions is the paginator options for // ListPortfoliosForProduct type ListPortfoliosForProductPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListPortfoliosForProductPaginator is a paginator for ListPortfoliosForProduct type ListPortfoliosForProductPaginator struct { options ListPortfoliosForProductPaginatorOptions client ListPortfoliosForProductAPIClient params *ListPortfoliosForProductInput nextToken *string firstPage bool } // NewListPortfoliosForProductPaginator returns a new // ListPortfoliosForProductPaginator func NewListPortfoliosForProductPaginator(client ListPortfoliosForProductAPIClient, params *ListPortfoliosForProductInput, optFns ...func(*ListPortfoliosForProductPaginatorOptions)) *ListPortfoliosForProductPaginator { if params == nil { params = &ListPortfoliosForProductInput{} } options := ListPortfoliosForProductPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListPortfoliosForProductPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListPortfoliosForProductPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListPortfoliosForProduct page. func (p *ListPortfoliosForProductPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListPortfoliosForProductOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListPortfoliosForProduct(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListPortfoliosForProduct(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListPortfoliosForProduct", } }
230
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all PrincipalARN s and corresponding PrincipalType s associated with the // specified portfolio. func (c *Client) ListPrincipalsForPortfolio(ctx context.Context, params *ListPrincipalsForPortfolioInput, optFns ...func(*Options)) (*ListPrincipalsForPortfolioOutput, error) { if params == nil { params = &ListPrincipalsForPortfolioInput{} } result, metadata, err := c.invokeOperation(ctx, "ListPrincipalsForPortfolio", params, optFns, c.addOperationListPrincipalsForPortfolioMiddlewares) if err != nil { return nil, err } out := result.(*ListPrincipalsForPortfolioOutput) out.ResultMetadata = metadata return out, nil } type ListPrincipalsForPortfolioInput struct { // The portfolio identifier. // // This member is required. PortfolioId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListPrincipalsForPortfolioOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // The PrincipalARN s and corresponding PrincipalType s associated with the // portfolio. Principals []types.Principal // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListPrincipalsForPortfolioMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListPrincipalsForPortfolio{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListPrincipalsForPortfolio{}, 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 = addOpListPrincipalsForPortfolioValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListPrincipalsForPortfolio(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 } // ListPrincipalsForPortfolioAPIClient is a client that implements the // ListPrincipalsForPortfolio operation. type ListPrincipalsForPortfolioAPIClient interface { ListPrincipalsForPortfolio(context.Context, *ListPrincipalsForPortfolioInput, ...func(*Options)) (*ListPrincipalsForPortfolioOutput, error) } var _ ListPrincipalsForPortfolioAPIClient = (*Client)(nil) // ListPrincipalsForPortfolioPaginatorOptions is the paginator options for // ListPrincipalsForPortfolio type ListPrincipalsForPortfolioPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListPrincipalsForPortfolioPaginator is a paginator for // ListPrincipalsForPortfolio type ListPrincipalsForPortfolioPaginator struct { options ListPrincipalsForPortfolioPaginatorOptions client ListPrincipalsForPortfolioAPIClient params *ListPrincipalsForPortfolioInput nextToken *string firstPage bool } // NewListPrincipalsForPortfolioPaginator returns a new // ListPrincipalsForPortfolioPaginator func NewListPrincipalsForPortfolioPaginator(client ListPrincipalsForPortfolioAPIClient, params *ListPrincipalsForPortfolioInput, optFns ...func(*ListPrincipalsForPortfolioPaginatorOptions)) *ListPrincipalsForPortfolioPaginator { if params == nil { params = &ListPrincipalsForPortfolioInput{} } options := ListPrincipalsForPortfolioPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListPrincipalsForPortfolioPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListPrincipalsForPortfolioPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListPrincipalsForPortfolio page. func (p *ListPrincipalsForPortfolioPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListPrincipalsForPortfolioOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListPrincipalsForPortfolio(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListPrincipalsForPortfolio(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListPrincipalsForPortfolio", } }
233
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists the plans for the specified provisioned product or all plans to which the // user has access. func (c *Client) ListProvisionedProductPlans(ctx context.Context, params *ListProvisionedProductPlansInput, optFns ...func(*Options)) (*ListProvisionedProductPlansOutput, error) { if params == nil { params = &ListProvisionedProductPlansInput{} } result, metadata, err := c.invokeOperation(ctx, "ListProvisionedProductPlans", params, optFns, c.addOperationListProvisionedProductPlansMiddlewares) if err != nil { return nil, err } out := result.(*ListProvisionedProductPlansOutput) out.ResultMetadata = metadata return out, nil } type ListProvisionedProductPlansInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The access level to use to obtain results. The default is User . AccessLevelFilter *types.AccessLevelFilter // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string // The product identifier. ProvisionProductId *string noSmithyDocumentSerde } type ListProvisionedProductPlansOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Information about the plans. ProvisionedProductPlans []types.ProvisionedProductPlanSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListProvisionedProductPlansMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListProvisionedProductPlans{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListProvisionedProductPlans{}, 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_opListProvisionedProductPlans(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_opListProvisionedProductPlans(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListProvisionedProductPlans", } }
140
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all provisioning artifacts (also known as versions) for the specified // product. func (c *Client) ListProvisioningArtifacts(ctx context.Context, params *ListProvisioningArtifactsInput, optFns ...func(*Options)) (*ListProvisioningArtifactsOutput, error) { if params == nil { params = &ListProvisioningArtifactsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListProvisioningArtifacts", params, optFns, c.addOperationListProvisioningArtifactsMiddlewares) if err != nil { return nil, err } out := result.(*ListProvisioningArtifactsOutput) out.ResultMetadata = metadata return out, nil } type ListProvisioningArtifactsInput struct { // The product identifier. // // This member is required. ProductId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type ListProvisioningArtifactsOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Information about the provisioning artifacts. ProvisioningArtifactDetails []types.ProvisioningArtifactDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListProvisioningArtifactsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListProvisioningArtifacts{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListProvisioningArtifacts{}, 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 = addOpListProvisioningArtifactsValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListProvisioningArtifacts(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_opListProvisioningArtifacts(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListProvisioningArtifacts", } }
135
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all provisioning artifacts (also known as versions) for the specified // self-service action. func (c *Client) ListProvisioningArtifactsForServiceAction(ctx context.Context, params *ListProvisioningArtifactsForServiceActionInput, optFns ...func(*Options)) (*ListProvisioningArtifactsForServiceActionOutput, error) { if params == nil { params = &ListProvisioningArtifactsForServiceActionInput{} } result, metadata, err := c.invokeOperation(ctx, "ListProvisioningArtifactsForServiceAction", params, optFns, c.addOperationListProvisioningArtifactsForServiceActionMiddlewares) if err != nil { return nil, err } out := result.(*ListProvisioningArtifactsForServiceActionOutput) out.ResultMetadata = metadata return out, nil } type ListProvisioningArtifactsForServiceActionInput struct { // The self-service action identifier. For example, act-fs7abcd89wxyz . // // This member is required. ServiceActionId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListProvisioningArtifactsForServiceActionOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // An array of objects with information about product views and provisioning // artifacts. ProvisioningArtifactViews []types.ProvisioningArtifactView // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListProvisioningArtifactsForServiceActionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListProvisioningArtifactsForServiceAction{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListProvisioningArtifactsForServiceAction{}, 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 = addOpListProvisioningArtifactsForServiceActionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListProvisioningArtifactsForServiceAction(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 } // ListProvisioningArtifactsForServiceActionAPIClient is a client that implements // the ListProvisioningArtifactsForServiceAction operation. type ListProvisioningArtifactsForServiceActionAPIClient interface { ListProvisioningArtifactsForServiceAction(context.Context, *ListProvisioningArtifactsForServiceActionInput, ...func(*Options)) (*ListProvisioningArtifactsForServiceActionOutput, error) } var _ ListProvisioningArtifactsForServiceActionAPIClient = (*Client)(nil) // ListProvisioningArtifactsForServiceActionPaginatorOptions is the paginator // options for ListProvisioningArtifactsForServiceAction type ListProvisioningArtifactsForServiceActionPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListProvisioningArtifactsForServiceActionPaginator is a paginator for // ListProvisioningArtifactsForServiceAction type ListProvisioningArtifactsForServiceActionPaginator struct { options ListProvisioningArtifactsForServiceActionPaginatorOptions client ListProvisioningArtifactsForServiceActionAPIClient params *ListProvisioningArtifactsForServiceActionInput nextToken *string firstPage bool } // NewListProvisioningArtifactsForServiceActionPaginator returns a new // ListProvisioningArtifactsForServiceActionPaginator func NewListProvisioningArtifactsForServiceActionPaginator(client ListProvisioningArtifactsForServiceActionAPIClient, params *ListProvisioningArtifactsForServiceActionInput, optFns ...func(*ListProvisioningArtifactsForServiceActionPaginatorOptions)) *ListProvisioningArtifactsForServiceActionPaginator { if params == nil { params = &ListProvisioningArtifactsForServiceActionInput{} } options := ListProvisioningArtifactsForServiceActionPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListProvisioningArtifactsForServiceActionPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListProvisioningArtifactsForServiceActionPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListProvisioningArtifactsForServiceAction page. func (p *ListProvisioningArtifactsForServiceActionPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListProvisioningArtifactsForServiceActionOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListProvisioningArtifactsForServiceAction(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListProvisioningArtifactsForServiceAction(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListProvisioningArtifactsForServiceAction", } }
233
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists the specified requests or all performed requests. func (c *Client) ListRecordHistory(ctx context.Context, params *ListRecordHistoryInput, optFns ...func(*Options)) (*ListRecordHistoryOutput, error) { if params == nil { params = &ListRecordHistoryInput{} } result, metadata, err := c.invokeOperation(ctx, "ListRecordHistory", params, optFns, c.addOperationListRecordHistoryMiddlewares) if err != nil { return nil, err } out := result.(*ListRecordHistoryOutput) out.ResultMetadata = metadata return out, nil } type ListRecordHistoryInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The access level to use to obtain results. The default is User . AccessLevelFilter *types.AccessLevelFilter // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string // The search filter to scope the results. SearchFilter *types.ListRecordHistorySearchFilter noSmithyDocumentSerde } type ListRecordHistoryOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // The records, in reverse chronological order. RecordDetails []types.RecordDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListRecordHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListRecordHistory{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListRecordHistory{}, 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_opListRecordHistory(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_opListRecordHistory(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListRecordHistory", } }
139
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists the resources associated with the specified TagOption. func (c *Client) ListResourcesForTagOption(ctx context.Context, params *ListResourcesForTagOptionInput, optFns ...func(*Options)) (*ListResourcesForTagOptionOutput, error) { if params == nil { params = &ListResourcesForTagOptionInput{} } result, metadata, err := c.invokeOperation(ctx, "ListResourcesForTagOption", params, optFns, c.addOperationListResourcesForTagOptionMiddlewares) if err != nil { return nil, err } out := result.(*ListResourcesForTagOptionOutput) out.ResultMetadata = metadata return out, nil } type ListResourcesForTagOptionInput struct { // The TagOption identifier. // // This member is required. TagOptionId *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string // The resource type. // - Portfolio // - Product ResourceType *string noSmithyDocumentSerde } type ListResourcesForTagOptionOutput struct { // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string // Information about the resources. ResourceDetails []types.ResourceDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListResourcesForTagOptionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListResourcesForTagOption{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListResourcesForTagOption{}, 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 = addOpListResourcesForTagOptionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListResourcesForTagOption(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 } // ListResourcesForTagOptionAPIClient is a client that implements the // ListResourcesForTagOption operation. type ListResourcesForTagOptionAPIClient interface { ListResourcesForTagOption(context.Context, *ListResourcesForTagOptionInput, ...func(*Options)) (*ListResourcesForTagOptionOutput, error) } var _ ListResourcesForTagOptionAPIClient = (*Client)(nil) // ListResourcesForTagOptionPaginatorOptions is the paginator options for // ListResourcesForTagOption type ListResourcesForTagOptionPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListResourcesForTagOptionPaginator is a paginator for ListResourcesForTagOption type ListResourcesForTagOptionPaginator struct { options ListResourcesForTagOptionPaginatorOptions client ListResourcesForTagOptionAPIClient params *ListResourcesForTagOptionInput nextToken *string firstPage bool } // NewListResourcesForTagOptionPaginator returns a new // ListResourcesForTagOptionPaginator func NewListResourcesForTagOptionPaginator(client ListResourcesForTagOptionAPIClient, params *ListResourcesForTagOptionInput, optFns ...func(*ListResourcesForTagOptionPaginatorOptions)) *ListResourcesForTagOptionPaginator { if params == nil { params = &ListResourcesForTagOptionInput{} } options := ListResourcesForTagOptionPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListResourcesForTagOptionPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListResourcesForTagOptionPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListResourcesForTagOption page. func (p *ListResourcesForTagOptionPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListResourcesForTagOptionOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListResourcesForTagOption(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.PageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListResourcesForTagOption(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListResourcesForTagOption", } }
230
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all self-service actions. func (c *Client) ListServiceActions(ctx context.Context, params *ListServiceActionsInput, optFns ...func(*Options)) (*ListServiceActionsOutput, error) { if params == nil { params = &ListServiceActionsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListServiceActions", params, optFns, c.addOperationListServiceActionsMiddlewares) if err != nil { return nil, err } out := result.(*ListServiceActionsOutput) out.ResultMetadata = metadata return out, nil } type ListServiceActionsInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListServiceActionsOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // An object containing information about the service actions associated with the // provisioning artifact. ServiceActionSummaries []types.ServiceActionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListServiceActionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListServiceActions{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListServiceActions{}, 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_opListServiceActions(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 } // ListServiceActionsAPIClient is a client that implements the ListServiceActions // operation. type ListServiceActionsAPIClient interface { ListServiceActions(context.Context, *ListServiceActionsInput, ...func(*Options)) (*ListServiceActionsOutput, error) } var _ ListServiceActionsAPIClient = (*Client)(nil) // ListServiceActionsPaginatorOptions is the paginator options for // ListServiceActions type ListServiceActionsPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListServiceActionsPaginator is a paginator for ListServiceActions type ListServiceActionsPaginator struct { options ListServiceActionsPaginatorOptions client ListServiceActionsAPIClient params *ListServiceActionsInput nextToken *string firstPage bool } // NewListServiceActionsPaginator returns a new ListServiceActionsPaginator func NewListServiceActionsPaginator(client ListServiceActionsAPIClient, params *ListServiceActionsInput, optFns ...func(*ListServiceActionsPaginatorOptions)) *ListServiceActionsPaginator { if params == nil { params = &ListServiceActionsInput{} } options := ListServiceActionsPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListServiceActionsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListServiceActionsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListServiceActions page. func (p *ListServiceActionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListServiceActionsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListServiceActions(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListServiceActions(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListServiceActions", } }
222
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Returns a paginated list of self-service actions associated with the specified // Product ID and Provisioning Artifact ID. func (c *Client) ListServiceActionsForProvisioningArtifact(ctx context.Context, params *ListServiceActionsForProvisioningArtifactInput, optFns ...func(*Options)) (*ListServiceActionsForProvisioningArtifactOutput, error) { if params == nil { params = &ListServiceActionsForProvisioningArtifactInput{} } result, metadata, err := c.invokeOperation(ctx, "ListServiceActionsForProvisioningArtifact", params, optFns, c.addOperationListServiceActionsForProvisioningArtifactMiddlewares) if err != nil { return nil, err } out := result.(*ListServiceActionsForProvisioningArtifactOutput) out.ResultMetadata = metadata return out, nil } type ListServiceActionsForProvisioningArtifactInput struct { // The product identifier. For example, prod-abcdzk7xy33qa . // // This member is required. ProductId *string // The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne . // // This member is required. ProvisioningArtifactId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListServiceActionsForProvisioningArtifactOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // An object containing information about the self-service actions associated with // the provisioning artifact. ServiceActionSummaries []types.ServiceActionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListServiceActionsForProvisioningArtifactMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListServiceActionsForProvisioningArtifact{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListServiceActionsForProvisioningArtifact{}, 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 = addOpListServiceActionsForProvisioningArtifactValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListServiceActionsForProvisioningArtifact(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 } // ListServiceActionsForProvisioningArtifactAPIClient is a client that implements // the ListServiceActionsForProvisioningArtifact operation. type ListServiceActionsForProvisioningArtifactAPIClient interface { ListServiceActionsForProvisioningArtifact(context.Context, *ListServiceActionsForProvisioningArtifactInput, ...func(*Options)) (*ListServiceActionsForProvisioningArtifactOutput, error) } var _ ListServiceActionsForProvisioningArtifactAPIClient = (*Client)(nil) // ListServiceActionsForProvisioningArtifactPaginatorOptions is the paginator // options for ListServiceActionsForProvisioningArtifact type ListServiceActionsForProvisioningArtifactPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListServiceActionsForProvisioningArtifactPaginator is a paginator for // ListServiceActionsForProvisioningArtifact type ListServiceActionsForProvisioningArtifactPaginator struct { options ListServiceActionsForProvisioningArtifactPaginatorOptions client ListServiceActionsForProvisioningArtifactAPIClient params *ListServiceActionsForProvisioningArtifactInput nextToken *string firstPage bool } // NewListServiceActionsForProvisioningArtifactPaginator returns a new // ListServiceActionsForProvisioningArtifactPaginator func NewListServiceActionsForProvisioningArtifactPaginator(client ListServiceActionsForProvisioningArtifactAPIClient, params *ListServiceActionsForProvisioningArtifactInput, optFns ...func(*ListServiceActionsForProvisioningArtifactPaginatorOptions)) *ListServiceActionsForProvisioningArtifactPaginator { if params == nil { params = &ListServiceActionsForProvisioningArtifactInput{} } options := ListServiceActionsForProvisioningArtifactPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListServiceActionsForProvisioningArtifactPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListServiceActionsForProvisioningArtifactPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListServiceActionsForProvisioningArtifact page. func (p *ListServiceActionsForProvisioningArtifactPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListServiceActionsForProvisioningArtifactOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListServiceActionsForProvisioningArtifact(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListServiceActionsForProvisioningArtifact(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListServiceActionsForProvisioningArtifact", } }
238
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Returns summary information about stack instances that are associated with the // specified CFN_STACKSET type provisioned product. You can filter for stack // instances that are associated with a specific Amazon Web Services account name // or Region. func (c *Client) ListStackInstancesForProvisionedProduct(ctx context.Context, params *ListStackInstancesForProvisionedProductInput, optFns ...func(*Options)) (*ListStackInstancesForProvisionedProductOutput, error) { if params == nil { params = &ListStackInstancesForProvisionedProductInput{} } result, metadata, err := c.invokeOperation(ctx, "ListStackInstancesForProvisionedProduct", params, optFns, c.addOperationListStackInstancesForProvisionedProductMiddlewares) if err != nil { return nil, err } out := result.(*ListStackInstancesForProvisionedProductOutput) out.ResultMetadata = metadata return out, nil } type ListStackInstancesForProvisionedProductInput struct { // The identifier of the provisioned product. // // This member is required. ProvisionedProductId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListStackInstancesForProvisionedProductOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // List of stack instances. StackInstances []types.StackInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListStackInstancesForProvisionedProductMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListStackInstancesForProvisionedProduct{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListStackInstancesForProvisionedProduct{}, 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 = addOpListStackInstancesForProvisionedProductValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListStackInstancesForProvisionedProduct(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_opListStackInstancesForProvisionedProduct(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListStackInstancesForProvisionedProduct", } }
144
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists the specified TagOptions or all TagOptions. func (c *Client) ListTagOptions(ctx context.Context, params *ListTagOptionsInput, optFns ...func(*Options)) (*ListTagOptionsOutput, error) { if params == nil { params = &ListTagOptionsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListTagOptions", params, optFns, c.addOperationListTagOptionsMiddlewares) if err != nil { return nil, err } out := result.(*ListTagOptionsOutput) out.ResultMetadata = metadata return out, nil } type ListTagOptionsInput struct { // The search filters. If no search filters are specified, the output includes all // TagOptions. Filters *types.ListTagOptionsFilters // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ListTagOptionsOutput struct { // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string // Information about the TagOptions. TagOptionDetails []types.TagOptionDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListTagOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListTagOptions{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListTagOptions{}, 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_opListTagOptions(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 } // ListTagOptionsAPIClient is a client that implements the ListTagOptions // operation. type ListTagOptionsAPIClient interface { ListTagOptions(context.Context, *ListTagOptionsInput, ...func(*Options)) (*ListTagOptionsOutput, error) } var _ ListTagOptionsAPIClient = (*Client)(nil) // ListTagOptionsPaginatorOptions is the paginator options for ListTagOptions type ListTagOptionsPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // ListTagOptionsPaginator is a paginator for ListTagOptions type ListTagOptionsPaginator struct { options ListTagOptionsPaginatorOptions client ListTagOptionsAPIClient params *ListTagOptionsInput nextToken *string firstPage bool } // NewListTagOptionsPaginator returns a new ListTagOptionsPaginator func NewListTagOptionsPaginator(client ListTagOptionsAPIClient, params *ListTagOptionsInput, optFns ...func(*ListTagOptionsPaginatorOptions)) *ListTagOptionsPaginator { if params == nil { params = &ListTagOptionsInput{} } options := ListTagOptionsPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &ListTagOptionsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListTagOptionsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListTagOptions page. func (p *ListTagOptionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTagOptionsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.ListTagOptions(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.PageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListTagOptions(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListTagOptions", } }
219
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Notifies the result of the provisioning engine execution. func (c *Client) NotifyProvisionProductEngineWorkflowResult(ctx context.Context, params *NotifyProvisionProductEngineWorkflowResultInput, optFns ...func(*Options)) (*NotifyProvisionProductEngineWorkflowResultOutput, error) { if params == nil { params = &NotifyProvisionProductEngineWorkflowResultInput{} } result, metadata, err := c.invokeOperation(ctx, "NotifyProvisionProductEngineWorkflowResult", params, optFns, c.addOperationNotifyProvisionProductEngineWorkflowResultMiddlewares) if err != nil { return nil, err } out := result.(*NotifyProvisionProductEngineWorkflowResultOutput) out.ResultMetadata = metadata return out, nil } type NotifyProvisionProductEngineWorkflowResultInput struct { // The idempotency token that identifies the provisioning engine execution. // // This member is required. IdempotencyToken *string // The identifier of the record. // // This member is required. RecordId *string // The status of the provisioning engine execution. // // This member is required. Status types.EngineWorkflowStatus // The encrypted contents of the provisioning engine execution payload that // Service Catalog sends after the Terraform product provisioning workflow starts. // // This member is required. WorkflowToken *string // The reason why the provisioning engine execution failed. FailureReason *string // The output of the provisioning engine execution. Outputs []types.RecordOutput // The ID for the provisioned product resources that are part of a resource group. ResourceIdentifier *types.EngineWorkflowResourceIdentifier noSmithyDocumentSerde } type NotifyProvisionProductEngineWorkflowResultOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationNotifyProvisionProductEngineWorkflowResultMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpNotifyProvisionProductEngineWorkflowResult{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpNotifyProvisionProductEngineWorkflowResult{}, 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_opNotifyProvisionProductEngineWorkflowResultMiddleware(stack, options); err != nil { return err } if err = addOpNotifyProvisionProductEngineWorkflowResultValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opNotifyProvisionProductEngineWorkflowResult(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_initializeOpNotifyProvisionProductEngineWorkflowResult struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpNotifyProvisionProductEngineWorkflowResult) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpNotifyProvisionProductEngineWorkflowResult) 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.(*NotifyProvisionProductEngineWorkflowResultInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *NotifyProvisionProductEngineWorkflowResultInput ") } if input.IdempotencyToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.IdempotencyToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opNotifyProvisionProductEngineWorkflowResultMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpNotifyProvisionProductEngineWorkflowResult{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opNotifyProvisionProductEngineWorkflowResult(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "NotifyProvisionProductEngineWorkflowResult", } }
183
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Notifies the result of the terminate engine execution. func (c *Client) NotifyTerminateProvisionedProductEngineWorkflowResult(ctx context.Context, params *NotifyTerminateProvisionedProductEngineWorkflowResultInput, optFns ...func(*Options)) (*NotifyTerminateProvisionedProductEngineWorkflowResultOutput, error) { if params == nil { params = &NotifyTerminateProvisionedProductEngineWorkflowResultInput{} } result, metadata, err := c.invokeOperation(ctx, "NotifyTerminateProvisionedProductEngineWorkflowResult", params, optFns, c.addOperationNotifyTerminateProvisionedProductEngineWorkflowResultMiddlewares) if err != nil { return nil, err } out := result.(*NotifyTerminateProvisionedProductEngineWorkflowResultOutput) out.ResultMetadata = metadata return out, nil } type NotifyTerminateProvisionedProductEngineWorkflowResultInput struct { // The idempotency token that identifies the terminate engine execution. // // This member is required. IdempotencyToken *string // The identifier of the record. // // This member is required. RecordId *string // The status of the terminate engine execution. // // This member is required. Status types.EngineWorkflowStatus // The encrypted contents of the terminate engine execution payload that Service // Catalog sends after the Terraform product terminate workflow starts. // // This member is required. WorkflowToken *string // The reason why the terminate engine execution failed. FailureReason *string noSmithyDocumentSerde } type NotifyTerminateProvisionedProductEngineWorkflowResultOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationNotifyTerminateProvisionedProductEngineWorkflowResultMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpNotifyTerminateProvisionedProductEngineWorkflowResult{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpNotifyTerminateProvisionedProductEngineWorkflowResult{}, 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_opNotifyTerminateProvisionedProductEngineWorkflowResultMiddleware(stack, options); err != nil { return err } if err = addOpNotifyTerminateProvisionedProductEngineWorkflowResultValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opNotifyTerminateProvisionedProductEngineWorkflowResult(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_initializeOpNotifyTerminateProvisionedProductEngineWorkflowResult struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpNotifyTerminateProvisionedProductEngineWorkflowResult) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpNotifyTerminateProvisionedProductEngineWorkflowResult) 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.(*NotifyTerminateProvisionedProductEngineWorkflowResultInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *NotifyTerminateProvisionedProductEngineWorkflowResultInput ") } if input.IdempotencyToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.IdempotencyToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opNotifyTerminateProvisionedProductEngineWorkflowResultMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpNotifyTerminateProvisionedProductEngineWorkflowResult{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opNotifyTerminateProvisionedProductEngineWorkflowResult(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "NotifyTerminateProvisionedProductEngineWorkflowResult", } }
177
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Notifies the result of the update engine execution. func (c *Client) NotifyUpdateProvisionedProductEngineWorkflowResult(ctx context.Context, params *NotifyUpdateProvisionedProductEngineWorkflowResultInput, optFns ...func(*Options)) (*NotifyUpdateProvisionedProductEngineWorkflowResultOutput, error) { if params == nil { params = &NotifyUpdateProvisionedProductEngineWorkflowResultInput{} } result, metadata, err := c.invokeOperation(ctx, "NotifyUpdateProvisionedProductEngineWorkflowResult", params, optFns, c.addOperationNotifyUpdateProvisionedProductEngineWorkflowResultMiddlewares) if err != nil { return nil, err } out := result.(*NotifyUpdateProvisionedProductEngineWorkflowResultOutput) out.ResultMetadata = metadata return out, nil } type NotifyUpdateProvisionedProductEngineWorkflowResultInput struct { // The idempotency token that identifies the update engine execution. // // This member is required. IdempotencyToken *string // The identifier of the record. // // This member is required. RecordId *string // The status of the update engine execution. // // This member is required. Status types.EngineWorkflowStatus // The encrypted contents of the update engine execution payload that Service // Catalog sends after the Terraform product update workflow starts. // // This member is required. WorkflowToken *string // The reason why the update engine execution failed. FailureReason *string // The output of the update engine execution. Outputs []types.RecordOutput noSmithyDocumentSerde } type NotifyUpdateProvisionedProductEngineWorkflowResultOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationNotifyUpdateProvisionedProductEngineWorkflowResultMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpNotifyUpdateProvisionedProductEngineWorkflowResult{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpNotifyUpdateProvisionedProductEngineWorkflowResult{}, 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_opNotifyUpdateProvisionedProductEngineWorkflowResultMiddleware(stack, options); err != nil { return err } if err = addOpNotifyUpdateProvisionedProductEngineWorkflowResultValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opNotifyUpdateProvisionedProductEngineWorkflowResult(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_initializeOpNotifyUpdateProvisionedProductEngineWorkflowResult struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpNotifyUpdateProvisionedProductEngineWorkflowResult) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpNotifyUpdateProvisionedProductEngineWorkflowResult) 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.(*NotifyUpdateProvisionedProductEngineWorkflowResultInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *NotifyUpdateProvisionedProductEngineWorkflowResultInput ") } if input.IdempotencyToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.IdempotencyToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opNotifyUpdateProvisionedProductEngineWorkflowResultMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpNotifyUpdateProvisionedProductEngineWorkflowResult{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opNotifyUpdateProvisionedProductEngineWorkflowResult(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "NotifyUpdateProvisionedProductEngineWorkflowResult", } }
180
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Provisions the specified product. A provisioned product is a resourced instance // of a product. For example, provisioning a product that's based on an // CloudFormation template launches an CloudFormation stack and its underlying // resources. You can check the status of this request using DescribeRecord . If // the request contains a tag key with an empty list of values, there's a tag // conflict for that key. Don't include conflicted keys as tags, or this will cause // the error "Parameter validation failed: Missing required parameter in // Tags[N]:Value". When provisioning a product that's been added to a portfolio, // you must grant your user, group, or role access to the portfolio. For more // information, see Granting users access (https://docs.aws.amazon.com/servicecatalog/latest/adminguide/catalogs_portfolios_users.html) // in the Service Catalog User Guide. func (c *Client) ProvisionProduct(ctx context.Context, params *ProvisionProductInput, optFns ...func(*Options)) (*ProvisionProductOutput, error) { if params == nil { params = &ProvisionProductInput{} } result, metadata, err := c.invokeOperation(ctx, "ProvisionProduct", params, optFns, c.addOperationProvisionProductMiddlewares) if err != nil { return nil, err } out := result.(*ProvisionProductOutput) out.ResultMetadata = metadata return out, nil } type ProvisionProductInput struct { // An idempotency token that uniquely identifies the provisioning request. // // This member is required. ProvisionToken *string // A user-friendly name for the provisioned product. This value must be unique for // the Amazon Web Services account and cannot be updated after the product is // provisioned. // // This member is required. ProvisionedProductName *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // Passed to CloudFormation. The SNS topic ARNs to which to publish stack-related // events. NotificationArns []string // The path identifier of the product. This value is optional if the product has a // default path, and required if the product has more than one path. To list the // paths for a product, use ListLaunchPaths . You must provide the name or ID, but // not both. PathId *string // The name of the path. You must provide the name or ID, but not both. PathName *string // The product identifier. You must provide the name or ID, but not both. ProductId *string // The name of the product. You must provide the name or ID, but not both. ProductName *string // The identifier of the provisioning artifact. You must provide the name or ID, // but not both. ProvisioningArtifactId *string // The name of the provisioning artifact. You must provide the name or ID, but not // both. ProvisioningArtifactName *string // Parameters specified by the administrator that are required for provisioning // the product. ProvisioningParameters []types.ProvisioningParameter // An object that contains information about the provisioning preferences for a // stack set. ProvisioningPreferences *types.ProvisioningPreferences // One or more tags. Tags []types.Tag noSmithyDocumentSerde } type ProvisionProductOutput struct { // Information about the result of provisioning the product. RecordDetail *types.RecordDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationProvisionProductMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpProvisionProduct{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpProvisionProduct{}, 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_opProvisionProductMiddleware(stack, options); err != nil { return err } if err = addOpProvisionProductValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opProvisionProduct(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_initializeOpProvisionProduct struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpProvisionProduct) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpProvisionProduct) 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.(*ProvisionProductInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *ProvisionProductInput ") } if input.ProvisionToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.ProvisionToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opProvisionProductMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpProvisionProduct{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opProvisionProduct(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ProvisionProduct", } }
222
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Rejects an offer to share the specified portfolio. func (c *Client) RejectPortfolioShare(ctx context.Context, params *RejectPortfolioShareInput, optFns ...func(*Options)) (*RejectPortfolioShareOutput, error) { if params == nil { params = &RejectPortfolioShareInput{} } result, metadata, err := c.invokeOperation(ctx, "RejectPortfolioShare", params, optFns, c.addOperationRejectPortfolioShareMiddlewares) if err != nil { return nil, err } out := result.(*RejectPortfolioShareOutput) out.ResultMetadata = metadata return out, nil } type RejectPortfolioShareInput struct { // The portfolio identifier. // // This member is required. PortfolioId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The type of shared portfolios to reject. The default is to reject imported // portfolios. // - AWS_ORGANIZATIONS - Reject portfolios shared by the management account of // your organization. // - IMPORTED - Reject imported portfolios. // - AWS_SERVICECATALOG - Not supported. (Throws ResourceNotFoundException.) // For example, aws servicecatalog reject-portfolio-share --portfolio-id // "port-2qwzkwxt3y5fk" --portfolio-share-type AWS_ORGANIZATIONS PortfolioShareType types.PortfolioShareType noSmithyDocumentSerde } type RejectPortfolioShareOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationRejectPortfolioShareMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpRejectPortfolioShare{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRejectPortfolioShare{}, 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 = addOpRejectPortfolioShareValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRejectPortfolioShare(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_opRejectPortfolioShare(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "RejectPortfolioShare", } }
136
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists the provisioned products that are available (not terminated). To use // additional filtering, see SearchProvisionedProducts . func (c *Client) ScanProvisionedProducts(ctx context.Context, params *ScanProvisionedProductsInput, optFns ...func(*Options)) (*ScanProvisionedProductsOutput, error) { if params == nil { params = &ScanProvisionedProductsInput{} } result, metadata, err := c.invokeOperation(ctx, "ScanProvisionedProducts", params, optFns, c.addOperationScanProvisionedProductsMiddlewares) if err != nil { return nil, err } out := result.(*ScanProvisionedProductsOutput) out.ResultMetadata = metadata return out, nil } type ScanProvisionedProductsInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The access level to use to obtain results. The default is User . AccessLevelFilter *types.AccessLevelFilter // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string noSmithyDocumentSerde } type ScanProvisionedProductsOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Information about the provisioned products. ProvisionedProducts []types.ProvisionedProductDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationScanProvisionedProductsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpScanProvisionedProducts{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpScanProvisionedProducts{}, 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_opScanProvisionedProducts(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_opScanProvisionedProducts(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ScanProvisionedProducts", } }
137
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the products to which the caller has access. func (c *Client) SearchProducts(ctx context.Context, params *SearchProductsInput, optFns ...func(*Options)) (*SearchProductsOutput, error) { if params == nil { params = &SearchProductsInput{} } result, metadata, err := c.invokeOperation(ctx, "SearchProducts", params, optFns, c.addOperationSearchProductsMiddlewares) if err != nil { return nil, err } out := result.(*SearchProductsOutput) out.ResultMetadata = metadata return out, nil } type SearchProductsInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The search filters. If no search filters are specified, the output includes all // products to which the caller has access. Filters map[string][]string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string // The sort field. If no value is specified, the results are not sorted. SortBy types.ProductViewSortBy // The sort order. If no value is specified, the results are not sorted. SortOrder types.SortOrder noSmithyDocumentSerde } type SearchProductsOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // The product view aggregations. ProductViewAggregations map[string][]types.ProductViewAggregationValue // Information about the product views. ProductViewSummaries []types.ProductViewSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationSearchProductsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchProducts{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchProducts{}, 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_opSearchProducts(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 } // SearchProductsAPIClient is a client that implements the SearchProducts // operation. type SearchProductsAPIClient interface { SearchProducts(context.Context, *SearchProductsInput, ...func(*Options)) (*SearchProductsOutput, error) } var _ SearchProductsAPIClient = (*Client)(nil) // SearchProductsPaginatorOptions is the paginator options for SearchProducts type SearchProductsPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // SearchProductsPaginator is a paginator for SearchProducts type SearchProductsPaginator struct { options SearchProductsPaginatorOptions client SearchProductsAPIClient params *SearchProductsInput nextToken *string firstPage bool } // NewSearchProductsPaginator returns a new SearchProductsPaginator func NewSearchProductsPaginator(client SearchProductsAPIClient, params *SearchProductsInput, optFns ...func(*SearchProductsPaginatorOptions)) *SearchProductsPaginator { if params == nil { params = &SearchProductsInput{} } options := SearchProductsPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &SearchProductsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *SearchProductsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next SearchProducts page. func (p *SearchProductsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchProductsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.SearchProducts(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opSearchProducts(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "SearchProducts", } }
233
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the products for the specified portfolio or all products. func (c *Client) SearchProductsAsAdmin(ctx context.Context, params *SearchProductsAsAdminInput, optFns ...func(*Options)) (*SearchProductsAsAdminOutput, error) { if params == nil { params = &SearchProductsAsAdminInput{} } result, metadata, err := c.invokeOperation(ctx, "SearchProductsAsAdmin", params, optFns, c.addOperationSearchProductsAsAdminMiddlewares) if err != nil { return nil, err } out := result.(*SearchProductsAsAdminOutput) out.ResultMetadata = metadata return out, nil } type SearchProductsAsAdminInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The search filters. If no search filters are specified, the output includes all // products to which the administrator has access. Filters map[string][]string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string // The portfolio identifier. PortfolioId *string // Access level of the source of the product. ProductSource types.ProductSource // The sort field. If no value is specified, the results are not sorted. SortBy types.ProductViewSortBy // The sort order. If no value is specified, the results are not sorted. SortOrder types.SortOrder noSmithyDocumentSerde } type SearchProductsAsAdminOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Information about the product views. ProductViewDetails []types.ProductViewDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationSearchProductsAsAdminMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchProductsAsAdmin{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchProductsAsAdmin{}, 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_opSearchProductsAsAdmin(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 } // SearchProductsAsAdminAPIClient is a client that implements the // SearchProductsAsAdmin operation. type SearchProductsAsAdminAPIClient interface { SearchProductsAsAdmin(context.Context, *SearchProductsAsAdminInput, ...func(*Options)) (*SearchProductsAsAdminOutput, error) } var _ SearchProductsAsAdminAPIClient = (*Client)(nil) // SearchProductsAsAdminPaginatorOptions is the paginator options for // SearchProductsAsAdmin type SearchProductsAsAdminPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // SearchProductsAsAdminPaginator is a paginator for SearchProductsAsAdmin type SearchProductsAsAdminPaginator struct { options SearchProductsAsAdminPaginatorOptions client SearchProductsAsAdminAPIClient params *SearchProductsAsAdminInput nextToken *string firstPage bool } // NewSearchProductsAsAdminPaginator returns a new SearchProductsAsAdminPaginator func NewSearchProductsAsAdminPaginator(client SearchProductsAsAdminAPIClient, params *SearchProductsAsAdminInput, optFns ...func(*SearchProductsAsAdminPaginatorOptions)) *SearchProductsAsAdminPaginator { if params == nil { params = &SearchProductsAsAdminInput{} } options := SearchProductsAsAdminPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &SearchProductsAsAdminPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *SearchProductsAsAdminPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next SearchProductsAsAdmin page. func (p *SearchProductsAsAdminPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchProductsAsAdminOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.SearchProductsAsAdmin(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opSearchProductsAsAdmin(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "SearchProductsAsAdmin", } }
237
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets information about the provisioned products that meet the specified // criteria. func (c *Client) SearchProvisionedProducts(ctx context.Context, params *SearchProvisionedProductsInput, optFns ...func(*Options)) (*SearchProvisionedProductsOutput, error) { if params == nil { params = &SearchProvisionedProductsInput{} } result, metadata, err := c.invokeOperation(ctx, "SearchProvisionedProducts", params, optFns, c.addOperationSearchProvisionedProductsMiddlewares) if err != nil { return nil, err } out := result.(*SearchProvisionedProductsOutput) out.ResultMetadata = metadata return out, nil } type SearchProvisionedProductsInput struct { // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The access level to use to obtain results. The default is User . AccessLevelFilter *types.AccessLevelFilter // The search filters. When the key is SearchQuery , the searchable fields are arn // , createdTime , id , lastRecordId , idempotencyToken , name , physicalId , // productId , provisioningArtifact , type , status , tags , userArn , // userArnSession , lastProvisioningRecordId , lastSuccessfulProvisioningRecordId , // productName , and provisioningArtifactName . Example: // "SearchQuery":["status:AVAILABLE"] Filters map[string][]string // The maximum number of items to return with this call. PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string // The sort field. If no value is specified, the results are not sorted. The valid // values are arn , id , name , and lastRecordId . SortBy *string // The sort order. If no value is specified, the results are not sorted. SortOrder types.SortOrder noSmithyDocumentSerde } type SearchProvisionedProductsOutput struct { // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string // Information about the provisioned products. ProvisionedProducts []types.ProvisionedProductAttribute // The number of provisioned products found. TotalResultsCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationSearchProvisionedProductsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchProvisionedProducts{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchProvisionedProducts{}, 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_opSearchProvisionedProducts(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 } // SearchProvisionedProductsAPIClient is a client that implements the // SearchProvisionedProducts operation. type SearchProvisionedProductsAPIClient interface { SearchProvisionedProducts(context.Context, *SearchProvisionedProductsInput, ...func(*Options)) (*SearchProvisionedProductsOutput, error) } var _ SearchProvisionedProductsAPIClient = (*Client)(nil) // SearchProvisionedProductsPaginatorOptions is the paginator options for // SearchProvisionedProducts type SearchProvisionedProductsPaginatorOptions struct { // The maximum number of items to return with this call. 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 } // SearchProvisionedProductsPaginator is a paginator for SearchProvisionedProducts type SearchProvisionedProductsPaginator struct { options SearchProvisionedProductsPaginatorOptions client SearchProvisionedProductsAPIClient params *SearchProvisionedProductsInput nextToken *string firstPage bool } // NewSearchProvisionedProductsPaginator returns a new // SearchProvisionedProductsPaginator func NewSearchProvisionedProductsPaginator(client SearchProvisionedProductsAPIClient, params *SearchProvisionedProductsInput, optFns ...func(*SearchProvisionedProductsPaginatorOptions)) *SearchProvisionedProductsPaginator { if params == nil { params = &SearchProvisionedProductsInput{} } options := SearchProvisionedProductsPaginatorOptions{} if params.PageSize != 0 { options.Limit = params.PageSize } for _, fn := range optFns { fn(&options) } return &SearchProvisionedProductsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.PageToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *SearchProvisionedProductsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next SearchProvisionedProducts page. func (p *SearchProvisionedProductsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchProvisionedProductsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.PageToken = p.nextToken params.PageSize = p.options.Limit result, err := p.client.SearchProvisionedProducts(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextPageToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opSearchProvisionedProducts(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "SearchProvisionedProducts", } }
244
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Terminates the specified provisioned product. This operation does not delete // any records associated with the provisioned product. You can check the status of // this request using DescribeRecord . func (c *Client) TerminateProvisionedProduct(ctx context.Context, params *TerminateProvisionedProductInput, optFns ...func(*Options)) (*TerminateProvisionedProductOutput, error) { if params == nil { params = &TerminateProvisionedProductInput{} } result, metadata, err := c.invokeOperation(ctx, "TerminateProvisionedProduct", params, optFns, c.addOperationTerminateProvisionedProductMiddlewares) if err != nil { return nil, err } out := result.(*TerminateProvisionedProductOutput) out.ResultMetadata = metadata return out, nil } type TerminateProvisionedProductInput struct { // An idempotency token that uniquely identifies the termination request. This // token is only valid during the termination process. After the provisioned // product is terminated, subsequent requests to terminate the same provisioned // product always return ResourceNotFound. // // This member is required. TerminateToken *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // If set to true, Service Catalog stops managing the specified provisioned // product even if it cannot delete the underlying resources. IgnoreErrors bool // The identifier of the provisioned product. You cannot specify both // ProvisionedProductName and ProvisionedProductId . ProvisionedProductId *string // The name of the provisioned product. You cannot specify both // ProvisionedProductName and ProvisionedProductId . ProvisionedProductName *string // When this boolean parameter is set to true, the TerminateProvisionedProduct API // deletes the Service Catalog provisioned product. However, it does not remove the // CloudFormation stack, stack set, or the underlying resources of the deleted // provisioned product. The default value is false. RetainPhysicalResources bool noSmithyDocumentSerde } type TerminateProvisionedProductOutput struct { // Information about the result of this request. RecordDetail *types.RecordDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationTerminateProvisionedProductMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpTerminateProvisionedProduct{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpTerminateProvisionedProduct{}, 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_opTerminateProvisionedProductMiddleware(stack, options); err != nil { return err } if err = addOpTerminateProvisionedProductValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTerminateProvisionedProduct(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_initializeOpTerminateProvisionedProduct struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpTerminateProvisionedProduct) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpTerminateProvisionedProduct) 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.(*TerminateProvisionedProductInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *TerminateProvisionedProductInput ") } if input.TerminateToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.TerminateToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opTerminateProvisionedProductMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpTerminateProvisionedProduct{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opTerminateProvisionedProduct(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "TerminateProvisionedProduct", } }
190
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates the specified constraint. func (c *Client) UpdateConstraint(ctx context.Context, params *UpdateConstraintInput, optFns ...func(*Options)) (*UpdateConstraintOutput, error) { if params == nil { params = &UpdateConstraintInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateConstraint", params, optFns, c.addOperationUpdateConstraintMiddlewares) if err != nil { return nil, err } out := result.(*UpdateConstraintOutput) out.ResultMetadata = metadata return out, nil } type UpdateConstraintInput struct { // The identifier of the constraint. // // This member is required. Id *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The updated description of the constraint. Description *string // The constraint parameters, in JSON format. The syntax depends on the constraint // type as follows: LAUNCH You are required to specify either the RoleArn or the // LocalRoleName but can't use both. Specify the RoleArn property as follows: // {"RoleArn" : "arn:aws:iam::123456789012:role/LaunchRole"} Specify the // LocalRoleName property as follows: {"LocalRoleName": "SCBasicLaunchRole"} If // you specify the LocalRoleName property, when an account uses the launch // constraint, the IAM role with that name in the account will be used. This allows // launch-role constraints to be account-agnostic so the administrator can create // fewer resources per shared account. The given role name must exist in the // account used to create the launch constraint and the account of the user who // launches a product with this launch constraint. You cannot have both a LAUNCH // and a STACKSET constraint. You also cannot have more than one LAUNCH constraint // on a product and portfolio. NOTIFICATION Specify the NotificationArns property // as follows: {"NotificationArns" : ["arn:aws:sns:us-east-1:123456789012:Topic"]} // RESOURCE_UPDATE Specify the TagUpdatesOnProvisionedProduct property as follows: // {"Version":"2.0","Properties":{"TagUpdateOnProvisionedProduct":"String"}} The // TagUpdatesOnProvisionedProduct property accepts a string value of ALLOWED or // NOT_ALLOWED . STACKSET Specify the Parameters property as follows: {"Version": // "String", "Properties": {"AccountList": [ "String" ], "RegionList": [ "String" // ], "AdminRole": "String", "ExecutionRole": "String"}} You cannot have both a // LAUNCH and a STACKSET constraint. You also cannot have more than one STACKSET // constraint on a product and portfolio. Products with a STACKSET constraint will // launch an CloudFormation stack set. TEMPLATE Specify the Rules property. For // more information, see Template Constraint Rules (http://docs.aws.amazon.com/servicecatalog/latest/adminguide/reference-template_constraint_rules.html) // . Parameters *string noSmithyDocumentSerde } type UpdateConstraintOutput struct { // Information about the constraint. ConstraintDetail *types.ConstraintDetail // The constraint parameters. ConstraintParameters *string // The status of the current request. Status types.Status // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateConstraintMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateConstraint{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateConstraint{}, 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 = addOpUpdateConstraintValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateConstraint(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_opUpdateConstraint(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "UpdateConstraint", } }
166
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates the specified portfolio. You cannot update a product that was shared // with you. func (c *Client) UpdatePortfolio(ctx context.Context, params *UpdatePortfolioInput, optFns ...func(*Options)) (*UpdatePortfolioOutput, error) { if params == nil { params = &UpdatePortfolioInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdatePortfolio", params, optFns, c.addOperationUpdatePortfolioMiddlewares) if err != nil { return nil, err } out := result.(*UpdatePortfolioOutput) out.ResultMetadata = metadata return out, nil } type UpdatePortfolioInput struct { // The portfolio identifier. // // This member is required. Id *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The tags to add. AddTags []types.Tag // The updated description of the portfolio. Description *string // The name to use for display purposes. DisplayName *string // The updated name of the portfolio provider. ProviderName *string // The tags to remove. RemoveTags []string noSmithyDocumentSerde } type UpdatePortfolioOutput struct { // Information about the portfolio. PortfolioDetail *types.PortfolioDetail // Information about the tags associated with the portfolio. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdatePortfolioMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdatePortfolio{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdatePortfolio{}, 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 = addOpUpdatePortfolioValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePortfolio(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_opUpdatePortfolio(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "UpdatePortfolio", } }
149
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates the specified portfolio share. You can use this API to enable or // disable TagOptions sharing or Principal sharing for an existing portfolio // share. The portfolio share cannot be updated if the CreatePortfolioShare // operation is IN_PROGRESS , as the share is not available to recipient entities. // In this case, you must wait for the portfolio share to be COMPLETED. You must // provide the accountId or organization node in the input, but not both. If the // portfolio is shared to both an external account and an organization node, and // both shares need to be updated, you must invoke UpdatePortfolioShare separately // for each share type. This API cannot be used for removing the portfolio share. // You must use DeletePortfolioShare API for that action. When you associate a // principal with portfolio, a potential privilege escalation path may occur when // that portfolio is then shared with other accounts. For a user in a recipient // account who is not an Service Catalog Admin, but still has the ability to create // Principals (Users/Groups/Roles), that user could create a role that matches a // principal name association for the portfolio. Although this user may not know // which principal names are associated through Service Catalog, they may be able // to guess the user. If this potential escalation path is a concern, then Service // Catalog recommends using PrincipalType as IAM . With this configuration, the // PrincipalARN must already exist in the recipient account before it can be // associated. func (c *Client) UpdatePortfolioShare(ctx context.Context, params *UpdatePortfolioShareInput, optFns ...func(*Options)) (*UpdatePortfolioShareOutput, error) { if params == nil { params = &UpdatePortfolioShareInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdatePortfolioShare", params, optFns, c.addOperationUpdatePortfolioShareMiddlewares) if err != nil { return nil, err } out := result.(*UpdatePortfolioShareOutput) out.ResultMetadata = metadata return out, nil } type UpdatePortfolioShareInput struct { // The unique identifier of the portfolio for which the share will be updated. // // This member is required. PortfolioId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The Amazon Web Services account Id of the recipient account. This field is // required when updating an external account to account type share. AccountId *string // Information about the organization node. OrganizationNode *types.OrganizationNode // A flag to enables or disables Principals sharing in the portfolio. If this // field is not provided, the current state of the Principals sharing on the // portfolio share will not be modified. SharePrincipals *bool // Enables or disables TagOptions sharing for the portfolio share. If this field // is not provided, the current state of TagOptions sharing on the portfolio share // will not be modified. ShareTagOptions *bool noSmithyDocumentSerde } type UpdatePortfolioShareOutput struct { // The token that tracks the status of the UpdatePortfolioShare operation for // external account to account or organizational type sharing. PortfolioShareToken *string // The status of UpdatePortfolioShare operation. You can also obtain the operation // status using DescribePortfolioShareStatus API. Status types.ShareStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdatePortfolioShareMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdatePortfolioShare{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdatePortfolioShare{}, 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 = addOpUpdatePortfolioShareValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePortfolioShare(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_opUpdatePortfolioShare(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "UpdatePortfolioShare", } }
171
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates the specified product. func (c *Client) UpdateProduct(ctx context.Context, params *UpdateProductInput, optFns ...func(*Options)) (*UpdateProductOutput, error) { if params == nil { params = &UpdateProductInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateProduct", params, optFns, c.addOperationUpdateProductMiddlewares) if err != nil { return nil, err } out := result.(*UpdateProductOutput) out.ResultMetadata = metadata return out, nil } type UpdateProductInput struct { // The product identifier. // // This member is required. Id *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The tags to add to the product. AddTags []types.Tag // The updated description of the product. Description *string // The updated distributor of the product. Distributor *string // The updated product name. Name *string // The updated owner of the product. Owner *string // The tags to remove from the product. RemoveTags []string // Specifies connection details for the updated product and syncs the product to // the connection source artifact. This automatically manages the product's // artifacts based on changes to the source. The SourceConnection parameter // consists of the following sub-fields. // - Type // - ConnectionParamters SourceConnection *types.SourceConnection // The updated support description for the product. SupportDescription *string // The updated support email for the product. SupportEmail *string // The updated support URL for the product. SupportUrl *string noSmithyDocumentSerde } type UpdateProductOutput struct { // Information about the product view. ProductViewDetail *types.ProductViewDetail // Information about the tags associated with the product. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateProductMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateProduct{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateProduct{}, 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 = addOpUpdateProductValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateProduct(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_opUpdateProduct(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "UpdateProduct", } }
168
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Requests updates to the configuration of the specified provisioned product. If // there are tags associated with the object, they cannot be updated or added. // Depending on the specific updates requested, this operation can update with no // interruption, with some interruption, or replace the provisioned product // entirely. You can check the status of this request using DescribeRecord . func (c *Client) UpdateProvisionedProduct(ctx context.Context, params *UpdateProvisionedProductInput, optFns ...func(*Options)) (*UpdateProvisionedProductOutput, error) { if params == nil { params = &UpdateProvisionedProductInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateProvisionedProduct", params, optFns, c.addOperationUpdateProvisionedProductMiddlewares) if err != nil { return nil, err } out := result.(*UpdateProvisionedProductOutput) out.ResultMetadata = metadata return out, nil } type UpdateProvisionedProductInput struct { // The idempotency token that uniquely identifies the provisioning update request. // // This member is required. UpdateToken *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // The path identifier. This value is optional if the product has a default path, // and required if the product has more than one path. You must provide the name or // ID, but not both. PathId *string // The name of the path. You must provide the name or ID, but not both. PathName *string // The identifier of the product. You must provide the name or ID, but not both. ProductId *string // The name of the product. You must provide the name or ID, but not both. ProductName *string // The identifier of the provisioned product. You must provide the name or ID, but // not both. ProvisionedProductId *string // The name of the provisioned product. You cannot specify both // ProvisionedProductName and ProvisionedProductId . ProvisionedProductName *string // The identifier of the provisioning artifact. ProvisioningArtifactId *string // The name of the provisioning artifact. You must provide the name or ID, but not // both. ProvisioningArtifactName *string // The new parameters. ProvisioningParameters []types.UpdateProvisioningParameter // An object that contains information about the provisioning preferences for a // stack set. ProvisioningPreferences *types.UpdateProvisioningPreferences // One or more tags. Requires the product to have RESOURCE_UPDATE constraint with // TagUpdatesOnProvisionedProduct set to ALLOWED to allow tag updates. Tags []types.Tag noSmithyDocumentSerde } type UpdateProvisionedProductOutput struct { // Information about the result of the request. RecordDetail *types.RecordDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateProvisionedProductMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateProvisionedProduct{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateProvisionedProduct{}, 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_opUpdateProvisionedProductMiddleware(stack, options); err != nil { return err } if err = addOpUpdateProvisionedProductValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateProvisionedProduct(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_initializeOpUpdateProvisionedProduct struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpUpdateProvisionedProduct) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpUpdateProvisionedProduct) 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.(*UpdateProvisionedProductInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *UpdateProvisionedProductInput ") } if input.UpdateToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.UpdateToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opUpdateProvisionedProductMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpUpdateProvisionedProduct{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opUpdateProvisionedProduct(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "UpdateProvisionedProduct", } }
211
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Requests updates to the properties of the specified provisioned product. func (c *Client) UpdateProvisionedProductProperties(ctx context.Context, params *UpdateProvisionedProductPropertiesInput, optFns ...func(*Options)) (*UpdateProvisionedProductPropertiesOutput, error) { if params == nil { params = &UpdateProvisionedProductPropertiesInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateProvisionedProductProperties", params, optFns, c.addOperationUpdateProvisionedProductPropertiesMiddlewares) if err != nil { return nil, err } out := result.(*UpdateProvisionedProductPropertiesOutput) out.ResultMetadata = metadata return out, nil } type UpdateProvisionedProductPropertiesInput struct { // The idempotency token that uniquely identifies the provisioning product update // request. // // This member is required. IdempotencyToken *string // The identifier of the provisioned product. // // This member is required. ProvisionedProductId *string // A map that contains the provisioned product properties to be updated. The // LAUNCH_ROLE key accepts role ARNs. This key allows an administrator to call // UpdateProvisionedProductProperties to update the launch role that is associated // with a provisioned product. This role is used when an end user calls a // provisioning operation such as UpdateProvisionedProduct , // TerminateProvisionedProduct , or ExecuteProvisionedProductServiceAction . Only a // role ARN is valid. A user ARN is invalid. The OWNER key accepts user ARNs, IAM // role ARNs, and STS assumed-role ARNs. The owner is the user that has permission // to see, update, terminate, and execute service actions in the provisioned // product. The administrator can change the owner of a provisioned product to // another IAM or STS entity within the same account. Both end user owners and // administrators can see ownership history of the provisioned product using the // ListRecordHistory API. The new owner can describe all past records for the // provisioned product using the DescribeRecord API. The previous owner can no // longer use DescribeRecord , but can still see the product's history from when he // was an owner using ListRecordHistory . If a provisioned product ownership is // assigned to an end user, they can see and perform any action through the API or // Service Catalog console such as update, terminate, and execute service actions. // If an end user provisions a product and the owner is updated to someone else, // they will no longer be able to see or perform any actions through API or the // Service Catalog console on that provisioned product. // // This member is required. ProvisionedProductProperties map[string]string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string noSmithyDocumentSerde } type UpdateProvisionedProductPropertiesOutput struct { // The provisioned product identifier. ProvisionedProductId *string // A map that contains the properties updated. ProvisionedProductProperties map[string]string // The identifier of the record. RecordId *string // The status of the request. Status types.RecordStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateProvisionedProductPropertiesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateProvisionedProductProperties{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateProvisionedProductProperties{}, 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_opUpdateProvisionedProductPropertiesMiddleware(stack, options); err != nil { return err } if err = addOpUpdateProvisionedProductPropertiesValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateProvisionedProductProperties(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_initializeOpUpdateProvisionedProductProperties struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpUpdateProvisionedProductProperties) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpUpdateProvisionedProductProperties) 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.(*UpdateProvisionedProductPropertiesInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *UpdateProvisionedProductPropertiesInput ") } if input.IdempotencyToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.IdempotencyToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opUpdateProvisionedProductPropertiesMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpUpdateProvisionedProductProperties{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opUpdateProvisionedProductProperties(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "UpdateProvisionedProductProperties", } }
207
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates the specified provisioning artifact (also known as a version) for the // specified product. You cannot update a provisioning artifact for a product that // was shared with you. func (c *Client) UpdateProvisioningArtifact(ctx context.Context, params *UpdateProvisioningArtifactInput, optFns ...func(*Options)) (*UpdateProvisioningArtifactOutput, error) { if params == nil { params = &UpdateProvisioningArtifactInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateProvisioningArtifact", params, optFns, c.addOperationUpdateProvisioningArtifactMiddlewares) if err != nil { return nil, err } out := result.(*UpdateProvisioningArtifactOutput) out.ResultMetadata = metadata return out, nil } type UpdateProvisioningArtifactInput struct { // The product identifier. // // This member is required. ProductId *string // The identifier of the provisioning artifact. // // This member is required. ProvisioningArtifactId *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // Indicates whether the product version is active. Inactive provisioning // artifacts are invisible to end users. End users cannot launch or update a // provisioned product from an inactive provisioning artifact. Active *bool // The updated description of the provisioning artifact. Description *string // Information set by the administrator to provide guidance to end users about // which provisioning artifacts to use. The DEFAULT value indicates that the // product version is active. The administrator can set the guidance to DEPRECATED // to inform users that the product version is deprecated. Users are able to make // updates to a provisioned product of a deprecated version but cannot launch new // provisioned products using a deprecated version. Guidance types.ProvisioningArtifactGuidance // The updated name of the provisioning artifact. Name *string noSmithyDocumentSerde } type UpdateProvisioningArtifactOutput struct { // The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. Info map[string]string // Information about the provisioning artifact. ProvisioningArtifactDetail *types.ProvisioningArtifactDetail // The status of the current request. Status types.Status // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateProvisioningArtifactMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateProvisioningArtifact{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateProvisioningArtifact{}, 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 = addOpUpdateProvisioningArtifactValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateProvisioningArtifact(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_opUpdateProvisioningArtifact(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "UpdateProvisioningArtifact", } }
162
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates a self-service action. func (c *Client) UpdateServiceAction(ctx context.Context, params *UpdateServiceActionInput, optFns ...func(*Options)) (*UpdateServiceActionOutput, error) { if params == nil { params = &UpdateServiceActionInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateServiceAction", params, optFns, c.addOperationUpdateServiceActionMiddlewares) if err != nil { return nil, err } out := result.(*UpdateServiceActionOutput) out.ResultMetadata = metadata return out, nil } type UpdateServiceActionInput struct { // The self-service action identifier. // // This member is required. Id *string // The language code. // - jp - Japanese // - zh - Chinese AcceptLanguage *string // A map that defines the self-service action. Definition map[string]string // The self-service action description. Description *string // The self-service action name. Name *string noSmithyDocumentSerde } type UpdateServiceActionOutput struct { // Detailed information about the self-service action. ServiceActionDetail *types.ServiceActionDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateServiceActionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateServiceAction{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateServiceAction{}, 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 = addOpUpdateServiceActionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateServiceAction(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_opUpdateServiceAction(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "UpdateServiceAction", } }
139
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates the specified TagOption. func (c *Client) UpdateTagOption(ctx context.Context, params *UpdateTagOptionInput, optFns ...func(*Options)) (*UpdateTagOptionOutput, error) { if params == nil { params = &UpdateTagOptionInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateTagOption", params, optFns, c.addOperationUpdateTagOptionMiddlewares) if err != nil { return nil, err } out := result.(*UpdateTagOptionOutput) out.ResultMetadata = metadata return out, nil } type UpdateTagOptionInput struct { // The TagOption identifier. // // This member is required. Id *string // The updated active state. Active *bool // The updated value. Value *string noSmithyDocumentSerde } type UpdateTagOptionOutput struct { // Information about the TagOption. TagOptionDetail *types.TagOptionDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateTagOptionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateTagOption{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateTagOption{}, 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 = addOpUpdateTagOptionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTagOption(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_opUpdateTagOption(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "UpdateTagOption", } }
131
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. // Package servicecatalog provides the API client, operations, and parameter types // for AWS Service Catalog. // // Service Catalog Service Catalog (http://aws.amazon.com/servicecatalog) enables // organizations to create and manage catalogs of IT services that are approved for // Amazon Web Services. To get the most out of this documentation, you should be // familiar with the terminology discussed in Service Catalog Concepts (http://docs.aws.amazon.com/servicecatalog/latest/adminguide/what-is_concepts.html) // . package servicecatalog
12
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog 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/servicecatalog/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 = "servicecatalog" } 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 servicecatalog // goModuleVersion is the tagged release for this module const goModuleVersion = "1.19.2"
7
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog
4
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog import ( "bytes" "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/servicecatalog/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" smithyhttp "github.com/aws/smithy-go/transport/http" "path" ) type awsAwsjson11_serializeOpAcceptPortfolioShare struct { } func (*awsAwsjson11_serializeOpAcceptPortfolioShare) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpAcceptPortfolioShare) 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.(*AcceptPortfolioShareInput) _ = 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("AWS242ServiceCatalogService.AcceptPortfolioShare") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentAcceptPortfolioShareInput(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_serializeOpAssociateBudgetWithResource struct { } func (*awsAwsjson11_serializeOpAssociateBudgetWithResource) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpAssociateBudgetWithResource) 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.(*AssociateBudgetWithResourceInput) _ = 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("AWS242ServiceCatalogService.AssociateBudgetWithResource") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentAssociateBudgetWithResourceInput(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_serializeOpAssociatePrincipalWithPortfolio struct { } func (*awsAwsjson11_serializeOpAssociatePrincipalWithPortfolio) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpAssociatePrincipalWithPortfolio) 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.(*AssociatePrincipalWithPortfolioInput) _ = 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("AWS242ServiceCatalogService.AssociatePrincipalWithPortfolio") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentAssociatePrincipalWithPortfolioInput(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_serializeOpAssociateProductWithPortfolio struct { } func (*awsAwsjson11_serializeOpAssociateProductWithPortfolio) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpAssociateProductWithPortfolio) 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.(*AssociateProductWithPortfolioInput) _ = 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("AWS242ServiceCatalogService.AssociateProductWithPortfolio") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentAssociateProductWithPortfolioInput(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_serializeOpAssociateServiceActionWithProvisioningArtifact struct { } func (*awsAwsjson11_serializeOpAssociateServiceActionWithProvisioningArtifact) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpAssociateServiceActionWithProvisioningArtifact) 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.(*AssociateServiceActionWithProvisioningArtifactInput) _ = 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("AWS242ServiceCatalogService.AssociateServiceActionWithProvisioningArtifact") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentAssociateServiceActionWithProvisioningArtifactInput(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_serializeOpAssociateTagOptionWithResource struct { } func (*awsAwsjson11_serializeOpAssociateTagOptionWithResource) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpAssociateTagOptionWithResource) 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.(*AssociateTagOptionWithResourceInput) _ = 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("AWS242ServiceCatalogService.AssociateTagOptionWithResource") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentAssociateTagOptionWithResourceInput(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_serializeOpBatchAssociateServiceActionWithProvisioningArtifact struct { } func (*awsAwsjson11_serializeOpBatchAssociateServiceActionWithProvisioningArtifact) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpBatchAssociateServiceActionWithProvisioningArtifact) 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.(*BatchAssociateServiceActionWithProvisioningArtifactInput) _ = 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("AWS242ServiceCatalogService.BatchAssociateServiceActionWithProvisioningArtifact") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentBatchAssociateServiceActionWithProvisioningArtifactInput(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_serializeOpBatchDisassociateServiceActionFromProvisioningArtifact struct { } func (*awsAwsjson11_serializeOpBatchDisassociateServiceActionFromProvisioningArtifact) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpBatchDisassociateServiceActionFromProvisioningArtifact) 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.(*BatchDisassociateServiceActionFromProvisioningArtifactInput) _ = 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("AWS242ServiceCatalogService.BatchDisassociateServiceActionFromProvisioningArtifact") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentBatchDisassociateServiceActionFromProvisioningArtifactInput(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_serializeOpCopyProduct struct { } func (*awsAwsjson11_serializeOpCopyProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpCopyProduct) 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.(*CopyProductInput) _ = 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("AWS242ServiceCatalogService.CopyProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentCopyProductInput(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_serializeOpCreateConstraint struct { } func (*awsAwsjson11_serializeOpCreateConstraint) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpCreateConstraint) 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.(*CreateConstraintInput) _ = 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("AWS242ServiceCatalogService.CreateConstraint") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentCreateConstraintInput(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_serializeOpCreatePortfolio struct { } func (*awsAwsjson11_serializeOpCreatePortfolio) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpCreatePortfolio) 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.(*CreatePortfolioInput) _ = 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("AWS242ServiceCatalogService.CreatePortfolio") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentCreatePortfolioInput(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_serializeOpCreatePortfolioShare struct { } func (*awsAwsjson11_serializeOpCreatePortfolioShare) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpCreatePortfolioShare) 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.(*CreatePortfolioShareInput) _ = 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("AWS242ServiceCatalogService.CreatePortfolioShare") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentCreatePortfolioShareInput(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_serializeOpCreateProduct struct { } func (*awsAwsjson11_serializeOpCreateProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpCreateProduct) 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.(*CreateProductInput) _ = 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("AWS242ServiceCatalogService.CreateProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentCreateProductInput(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_serializeOpCreateProvisionedProductPlan struct { } func (*awsAwsjson11_serializeOpCreateProvisionedProductPlan) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpCreateProvisionedProductPlan) 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.(*CreateProvisionedProductPlanInput) _ = 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("AWS242ServiceCatalogService.CreateProvisionedProductPlan") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentCreateProvisionedProductPlanInput(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_serializeOpCreateProvisioningArtifact struct { } func (*awsAwsjson11_serializeOpCreateProvisioningArtifact) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpCreateProvisioningArtifact) 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.(*CreateProvisioningArtifactInput) _ = 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("AWS242ServiceCatalogService.CreateProvisioningArtifact") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentCreateProvisioningArtifactInput(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_serializeOpCreateServiceAction struct { } func (*awsAwsjson11_serializeOpCreateServiceAction) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpCreateServiceAction) 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.(*CreateServiceActionInput) _ = 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("AWS242ServiceCatalogService.CreateServiceAction") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentCreateServiceActionInput(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_serializeOpCreateTagOption struct { } func (*awsAwsjson11_serializeOpCreateTagOption) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpCreateTagOption) 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.(*CreateTagOptionInput) _ = 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("AWS242ServiceCatalogService.CreateTagOption") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentCreateTagOptionInput(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_serializeOpDeleteConstraint struct { } func (*awsAwsjson11_serializeOpDeleteConstraint) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDeleteConstraint) 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.(*DeleteConstraintInput) _ = 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("AWS242ServiceCatalogService.DeleteConstraint") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDeleteConstraintInput(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_serializeOpDeletePortfolio struct { } func (*awsAwsjson11_serializeOpDeletePortfolio) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDeletePortfolio) 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.(*DeletePortfolioInput) _ = 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("AWS242ServiceCatalogService.DeletePortfolio") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDeletePortfolioInput(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_serializeOpDeletePortfolioShare struct { } func (*awsAwsjson11_serializeOpDeletePortfolioShare) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDeletePortfolioShare) 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.(*DeletePortfolioShareInput) _ = 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("AWS242ServiceCatalogService.DeletePortfolioShare") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDeletePortfolioShareInput(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_serializeOpDeleteProduct struct { } func (*awsAwsjson11_serializeOpDeleteProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDeleteProduct) 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.(*DeleteProductInput) _ = 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("AWS242ServiceCatalogService.DeleteProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDeleteProductInput(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_serializeOpDeleteProvisionedProductPlan struct { } func (*awsAwsjson11_serializeOpDeleteProvisionedProductPlan) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDeleteProvisionedProductPlan) 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.(*DeleteProvisionedProductPlanInput) _ = 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("AWS242ServiceCatalogService.DeleteProvisionedProductPlan") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDeleteProvisionedProductPlanInput(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_serializeOpDeleteProvisioningArtifact struct { } func (*awsAwsjson11_serializeOpDeleteProvisioningArtifact) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDeleteProvisioningArtifact) 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.(*DeleteProvisioningArtifactInput) _ = 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("AWS242ServiceCatalogService.DeleteProvisioningArtifact") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDeleteProvisioningArtifactInput(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_serializeOpDeleteServiceAction struct { } func (*awsAwsjson11_serializeOpDeleteServiceAction) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDeleteServiceAction) 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.(*DeleteServiceActionInput) _ = 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("AWS242ServiceCatalogService.DeleteServiceAction") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDeleteServiceActionInput(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_serializeOpDeleteTagOption struct { } func (*awsAwsjson11_serializeOpDeleteTagOption) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDeleteTagOption) 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.(*DeleteTagOptionInput) _ = 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("AWS242ServiceCatalogService.DeleteTagOption") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDeleteTagOptionInput(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_serializeOpDescribeConstraint struct { } func (*awsAwsjson11_serializeOpDescribeConstraint) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeConstraint) 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.(*DescribeConstraintInput) _ = 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("AWS242ServiceCatalogService.DescribeConstraint") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeConstraintInput(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_serializeOpDescribeCopyProductStatus struct { } func (*awsAwsjson11_serializeOpDescribeCopyProductStatus) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeCopyProductStatus) 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.(*DescribeCopyProductStatusInput) _ = 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("AWS242ServiceCatalogService.DescribeCopyProductStatus") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeCopyProductStatusInput(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_serializeOpDescribePortfolio struct { } func (*awsAwsjson11_serializeOpDescribePortfolio) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribePortfolio) 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.(*DescribePortfolioInput) _ = 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("AWS242ServiceCatalogService.DescribePortfolio") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribePortfolioInput(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_serializeOpDescribePortfolioShares struct { } func (*awsAwsjson11_serializeOpDescribePortfolioShares) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribePortfolioShares) 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.(*DescribePortfolioSharesInput) _ = 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("AWS242ServiceCatalogService.DescribePortfolioShares") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribePortfolioSharesInput(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_serializeOpDescribePortfolioShareStatus struct { } func (*awsAwsjson11_serializeOpDescribePortfolioShareStatus) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribePortfolioShareStatus) 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.(*DescribePortfolioShareStatusInput) _ = 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("AWS242ServiceCatalogService.DescribePortfolioShareStatus") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribePortfolioShareStatusInput(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_serializeOpDescribeProduct struct { } func (*awsAwsjson11_serializeOpDescribeProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeProduct) 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.(*DescribeProductInput) _ = 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("AWS242ServiceCatalogService.DescribeProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeProductInput(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_serializeOpDescribeProductAsAdmin struct { } func (*awsAwsjson11_serializeOpDescribeProductAsAdmin) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeProductAsAdmin) 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.(*DescribeProductAsAdminInput) _ = 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("AWS242ServiceCatalogService.DescribeProductAsAdmin") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeProductAsAdminInput(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_serializeOpDescribeProductView struct { } func (*awsAwsjson11_serializeOpDescribeProductView) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeProductView) 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.(*DescribeProductViewInput) _ = 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("AWS242ServiceCatalogService.DescribeProductView") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeProductViewInput(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_serializeOpDescribeProvisionedProduct struct { } func (*awsAwsjson11_serializeOpDescribeProvisionedProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeProvisionedProduct) 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.(*DescribeProvisionedProductInput) _ = 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("AWS242ServiceCatalogService.DescribeProvisionedProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeProvisionedProductInput(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_serializeOpDescribeProvisionedProductPlan struct { } func (*awsAwsjson11_serializeOpDescribeProvisionedProductPlan) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeProvisionedProductPlan) 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.(*DescribeProvisionedProductPlanInput) _ = 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("AWS242ServiceCatalogService.DescribeProvisionedProductPlan") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeProvisionedProductPlanInput(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_serializeOpDescribeProvisioningArtifact struct { } func (*awsAwsjson11_serializeOpDescribeProvisioningArtifact) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeProvisioningArtifact) 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.(*DescribeProvisioningArtifactInput) _ = 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("AWS242ServiceCatalogService.DescribeProvisioningArtifact") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeProvisioningArtifactInput(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_serializeOpDescribeProvisioningParameters struct { } func (*awsAwsjson11_serializeOpDescribeProvisioningParameters) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeProvisioningParameters) 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.(*DescribeProvisioningParametersInput) _ = 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("AWS242ServiceCatalogService.DescribeProvisioningParameters") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeProvisioningParametersInput(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_serializeOpDescribeRecord struct { } func (*awsAwsjson11_serializeOpDescribeRecord) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeRecord) 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.(*DescribeRecordInput) _ = 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("AWS242ServiceCatalogService.DescribeRecord") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeRecordInput(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_serializeOpDescribeServiceAction struct { } func (*awsAwsjson11_serializeOpDescribeServiceAction) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeServiceAction) 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.(*DescribeServiceActionInput) _ = 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("AWS242ServiceCatalogService.DescribeServiceAction") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeServiceActionInput(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_serializeOpDescribeServiceActionExecutionParameters struct { } func (*awsAwsjson11_serializeOpDescribeServiceActionExecutionParameters) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeServiceActionExecutionParameters) 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.(*DescribeServiceActionExecutionParametersInput) _ = 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("AWS242ServiceCatalogService.DescribeServiceActionExecutionParameters") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeServiceActionExecutionParametersInput(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_serializeOpDescribeTagOption struct { } func (*awsAwsjson11_serializeOpDescribeTagOption) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDescribeTagOption) 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.(*DescribeTagOptionInput) _ = 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("AWS242ServiceCatalogService.DescribeTagOption") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDescribeTagOptionInput(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_serializeOpDisableAWSOrganizationsAccess struct { } func (*awsAwsjson11_serializeOpDisableAWSOrganizationsAccess) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDisableAWSOrganizationsAccess) 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.(*DisableAWSOrganizationsAccessInput) _ = 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("AWS242ServiceCatalogService.DisableAWSOrganizationsAccess") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDisableAWSOrganizationsAccessInput(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_serializeOpDisassociateBudgetFromResource struct { } func (*awsAwsjson11_serializeOpDisassociateBudgetFromResource) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDisassociateBudgetFromResource) 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.(*DisassociateBudgetFromResourceInput) _ = 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("AWS242ServiceCatalogService.DisassociateBudgetFromResource") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDisassociateBudgetFromResourceInput(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_serializeOpDisassociatePrincipalFromPortfolio struct { } func (*awsAwsjson11_serializeOpDisassociatePrincipalFromPortfolio) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDisassociatePrincipalFromPortfolio) 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.(*DisassociatePrincipalFromPortfolioInput) _ = 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("AWS242ServiceCatalogService.DisassociatePrincipalFromPortfolio") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDisassociatePrincipalFromPortfolioInput(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_serializeOpDisassociateProductFromPortfolio struct { } func (*awsAwsjson11_serializeOpDisassociateProductFromPortfolio) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDisassociateProductFromPortfolio) 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.(*DisassociateProductFromPortfolioInput) _ = 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("AWS242ServiceCatalogService.DisassociateProductFromPortfolio") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDisassociateProductFromPortfolioInput(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_serializeOpDisassociateServiceActionFromProvisioningArtifact struct { } func (*awsAwsjson11_serializeOpDisassociateServiceActionFromProvisioningArtifact) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDisassociateServiceActionFromProvisioningArtifact) 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.(*DisassociateServiceActionFromProvisioningArtifactInput) _ = 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("AWS242ServiceCatalogService.DisassociateServiceActionFromProvisioningArtifact") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDisassociateServiceActionFromProvisioningArtifactInput(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_serializeOpDisassociateTagOptionFromResource struct { } func (*awsAwsjson11_serializeOpDisassociateTagOptionFromResource) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpDisassociateTagOptionFromResource) 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.(*DisassociateTagOptionFromResourceInput) _ = 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("AWS242ServiceCatalogService.DisassociateTagOptionFromResource") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentDisassociateTagOptionFromResourceInput(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_serializeOpEnableAWSOrganizationsAccess struct { } func (*awsAwsjson11_serializeOpEnableAWSOrganizationsAccess) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpEnableAWSOrganizationsAccess) 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.(*EnableAWSOrganizationsAccessInput) _ = 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("AWS242ServiceCatalogService.EnableAWSOrganizationsAccess") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentEnableAWSOrganizationsAccessInput(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_serializeOpExecuteProvisionedProductPlan struct { } func (*awsAwsjson11_serializeOpExecuteProvisionedProductPlan) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpExecuteProvisionedProductPlan) 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.(*ExecuteProvisionedProductPlanInput) _ = 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("AWS242ServiceCatalogService.ExecuteProvisionedProductPlan") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentExecuteProvisionedProductPlanInput(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_serializeOpExecuteProvisionedProductServiceAction struct { } func (*awsAwsjson11_serializeOpExecuteProvisionedProductServiceAction) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpExecuteProvisionedProductServiceAction) 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.(*ExecuteProvisionedProductServiceActionInput) _ = 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("AWS242ServiceCatalogService.ExecuteProvisionedProductServiceAction") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentExecuteProvisionedProductServiceActionInput(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_serializeOpGetAWSOrganizationsAccessStatus struct { } func (*awsAwsjson11_serializeOpGetAWSOrganizationsAccessStatus) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpGetAWSOrganizationsAccessStatus) 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.(*GetAWSOrganizationsAccessStatusInput) _ = 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("AWS242ServiceCatalogService.GetAWSOrganizationsAccessStatus") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentGetAWSOrganizationsAccessStatusInput(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_serializeOpGetProvisionedProductOutputs struct { } func (*awsAwsjson11_serializeOpGetProvisionedProductOutputs) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpGetProvisionedProductOutputs) 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.(*GetProvisionedProductOutputsInput) _ = 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("AWS242ServiceCatalogService.GetProvisionedProductOutputs") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentGetProvisionedProductOutputsInput(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_serializeOpImportAsProvisionedProduct struct { } func (*awsAwsjson11_serializeOpImportAsProvisionedProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpImportAsProvisionedProduct) 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.(*ImportAsProvisionedProductInput) _ = 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("AWS242ServiceCatalogService.ImportAsProvisionedProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentImportAsProvisionedProductInput(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_serializeOpListAcceptedPortfolioShares struct { } func (*awsAwsjson11_serializeOpListAcceptedPortfolioShares) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListAcceptedPortfolioShares) 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.(*ListAcceptedPortfolioSharesInput) _ = 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("AWS242ServiceCatalogService.ListAcceptedPortfolioShares") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListAcceptedPortfolioSharesInput(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_serializeOpListBudgetsForResource struct { } func (*awsAwsjson11_serializeOpListBudgetsForResource) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListBudgetsForResource) 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.(*ListBudgetsForResourceInput) _ = 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("AWS242ServiceCatalogService.ListBudgetsForResource") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListBudgetsForResourceInput(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_serializeOpListConstraintsForPortfolio struct { } func (*awsAwsjson11_serializeOpListConstraintsForPortfolio) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListConstraintsForPortfolio) 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.(*ListConstraintsForPortfolioInput) _ = 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("AWS242ServiceCatalogService.ListConstraintsForPortfolio") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListConstraintsForPortfolioInput(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_serializeOpListLaunchPaths struct { } func (*awsAwsjson11_serializeOpListLaunchPaths) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListLaunchPaths) 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.(*ListLaunchPathsInput) _ = 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("AWS242ServiceCatalogService.ListLaunchPaths") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListLaunchPathsInput(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_serializeOpListOrganizationPortfolioAccess struct { } func (*awsAwsjson11_serializeOpListOrganizationPortfolioAccess) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListOrganizationPortfolioAccess) 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.(*ListOrganizationPortfolioAccessInput) _ = 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("AWS242ServiceCatalogService.ListOrganizationPortfolioAccess") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListOrganizationPortfolioAccessInput(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_serializeOpListPortfolioAccess struct { } func (*awsAwsjson11_serializeOpListPortfolioAccess) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListPortfolioAccess) 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.(*ListPortfolioAccessInput) _ = 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("AWS242ServiceCatalogService.ListPortfolioAccess") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListPortfolioAccessInput(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_serializeOpListPortfolios struct { } func (*awsAwsjson11_serializeOpListPortfolios) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListPortfolios) 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.(*ListPortfoliosInput) _ = 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("AWS242ServiceCatalogService.ListPortfolios") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListPortfoliosInput(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_serializeOpListPortfoliosForProduct struct { } func (*awsAwsjson11_serializeOpListPortfoliosForProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListPortfoliosForProduct) 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.(*ListPortfoliosForProductInput) _ = 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("AWS242ServiceCatalogService.ListPortfoliosForProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListPortfoliosForProductInput(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_serializeOpListPrincipalsForPortfolio struct { } func (*awsAwsjson11_serializeOpListPrincipalsForPortfolio) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListPrincipalsForPortfolio) 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.(*ListPrincipalsForPortfolioInput) _ = 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("AWS242ServiceCatalogService.ListPrincipalsForPortfolio") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListPrincipalsForPortfolioInput(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_serializeOpListProvisionedProductPlans struct { } func (*awsAwsjson11_serializeOpListProvisionedProductPlans) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListProvisionedProductPlans) 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.(*ListProvisionedProductPlansInput) _ = 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("AWS242ServiceCatalogService.ListProvisionedProductPlans") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListProvisionedProductPlansInput(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_serializeOpListProvisioningArtifacts struct { } func (*awsAwsjson11_serializeOpListProvisioningArtifacts) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListProvisioningArtifacts) 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.(*ListProvisioningArtifactsInput) _ = 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("AWS242ServiceCatalogService.ListProvisioningArtifacts") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListProvisioningArtifactsInput(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_serializeOpListProvisioningArtifactsForServiceAction struct { } func (*awsAwsjson11_serializeOpListProvisioningArtifactsForServiceAction) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListProvisioningArtifactsForServiceAction) 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.(*ListProvisioningArtifactsForServiceActionInput) _ = 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("AWS242ServiceCatalogService.ListProvisioningArtifactsForServiceAction") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListProvisioningArtifactsForServiceActionInput(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_serializeOpListRecordHistory struct { } func (*awsAwsjson11_serializeOpListRecordHistory) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListRecordHistory) 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.(*ListRecordHistoryInput) _ = 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("AWS242ServiceCatalogService.ListRecordHistory") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListRecordHistoryInput(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_serializeOpListResourcesForTagOption struct { } func (*awsAwsjson11_serializeOpListResourcesForTagOption) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListResourcesForTagOption) 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.(*ListResourcesForTagOptionInput) _ = 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("AWS242ServiceCatalogService.ListResourcesForTagOption") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListResourcesForTagOptionInput(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_serializeOpListServiceActions struct { } func (*awsAwsjson11_serializeOpListServiceActions) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListServiceActions) 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.(*ListServiceActionsInput) _ = 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("AWS242ServiceCatalogService.ListServiceActions") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListServiceActionsInput(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_serializeOpListServiceActionsForProvisioningArtifact struct { } func (*awsAwsjson11_serializeOpListServiceActionsForProvisioningArtifact) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListServiceActionsForProvisioningArtifact) 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.(*ListServiceActionsForProvisioningArtifactInput) _ = 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("AWS242ServiceCatalogService.ListServiceActionsForProvisioningArtifact") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListServiceActionsForProvisioningArtifactInput(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_serializeOpListStackInstancesForProvisionedProduct struct { } func (*awsAwsjson11_serializeOpListStackInstancesForProvisionedProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListStackInstancesForProvisionedProduct) 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.(*ListStackInstancesForProvisionedProductInput) _ = 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("AWS242ServiceCatalogService.ListStackInstancesForProvisionedProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListStackInstancesForProvisionedProductInput(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_serializeOpListTagOptions struct { } func (*awsAwsjson11_serializeOpListTagOptions) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpListTagOptions) 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.(*ListTagOptionsInput) _ = 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("AWS242ServiceCatalogService.ListTagOptions") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListTagOptionsInput(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_serializeOpNotifyProvisionProductEngineWorkflowResult struct { } func (*awsAwsjson11_serializeOpNotifyProvisionProductEngineWorkflowResult) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpNotifyProvisionProductEngineWorkflowResult) 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.(*NotifyProvisionProductEngineWorkflowResultInput) _ = 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("AWS242ServiceCatalogService.NotifyProvisionProductEngineWorkflowResult") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentNotifyProvisionProductEngineWorkflowResultInput(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_serializeOpNotifyTerminateProvisionedProductEngineWorkflowResult struct { } func (*awsAwsjson11_serializeOpNotifyTerminateProvisionedProductEngineWorkflowResult) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpNotifyTerminateProvisionedProductEngineWorkflowResult) 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.(*NotifyTerminateProvisionedProductEngineWorkflowResultInput) _ = 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("AWS242ServiceCatalogService.NotifyTerminateProvisionedProductEngineWorkflowResult") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentNotifyTerminateProvisionedProductEngineWorkflowResultInput(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_serializeOpNotifyUpdateProvisionedProductEngineWorkflowResult struct { } func (*awsAwsjson11_serializeOpNotifyUpdateProvisionedProductEngineWorkflowResult) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpNotifyUpdateProvisionedProductEngineWorkflowResult) 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.(*NotifyUpdateProvisionedProductEngineWorkflowResultInput) _ = 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("AWS242ServiceCatalogService.NotifyUpdateProvisionedProductEngineWorkflowResult") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentNotifyUpdateProvisionedProductEngineWorkflowResultInput(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_serializeOpProvisionProduct struct { } func (*awsAwsjson11_serializeOpProvisionProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpProvisionProduct) 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.(*ProvisionProductInput) _ = 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("AWS242ServiceCatalogService.ProvisionProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentProvisionProductInput(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_serializeOpRejectPortfolioShare struct { } func (*awsAwsjson11_serializeOpRejectPortfolioShare) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpRejectPortfolioShare) 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.(*RejectPortfolioShareInput) _ = 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("AWS242ServiceCatalogService.RejectPortfolioShare") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentRejectPortfolioShareInput(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_serializeOpScanProvisionedProducts struct { } func (*awsAwsjson11_serializeOpScanProvisionedProducts) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpScanProvisionedProducts) 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.(*ScanProvisionedProductsInput) _ = 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("AWS242ServiceCatalogService.ScanProvisionedProducts") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentScanProvisionedProductsInput(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_serializeOpSearchProducts struct { } func (*awsAwsjson11_serializeOpSearchProducts) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpSearchProducts) 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.(*SearchProductsInput) _ = 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("AWS242ServiceCatalogService.SearchProducts") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentSearchProductsInput(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_serializeOpSearchProductsAsAdmin struct { } func (*awsAwsjson11_serializeOpSearchProductsAsAdmin) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpSearchProductsAsAdmin) 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.(*SearchProductsAsAdminInput) _ = 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("AWS242ServiceCatalogService.SearchProductsAsAdmin") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentSearchProductsAsAdminInput(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_serializeOpSearchProvisionedProducts struct { } func (*awsAwsjson11_serializeOpSearchProvisionedProducts) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpSearchProvisionedProducts) 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.(*SearchProvisionedProductsInput) _ = 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("AWS242ServiceCatalogService.SearchProvisionedProducts") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentSearchProvisionedProductsInput(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_serializeOpTerminateProvisionedProduct struct { } func (*awsAwsjson11_serializeOpTerminateProvisionedProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpTerminateProvisionedProduct) 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.(*TerminateProvisionedProductInput) _ = 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("AWS242ServiceCatalogService.TerminateProvisionedProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentTerminateProvisionedProductInput(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_serializeOpUpdateConstraint struct { } func (*awsAwsjson11_serializeOpUpdateConstraint) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpUpdateConstraint) 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.(*UpdateConstraintInput) _ = 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("AWS242ServiceCatalogService.UpdateConstraint") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentUpdateConstraintInput(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_serializeOpUpdatePortfolio struct { } func (*awsAwsjson11_serializeOpUpdatePortfolio) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpUpdatePortfolio) 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.(*UpdatePortfolioInput) _ = 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("AWS242ServiceCatalogService.UpdatePortfolio") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentUpdatePortfolioInput(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_serializeOpUpdatePortfolioShare struct { } func (*awsAwsjson11_serializeOpUpdatePortfolioShare) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpUpdatePortfolioShare) 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.(*UpdatePortfolioShareInput) _ = 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("AWS242ServiceCatalogService.UpdatePortfolioShare") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentUpdatePortfolioShareInput(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_serializeOpUpdateProduct struct { } func (*awsAwsjson11_serializeOpUpdateProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpUpdateProduct) 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.(*UpdateProductInput) _ = 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("AWS242ServiceCatalogService.UpdateProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentUpdateProductInput(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_serializeOpUpdateProvisionedProduct struct { } func (*awsAwsjson11_serializeOpUpdateProvisionedProduct) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpUpdateProvisionedProduct) 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.(*UpdateProvisionedProductInput) _ = 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("AWS242ServiceCatalogService.UpdateProvisionedProduct") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentUpdateProvisionedProductInput(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_serializeOpUpdateProvisionedProductProperties struct { } func (*awsAwsjson11_serializeOpUpdateProvisionedProductProperties) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpUpdateProvisionedProductProperties) 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.(*UpdateProvisionedProductPropertiesInput) _ = 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("AWS242ServiceCatalogService.UpdateProvisionedProductProperties") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentUpdateProvisionedProductPropertiesInput(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_serializeOpUpdateProvisioningArtifact struct { } func (*awsAwsjson11_serializeOpUpdateProvisioningArtifact) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpUpdateProvisioningArtifact) 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.(*UpdateProvisioningArtifactInput) _ = 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("AWS242ServiceCatalogService.UpdateProvisioningArtifact") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentUpdateProvisioningArtifactInput(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_serializeOpUpdateServiceAction struct { } func (*awsAwsjson11_serializeOpUpdateServiceAction) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpUpdateServiceAction) 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.(*UpdateServiceActionInput) _ = 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("AWS242ServiceCatalogService.UpdateServiceAction") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentUpdateServiceActionInput(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_serializeOpUpdateTagOption struct { } func (*awsAwsjson11_serializeOpUpdateTagOption) ID() string { return "OperationSerializer" } func (m *awsAwsjson11_serializeOpUpdateTagOption) 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.(*UpdateTagOptionInput) _ = 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("AWS242ServiceCatalogService.UpdateTagOption") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentUpdateTagOptionInput(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_serializeDocumentAccessLevelFilter(v *types.AccessLevelFilter, 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_serializeDocumentAddTags(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_serializeDocumentCodeStarParameters(v *types.CodeStarParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ArtifactPath != nil { ok := object.Key("ArtifactPath") ok.String(*v.ArtifactPath) } if v.Branch != nil { ok := object.Key("Branch") ok.String(*v.Branch) } if v.ConnectionArn != nil { ok := object.Key("ConnectionArn") ok.String(*v.ConnectionArn) } if v.Repository != nil { ok := object.Key("Repository") ok.String(*v.Repository) } return nil } func awsAwsjson11_serializeDocumentCopyOptions(v []types.CopyOption, 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_serializeDocumentEngineWorkflowResourceIdentifier(v *types.EngineWorkflowResourceIdentifier, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.UniqueTag != nil { ok := object.Key("UniqueTag") if err := awsAwsjson11_serializeDocumentUniqueTagResourceIdentifier(v.UniqueTag, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeDocumentExecutionParameterMap(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_serializeDocumentExecutionParameterValueList(v[key], om); err != nil { return err } } return nil } func awsAwsjson11_serializeDocumentExecutionParameterValueList(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_serializeDocumentListRecordHistorySearchFilter(v *types.ListRecordHistorySearchFilter, 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_serializeDocumentListTagOptionsFilters(v *types.ListTagOptionsFilters, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Active != nil { ok := object.Key("Active") ok.Boolean(*v.Active) } 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_serializeDocumentNotificationArns(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_serializeDocumentOrganizationNode(v *types.OrganizationNode, 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_serializeDocumentOutputKeys(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_serializeDocumentProductViewFilters(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_serializeDocumentProductViewFilterValues(v[key], om); err != nil { return err } } return nil } func awsAwsjson11_serializeDocumentProductViewFilterValues(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_serializeDocumentProvisionedProductFilters(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_serializeDocumentProvisionedProductViewFilterValues(v[key], om); err != nil { return err } } return nil } func awsAwsjson11_serializeDocumentProvisionedProductProperties(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_serializeDocumentProvisionedProductViewFilterValues(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_serializeDocumentProvisioningArtifactInfo(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_serializeDocumentProvisioningArtifactProperties(v *types.ProvisioningArtifactProperties, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) } if v.DisableTemplateValidation { ok := object.Key("DisableTemplateValidation") ok.Boolean(v.DisableTemplateValidation) } if v.Info != nil { ok := object.Key("Info") if err := awsAwsjson11_serializeDocumentProvisioningArtifactInfo(v.Info, ok); err != nil { return err } } if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) } if len(v.Type) > 0 { ok := object.Key("Type") ok.String(string(v.Type)) } return nil } func awsAwsjson11_serializeDocumentProvisioningParameter(v *types.ProvisioningParameter, 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_serializeDocumentProvisioningParameters(v []types.ProvisioningParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsAwsjson11_serializeDocumentProvisioningParameter(&v[i], av); err != nil { return err } } return nil } func awsAwsjson11_serializeDocumentProvisioningPreferences(v *types.ProvisioningPreferences, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.StackSetAccounts != nil { ok := object.Key("StackSetAccounts") if err := awsAwsjson11_serializeDocumentStackSetAccounts(v.StackSetAccounts, ok); err != nil { return err } } if v.StackSetFailureToleranceCount != nil { ok := object.Key("StackSetFailureToleranceCount") ok.Integer(*v.StackSetFailureToleranceCount) } if v.StackSetFailureTolerancePercentage != nil { ok := object.Key("StackSetFailureTolerancePercentage") ok.Integer(*v.StackSetFailureTolerancePercentage) } if v.StackSetMaxConcurrencyCount != nil { ok := object.Key("StackSetMaxConcurrencyCount") ok.Integer(*v.StackSetMaxConcurrencyCount) } if v.StackSetMaxConcurrencyPercentage != nil { ok := object.Key("StackSetMaxConcurrencyPercentage") ok.Integer(*v.StackSetMaxConcurrencyPercentage) } if v.StackSetRegions != nil { ok := object.Key("StackSetRegions") if err := awsAwsjson11_serializeDocumentStackSetRegions(v.StackSetRegions, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeDocumentRecordOutput(v *types.RecordOutput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) } if v.OutputKey != nil { ok := object.Key("OutputKey") ok.String(*v.OutputKey) } if v.OutputValue != nil { ok := object.Key("OutputValue") ok.String(*v.OutputValue) } return nil } func awsAwsjson11_serializeDocumentRecordOutputs(v []types.RecordOutput, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsAwsjson11_serializeDocumentRecordOutput(&v[i], av); err != nil { return err } } return nil } func awsAwsjson11_serializeDocumentServiceActionAssociation(v *types.ServiceActionAssociation, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } if v.ServiceActionId != nil { ok := object.Key("ServiceActionId") ok.String(*v.ServiceActionId) } return nil } func awsAwsjson11_serializeDocumentServiceActionAssociations(v []types.ServiceActionAssociation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsAwsjson11_serializeDocumentServiceActionAssociation(&v[i], av); err != nil { return err } } return nil } func awsAwsjson11_serializeDocumentServiceActionDefinitionMap(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_serializeDocumentSourceConnection(v *types.SourceConnection, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ConnectionParameters != nil { ok := object.Key("ConnectionParameters") if err := awsAwsjson11_serializeDocumentSourceConnectionParameters(v.ConnectionParameters, ok); err != nil { return err } } if len(v.Type) > 0 { ok := object.Key("Type") ok.String(string(v.Type)) } return nil } func awsAwsjson11_serializeDocumentSourceConnectionParameters(v *types.SourceConnectionParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CodeStar != nil { ok := object.Key("CodeStar") if err := awsAwsjson11_serializeDocumentCodeStarParameters(v.CodeStar, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeDocumentSourceProvisioningArtifactProperties(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_serializeDocumentSourceProvisioningArtifactPropertiesMap(v[i], av); err != nil { return err } } return nil } func awsAwsjson11_serializeDocumentSourceProvisioningArtifactPropertiesMap(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_serializeDocumentStackSetAccounts(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_serializeDocumentStackSetRegions(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_serializeDocumentTagKeys(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_serializeDocumentTags(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_serializeDocumentUniqueTagResourceIdentifier(v *types.UniqueTagResourceIdentifier, 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_serializeDocumentUpdateProvisioningParameter(v *types.UpdateProvisioningParameter, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Key != nil { ok := object.Key("Key") ok.String(*v.Key) } if v.UsePreviousValue { ok := object.Key("UsePreviousValue") ok.Boolean(v.UsePreviousValue) } if v.Value != nil { ok := object.Key("Value") ok.String(*v.Value) } return nil } func awsAwsjson11_serializeDocumentUpdateProvisioningParameters(v []types.UpdateProvisioningParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsAwsjson11_serializeDocumentUpdateProvisioningParameter(&v[i], av); err != nil { return err } } return nil } func awsAwsjson11_serializeDocumentUpdateProvisioningPreferences(v *types.UpdateProvisioningPreferences, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.StackSetAccounts != nil { ok := object.Key("StackSetAccounts") if err := awsAwsjson11_serializeDocumentStackSetAccounts(v.StackSetAccounts, ok); err != nil { return err } } if v.StackSetFailureToleranceCount != nil { ok := object.Key("StackSetFailureToleranceCount") ok.Integer(*v.StackSetFailureToleranceCount) } if v.StackSetFailureTolerancePercentage != nil { ok := object.Key("StackSetFailureTolerancePercentage") ok.Integer(*v.StackSetFailureTolerancePercentage) } if v.StackSetMaxConcurrencyCount != nil { ok := object.Key("StackSetMaxConcurrencyCount") ok.Integer(*v.StackSetMaxConcurrencyCount) } if v.StackSetMaxConcurrencyPercentage != nil { ok := object.Key("StackSetMaxConcurrencyPercentage") ok.Integer(*v.StackSetMaxConcurrencyPercentage) } if len(v.StackSetOperationType) > 0 { ok := object.Key("StackSetOperationType") ok.String(string(v.StackSetOperationType)) } if v.StackSetRegions != nil { ok := object.Key("StackSetRegions") if err := awsAwsjson11_serializeDocumentStackSetRegions(v.StackSetRegions, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeOpDocumentAcceptPortfolioShareInput(v *AcceptPortfolioShareInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if len(v.PortfolioShareType) > 0 { ok := object.Key("PortfolioShareType") ok.String(string(v.PortfolioShareType)) } return nil } func awsAwsjson11_serializeOpDocumentAssociateBudgetWithResourceInput(v *AssociateBudgetWithResourceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BudgetName != nil { ok := object.Key("BudgetName") ok.String(*v.BudgetName) } if v.ResourceId != nil { ok := object.Key("ResourceId") ok.String(*v.ResourceId) } return nil } func awsAwsjson11_serializeOpDocumentAssociatePrincipalWithPortfolioInput(v *AssociatePrincipalWithPortfolioInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if v.PrincipalARN != nil { ok := object.Key("PrincipalARN") ok.String(*v.PrincipalARN) } if len(v.PrincipalType) > 0 { ok := object.Key("PrincipalType") ok.String(string(v.PrincipalType)) } return nil } func awsAwsjson11_serializeOpDocumentAssociateProductWithPortfolioInput(v *AssociateProductWithPortfolioInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.SourcePortfolioId != nil { ok := object.Key("SourcePortfolioId") ok.String(*v.SourcePortfolioId) } return nil } func awsAwsjson11_serializeOpDocumentAssociateServiceActionWithProvisioningArtifactInput(v *AssociateServiceActionWithProvisioningArtifactInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } if v.ServiceActionId != nil { ok := object.Key("ServiceActionId") ok.String(*v.ServiceActionId) } return nil } func awsAwsjson11_serializeOpDocumentAssociateTagOptionWithResourceInput(v *AssociateTagOptionWithResourceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ResourceId != nil { ok := object.Key("ResourceId") ok.String(*v.ResourceId) } if v.TagOptionId != nil { ok := object.Key("TagOptionId") ok.String(*v.TagOptionId) } return nil } func awsAwsjson11_serializeOpDocumentBatchAssociateServiceActionWithProvisioningArtifactInput(v *BatchAssociateServiceActionWithProvisioningArtifactInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.ServiceActionAssociations != nil { ok := object.Key("ServiceActionAssociations") if err := awsAwsjson11_serializeDocumentServiceActionAssociations(v.ServiceActionAssociations, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeOpDocumentBatchDisassociateServiceActionFromProvisioningArtifactInput(v *BatchDisassociateServiceActionFromProvisioningArtifactInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.ServiceActionAssociations != nil { ok := object.Key("ServiceActionAssociations") if err := awsAwsjson11_serializeDocumentServiceActionAssociations(v.ServiceActionAssociations, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeOpDocumentCopyProductInput(v *CopyProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.CopyOptions != nil { ok := object.Key("CopyOptions") if err := awsAwsjson11_serializeDocumentCopyOptions(v.CopyOptions, ok); err != nil { return err } } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.SourceProductArn != nil { ok := object.Key("SourceProductArn") ok.String(*v.SourceProductArn) } if v.SourceProvisioningArtifactIdentifiers != nil { ok := object.Key("SourceProvisioningArtifactIdentifiers") if err := awsAwsjson11_serializeDocumentSourceProvisioningArtifactProperties(v.SourceProvisioningArtifactIdentifiers, ok); err != nil { return err } } if v.TargetProductId != nil { ok := object.Key("TargetProductId") ok.String(*v.TargetProductId) } if v.TargetProductName != nil { ok := object.Key("TargetProductName") ok.String(*v.TargetProductName) } return nil } func awsAwsjson11_serializeOpDocumentCreateConstraintInput(v *CreateConstraintInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.Parameters != nil { ok := object.Key("Parameters") ok.String(*v.Parameters) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.Type != nil { ok := object.Key("Type") ok.String(*v.Type) } return nil } func awsAwsjson11_serializeOpDocumentCreatePortfolioInput(v *CreatePortfolioInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) } if v.DisplayName != nil { ok := object.Key("DisplayName") ok.String(*v.DisplayName) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.ProviderName != nil { ok := object.Key("ProviderName") ok.String(*v.ProviderName) } if v.Tags != nil { ok := object.Key("Tags") if err := awsAwsjson11_serializeDocumentAddTags(v.Tags, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeOpDocumentCreatePortfolioShareInput(v *CreatePortfolioShareInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.AccountId != nil { ok := object.Key("AccountId") ok.String(*v.AccountId) } if v.OrganizationNode != nil { ok := object.Key("OrganizationNode") if err := awsAwsjson11_serializeDocumentOrganizationNode(v.OrganizationNode, ok); err != nil { return err } } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if v.SharePrincipals { ok := object.Key("SharePrincipals") ok.Boolean(v.SharePrincipals) } if v.ShareTagOptions { ok := object.Key("ShareTagOptions") ok.Boolean(v.ShareTagOptions) } return nil } func awsAwsjson11_serializeOpDocumentCreateProductInput(v *CreateProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) } if v.Distributor != nil { ok := object.Key("Distributor") ok.String(*v.Distributor) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) } if v.Owner != nil { ok := object.Key("Owner") ok.String(*v.Owner) } if len(v.ProductType) > 0 { ok := object.Key("ProductType") ok.String(string(v.ProductType)) } if v.ProvisioningArtifactParameters != nil { ok := object.Key("ProvisioningArtifactParameters") if err := awsAwsjson11_serializeDocumentProvisioningArtifactProperties(v.ProvisioningArtifactParameters, ok); err != nil { return err } } if v.SourceConnection != nil { ok := object.Key("SourceConnection") if err := awsAwsjson11_serializeDocumentSourceConnection(v.SourceConnection, ok); err != nil { return err } } if v.SupportDescription != nil { ok := object.Key("SupportDescription") ok.String(*v.SupportDescription) } if v.SupportEmail != nil { ok := object.Key("SupportEmail") ok.String(*v.SupportEmail) } if v.SupportUrl != nil { ok := object.Key("SupportUrl") ok.String(*v.SupportUrl) } if v.Tags != nil { ok := object.Key("Tags") if err := awsAwsjson11_serializeDocumentAddTags(v.Tags, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeOpDocumentCreateProvisionedProductPlanInput(v *CreateProvisionedProductPlanInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.NotificationArns != nil { ok := object.Key("NotificationArns") if err := awsAwsjson11_serializeDocumentNotificationArns(v.NotificationArns, ok); err != nil { return err } } if v.PathId != nil { ok := object.Key("PathId") ok.String(*v.PathId) } if v.PlanName != nil { ok := object.Key("PlanName") ok.String(*v.PlanName) } if len(v.PlanType) > 0 { ok := object.Key("PlanType") ok.String(string(v.PlanType)) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProvisionedProductName != nil { ok := object.Key("ProvisionedProductName") ok.String(*v.ProvisionedProductName) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } if v.ProvisioningParameters != nil { ok := object.Key("ProvisioningParameters") if err := awsAwsjson11_serializeDocumentUpdateProvisioningParameters(v.ProvisioningParameters, ok); err != nil { return err } } if v.Tags != nil { ok := object.Key("Tags") if err := awsAwsjson11_serializeDocumentTags(v.Tags, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeOpDocumentCreateProvisioningArtifactInput(v *CreateProvisioningArtifactInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.Parameters != nil { ok := object.Key("Parameters") if err := awsAwsjson11_serializeDocumentProvisioningArtifactProperties(v.Parameters, ok); err != nil { return err } } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } return nil } func awsAwsjson11_serializeOpDocumentCreateServiceActionInput(v *CreateServiceActionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Definition != nil { ok := object.Key("Definition") if err := awsAwsjson11_serializeDocumentServiceActionDefinitionMap(v.Definition, ok); err != nil { return err } } if len(v.DefinitionType) > 0 { ok := object.Key("DefinitionType") ok.String(string(v.DefinitionType)) } if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) } return nil } func awsAwsjson11_serializeOpDocumentCreateTagOptionInput(v *CreateTagOptionInput, 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_serializeOpDocumentDeleteConstraintInput(v *DeleteConstraintInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } return nil } func awsAwsjson11_serializeOpDocumentDeletePortfolioInput(v *DeletePortfolioInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } return nil } func awsAwsjson11_serializeOpDocumentDeletePortfolioShareInput(v *DeletePortfolioShareInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.AccountId != nil { ok := object.Key("AccountId") ok.String(*v.AccountId) } if v.OrganizationNode != nil { ok := object.Key("OrganizationNode") if err := awsAwsjson11_serializeDocumentOrganizationNode(v.OrganizationNode, ok); err != nil { return err } } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } return nil } func awsAwsjson11_serializeOpDocumentDeleteProductInput(v *DeleteProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } return nil } func awsAwsjson11_serializeOpDocumentDeleteProvisionedProductPlanInput(v *DeleteProvisionedProductPlanInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.IgnoreErrors { ok := object.Key("IgnoreErrors") ok.Boolean(v.IgnoreErrors) } if v.PlanId != nil { ok := object.Key("PlanId") ok.String(*v.PlanId) } return nil } func awsAwsjson11_serializeOpDocumentDeleteProvisioningArtifactInput(v *DeleteProvisioningArtifactInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } return nil } func awsAwsjson11_serializeOpDocumentDeleteServiceActionInput(v *DeleteServiceActionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } return nil } func awsAwsjson11_serializeOpDocumentDeleteTagOptionInput(v *DeleteTagOptionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } return nil } func awsAwsjson11_serializeOpDocumentDescribeConstraintInput(v *DescribeConstraintInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } return nil } func awsAwsjson11_serializeOpDocumentDescribeCopyProductStatusInput(v *DescribeCopyProductStatusInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.CopyProductToken != nil { ok := object.Key("CopyProductToken") ok.String(*v.CopyProductToken) } return nil } func awsAwsjson11_serializeOpDocumentDescribePortfolioInput(v *DescribePortfolioInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } return nil } func awsAwsjson11_serializeOpDocumentDescribePortfolioSharesInput(v *DescribePortfolioSharesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if len(v.Type) > 0 { ok := object.Key("Type") ok.String(string(v.Type)) } return nil } func awsAwsjson11_serializeOpDocumentDescribePortfolioShareStatusInput(v *DescribePortfolioShareStatusInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.PortfolioShareToken != nil { ok := object.Key("PortfolioShareToken") ok.String(*v.PortfolioShareToken) } return nil } func awsAwsjson11_serializeOpDocumentDescribeProductAsAdminInput(v *DescribeProductAsAdminInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) } if v.SourcePortfolioId != nil { ok := object.Key("SourcePortfolioId") ok.String(*v.SourcePortfolioId) } return nil } func awsAwsjson11_serializeOpDocumentDescribeProductInput(v *DescribeProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) } return nil } func awsAwsjson11_serializeOpDocumentDescribeProductViewInput(v *DescribeProductViewInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } return nil } func awsAwsjson11_serializeOpDocumentDescribeProvisionedProductInput(v *DescribeProvisionedProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) } return nil } func awsAwsjson11_serializeOpDocumentDescribeProvisionedProductPlanInput(v *DescribeProvisionedProductPlanInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.PlanId != nil { ok := object.Key("PlanId") ok.String(*v.PlanId) } return nil } func awsAwsjson11_serializeOpDocumentDescribeProvisioningArtifactInput(v *DescribeProvisioningArtifactInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.IncludeProvisioningArtifactParameters { ok := object.Key("IncludeProvisioningArtifactParameters") ok.Boolean(v.IncludeProvisioningArtifactParameters) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProductName != nil { ok := object.Key("ProductName") ok.String(*v.ProductName) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } if v.ProvisioningArtifactName != nil { ok := object.Key("ProvisioningArtifactName") ok.String(*v.ProvisioningArtifactName) } if v.Verbose { ok := object.Key("Verbose") ok.Boolean(v.Verbose) } return nil } func awsAwsjson11_serializeOpDocumentDescribeProvisioningParametersInput(v *DescribeProvisioningParametersInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PathId != nil { ok := object.Key("PathId") ok.String(*v.PathId) } if v.PathName != nil { ok := object.Key("PathName") ok.String(*v.PathName) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProductName != nil { ok := object.Key("ProductName") ok.String(*v.ProductName) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } if v.ProvisioningArtifactName != nil { ok := object.Key("ProvisioningArtifactName") ok.String(*v.ProvisioningArtifactName) } return nil } func awsAwsjson11_serializeOpDocumentDescribeRecordInput(v *DescribeRecordInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } return nil } func awsAwsjson11_serializeOpDocumentDescribeServiceActionExecutionParametersInput(v *DescribeServiceActionExecutionParametersInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.ProvisionedProductId != nil { ok := object.Key("ProvisionedProductId") ok.String(*v.ProvisionedProductId) } if v.ServiceActionId != nil { ok := object.Key("ServiceActionId") ok.String(*v.ServiceActionId) } return nil } func awsAwsjson11_serializeOpDocumentDescribeServiceActionInput(v *DescribeServiceActionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } return nil } func awsAwsjson11_serializeOpDocumentDescribeTagOptionInput(v *DescribeTagOptionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } return nil } func awsAwsjson11_serializeOpDocumentDisableAWSOrganizationsAccessInput(v *DisableAWSOrganizationsAccessInput, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsAwsjson11_serializeOpDocumentDisassociateBudgetFromResourceInput(v *DisassociateBudgetFromResourceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BudgetName != nil { ok := object.Key("BudgetName") ok.String(*v.BudgetName) } if v.ResourceId != nil { ok := object.Key("ResourceId") ok.String(*v.ResourceId) } return nil } func awsAwsjson11_serializeOpDocumentDisassociatePrincipalFromPortfolioInput(v *DisassociatePrincipalFromPortfolioInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if v.PrincipalARN != nil { ok := object.Key("PrincipalARN") ok.String(*v.PrincipalARN) } if len(v.PrincipalType) > 0 { ok := object.Key("PrincipalType") ok.String(string(v.PrincipalType)) } return nil } func awsAwsjson11_serializeOpDocumentDisassociateProductFromPortfolioInput(v *DisassociateProductFromPortfolioInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } return nil } func awsAwsjson11_serializeOpDocumentDisassociateServiceActionFromProvisioningArtifactInput(v *DisassociateServiceActionFromProvisioningArtifactInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } if v.ServiceActionId != nil { ok := object.Key("ServiceActionId") ok.String(*v.ServiceActionId) } return nil } func awsAwsjson11_serializeOpDocumentDisassociateTagOptionFromResourceInput(v *DisassociateTagOptionFromResourceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ResourceId != nil { ok := object.Key("ResourceId") ok.String(*v.ResourceId) } if v.TagOptionId != nil { ok := object.Key("TagOptionId") ok.String(*v.TagOptionId) } return nil } func awsAwsjson11_serializeOpDocumentEnableAWSOrganizationsAccessInput(v *EnableAWSOrganizationsAccessInput, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsAwsjson11_serializeOpDocumentExecuteProvisionedProductPlanInput(v *ExecuteProvisionedProductPlanInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.PlanId != nil { ok := object.Key("PlanId") ok.String(*v.PlanId) } return nil } func awsAwsjson11_serializeOpDocumentExecuteProvisionedProductServiceActionInput(v *ExecuteProvisionedProductServiceActionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.ExecuteToken != nil { ok := object.Key("ExecuteToken") ok.String(*v.ExecuteToken) } if v.Parameters != nil { ok := object.Key("Parameters") if err := awsAwsjson11_serializeDocumentExecutionParameterMap(v.Parameters, ok); err != nil { return err } } if v.ProvisionedProductId != nil { ok := object.Key("ProvisionedProductId") ok.String(*v.ProvisionedProductId) } if v.ServiceActionId != nil { ok := object.Key("ServiceActionId") ok.String(*v.ServiceActionId) } return nil } func awsAwsjson11_serializeOpDocumentGetAWSOrganizationsAccessStatusInput(v *GetAWSOrganizationsAccessStatusInput, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsAwsjson11_serializeOpDocumentGetProvisionedProductOutputsInput(v *GetProvisionedProductOutputsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.OutputKeys != nil { ok := object.Key("OutputKeys") if err := awsAwsjson11_serializeDocumentOutputKeys(v.OutputKeys, ok); err != nil { return err } } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.ProvisionedProductId != nil { ok := object.Key("ProvisionedProductId") ok.String(*v.ProvisionedProductId) } if v.ProvisionedProductName != nil { ok := object.Key("ProvisionedProductName") ok.String(*v.ProvisionedProductName) } return nil } func awsAwsjson11_serializeOpDocumentImportAsProvisionedProductInput(v *ImportAsProvisionedProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.PhysicalId != nil { ok := object.Key("PhysicalId") ok.String(*v.PhysicalId) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProvisionedProductName != nil { ok := object.Key("ProvisionedProductName") ok.String(*v.ProvisionedProductName) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } return nil } func awsAwsjson11_serializeOpDocumentListAcceptedPortfolioSharesInput(v *ListAcceptedPortfolioSharesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if len(v.PortfolioShareType) > 0 { ok := object.Key("PortfolioShareType") ok.String(string(v.PortfolioShareType)) } return nil } func awsAwsjson11_serializeOpDocumentListBudgetsForResourceInput(v *ListBudgetsForResourceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.ResourceId != nil { ok := object.Key("ResourceId") ok.String(*v.ResourceId) } return nil } func awsAwsjson11_serializeOpDocumentListConstraintsForPortfolioInput(v *ListConstraintsForPortfolioInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } return nil } func awsAwsjson11_serializeOpDocumentListLaunchPathsInput(v *ListLaunchPathsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } return nil } func awsAwsjson11_serializeOpDocumentListOrganizationPortfolioAccessInput(v *ListOrganizationPortfolioAccessInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if len(v.OrganizationNodeType) > 0 { ok := object.Key("OrganizationNodeType") ok.String(string(v.OrganizationNodeType)) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } return nil } func awsAwsjson11_serializeOpDocumentListPortfolioAccessInput(v *ListPortfolioAccessInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.OrganizationParentId != nil { ok := object.Key("OrganizationParentId") ok.String(*v.OrganizationParentId) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } return nil } func awsAwsjson11_serializeOpDocumentListPortfoliosForProductInput(v *ListPortfoliosForProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } return nil } func awsAwsjson11_serializeOpDocumentListPortfoliosInput(v *ListPortfoliosInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } return nil } func awsAwsjson11_serializeOpDocumentListPrincipalsForPortfolioInput(v *ListPrincipalsForPortfolioInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } return nil } func awsAwsjson11_serializeOpDocumentListProvisionedProductPlansInput(v *ListProvisionedProductPlansInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.AccessLevelFilter != nil { ok := object.Key("AccessLevelFilter") if err := awsAwsjson11_serializeDocumentAccessLevelFilter(v.AccessLevelFilter, ok); err != nil { return err } } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.ProvisionProductId != nil { ok := object.Key("ProvisionProductId") ok.String(*v.ProvisionProductId) } return nil } func awsAwsjson11_serializeOpDocumentListProvisioningArtifactsForServiceActionInput(v *ListProvisioningArtifactsForServiceActionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.ServiceActionId != nil { ok := object.Key("ServiceActionId") ok.String(*v.ServiceActionId) } return nil } func awsAwsjson11_serializeOpDocumentListProvisioningArtifactsInput(v *ListProvisioningArtifactsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } return nil } func awsAwsjson11_serializeOpDocumentListRecordHistoryInput(v *ListRecordHistoryInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.AccessLevelFilter != nil { ok := object.Key("AccessLevelFilter") if err := awsAwsjson11_serializeDocumentAccessLevelFilter(v.AccessLevelFilter, ok); err != nil { return err } } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.SearchFilter != nil { ok := object.Key("SearchFilter") if err := awsAwsjson11_serializeDocumentListRecordHistorySearchFilter(v.SearchFilter, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeOpDocumentListResourcesForTagOptionInput(v *ListResourcesForTagOptionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.ResourceType != nil { ok := object.Key("ResourceType") ok.String(*v.ResourceType) } if v.TagOptionId != nil { ok := object.Key("TagOptionId") ok.String(*v.TagOptionId) } return nil } func awsAwsjson11_serializeOpDocumentListServiceActionsForProvisioningArtifactInput(v *ListServiceActionsForProvisioningArtifactInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } return nil } func awsAwsjson11_serializeOpDocumentListServiceActionsInput(v *ListServiceActionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } return nil } func awsAwsjson11_serializeOpDocumentListStackInstancesForProvisionedProductInput(v *ListStackInstancesForProvisionedProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.ProvisionedProductId != nil { ok := object.Key("ProvisionedProductId") ok.String(*v.ProvisionedProductId) } return nil } func awsAwsjson11_serializeOpDocumentListTagOptionsInput(v *ListTagOptionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Filters != nil { ok := object.Key("Filters") if err := awsAwsjson11_serializeDocumentListTagOptionsFilters(v.Filters, ok); err != nil { return err } } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } return nil } func awsAwsjson11_serializeOpDocumentNotifyProvisionProductEngineWorkflowResultInput(v *NotifyProvisionProductEngineWorkflowResultInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FailureReason != nil { ok := object.Key("FailureReason") ok.String(*v.FailureReason) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.Outputs != nil { ok := object.Key("Outputs") if err := awsAwsjson11_serializeDocumentRecordOutputs(v.Outputs, ok); err != nil { return err } } if v.RecordId != nil { ok := object.Key("RecordId") ok.String(*v.RecordId) } if v.ResourceIdentifier != nil { ok := object.Key("ResourceIdentifier") if err := awsAwsjson11_serializeDocumentEngineWorkflowResourceIdentifier(v.ResourceIdentifier, ok); err != nil { return err } } if len(v.Status) > 0 { ok := object.Key("Status") ok.String(string(v.Status)) } if v.WorkflowToken != nil { ok := object.Key("WorkflowToken") ok.String(*v.WorkflowToken) } return nil } func awsAwsjson11_serializeOpDocumentNotifyTerminateProvisionedProductEngineWorkflowResultInput(v *NotifyTerminateProvisionedProductEngineWorkflowResultInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FailureReason != nil { ok := object.Key("FailureReason") ok.String(*v.FailureReason) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.RecordId != nil { ok := object.Key("RecordId") ok.String(*v.RecordId) } if len(v.Status) > 0 { ok := object.Key("Status") ok.String(string(v.Status)) } if v.WorkflowToken != nil { ok := object.Key("WorkflowToken") ok.String(*v.WorkflowToken) } return nil } func awsAwsjson11_serializeOpDocumentNotifyUpdateProvisionedProductEngineWorkflowResultInput(v *NotifyUpdateProvisionedProductEngineWorkflowResultInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FailureReason != nil { ok := object.Key("FailureReason") ok.String(*v.FailureReason) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.Outputs != nil { ok := object.Key("Outputs") if err := awsAwsjson11_serializeDocumentRecordOutputs(v.Outputs, ok); err != nil { return err } } if v.RecordId != nil { ok := object.Key("RecordId") ok.String(*v.RecordId) } if len(v.Status) > 0 { ok := object.Key("Status") ok.String(string(v.Status)) } if v.WorkflowToken != nil { ok := object.Key("WorkflowToken") ok.String(*v.WorkflowToken) } return nil } func awsAwsjson11_serializeOpDocumentProvisionProductInput(v *ProvisionProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.NotificationArns != nil { ok := object.Key("NotificationArns") if err := awsAwsjson11_serializeDocumentNotificationArns(v.NotificationArns, ok); err != nil { return err } } if v.PathId != nil { ok := object.Key("PathId") ok.String(*v.PathId) } if v.PathName != nil { ok := object.Key("PathName") ok.String(*v.PathName) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProductName != nil { ok := object.Key("ProductName") ok.String(*v.ProductName) } if v.ProvisionedProductName != nil { ok := object.Key("ProvisionedProductName") ok.String(*v.ProvisionedProductName) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } if v.ProvisioningArtifactName != nil { ok := object.Key("ProvisioningArtifactName") ok.String(*v.ProvisioningArtifactName) } if v.ProvisioningParameters != nil { ok := object.Key("ProvisioningParameters") if err := awsAwsjson11_serializeDocumentProvisioningParameters(v.ProvisioningParameters, ok); err != nil { return err } } if v.ProvisioningPreferences != nil { ok := object.Key("ProvisioningPreferences") if err := awsAwsjson11_serializeDocumentProvisioningPreferences(v.ProvisioningPreferences, ok); err != nil { return err } } if v.ProvisionToken != nil { ok := object.Key("ProvisionToken") ok.String(*v.ProvisionToken) } if v.Tags != nil { ok := object.Key("Tags") if err := awsAwsjson11_serializeDocumentTags(v.Tags, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeOpDocumentRejectPortfolioShareInput(v *RejectPortfolioShareInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if len(v.PortfolioShareType) > 0 { ok := object.Key("PortfolioShareType") ok.String(string(v.PortfolioShareType)) } return nil } func awsAwsjson11_serializeOpDocumentScanProvisionedProductsInput(v *ScanProvisionedProductsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.AccessLevelFilter != nil { ok := object.Key("AccessLevelFilter") if err := awsAwsjson11_serializeDocumentAccessLevelFilter(v.AccessLevelFilter, ok); err != nil { return err } } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } return nil } func awsAwsjson11_serializeOpDocumentSearchProductsAsAdminInput(v *SearchProductsAsAdminInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Filters != nil { ok := object.Key("Filters") if err := awsAwsjson11_serializeDocumentProductViewFilters(v.Filters, ok); err != nil { return err } } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if len(v.ProductSource) > 0 { ok := object.Key("ProductSource") ok.String(string(v.ProductSource)) } if len(v.SortBy) > 0 { ok := object.Key("SortBy") ok.String(string(v.SortBy)) } if len(v.SortOrder) > 0 { ok := object.Key("SortOrder") ok.String(string(v.SortOrder)) } return nil } func awsAwsjson11_serializeOpDocumentSearchProductsInput(v *SearchProductsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Filters != nil { ok := object.Key("Filters") if err := awsAwsjson11_serializeDocumentProductViewFilters(v.Filters, ok); err != nil { return err } } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if len(v.SortBy) > 0 { ok := object.Key("SortBy") ok.String(string(v.SortBy)) } if len(v.SortOrder) > 0 { ok := object.Key("SortOrder") ok.String(string(v.SortOrder)) } return nil } func awsAwsjson11_serializeOpDocumentSearchProvisionedProductsInput(v *SearchProvisionedProductsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.AccessLevelFilter != nil { ok := object.Key("AccessLevelFilter") if err := awsAwsjson11_serializeDocumentAccessLevelFilter(v.AccessLevelFilter, ok); err != nil { return err } } if v.Filters != nil { ok := object.Key("Filters") if err := awsAwsjson11_serializeDocumentProvisionedProductFilters(v.Filters, ok); err != nil { return err } } if v.PageSize != 0 { ok := object.Key("PageSize") ok.Integer(v.PageSize) } if v.PageToken != nil { ok := object.Key("PageToken") ok.String(*v.PageToken) } if v.SortBy != nil { ok := object.Key("SortBy") ok.String(*v.SortBy) } if len(v.SortOrder) > 0 { ok := object.Key("SortOrder") ok.String(string(v.SortOrder)) } return nil } func awsAwsjson11_serializeOpDocumentTerminateProvisionedProductInput(v *TerminateProvisionedProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.IgnoreErrors { ok := object.Key("IgnoreErrors") ok.Boolean(v.IgnoreErrors) } if v.ProvisionedProductId != nil { ok := object.Key("ProvisionedProductId") ok.String(*v.ProvisionedProductId) } if v.ProvisionedProductName != nil { ok := object.Key("ProvisionedProductName") ok.String(*v.ProvisionedProductName) } if v.RetainPhysicalResources { ok := object.Key("RetainPhysicalResources") ok.Boolean(v.RetainPhysicalResources) } if v.TerminateToken != nil { ok := object.Key("TerminateToken") ok.String(*v.TerminateToken) } return nil } func awsAwsjson11_serializeOpDocumentUpdateConstraintInput(v *UpdateConstraintInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } if v.Parameters != nil { ok := object.Key("Parameters") ok.String(*v.Parameters) } return nil } func awsAwsjson11_serializeOpDocumentUpdatePortfolioInput(v *UpdatePortfolioInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.AddTags != nil { ok := object.Key("AddTags") if err := awsAwsjson11_serializeDocumentAddTags(v.AddTags, ok); err != nil { return err } } if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) } if v.DisplayName != nil { ok := object.Key("DisplayName") ok.String(*v.DisplayName) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } if v.ProviderName != nil { ok := object.Key("ProviderName") ok.String(*v.ProviderName) } if v.RemoveTags != nil { ok := object.Key("RemoveTags") if err := awsAwsjson11_serializeDocumentTagKeys(v.RemoveTags, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeOpDocumentUpdatePortfolioShareInput(v *UpdatePortfolioShareInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.AccountId != nil { ok := object.Key("AccountId") ok.String(*v.AccountId) } if v.OrganizationNode != nil { ok := object.Key("OrganizationNode") if err := awsAwsjson11_serializeDocumentOrganizationNode(v.OrganizationNode, ok); err != nil { return err } } if v.PortfolioId != nil { ok := object.Key("PortfolioId") ok.String(*v.PortfolioId) } if v.SharePrincipals != nil { ok := object.Key("SharePrincipals") ok.Boolean(*v.SharePrincipals) } if v.ShareTagOptions != nil { ok := object.Key("ShareTagOptions") ok.Boolean(*v.ShareTagOptions) } return nil } func awsAwsjson11_serializeOpDocumentUpdateProductInput(v *UpdateProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.AddTags != nil { ok := object.Key("AddTags") if err := awsAwsjson11_serializeDocumentAddTags(v.AddTags, ok); err != nil { return err } } if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) } if v.Distributor != nil { ok := object.Key("Distributor") ok.String(*v.Distributor) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) } if v.Owner != nil { ok := object.Key("Owner") ok.String(*v.Owner) } if v.RemoveTags != nil { ok := object.Key("RemoveTags") if err := awsAwsjson11_serializeDocumentTagKeys(v.RemoveTags, ok); err != nil { return err } } if v.SourceConnection != nil { ok := object.Key("SourceConnection") if err := awsAwsjson11_serializeDocumentSourceConnection(v.SourceConnection, ok); err != nil { return err } } if v.SupportDescription != nil { ok := object.Key("SupportDescription") ok.String(*v.SupportDescription) } if v.SupportEmail != nil { ok := object.Key("SupportEmail") ok.String(*v.SupportEmail) } if v.SupportUrl != nil { ok := object.Key("SupportUrl") ok.String(*v.SupportUrl) } return nil } func awsAwsjson11_serializeOpDocumentUpdateProvisionedProductInput(v *UpdateProvisionedProductInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.PathId != nil { ok := object.Key("PathId") ok.String(*v.PathId) } if v.PathName != nil { ok := object.Key("PathName") ok.String(*v.PathName) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProductName != nil { ok := object.Key("ProductName") ok.String(*v.ProductName) } if v.ProvisionedProductId != nil { ok := object.Key("ProvisionedProductId") ok.String(*v.ProvisionedProductId) } if v.ProvisionedProductName != nil { ok := object.Key("ProvisionedProductName") ok.String(*v.ProvisionedProductName) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } if v.ProvisioningArtifactName != nil { ok := object.Key("ProvisioningArtifactName") ok.String(*v.ProvisioningArtifactName) } if v.ProvisioningParameters != nil { ok := object.Key("ProvisioningParameters") if err := awsAwsjson11_serializeDocumentUpdateProvisioningParameters(v.ProvisioningParameters, ok); err != nil { return err } } if v.ProvisioningPreferences != nil { ok := object.Key("ProvisioningPreferences") if err := awsAwsjson11_serializeDocumentUpdateProvisioningPreferences(v.ProvisioningPreferences, ok); err != nil { return err } } if v.Tags != nil { ok := object.Key("Tags") if err := awsAwsjson11_serializeDocumentTags(v.Tags, ok); err != nil { return err } } if v.UpdateToken != nil { ok := object.Key("UpdateToken") ok.String(*v.UpdateToken) } return nil } func awsAwsjson11_serializeOpDocumentUpdateProvisionedProductPropertiesInput(v *UpdateProvisionedProductPropertiesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.IdempotencyToken != nil { ok := object.Key("IdempotencyToken") ok.String(*v.IdempotencyToken) } if v.ProvisionedProductId != nil { ok := object.Key("ProvisionedProductId") ok.String(*v.ProvisionedProductId) } if v.ProvisionedProductProperties != nil { ok := object.Key("ProvisionedProductProperties") if err := awsAwsjson11_serializeDocumentProvisionedProductProperties(v.ProvisionedProductProperties, ok); err != nil { return err } } return nil } func awsAwsjson11_serializeOpDocumentUpdateProvisioningArtifactInput(v *UpdateProvisioningArtifactInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Active != nil { ok := object.Key("Active") ok.Boolean(*v.Active) } if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) } if len(v.Guidance) > 0 { ok := object.Key("Guidance") ok.String(string(v.Guidance)) } if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) } if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) } if v.ProvisioningArtifactId != nil { ok := object.Key("ProvisioningArtifactId") ok.String(*v.ProvisioningArtifactId) } return nil } func awsAwsjson11_serializeOpDocumentUpdateServiceActionInput(v *UpdateServiceActionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcceptLanguage != nil { ok := object.Key("AcceptLanguage") ok.String(*v.AcceptLanguage) } if v.Definition != nil { ok := object.Key("Definition") if err := awsAwsjson11_serializeDocumentServiceActionDefinitionMap(v.Definition, ok); err != nil { return err } } if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) } return nil } func awsAwsjson11_serializeOpDocumentUpdateTagOptionInput(v *UpdateTagOptionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Active != nil { ok := object.Key("Active") ok.Boolean(*v.Active) } if v.Id != nil { ok := object.Key("Id") ok.String(*v.Id) } if v.Value != nil { ok := object.Key("Value") ok.String(*v.Value) } return nil }
8,299
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalog import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/servicecatalog/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) type validateOpAcceptPortfolioShare struct { } func (*validateOpAcceptPortfolioShare) ID() string { return "OperationInputValidation" } func (m *validateOpAcceptPortfolioShare) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*AcceptPortfolioShareInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpAcceptPortfolioShareInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpAssociateBudgetWithResource struct { } func (*validateOpAssociateBudgetWithResource) ID() string { return "OperationInputValidation" } func (m *validateOpAssociateBudgetWithResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*AssociateBudgetWithResourceInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpAssociateBudgetWithResourceInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpAssociatePrincipalWithPortfolio struct { } func (*validateOpAssociatePrincipalWithPortfolio) ID() string { return "OperationInputValidation" } func (m *validateOpAssociatePrincipalWithPortfolio) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*AssociatePrincipalWithPortfolioInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpAssociatePrincipalWithPortfolioInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpAssociateProductWithPortfolio struct { } func (*validateOpAssociateProductWithPortfolio) ID() string { return "OperationInputValidation" } func (m *validateOpAssociateProductWithPortfolio) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*AssociateProductWithPortfolioInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpAssociateProductWithPortfolioInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpAssociateServiceActionWithProvisioningArtifact struct { } func (*validateOpAssociateServiceActionWithProvisioningArtifact) ID() string { return "OperationInputValidation" } func (m *validateOpAssociateServiceActionWithProvisioningArtifact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*AssociateServiceActionWithProvisioningArtifactInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpAssociateServiceActionWithProvisioningArtifactInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpAssociateTagOptionWithResource struct { } func (*validateOpAssociateTagOptionWithResource) ID() string { return "OperationInputValidation" } func (m *validateOpAssociateTagOptionWithResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*AssociateTagOptionWithResourceInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpAssociateTagOptionWithResourceInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpBatchAssociateServiceActionWithProvisioningArtifact struct { } func (*validateOpBatchAssociateServiceActionWithProvisioningArtifact) ID() string { return "OperationInputValidation" } func (m *validateOpBatchAssociateServiceActionWithProvisioningArtifact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*BatchAssociateServiceActionWithProvisioningArtifactInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpBatchAssociateServiceActionWithProvisioningArtifactInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpBatchDisassociateServiceActionFromProvisioningArtifact struct { } func (*validateOpBatchDisassociateServiceActionFromProvisioningArtifact) ID() string { return "OperationInputValidation" } func (m *validateOpBatchDisassociateServiceActionFromProvisioningArtifact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*BatchDisassociateServiceActionFromProvisioningArtifactInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpBatchDisassociateServiceActionFromProvisioningArtifactInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCopyProduct struct { } func (*validateOpCopyProduct) ID() string { return "OperationInputValidation" } func (m *validateOpCopyProduct) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CopyProductInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCopyProductInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreateConstraint struct { } func (*validateOpCreateConstraint) ID() string { return "OperationInputValidation" } func (m *validateOpCreateConstraint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreateConstraintInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreateConstraintInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreatePortfolio struct { } func (*validateOpCreatePortfolio) ID() string { return "OperationInputValidation" } func (m *validateOpCreatePortfolio) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreatePortfolioInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreatePortfolioInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreatePortfolioShare struct { } func (*validateOpCreatePortfolioShare) ID() string { return "OperationInputValidation" } func (m *validateOpCreatePortfolioShare) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreatePortfolioShareInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreatePortfolioShareInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreateProduct struct { } func (*validateOpCreateProduct) ID() string { return "OperationInputValidation" } func (m *validateOpCreateProduct) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreateProductInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreateProductInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreateProvisionedProductPlan struct { } func (*validateOpCreateProvisionedProductPlan) ID() string { return "OperationInputValidation" } func (m *validateOpCreateProvisionedProductPlan) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreateProvisionedProductPlanInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreateProvisionedProductPlanInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreateProvisioningArtifact struct { } func (*validateOpCreateProvisioningArtifact) ID() string { return "OperationInputValidation" } func (m *validateOpCreateProvisioningArtifact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreateProvisioningArtifactInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreateProvisioningArtifactInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreateServiceAction struct { } func (*validateOpCreateServiceAction) ID() string { return "OperationInputValidation" } func (m *validateOpCreateServiceAction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreateServiceActionInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreateServiceActionInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreateTagOption struct { } func (*validateOpCreateTagOption) ID() string { return "OperationInputValidation" } func (m *validateOpCreateTagOption) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreateTagOptionInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreateTagOptionInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDeleteConstraint struct { } func (*validateOpDeleteConstraint) ID() string { return "OperationInputValidation" } func (m *validateOpDeleteConstraint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeleteConstraintInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeleteConstraintInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDeletePortfolio struct { } func (*validateOpDeletePortfolio) ID() string { return "OperationInputValidation" } func (m *validateOpDeletePortfolio) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeletePortfolioInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeletePortfolioInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDeletePortfolioShare struct { } func (*validateOpDeletePortfolioShare) ID() string { return "OperationInputValidation" } func (m *validateOpDeletePortfolioShare) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeletePortfolioShareInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeletePortfolioShareInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDeleteProduct struct { } func (*validateOpDeleteProduct) ID() string { return "OperationInputValidation" } func (m *validateOpDeleteProduct) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeleteProductInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeleteProductInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDeleteProvisionedProductPlan struct { } func (*validateOpDeleteProvisionedProductPlan) ID() string { return "OperationInputValidation" } func (m *validateOpDeleteProvisionedProductPlan) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeleteProvisionedProductPlanInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeleteProvisionedProductPlanInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDeleteProvisioningArtifact struct { } func (*validateOpDeleteProvisioningArtifact) ID() string { return "OperationInputValidation" } func (m *validateOpDeleteProvisioningArtifact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeleteProvisioningArtifactInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeleteProvisioningArtifactInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDeleteServiceAction struct { } func (*validateOpDeleteServiceAction) ID() string { return "OperationInputValidation" } func (m *validateOpDeleteServiceAction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeleteServiceActionInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeleteServiceActionInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDeleteTagOption struct { } func (*validateOpDeleteTagOption) ID() string { return "OperationInputValidation" } func (m *validateOpDeleteTagOption) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeleteTagOptionInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeleteTagOptionInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribeConstraint struct { } func (*validateOpDescribeConstraint) ID() string { return "OperationInputValidation" } func (m *validateOpDescribeConstraint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribeConstraintInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribeConstraintInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribeCopyProductStatus struct { } func (*validateOpDescribeCopyProductStatus) ID() string { return "OperationInputValidation" } func (m *validateOpDescribeCopyProductStatus) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribeCopyProductStatusInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribeCopyProductStatusInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribePortfolio struct { } func (*validateOpDescribePortfolio) ID() string { return "OperationInputValidation" } func (m *validateOpDescribePortfolio) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribePortfolioInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribePortfolioInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribePortfolioShares struct { } func (*validateOpDescribePortfolioShares) ID() string { return "OperationInputValidation" } func (m *validateOpDescribePortfolioShares) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribePortfolioSharesInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribePortfolioSharesInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribePortfolioShareStatus struct { } func (*validateOpDescribePortfolioShareStatus) ID() string { return "OperationInputValidation" } func (m *validateOpDescribePortfolioShareStatus) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribePortfolioShareStatusInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribePortfolioShareStatusInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribeProductView struct { } func (*validateOpDescribeProductView) ID() string { return "OperationInputValidation" } func (m *validateOpDescribeProductView) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribeProductViewInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribeProductViewInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribeProvisionedProductPlan struct { } func (*validateOpDescribeProvisionedProductPlan) ID() string { return "OperationInputValidation" } func (m *validateOpDescribeProvisionedProductPlan) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribeProvisionedProductPlanInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribeProvisionedProductPlanInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribeRecord struct { } func (*validateOpDescribeRecord) ID() string { return "OperationInputValidation" } func (m *validateOpDescribeRecord) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribeRecordInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribeRecordInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribeServiceActionExecutionParameters struct { } func (*validateOpDescribeServiceActionExecutionParameters) ID() string { return "OperationInputValidation" } func (m *validateOpDescribeServiceActionExecutionParameters) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribeServiceActionExecutionParametersInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribeServiceActionExecutionParametersInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribeServiceAction struct { } func (*validateOpDescribeServiceAction) ID() string { return "OperationInputValidation" } func (m *validateOpDescribeServiceAction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribeServiceActionInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribeServiceActionInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribeTagOption struct { } func (*validateOpDescribeTagOption) ID() string { return "OperationInputValidation" } func (m *validateOpDescribeTagOption) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribeTagOptionInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribeTagOptionInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDisassociateBudgetFromResource struct { } func (*validateOpDisassociateBudgetFromResource) ID() string { return "OperationInputValidation" } func (m *validateOpDisassociateBudgetFromResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DisassociateBudgetFromResourceInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDisassociateBudgetFromResourceInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDisassociatePrincipalFromPortfolio struct { } func (*validateOpDisassociatePrincipalFromPortfolio) ID() string { return "OperationInputValidation" } func (m *validateOpDisassociatePrincipalFromPortfolio) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DisassociatePrincipalFromPortfolioInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDisassociatePrincipalFromPortfolioInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDisassociateProductFromPortfolio struct { } func (*validateOpDisassociateProductFromPortfolio) ID() string { return "OperationInputValidation" } func (m *validateOpDisassociateProductFromPortfolio) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DisassociateProductFromPortfolioInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDisassociateProductFromPortfolioInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDisassociateServiceActionFromProvisioningArtifact struct { } func (*validateOpDisassociateServiceActionFromProvisioningArtifact) ID() string { return "OperationInputValidation" } func (m *validateOpDisassociateServiceActionFromProvisioningArtifact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DisassociateServiceActionFromProvisioningArtifactInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDisassociateServiceActionFromProvisioningArtifactInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDisassociateTagOptionFromResource struct { } func (*validateOpDisassociateTagOptionFromResource) ID() string { return "OperationInputValidation" } func (m *validateOpDisassociateTagOptionFromResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DisassociateTagOptionFromResourceInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDisassociateTagOptionFromResourceInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpExecuteProvisionedProductPlan struct { } func (*validateOpExecuteProvisionedProductPlan) ID() string { return "OperationInputValidation" } func (m *validateOpExecuteProvisionedProductPlan) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ExecuteProvisionedProductPlanInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpExecuteProvisionedProductPlanInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpExecuteProvisionedProductServiceAction struct { } func (*validateOpExecuteProvisionedProductServiceAction) ID() string { return "OperationInputValidation" } func (m *validateOpExecuteProvisionedProductServiceAction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ExecuteProvisionedProductServiceActionInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpExecuteProvisionedProductServiceActionInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpImportAsProvisionedProduct struct { } func (*validateOpImportAsProvisionedProduct) ID() string { return "OperationInputValidation" } func (m *validateOpImportAsProvisionedProduct) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ImportAsProvisionedProductInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpImportAsProvisionedProductInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListBudgetsForResource struct { } func (*validateOpListBudgetsForResource) ID() string { return "OperationInputValidation" } func (m *validateOpListBudgetsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListBudgetsForResourceInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListBudgetsForResourceInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListConstraintsForPortfolio struct { } func (*validateOpListConstraintsForPortfolio) ID() string { return "OperationInputValidation" } func (m *validateOpListConstraintsForPortfolio) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListConstraintsForPortfolioInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListConstraintsForPortfolioInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListLaunchPaths struct { } func (*validateOpListLaunchPaths) ID() string { return "OperationInputValidation" } func (m *validateOpListLaunchPaths) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListLaunchPathsInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListLaunchPathsInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListOrganizationPortfolioAccess struct { } func (*validateOpListOrganizationPortfolioAccess) ID() string { return "OperationInputValidation" } func (m *validateOpListOrganizationPortfolioAccess) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListOrganizationPortfolioAccessInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListOrganizationPortfolioAccessInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListPortfolioAccess struct { } func (*validateOpListPortfolioAccess) ID() string { return "OperationInputValidation" } func (m *validateOpListPortfolioAccess) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListPortfolioAccessInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListPortfolioAccessInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListPortfoliosForProduct struct { } func (*validateOpListPortfoliosForProduct) ID() string { return "OperationInputValidation" } func (m *validateOpListPortfoliosForProduct) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListPortfoliosForProductInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListPortfoliosForProductInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListPrincipalsForPortfolio struct { } func (*validateOpListPrincipalsForPortfolio) ID() string { return "OperationInputValidation" } func (m *validateOpListPrincipalsForPortfolio) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListPrincipalsForPortfolioInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListPrincipalsForPortfolioInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListProvisioningArtifactsForServiceAction struct { } func (*validateOpListProvisioningArtifactsForServiceAction) ID() string { return "OperationInputValidation" } func (m *validateOpListProvisioningArtifactsForServiceAction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListProvisioningArtifactsForServiceActionInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListProvisioningArtifactsForServiceActionInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListProvisioningArtifacts struct { } func (*validateOpListProvisioningArtifacts) ID() string { return "OperationInputValidation" } func (m *validateOpListProvisioningArtifacts) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListProvisioningArtifactsInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListProvisioningArtifactsInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListResourcesForTagOption struct { } func (*validateOpListResourcesForTagOption) ID() string { return "OperationInputValidation" } func (m *validateOpListResourcesForTagOption) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListResourcesForTagOptionInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListResourcesForTagOptionInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListServiceActionsForProvisioningArtifact struct { } func (*validateOpListServiceActionsForProvisioningArtifact) ID() string { return "OperationInputValidation" } func (m *validateOpListServiceActionsForProvisioningArtifact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListServiceActionsForProvisioningArtifactInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListServiceActionsForProvisioningArtifactInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListStackInstancesForProvisionedProduct struct { } func (*validateOpListStackInstancesForProvisionedProduct) ID() string { return "OperationInputValidation" } func (m *validateOpListStackInstancesForProvisionedProduct) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListStackInstancesForProvisionedProductInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListStackInstancesForProvisionedProductInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpNotifyProvisionProductEngineWorkflowResult struct { } func (*validateOpNotifyProvisionProductEngineWorkflowResult) ID() string { return "OperationInputValidation" } func (m *validateOpNotifyProvisionProductEngineWorkflowResult) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*NotifyProvisionProductEngineWorkflowResultInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpNotifyProvisionProductEngineWorkflowResultInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpNotifyTerminateProvisionedProductEngineWorkflowResult struct { } func (*validateOpNotifyTerminateProvisionedProductEngineWorkflowResult) ID() string { return "OperationInputValidation" } func (m *validateOpNotifyTerminateProvisionedProductEngineWorkflowResult) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*NotifyTerminateProvisionedProductEngineWorkflowResultInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpNotifyTerminateProvisionedProductEngineWorkflowResultInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpNotifyUpdateProvisionedProductEngineWorkflowResult struct { } func (*validateOpNotifyUpdateProvisionedProductEngineWorkflowResult) ID() string { return "OperationInputValidation" } func (m *validateOpNotifyUpdateProvisionedProductEngineWorkflowResult) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*NotifyUpdateProvisionedProductEngineWorkflowResultInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpNotifyUpdateProvisionedProductEngineWorkflowResultInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpProvisionProduct struct { } func (*validateOpProvisionProduct) ID() string { return "OperationInputValidation" } func (m *validateOpProvisionProduct) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ProvisionProductInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpProvisionProductInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpRejectPortfolioShare struct { } func (*validateOpRejectPortfolioShare) ID() string { return "OperationInputValidation" } func (m *validateOpRejectPortfolioShare) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*RejectPortfolioShareInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpRejectPortfolioShareInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpTerminateProvisionedProduct struct { } func (*validateOpTerminateProvisionedProduct) ID() string { return "OperationInputValidation" } func (m *validateOpTerminateProvisionedProduct) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*TerminateProvisionedProductInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpTerminateProvisionedProductInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdateConstraint struct { } func (*validateOpUpdateConstraint) ID() string { return "OperationInputValidation" } func (m *validateOpUpdateConstraint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdateConstraintInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdateConstraintInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdatePortfolio struct { } func (*validateOpUpdatePortfolio) ID() string { return "OperationInputValidation" } func (m *validateOpUpdatePortfolio) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdatePortfolioInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdatePortfolioInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdatePortfolioShare struct { } func (*validateOpUpdatePortfolioShare) ID() string { return "OperationInputValidation" } func (m *validateOpUpdatePortfolioShare) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdatePortfolioShareInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdatePortfolioShareInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdateProduct struct { } func (*validateOpUpdateProduct) ID() string { return "OperationInputValidation" } func (m *validateOpUpdateProduct) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdateProductInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdateProductInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdateProvisionedProduct struct { } func (*validateOpUpdateProvisionedProduct) ID() string { return "OperationInputValidation" } func (m *validateOpUpdateProvisionedProduct) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdateProvisionedProductInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdateProvisionedProductInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdateProvisionedProductProperties struct { } func (*validateOpUpdateProvisionedProductProperties) ID() string { return "OperationInputValidation" } func (m *validateOpUpdateProvisionedProductProperties) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdateProvisionedProductPropertiesInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdateProvisionedProductPropertiesInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdateProvisioningArtifact struct { } func (*validateOpUpdateProvisioningArtifact) ID() string { return "OperationInputValidation" } func (m *validateOpUpdateProvisioningArtifact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdateProvisioningArtifactInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdateProvisioningArtifactInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdateServiceAction struct { } func (*validateOpUpdateServiceAction) ID() string { return "OperationInputValidation" } func (m *validateOpUpdateServiceAction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdateServiceActionInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdateServiceActionInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdateTagOption struct { } func (*validateOpUpdateTagOption) ID() string { return "OperationInputValidation" } func (m *validateOpUpdateTagOption) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdateTagOptionInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdateTagOptionInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } func addOpAcceptPortfolioShareValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAcceptPortfolioShare{}, middleware.After) } func addOpAssociateBudgetWithResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateBudgetWithResource{}, middleware.After) } func addOpAssociatePrincipalWithPortfolioValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociatePrincipalWithPortfolio{}, middleware.After) } func addOpAssociateProductWithPortfolioValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateProductWithPortfolio{}, middleware.After) } func addOpAssociateServiceActionWithProvisioningArtifactValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateServiceActionWithProvisioningArtifact{}, middleware.After) } func addOpAssociateTagOptionWithResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateTagOptionWithResource{}, middleware.After) } func addOpBatchAssociateServiceActionWithProvisioningArtifactValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpBatchAssociateServiceActionWithProvisioningArtifact{}, middleware.After) } func addOpBatchDisassociateServiceActionFromProvisioningArtifactValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpBatchDisassociateServiceActionFromProvisioningArtifact{}, middleware.After) } func addOpCopyProductValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCopyProduct{}, middleware.After) } func addOpCreateConstraintValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateConstraint{}, middleware.After) } func addOpCreatePortfolioValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreatePortfolio{}, middleware.After) } func addOpCreatePortfolioShareValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreatePortfolioShare{}, middleware.After) } func addOpCreateProductValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateProduct{}, middleware.After) } func addOpCreateProvisionedProductPlanValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateProvisionedProductPlan{}, middleware.After) } func addOpCreateProvisioningArtifactValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateProvisioningArtifact{}, middleware.After) } func addOpCreateServiceActionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateServiceAction{}, middleware.After) } func addOpCreateTagOptionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateTagOption{}, middleware.After) } func addOpDeleteConstraintValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteConstraint{}, middleware.After) } func addOpDeletePortfolioValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeletePortfolio{}, middleware.After) } func addOpDeletePortfolioShareValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeletePortfolioShare{}, middleware.After) } func addOpDeleteProductValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteProduct{}, middleware.After) } func addOpDeleteProvisionedProductPlanValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteProvisionedProductPlan{}, middleware.After) } func addOpDeleteProvisioningArtifactValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteProvisioningArtifact{}, middleware.After) } func addOpDeleteServiceActionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteServiceAction{}, middleware.After) } func addOpDeleteTagOptionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteTagOption{}, middleware.After) } func addOpDescribeConstraintValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeConstraint{}, middleware.After) } func addOpDescribeCopyProductStatusValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeCopyProductStatus{}, middleware.After) } func addOpDescribePortfolioValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribePortfolio{}, middleware.After) } func addOpDescribePortfolioSharesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribePortfolioShares{}, middleware.After) } func addOpDescribePortfolioShareStatusValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribePortfolioShareStatus{}, middleware.After) } func addOpDescribeProductViewValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeProductView{}, middleware.After) } func addOpDescribeProvisionedProductPlanValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeProvisionedProductPlan{}, middleware.After) } func addOpDescribeRecordValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeRecord{}, middleware.After) } func addOpDescribeServiceActionExecutionParametersValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeServiceActionExecutionParameters{}, middleware.After) } func addOpDescribeServiceActionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeServiceAction{}, middleware.After) } func addOpDescribeTagOptionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeTagOption{}, middleware.After) } func addOpDisassociateBudgetFromResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisassociateBudgetFromResource{}, middleware.After) } func addOpDisassociatePrincipalFromPortfolioValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisassociatePrincipalFromPortfolio{}, middleware.After) } func addOpDisassociateProductFromPortfolioValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisassociateProductFromPortfolio{}, middleware.After) } func addOpDisassociateServiceActionFromProvisioningArtifactValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisassociateServiceActionFromProvisioningArtifact{}, middleware.After) } func addOpDisassociateTagOptionFromResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisassociateTagOptionFromResource{}, middleware.After) } func addOpExecuteProvisionedProductPlanValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpExecuteProvisionedProductPlan{}, middleware.After) } func addOpExecuteProvisionedProductServiceActionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpExecuteProvisionedProductServiceAction{}, middleware.After) } func addOpImportAsProvisionedProductValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpImportAsProvisionedProduct{}, middleware.After) } func addOpListBudgetsForResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListBudgetsForResource{}, middleware.After) } func addOpListConstraintsForPortfolioValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListConstraintsForPortfolio{}, middleware.After) } func addOpListLaunchPathsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListLaunchPaths{}, middleware.After) } func addOpListOrganizationPortfolioAccessValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListOrganizationPortfolioAccess{}, middleware.After) } func addOpListPortfolioAccessValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListPortfolioAccess{}, middleware.After) } func addOpListPortfoliosForProductValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListPortfoliosForProduct{}, middleware.After) } func addOpListPrincipalsForPortfolioValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListPrincipalsForPortfolio{}, middleware.After) } func addOpListProvisioningArtifactsForServiceActionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListProvisioningArtifactsForServiceAction{}, middleware.After) } func addOpListProvisioningArtifactsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListProvisioningArtifacts{}, middleware.After) } func addOpListResourcesForTagOptionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListResourcesForTagOption{}, middleware.After) } func addOpListServiceActionsForProvisioningArtifactValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListServiceActionsForProvisioningArtifact{}, middleware.After) } func addOpListStackInstancesForProvisionedProductValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListStackInstancesForProvisionedProduct{}, middleware.After) } func addOpNotifyProvisionProductEngineWorkflowResultValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpNotifyProvisionProductEngineWorkflowResult{}, middleware.After) } func addOpNotifyTerminateProvisionedProductEngineWorkflowResultValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpNotifyTerminateProvisionedProductEngineWorkflowResult{}, middleware.After) } func addOpNotifyUpdateProvisionedProductEngineWorkflowResultValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpNotifyUpdateProvisionedProductEngineWorkflowResult{}, middleware.After) } func addOpProvisionProductValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpProvisionProduct{}, middleware.After) } func addOpRejectPortfolioShareValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpRejectPortfolioShare{}, middleware.After) } func addOpTerminateProvisionedProductValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpTerminateProvisionedProduct{}, middleware.After) } func addOpUpdateConstraintValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateConstraint{}, middleware.After) } func addOpUpdatePortfolioValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdatePortfolio{}, middleware.After) } func addOpUpdatePortfolioShareValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdatePortfolioShare{}, middleware.After) } func addOpUpdateProductValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateProduct{}, middleware.After) } func addOpUpdateProvisionedProductValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateProvisionedProduct{}, middleware.After) } func addOpUpdateProvisionedProductPropertiesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateProvisionedProductProperties{}, middleware.After) } func addOpUpdateProvisioningArtifactValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateProvisioningArtifact{}, middleware.After) } func addOpUpdateServiceActionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateServiceAction{}, middleware.After) } func addOpUpdateTagOptionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateTagOption{}, middleware.After) } func validateAddTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AddTags"} 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 validateCodeStarParameters(v *types.CodeStarParameters) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CodeStarParameters"} if v.ConnectionArn == nil { invalidParams.Add(smithy.NewErrParamRequired("ConnectionArn")) } if v.Repository == nil { invalidParams.Add(smithy.NewErrParamRequired("Repository")) } if v.Branch == nil { invalidParams.Add(smithy.NewErrParamRequired("Branch")) } if v.ArtifactPath == nil { invalidParams.Add(smithy.NewErrParamRequired("ArtifactPath")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateServiceActionAssociation(v *types.ServiceActionAssociation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ServiceActionAssociation"} if v.ServiceActionId == nil { invalidParams.Add(smithy.NewErrParamRequired("ServiceActionId")) } if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.ProvisioningArtifactId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisioningArtifactId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateServiceActionAssociations(v []types.ServiceActionAssociation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ServiceActionAssociations"} for i := range v { if err := validateServiceActionAssociation(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateSourceConnection(v *types.SourceConnection) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SourceConnection"} if v.ConnectionParameters == nil { invalidParams.Add(smithy.NewErrParamRequired("ConnectionParameters")) } else if v.ConnectionParameters != nil { if err := validateSourceConnectionParameters(v.ConnectionParameters); err != nil { invalidParams.AddNested("ConnectionParameters", err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateSourceConnectionParameters(v *types.SourceConnectionParameters) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SourceConnectionParameters"} if v.CodeStar != nil { if err := validateCodeStarParameters(v.CodeStar); err != nil { invalidParams.AddNested("CodeStar", 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 validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} 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 validateOpAcceptPortfolioShareInput(v *AcceptPortfolioShareInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AcceptPortfolioShareInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpAssociateBudgetWithResourceInput(v *AssociateBudgetWithResourceInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssociateBudgetWithResourceInput"} if v.BudgetName == nil { invalidParams.Add(smithy.NewErrParamRequired("BudgetName")) } if v.ResourceId == nil { invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpAssociatePrincipalWithPortfolioInput(v *AssociatePrincipalWithPortfolioInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssociatePrincipalWithPortfolioInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if v.PrincipalARN == nil { invalidParams.Add(smithy.NewErrParamRequired("PrincipalARN")) } if len(v.PrincipalType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("PrincipalType")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpAssociateProductWithPortfolioInput(v *AssociateProductWithPortfolioInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssociateProductWithPortfolioInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpAssociateServiceActionWithProvisioningArtifactInput(v *AssociateServiceActionWithProvisioningArtifactInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssociateServiceActionWithProvisioningArtifactInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.ProvisioningArtifactId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisioningArtifactId")) } if v.ServiceActionId == nil { invalidParams.Add(smithy.NewErrParamRequired("ServiceActionId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpAssociateTagOptionWithResourceInput(v *AssociateTagOptionWithResourceInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssociateTagOptionWithResourceInput"} if v.ResourceId == nil { invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) } if v.TagOptionId == nil { invalidParams.Add(smithy.NewErrParamRequired("TagOptionId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpBatchAssociateServiceActionWithProvisioningArtifactInput(v *BatchAssociateServiceActionWithProvisioningArtifactInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BatchAssociateServiceActionWithProvisioningArtifactInput"} if v.ServiceActionAssociations == nil { invalidParams.Add(smithy.NewErrParamRequired("ServiceActionAssociations")) } else if v.ServiceActionAssociations != nil { if err := validateServiceActionAssociations(v.ServiceActionAssociations); err != nil { invalidParams.AddNested("ServiceActionAssociations", err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpBatchDisassociateServiceActionFromProvisioningArtifactInput(v *BatchDisassociateServiceActionFromProvisioningArtifactInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BatchDisassociateServiceActionFromProvisioningArtifactInput"} if v.ServiceActionAssociations == nil { invalidParams.Add(smithy.NewErrParamRequired("ServiceActionAssociations")) } else if v.ServiceActionAssociations != nil { if err := validateServiceActionAssociations(v.ServiceActionAssociations); err != nil { invalidParams.AddNested("ServiceActionAssociations", err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCopyProductInput(v *CopyProductInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CopyProductInput"} if v.SourceProductArn == nil { invalidParams.Add(smithy.NewErrParamRequired("SourceProductArn")) } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreateConstraintInput(v *CreateConstraintInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateConstraintInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.Parameters == nil { invalidParams.Add(smithy.NewErrParamRequired("Parameters")) } if v.Type == nil { invalidParams.Add(smithy.NewErrParamRequired("Type")) } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreatePortfolioInput(v *CreatePortfolioInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreatePortfolioInput"} if v.DisplayName == nil { invalidParams.Add(smithy.NewErrParamRequired("DisplayName")) } if v.ProviderName == nil { invalidParams.Add(smithy.NewErrParamRequired("ProviderName")) } if v.Tags != nil { if err := validateAddTags(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) } } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreatePortfolioShareInput(v *CreatePortfolioShareInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreatePortfolioShareInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreateProductInput(v *CreateProductInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateProductInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if v.Owner == nil { invalidParams.Add(smithy.NewErrParamRequired("Owner")) } if len(v.ProductType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("ProductType")) } if v.Tags != nil { if err := validateAddTags(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) } } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if v.SourceConnection != nil { if err := validateSourceConnection(v.SourceConnection); err != nil { invalidParams.AddNested("SourceConnection", err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreateProvisionedProductPlanInput(v *CreateProvisionedProductPlanInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateProvisionedProductPlanInput"} if v.PlanName == nil { invalidParams.Add(smithy.NewErrParamRequired("PlanName")) } if len(v.PlanType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("PlanType")) } if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.ProvisionedProductName == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisionedProductName")) } if v.ProvisioningArtifactId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisioningArtifactId")) } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if v.Tags != nil { if err := validateTags(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreateProvisioningArtifactInput(v *CreateProvisioningArtifactInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateProvisioningArtifactInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.Parameters == nil { invalidParams.Add(smithy.NewErrParamRequired("Parameters")) } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreateServiceActionInput(v *CreateServiceActionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateServiceActionInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if len(v.DefinitionType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("DefinitionType")) } if v.Definition == nil { invalidParams.Add(smithy.NewErrParamRequired("Definition")) } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreateTagOptionInput(v *CreateTagOptionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateTagOptionInput"} 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 validateOpDeleteConstraintInput(v *DeleteConstraintInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteConstraintInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDeletePortfolioInput(v *DeletePortfolioInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeletePortfolioInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDeletePortfolioShareInput(v *DeletePortfolioShareInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeletePortfolioShareInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDeleteProductInput(v *DeleteProductInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteProductInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDeleteProvisionedProductPlanInput(v *DeleteProvisionedProductPlanInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteProvisionedProductPlanInput"} if v.PlanId == nil { invalidParams.Add(smithy.NewErrParamRequired("PlanId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDeleteProvisioningArtifactInput(v *DeleteProvisioningArtifactInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteProvisioningArtifactInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.ProvisioningArtifactId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisioningArtifactId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDeleteServiceActionInput(v *DeleteServiceActionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteServiceActionInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDeleteTagOptionInput(v *DeleteTagOptionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteTagOptionInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribeConstraintInput(v *DescribeConstraintInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeConstraintInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribeCopyProductStatusInput(v *DescribeCopyProductStatusInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeCopyProductStatusInput"} if v.CopyProductToken == nil { invalidParams.Add(smithy.NewErrParamRequired("CopyProductToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribePortfolioInput(v *DescribePortfolioInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribePortfolioInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribePortfolioSharesInput(v *DescribePortfolioSharesInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribePortfolioSharesInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if len(v.Type) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribePortfolioShareStatusInput(v *DescribePortfolioShareStatusInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribePortfolioShareStatusInput"} if v.PortfolioShareToken == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioShareToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribeProductViewInput(v *DescribeProductViewInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeProductViewInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribeProvisionedProductPlanInput(v *DescribeProvisionedProductPlanInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeProvisionedProductPlanInput"} if v.PlanId == nil { invalidParams.Add(smithy.NewErrParamRequired("PlanId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribeRecordInput(v *DescribeRecordInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeRecordInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribeServiceActionExecutionParametersInput(v *DescribeServiceActionExecutionParametersInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeServiceActionExecutionParametersInput"} if v.ProvisionedProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisionedProductId")) } if v.ServiceActionId == nil { invalidParams.Add(smithy.NewErrParamRequired("ServiceActionId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribeServiceActionInput(v *DescribeServiceActionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeServiceActionInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribeTagOptionInput(v *DescribeTagOptionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeTagOptionInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDisassociateBudgetFromResourceInput(v *DisassociateBudgetFromResourceInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DisassociateBudgetFromResourceInput"} if v.BudgetName == nil { invalidParams.Add(smithy.NewErrParamRequired("BudgetName")) } if v.ResourceId == nil { invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDisassociatePrincipalFromPortfolioInput(v *DisassociatePrincipalFromPortfolioInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DisassociatePrincipalFromPortfolioInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if v.PrincipalARN == nil { invalidParams.Add(smithy.NewErrParamRequired("PrincipalARN")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDisassociateProductFromPortfolioInput(v *DisassociateProductFromPortfolioInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DisassociateProductFromPortfolioInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDisassociateServiceActionFromProvisioningArtifactInput(v *DisassociateServiceActionFromProvisioningArtifactInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DisassociateServiceActionFromProvisioningArtifactInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.ProvisioningArtifactId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisioningArtifactId")) } if v.ServiceActionId == nil { invalidParams.Add(smithy.NewErrParamRequired("ServiceActionId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDisassociateTagOptionFromResourceInput(v *DisassociateTagOptionFromResourceInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DisassociateTagOptionFromResourceInput"} if v.ResourceId == nil { invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) } if v.TagOptionId == nil { invalidParams.Add(smithy.NewErrParamRequired("TagOptionId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpExecuteProvisionedProductPlanInput(v *ExecuteProvisionedProductPlanInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ExecuteProvisionedProductPlanInput"} if v.PlanId == nil { invalidParams.Add(smithy.NewErrParamRequired("PlanId")) } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpExecuteProvisionedProductServiceActionInput(v *ExecuteProvisionedProductServiceActionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ExecuteProvisionedProductServiceActionInput"} if v.ProvisionedProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisionedProductId")) } if v.ServiceActionId == nil { invalidParams.Add(smithy.NewErrParamRequired("ServiceActionId")) } if v.ExecuteToken == nil { invalidParams.Add(smithy.NewErrParamRequired("ExecuteToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpImportAsProvisionedProductInput(v *ImportAsProvisionedProductInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ImportAsProvisionedProductInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.ProvisioningArtifactId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisioningArtifactId")) } if v.ProvisionedProductName == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisionedProductName")) } if v.PhysicalId == nil { invalidParams.Add(smithy.NewErrParamRequired("PhysicalId")) } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListBudgetsForResourceInput(v *ListBudgetsForResourceInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListBudgetsForResourceInput"} if v.ResourceId == nil { invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListConstraintsForPortfolioInput(v *ListConstraintsForPortfolioInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListConstraintsForPortfolioInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListLaunchPathsInput(v *ListLaunchPathsInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListLaunchPathsInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListOrganizationPortfolioAccessInput(v *ListOrganizationPortfolioAccessInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOrganizationPortfolioAccessInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if len(v.OrganizationNodeType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("OrganizationNodeType")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListPortfolioAccessInput(v *ListPortfolioAccessInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListPortfolioAccessInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListPortfoliosForProductInput(v *ListPortfoliosForProductInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListPortfoliosForProductInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListPrincipalsForPortfolioInput(v *ListPrincipalsForPortfolioInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListPrincipalsForPortfolioInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListProvisioningArtifactsForServiceActionInput(v *ListProvisioningArtifactsForServiceActionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListProvisioningArtifactsForServiceActionInput"} if v.ServiceActionId == nil { invalidParams.Add(smithy.NewErrParamRequired("ServiceActionId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListProvisioningArtifactsInput(v *ListProvisioningArtifactsInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListProvisioningArtifactsInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListResourcesForTagOptionInput(v *ListResourcesForTagOptionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListResourcesForTagOptionInput"} if v.TagOptionId == nil { invalidParams.Add(smithy.NewErrParamRequired("TagOptionId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListServiceActionsForProvisioningArtifactInput(v *ListServiceActionsForProvisioningArtifactInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListServiceActionsForProvisioningArtifactInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.ProvisioningArtifactId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisioningArtifactId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListStackInstancesForProvisionedProductInput(v *ListStackInstancesForProvisionedProductInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListStackInstancesForProvisionedProductInput"} if v.ProvisionedProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisionedProductId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpNotifyProvisionProductEngineWorkflowResultInput(v *NotifyProvisionProductEngineWorkflowResultInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "NotifyProvisionProductEngineWorkflowResultInput"} if v.WorkflowToken == nil { invalidParams.Add(smithy.NewErrParamRequired("WorkflowToken")) } if v.RecordId == nil { invalidParams.Add(smithy.NewErrParamRequired("RecordId")) } if len(v.Status) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Status")) } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpNotifyTerminateProvisionedProductEngineWorkflowResultInput(v *NotifyTerminateProvisionedProductEngineWorkflowResultInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "NotifyTerminateProvisionedProductEngineWorkflowResultInput"} if v.WorkflowToken == nil { invalidParams.Add(smithy.NewErrParamRequired("WorkflowToken")) } if v.RecordId == nil { invalidParams.Add(smithy.NewErrParamRequired("RecordId")) } if len(v.Status) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Status")) } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpNotifyUpdateProvisionedProductEngineWorkflowResultInput(v *NotifyUpdateProvisionedProductEngineWorkflowResultInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "NotifyUpdateProvisionedProductEngineWorkflowResultInput"} if v.WorkflowToken == nil { invalidParams.Add(smithy.NewErrParamRequired("WorkflowToken")) } if v.RecordId == nil { invalidParams.Add(smithy.NewErrParamRequired("RecordId")) } if len(v.Status) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Status")) } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpProvisionProductInput(v *ProvisionProductInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ProvisionProductInput"} if v.ProvisionedProductName == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisionedProductName")) } if v.Tags != nil { if err := validateTags(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) } } if v.ProvisionToken == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisionToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpRejectPortfolioShareInput(v *RejectPortfolioShareInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RejectPortfolioShareInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpTerminateProvisionedProductInput(v *TerminateProvisionedProductInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TerminateProvisionedProductInput"} if v.TerminateToken == nil { invalidParams.Add(smithy.NewErrParamRequired("TerminateToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdateConstraintInput(v *UpdateConstraintInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateConstraintInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdatePortfolioInput(v *UpdatePortfolioInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdatePortfolioInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if v.AddTags != nil { if err := validateAddTags(v.AddTags); err != nil { invalidParams.AddNested("AddTags", err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdatePortfolioShareInput(v *UpdatePortfolioShareInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdatePortfolioShareInput"} if v.PortfolioId == nil { invalidParams.Add(smithy.NewErrParamRequired("PortfolioId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdateProductInput(v *UpdateProductInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateProductInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if v.AddTags != nil { if err := validateAddTags(v.AddTags); err != nil { invalidParams.AddNested("AddTags", err.(smithy.InvalidParamsError)) } } if v.SourceConnection != nil { if err := validateSourceConnection(v.SourceConnection); err != nil { invalidParams.AddNested("SourceConnection", err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdateProvisionedProductInput(v *UpdateProvisionedProductInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateProvisionedProductInput"} if v.Tags != nil { if err := validateTags(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) } } if v.UpdateToken == nil { invalidParams.Add(smithy.NewErrParamRequired("UpdateToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdateProvisionedProductPropertiesInput(v *UpdateProvisionedProductPropertiesInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateProvisionedProductPropertiesInput"} if v.ProvisionedProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisionedProductId")) } if v.ProvisionedProductProperties == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisionedProductProperties")) } if v.IdempotencyToken == nil { invalidParams.Add(smithy.NewErrParamRequired("IdempotencyToken")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdateProvisioningArtifactInput(v *UpdateProvisioningArtifactInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateProvisioningArtifactInput"} if v.ProductId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProductId")) } if v.ProvisioningArtifactId == nil { invalidParams.Add(smithy.NewErrParamRequired("ProvisioningArtifactId")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdateServiceActionInput(v *UpdateServiceActionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateServiceActionInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdateTagOptionInput(v *UpdateTagOptionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateTagOptionInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } }
3,161
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 Service Catalog 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: "servicecatalog.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "servicecatalog-fips.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "servicecatalog-fips.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "servicecatalog.{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: "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: "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: "servicecatalog-fips.us-east-1.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-east-1-fips", }: endpoints.Endpoint{ Hostname: "servicecatalog-fips.us-east-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-east-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "us-east-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-east-2", Variant: endpoints.FIPSVariant, }: { Hostname: "servicecatalog-fips.us-east-2.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-east-2-fips", }: endpoints.Endpoint{ Hostname: "servicecatalog-fips.us-east-2.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-east-2", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "us-west-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-west-1", Variant: endpoints.FIPSVariant, }: { Hostname: "servicecatalog-fips.us-west-1.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-west-1-fips", }: endpoints.Endpoint{ Hostname: "servicecatalog-fips.us-west-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-west-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "us-west-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-west-2", Variant: endpoints.FIPSVariant, }: { Hostname: "servicecatalog-fips.us-west-2.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-west-2-fips", }: endpoints.Endpoint{ Hostname: "servicecatalog-fips.us-west-2.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-west-2", }, Deprecated: aws.TrueTernary, }, }, }, { ID: "aws-cn", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.DualStackVariant, }: { Hostname: "servicecatalog.{region}.api.amazonwebservices.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "servicecatalog-fips.{region}.amazonaws.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "servicecatalog-fips.{region}.api.amazonwebservices.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "servicecatalog.{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: "servicecatalog-fips.{region}.c2s.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "servicecatalog.{region}.c2s.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIso, IsRegionalized: true, }, { ID: "aws-iso-b", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "servicecatalog-fips.{region}.sc2s.sgov.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "servicecatalog.{region}.sc2s.sgov.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, { ID: "aws-iso-e", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "servicecatalog-fips.{region}.cloud.adc-e.uk", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "servicecatalog.{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: "servicecatalog-fips.{region}.csp.hci.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "servicecatalog.{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: "servicecatalog.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "servicecatalog-fips.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "servicecatalog-fips.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "servicecatalog.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsUsGov, IsRegionalized: true, Endpoints: endpoints.Endpoints{ endpoints.EndpointKey{ Region: "us-gov-east-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-gov-east-1", Variant: endpoints.FIPSVariant, }: { Hostname: "servicecatalog-fips.us-gov-east-1.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-gov-east-1-fips", }: endpoints.Endpoint{ Hostname: "servicecatalog-fips.us-gov-east-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-gov-east-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "us-gov-west-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-gov-west-1", Variant: endpoints.FIPSVariant, }: { Hostname: "servicecatalog-fips.us-gov-west-1.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-gov-west-1-fips", }: endpoints.Endpoint{ Hostname: "servicecatalog-fips.us-gov-west-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-gov-west-1", }, Deprecated: aws.TrueTernary, }, }, }, }
486
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 AccessLevelFilterKey string // Enum values for AccessLevelFilterKey const ( AccessLevelFilterKeyAccount AccessLevelFilterKey = "Account" AccessLevelFilterKeyRole AccessLevelFilterKey = "Role" AccessLevelFilterKeyUser AccessLevelFilterKey = "User" ) // Values returns all known values for AccessLevelFilterKey. 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 (AccessLevelFilterKey) Values() []AccessLevelFilterKey { return []AccessLevelFilterKey{ "Account", "Role", "User", } } type AccessStatus string // Enum values for AccessStatus const ( AccessStatusEnabled AccessStatus = "ENABLED" AccessStatusUnderChange AccessStatus = "UNDER_CHANGE" AccessStatusDisabled AccessStatus = "DISABLED" ) // Values returns all known values for AccessStatus. 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 (AccessStatus) Values() []AccessStatus { return []AccessStatus{ "ENABLED", "UNDER_CHANGE", "DISABLED", } } type ChangeAction string // Enum values for ChangeAction const ( ChangeActionAdd ChangeAction = "ADD" ChangeActionModify ChangeAction = "MODIFY" ChangeActionRemove ChangeAction = "REMOVE" ) // Values returns all known values for ChangeAction. 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 (ChangeAction) Values() []ChangeAction { return []ChangeAction{ "ADD", "MODIFY", "REMOVE", } } type CopyOption string // Enum values for CopyOption const ( CopyOptionCopyTags CopyOption = "CopyTags" ) // Values returns all known values for CopyOption. 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 (CopyOption) Values() []CopyOption { return []CopyOption{ "CopyTags", } } type CopyProductStatus string // Enum values for CopyProductStatus const ( CopyProductStatusSucceeded CopyProductStatus = "SUCCEEDED" CopyProductStatusInProgress CopyProductStatus = "IN_PROGRESS" CopyProductStatusFailed CopyProductStatus = "FAILED" ) // Values returns all known values for CopyProductStatus. 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 (CopyProductStatus) Values() []CopyProductStatus { return []CopyProductStatus{ "SUCCEEDED", "IN_PROGRESS", "FAILED", } } type DescribePortfolioShareType string // Enum values for DescribePortfolioShareType const ( DescribePortfolioShareTypeAccount DescribePortfolioShareType = "ACCOUNT" DescribePortfolioShareTypeOrganization DescribePortfolioShareType = "ORGANIZATION" DescribePortfolioShareTypeOrganizationalUnit DescribePortfolioShareType = "ORGANIZATIONAL_UNIT" DescribePortfolioShareTypeOrganizationMemberAccount DescribePortfolioShareType = "ORGANIZATION_MEMBER_ACCOUNT" ) // Values returns all known values for DescribePortfolioShareType. 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 (DescribePortfolioShareType) Values() []DescribePortfolioShareType { return []DescribePortfolioShareType{ "ACCOUNT", "ORGANIZATION", "ORGANIZATIONAL_UNIT", "ORGANIZATION_MEMBER_ACCOUNT", } } type EngineWorkflowStatus string // Enum values for EngineWorkflowStatus const ( EngineWorkflowStatusSucceeded EngineWorkflowStatus = "SUCCEEDED" EngineWorkflowStatusFailed EngineWorkflowStatus = "FAILED" ) // Values returns all known values for EngineWorkflowStatus. 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 (EngineWorkflowStatus) Values() []EngineWorkflowStatus { return []EngineWorkflowStatus{ "SUCCEEDED", "FAILED", } } type EvaluationType string // Enum values for EvaluationType const ( EvaluationTypeStatic EvaluationType = "STATIC" EvaluationTypeDynamic EvaluationType = "DYNAMIC" ) // Values returns all known values for EvaluationType. 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 (EvaluationType) Values() []EvaluationType { return []EvaluationType{ "STATIC", "DYNAMIC", } } type LastSyncStatus string // Enum values for LastSyncStatus const ( LastSyncStatusSucceeded LastSyncStatus = "SUCCEEDED" LastSyncStatusFailed LastSyncStatus = "FAILED" ) // Values returns all known values for LastSyncStatus. 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 (LastSyncStatus) Values() []LastSyncStatus { return []LastSyncStatus{ "SUCCEEDED", "FAILED", } } type OrganizationNodeType string // Enum values for OrganizationNodeType const ( OrganizationNodeTypeOrganization OrganizationNodeType = "ORGANIZATION" OrganizationNodeTypeOrganizationalUnit OrganizationNodeType = "ORGANIZATIONAL_UNIT" OrganizationNodeTypeAccount OrganizationNodeType = "ACCOUNT" ) // Values returns all known values for OrganizationNodeType. 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 (OrganizationNodeType) Values() []OrganizationNodeType { return []OrganizationNodeType{ "ORGANIZATION", "ORGANIZATIONAL_UNIT", "ACCOUNT", } } type PortfolioShareType string // Enum values for PortfolioShareType const ( PortfolioShareTypeImported PortfolioShareType = "IMPORTED" PortfolioShareTypeAwsServicecatalog PortfolioShareType = "AWS_SERVICECATALOG" PortfolioShareTypeAwsOrganizations PortfolioShareType = "AWS_ORGANIZATIONS" ) // Values returns all known values for PortfolioShareType. 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 (PortfolioShareType) Values() []PortfolioShareType { return []PortfolioShareType{ "IMPORTED", "AWS_SERVICECATALOG", "AWS_ORGANIZATIONS", } } type PrincipalType string // Enum values for PrincipalType const ( PrincipalTypeIam PrincipalType = "IAM" PrincipalTypeIamPattern PrincipalType = "IAM_PATTERN" ) // Values returns all known values for PrincipalType. 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 (PrincipalType) Values() []PrincipalType { return []PrincipalType{ "IAM", "IAM_PATTERN", } } type ProductSource string // Enum values for ProductSource const ( ProductSourceAccount ProductSource = "ACCOUNT" ) // Values returns all known values for ProductSource. 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 (ProductSource) Values() []ProductSource { return []ProductSource{ "ACCOUNT", } } type ProductType string // Enum values for ProductType const ( ProductTypeCloudFormationTemplate ProductType = "CLOUD_FORMATION_TEMPLATE" ProductTypeMarketplace ProductType = "MARKETPLACE" ProductTypeTerraformOpenSource ProductType = "TERRAFORM_OPEN_SOURCE" ) // Values returns all known values for ProductType. 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 (ProductType) Values() []ProductType { return []ProductType{ "CLOUD_FORMATION_TEMPLATE", "MARKETPLACE", "TERRAFORM_OPEN_SOURCE", } } type ProductViewFilterBy string // Enum values for ProductViewFilterBy const ( ProductViewFilterByFullTextSearch ProductViewFilterBy = "FullTextSearch" ProductViewFilterByOwner ProductViewFilterBy = "Owner" ProductViewFilterByProductType ProductViewFilterBy = "ProductType" ProductViewFilterBySourceProductId ProductViewFilterBy = "SourceProductId" ) // Values returns all known values for ProductViewFilterBy. 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 (ProductViewFilterBy) Values() []ProductViewFilterBy { return []ProductViewFilterBy{ "FullTextSearch", "Owner", "ProductType", "SourceProductId", } } type ProductViewSortBy string // Enum values for ProductViewSortBy const ( ProductViewSortByTitle ProductViewSortBy = "Title" ProductViewSortByVersionCount ProductViewSortBy = "VersionCount" ProductViewSortByCreationDate ProductViewSortBy = "CreationDate" ) // Values returns all known values for ProductViewSortBy. 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 (ProductViewSortBy) Values() []ProductViewSortBy { return []ProductViewSortBy{ "Title", "VersionCount", "CreationDate", } } type PropertyKey string // Enum values for PropertyKey const ( PropertyKeyOwner PropertyKey = "OWNER" PropertyKeyLaunchRole PropertyKey = "LAUNCH_ROLE" ) // Values returns all known values for PropertyKey. 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 (PropertyKey) Values() []PropertyKey { return []PropertyKey{ "OWNER", "LAUNCH_ROLE", } } type ProvisionedProductPlanStatus string // Enum values for ProvisionedProductPlanStatus const ( ProvisionedProductPlanStatusCreateInProgress ProvisionedProductPlanStatus = "CREATE_IN_PROGRESS" ProvisionedProductPlanStatusCreateSuccess ProvisionedProductPlanStatus = "CREATE_SUCCESS" ProvisionedProductPlanStatusCreateFailed ProvisionedProductPlanStatus = "CREATE_FAILED" ProvisionedProductPlanStatusExecuteInProgress ProvisionedProductPlanStatus = "EXECUTE_IN_PROGRESS" ProvisionedProductPlanStatusExecuteSuccess ProvisionedProductPlanStatus = "EXECUTE_SUCCESS" ProvisionedProductPlanStatusExecuteFailed ProvisionedProductPlanStatus = "EXECUTE_FAILED" ) // Values returns all known values for ProvisionedProductPlanStatus. 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 (ProvisionedProductPlanStatus) Values() []ProvisionedProductPlanStatus { return []ProvisionedProductPlanStatus{ "CREATE_IN_PROGRESS", "CREATE_SUCCESS", "CREATE_FAILED", "EXECUTE_IN_PROGRESS", "EXECUTE_SUCCESS", "EXECUTE_FAILED", } } type ProvisionedProductPlanType string // Enum values for ProvisionedProductPlanType const ( ProvisionedProductPlanTypeCloudformation ProvisionedProductPlanType = "CLOUDFORMATION" ) // Values returns all known values for ProvisionedProductPlanType. 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 (ProvisionedProductPlanType) Values() []ProvisionedProductPlanType { return []ProvisionedProductPlanType{ "CLOUDFORMATION", } } type ProvisionedProductStatus string // Enum values for ProvisionedProductStatus const ( ProvisionedProductStatusAvailable ProvisionedProductStatus = "AVAILABLE" ProvisionedProductStatusUnderChange ProvisionedProductStatus = "UNDER_CHANGE" ProvisionedProductStatusTainted ProvisionedProductStatus = "TAINTED" ProvisionedProductStatusError ProvisionedProductStatus = "ERROR" ProvisionedProductStatusPlanInProgress ProvisionedProductStatus = "PLAN_IN_PROGRESS" ) // Values returns all known values for ProvisionedProductStatus. 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 (ProvisionedProductStatus) Values() []ProvisionedProductStatus { return []ProvisionedProductStatus{ "AVAILABLE", "UNDER_CHANGE", "TAINTED", "ERROR", "PLAN_IN_PROGRESS", } } type ProvisionedProductViewFilterBy string // Enum values for ProvisionedProductViewFilterBy const ( ProvisionedProductViewFilterBySearchQuery ProvisionedProductViewFilterBy = "SearchQuery" ) // Values returns all known values for ProvisionedProductViewFilterBy. 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 (ProvisionedProductViewFilterBy) Values() []ProvisionedProductViewFilterBy { return []ProvisionedProductViewFilterBy{ "SearchQuery", } } type ProvisioningArtifactGuidance string // Enum values for ProvisioningArtifactGuidance const ( ProvisioningArtifactGuidanceDefault ProvisioningArtifactGuidance = "DEFAULT" ProvisioningArtifactGuidanceDeprecated ProvisioningArtifactGuidance = "DEPRECATED" ) // Values returns all known values for ProvisioningArtifactGuidance. 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 (ProvisioningArtifactGuidance) Values() []ProvisioningArtifactGuidance { return []ProvisioningArtifactGuidance{ "DEFAULT", "DEPRECATED", } } type ProvisioningArtifactPropertyName string // Enum values for ProvisioningArtifactPropertyName const ( ProvisioningArtifactPropertyNameId ProvisioningArtifactPropertyName = "Id" ) // Values returns all known values for ProvisioningArtifactPropertyName. 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 (ProvisioningArtifactPropertyName) Values() []ProvisioningArtifactPropertyName { return []ProvisioningArtifactPropertyName{ "Id", } } type ProvisioningArtifactType string // Enum values for ProvisioningArtifactType const ( ProvisioningArtifactTypeCloudFormationTemplate ProvisioningArtifactType = "CLOUD_FORMATION_TEMPLATE" ProvisioningArtifactTypeMarketplaceAmi ProvisioningArtifactType = "MARKETPLACE_AMI" ProvisioningArtifactTypeMarketplaceCar ProvisioningArtifactType = "MARKETPLACE_CAR" ProvisioningArtifactTypeTerraformOpenSource ProvisioningArtifactType = "TERRAFORM_OPEN_SOURCE" ) // Values returns all known values for ProvisioningArtifactType. 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 (ProvisioningArtifactType) Values() []ProvisioningArtifactType { return []ProvisioningArtifactType{ "CLOUD_FORMATION_TEMPLATE", "MARKETPLACE_AMI", "MARKETPLACE_CAR", "TERRAFORM_OPEN_SOURCE", } } type RecordStatus string // Enum values for RecordStatus const ( RecordStatusCreated RecordStatus = "CREATED" RecordStatusInProgress RecordStatus = "IN_PROGRESS" RecordStatusInProgressInError RecordStatus = "IN_PROGRESS_IN_ERROR" RecordStatusSucceeded RecordStatus = "SUCCEEDED" RecordStatusFailed RecordStatus = "FAILED" ) // Values returns all known values for RecordStatus. 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 (RecordStatus) Values() []RecordStatus { return []RecordStatus{ "CREATED", "IN_PROGRESS", "IN_PROGRESS_IN_ERROR", "SUCCEEDED", "FAILED", } } type Replacement string // Enum values for Replacement const ( ReplacementTrue Replacement = "TRUE" ReplacementFalse Replacement = "FALSE" ReplacementConditional Replacement = "CONDITIONAL" ) // Values returns all known values for Replacement. 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 (Replacement) Values() []Replacement { return []Replacement{ "TRUE", "FALSE", "CONDITIONAL", } } type RequiresRecreation string // Enum values for RequiresRecreation const ( RequiresRecreationNever RequiresRecreation = "NEVER" RequiresRecreationConditionally RequiresRecreation = "CONDITIONALLY" RequiresRecreationAlways RequiresRecreation = "ALWAYS" ) // Values returns all known values for RequiresRecreation. 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 (RequiresRecreation) Values() []RequiresRecreation { return []RequiresRecreation{ "NEVER", "CONDITIONALLY", "ALWAYS", } } type ResourceAttribute string // Enum values for ResourceAttribute const ( ResourceAttributeProperties ResourceAttribute = "PROPERTIES" ResourceAttributeMetadata ResourceAttribute = "METADATA" ResourceAttributeCreationpolicy ResourceAttribute = "CREATIONPOLICY" ResourceAttributeUpdatepolicy ResourceAttribute = "UPDATEPOLICY" ResourceAttributeDeletionpolicy ResourceAttribute = "DELETIONPOLICY" ResourceAttributeTags ResourceAttribute = "TAGS" ) // Values returns all known values for ResourceAttribute. 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 (ResourceAttribute) Values() []ResourceAttribute { return []ResourceAttribute{ "PROPERTIES", "METADATA", "CREATIONPOLICY", "UPDATEPOLICY", "DELETIONPOLICY", "TAGS", } } type ServiceActionAssociationErrorCode string // Enum values for ServiceActionAssociationErrorCode const ( ServiceActionAssociationErrorCodeDuplicateResourceException ServiceActionAssociationErrorCode = "DUPLICATE_RESOURCE" ServiceActionAssociationErrorCodeInternalFailure ServiceActionAssociationErrorCode = "INTERNAL_FAILURE" ServiceActionAssociationErrorCodeLimitExceededException ServiceActionAssociationErrorCode = "LIMIT_EXCEEDED" ServiceActionAssociationErrorCodeResourceNotFoundException ServiceActionAssociationErrorCode = "RESOURCE_NOT_FOUND" ServiceActionAssociationErrorCodeThrottlingException ServiceActionAssociationErrorCode = "THROTTLING" ServiceActionAssociationErrorCodeInvalidParameterException ServiceActionAssociationErrorCode = "INVALID_PARAMETER" ) // Values returns all known values for ServiceActionAssociationErrorCode. 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 (ServiceActionAssociationErrorCode) Values() []ServiceActionAssociationErrorCode { return []ServiceActionAssociationErrorCode{ "DUPLICATE_RESOURCE", "INTERNAL_FAILURE", "LIMIT_EXCEEDED", "RESOURCE_NOT_FOUND", "THROTTLING", "INVALID_PARAMETER", } } type ServiceActionDefinitionKey string // Enum values for ServiceActionDefinitionKey const ( ServiceActionDefinitionKeyName ServiceActionDefinitionKey = "Name" ServiceActionDefinitionKeyVersion ServiceActionDefinitionKey = "Version" ServiceActionDefinitionKeyAssumeRole ServiceActionDefinitionKey = "AssumeRole" ServiceActionDefinitionKeyParameters ServiceActionDefinitionKey = "Parameters" ) // Values returns all known values for ServiceActionDefinitionKey. 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 (ServiceActionDefinitionKey) Values() []ServiceActionDefinitionKey { return []ServiceActionDefinitionKey{ "Name", "Version", "AssumeRole", "Parameters", } } type ServiceActionDefinitionType string // Enum values for ServiceActionDefinitionType const ( ServiceActionDefinitionTypeSsmAutomation ServiceActionDefinitionType = "SSM_AUTOMATION" ) // Values returns all known values for ServiceActionDefinitionType. 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 (ServiceActionDefinitionType) Values() []ServiceActionDefinitionType { return []ServiceActionDefinitionType{ "SSM_AUTOMATION", } } type ShareStatus string // Enum values for ShareStatus const ( ShareStatusNotStarted ShareStatus = "NOT_STARTED" ShareStatusInProgress ShareStatus = "IN_PROGRESS" ShareStatusCompleted ShareStatus = "COMPLETED" ShareStatusCompletedWithErrors ShareStatus = "COMPLETED_WITH_ERRORS" ShareStatusError ShareStatus = "ERROR" ) // Values returns all known values for ShareStatus. 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 (ShareStatus) Values() []ShareStatus { return []ShareStatus{ "NOT_STARTED", "IN_PROGRESS", "COMPLETED", "COMPLETED_WITH_ERRORS", "ERROR", } } type SortOrder string // Enum values for SortOrder const ( SortOrderAscending SortOrder = "ASCENDING" SortOrderDescending SortOrder = "DESCENDING" ) // Values returns all known values for SortOrder. 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 (SortOrder) Values() []SortOrder { return []SortOrder{ "ASCENDING", "DESCENDING", } } type SourceType string // Enum values for SourceType const ( SourceTypeCodestar SourceType = "CODESTAR" ) // 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{ "CODESTAR", } } type StackInstanceStatus string // Enum values for StackInstanceStatus const ( StackInstanceStatusCurrent StackInstanceStatus = "CURRENT" StackInstanceStatusOutdated StackInstanceStatus = "OUTDATED" StackInstanceStatusInoperable StackInstanceStatus = "INOPERABLE" ) // Values returns all known values for StackInstanceStatus. 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 (StackInstanceStatus) Values() []StackInstanceStatus { return []StackInstanceStatus{ "CURRENT", "OUTDATED", "INOPERABLE", } } type StackSetOperationType string // Enum values for StackSetOperationType const ( StackSetOperationTypeCreate StackSetOperationType = "CREATE" StackSetOperationTypeUpdate StackSetOperationType = "UPDATE" StackSetOperationTypeDelete StackSetOperationType = "DELETE" ) // Values returns all known values for StackSetOperationType. 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 (StackSetOperationType) Values() []StackSetOperationType { return []StackSetOperationType{ "CREATE", "UPDATE", "DELETE", } } type Status string // Enum values for Status const ( StatusAvailable Status = "AVAILABLE" StatusCreating Status = "CREATING" StatusFailed Status = "FAILED" ) // Values returns all known values for Status. 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 (Status) Values() []Status { return []Status{ "AVAILABLE", "CREATING", "FAILED", } }
745
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" ) // The specified resource is a duplicate. type DuplicateResourceException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *DuplicateResourceException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *DuplicateResourceException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *DuplicateResourceException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "DuplicateResourceException" } return *e.ErrorCodeOverride } func (e *DuplicateResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // One or more parameters provided to the operation are not valid. type InvalidParametersException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *InvalidParametersException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *InvalidParametersException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *InvalidParametersException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "InvalidParametersException" } return *e.ErrorCodeOverride } func (e *InvalidParametersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An attempt was made to modify a resource that is in a state that is not valid. // Check your resources to ensure that they are in valid states before retrying the // operation. type InvalidStateException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *InvalidStateException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *InvalidStateException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *InvalidStateException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateException" } return *e.ErrorCodeOverride } func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. type LimitExceededException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *LimitExceededException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *LimitExceededException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *LimitExceededException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride } func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The operation is not supported. type OperationNotSupportedException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *OperationNotSupportedException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *OperationNotSupportedException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *OperationNotSupportedException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "OperationNotSupportedException" } return *e.ErrorCodeOverride } func (e *OperationNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // A resource that is currently in use. Ensure that the resource is not in use and // retry the operation. 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 } // The specified resource was not found. type ResourceNotFoundException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ResourceNotFoundException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride } func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Use the Amazon Web Services // Management Console to perform the migration process before retrying the // operation. type TagOptionNotMigratedException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *TagOptionNotMigratedException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *TagOptionNotMigratedException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *TagOptionNotMigratedException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "TagOptionNotMigratedException" } return *e.ErrorCodeOverride } func (e *TagOptionNotMigratedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
225
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" ) // The access level to use to filter results. type AccessLevelFilter struct { // The access level. // - Account - Filter results based on the account. // - Role - Filter results based on the federated role of the specified user. // - User - Filter results based on the specified user. Key AccessLevelFilterKey // The user to which the access level applies. The only supported value is Self . Value *string noSmithyDocumentSerde } // Information about a budget. type BudgetDetail struct { // Name of the associated budget. BudgetName *string noSmithyDocumentSerde } // Information about a CloudWatch dashboard. type CloudWatchDashboard struct { // The name of the CloudWatch dashboard. Name *string noSmithyDocumentSerde } // The subtype containing details about the Codestar connection Type . type CodeStarParameters struct { // The absolute path wehre the artifact resides within the repo and branch, // formatted as "folder/file.json." // // This member is required. ArtifactPath *string // The specific branch where the artifact resides. // // This member is required. Branch *string // The CodeStar ARN, which is the connection between Service Catalog and the // external repository. // // This member is required. ConnectionArn *string // The specific repository where the product’s artifact-to-be-synced resides, // formatted as "Account/Repo." // // This member is required. Repository *string noSmithyDocumentSerde } // Information about a constraint. type ConstraintDetail struct { // The identifier of the constraint. ConstraintId *string // The description of the constraint. Description *string // The owner of the constraint. Owner *string // The identifier of the portfolio the product resides in. The constraint applies // only to the instance of the product that lives within this portfolio. PortfolioId *string // The identifier of the product the constraint applies to. Note that a constraint // applies to a specific instance of a product within a certain portfolio. ProductId *string // The type of constraint. // - LAUNCH // - NOTIFICATION // - STACKSET // - TEMPLATE Type *string noSmithyDocumentSerde } // Summary information about a constraint. type ConstraintSummary struct { // The description of the constraint. Description *string // The type of constraint. // - LAUNCH // - NOTIFICATION // - STACKSET // - TEMPLATE Type *string noSmithyDocumentSerde } // The ID for the provisioned product resources that are part of a resource group. type EngineWorkflowResourceIdentifier struct { // The unique key-value pair for a tag that identifies provisioned product // resources. UniqueTag *UniqueTagResourceIdentifier noSmithyDocumentSerde } // Details of an execution parameter value that is passed to a self-service action // when executed on a provisioned product. type ExecutionParameter struct { // The default values for the execution parameter. DefaultValues []string // The name of the execution parameter. Name *string // The execution parameter type. Type *string noSmithyDocumentSerde } // An object containing information about the error, along with identifying // information about the self-service action and its associations. type FailedServiceActionAssociation struct { // The error code. Valid values are listed below. ErrorCode ServiceActionAssociationErrorCode // A text description of the error. ErrorMessage *string // The product identifier. For example, prod-abcdzk7xy33qa . ProductId *string // The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne . ProvisioningArtifactId *string // The self-service action identifier. For example, act-fs7abcd89wxyz . ServiceActionId *string noSmithyDocumentSerde } // Provides details about the product's connection sync and contains the following // sub-fields. // - LastSyncTime // - LastSyncStatus // - LastSyncStatusMessage // - LastSuccessfulSyncTime // - LastSuccessfulSyncProvisioningArtifactID type LastSync struct { // The ProvisioningArtifactID of the ProvisioningArtifact created from the latest // successful sync. LastSuccessfulSyncProvisioningArtifactId *string // The time of the latest successful sync from the source repo artifact to the // Service Catalog product. LastSuccessfulSyncTime *time.Time // The current status of the sync. Responses include SUCCEEDED or FAILED . LastSyncStatus LastSyncStatus // The sync's status message. LastSyncStatusMessage *string // The time of the last attempted sync from the repository to the Service Catalog // product. LastSyncTime *time.Time noSmithyDocumentSerde } // A launch path object. type LaunchPath struct { // The identifier of the launch path. Id *string // The name of the launch path. Name *string noSmithyDocumentSerde } // Summary information about a product path for a user. type LaunchPathSummary struct { // The constraints on the portfolio-product relationship. ConstraintSummaries []ConstraintSummary // The identifier of the product path. Id *string // The name of the portfolio that contains the product. Name *string // The tags associated with this product path. Tags []Tag noSmithyDocumentSerde } // The search filter to use when listing history records. type ListRecordHistorySearchFilter struct { // The filter key. // - product - Filter results based on the specified product identifier. // - provisionedproduct - Filter results based on the provisioned product // identifier. Key *string // The filter value. Value *string noSmithyDocumentSerde } // Filters to use when listing TagOptions. type ListTagOptionsFilters struct { // The active state. Active *bool // The TagOption key. Key *string // The TagOption value. Value *string noSmithyDocumentSerde } // Information about the organization node. type OrganizationNode struct { // The organization node type. Type OrganizationNodeType // The identifier of the organization node. Value *string noSmithyDocumentSerde } // The constraints that the administrator has put on the parameter. type ParameterConstraints struct { // A regular expression that represents the patterns that allow for String types. // The pattern must match the entire parameter value provided. AllowedPattern *string // The values that the administrator has allowed for the parameter. AllowedValues []string // A string that explains a constraint when the constraint is violated. For // example, without a constraint description, a parameter that has an allowed // pattern of [A-Za-z0-9]+ displays the following error message when the user // specifies an invalid value: Malformed input-Parameter MyParameter must match // pattern [A-Za-z0-9]+ By adding a constraint description, such as must only // contain letters (uppercase and lowercase) and numbers, you can display the // following customized error message: Malformed input-Parameter MyParameter must // only contain uppercase and lowercase letters and numbers. ConstraintDescription *string // An integer value that determines the largest number of characters you want to // allow for String types. MaxLength *string // A numeric value that determines the largest numeric value you want to allow for // Number types. MaxValue *string // An integer value that determines the smallest number of characters you want to // allow for String types. MinLength *string // A numeric value that determines the smallest numeric value you want to allow // for Number types. MinValue *string noSmithyDocumentSerde } // Information about a portfolio. type PortfolioDetail struct { // The ARN assigned to the portfolio. ARN *string // The UTC time stamp of the creation time. CreatedTime *time.Time // The description of the portfolio. Description *string // The name to use for display purposes. DisplayName *string // The portfolio identifier. Id *string // The name of the portfolio provider. ProviderName *string noSmithyDocumentSerde } // Information about the portfolio share. type PortfolioShareDetail struct { // Indicates whether the shared portfolio is imported by the recipient account. If // the recipient is in an organization node, the share is automatically imported, // and the field is always set to true. Accepted bool // The identifier of the recipient entity that received the portfolio share. The // recipient entity can be one of the following: 1. An external account. 2. An // organziation member account. 3. An organzational unit (OU). 4. The organization // itself. (This shares with every account in the organization). PrincipalId *string // Indicates if Principal sharing is enabled or disabled for the portfolio share. SharePrincipals bool // Indicates whether TagOptions sharing is enabled or disabled for the portfolio // share. ShareTagOptions bool // The type of the portfolio share. Type DescribePortfolioShareType noSmithyDocumentSerde } // Information about a principal. type Principal struct { // The ARN of the principal (user, role, or group). This field allows for an ARN // with no accountID , with or without wildcard characters if the PrincipalType is // an IAM_PATTERN . For more information, review associate-principal-with-portfolio (https://docs.aws.amazon.com/cli/latest/reference/servicecatalog/associate-principal-with-portfolio.html#options) // in the Amazon Web Services CLI Command Reference. PrincipalARN *string // The principal type. The supported value is IAM if you use a fully defined ARN, // or IAM_PATTERN if you use an ARN with no accountID , with or without wildcard // characters. PrincipalType PrincipalType noSmithyDocumentSerde } // A single product view aggregation value/count pair, containing metadata about // each product to which the calling user has access. type ProductViewAggregationValue struct { // An approximate count of the products that match the value. ApproximateCount int32 // The value of the product view aggregation. Value *string noSmithyDocumentSerde } // Information about a product view. type ProductViewDetail struct { // The UTC time stamp of the creation time. CreatedTime *time.Time // The ARN of the product. ProductARN *string // Summary information about the product view. ProductViewSummary *ProductViewSummary // A top level ProductViewDetail response containing details about the product’s // connection. Service Catalog returns this field for the CreateProduct , // UpdateProduct , DescribeProductAsAdmin , and SearchProductAsAdmin APIs. This // response contains the same fields as the ConnectionParameters request, with the // addition of the LastSync response. SourceConnection *SourceConnectionDetail // The status of the product. // - AVAILABLE - The product is ready for use. // - CREATING - Product creation has started; the product is not ready for use. // - FAILED - An action failed. Status Status noSmithyDocumentSerde } // Summary information about a product view. type ProductViewSummary struct { // The distributor of the product. Contact the product administrator for the // significance of this value. Distributor *string // Indicates whether the product has a default path. If the product does not have // a default path, call ListLaunchPaths to disambiguate between paths. Otherwise, // ListLaunchPaths is not required, and the output of ProductViewSummary can be // used directly with DescribeProvisioningParameters . HasDefaultPath bool // The product view identifier. Id *string // The name of the product. Name *string // The owner of the product. Contact the product administrator for the // significance of this value. Owner *string // The product identifier. ProductId *string // Short description of the product. ShortDescription *string // The description of the support for this Product. SupportDescription *string // The email contact information to obtain support for this Product. SupportEmail *string // The URL information to obtain support for this Product. SupportUrl *string // The product type. Contact the product administrator for the significance of // this value. If this value is MARKETPLACE , the product was created by Amazon Web // Services Marketplace. Type ProductType noSmithyDocumentSerde } // Information about a provisioned product. type ProvisionedProductAttribute struct { // The ARN of the provisioned product. Arn *string // The UTC time stamp of the creation time. CreatedTime *time.Time // The identifier of the provisioned product. Id *string // A unique identifier that you provide to ensure idempotency. If multiple // requests differ only by the idempotency token, the same response is returned for // each repeated request. IdempotencyToken *string // The record identifier of the last request performed on this provisioned product // of the following types: // - ProvisionedProduct // - UpdateProvisionedProduct // - ExecuteProvisionedProductPlan // - TerminateProvisionedProduct LastProvisioningRecordId *string // The record identifier of the last request performed on this provisioned product. LastRecordId *string // The record identifier of the last successful request performed on this // provisioned product of the following types: // - ProvisionedProduct // - UpdateProvisionedProduct // - ExecuteProvisionedProductPlan // - TerminateProvisionedProduct LastSuccessfulProvisioningRecordId *string // The user-friendly name of the provisioned product. Name *string // The assigned identifier for the resource, such as an EC2 instance ID or an S3 // bucket name. PhysicalId *string // The product identifier. ProductId *string // The name of the product. ProductName *string // The identifier of the provisioning artifact. ProvisioningArtifactId *string // The name of the provisioning artifact. ProvisioningArtifactName *string // The current status of the provisioned product. // - AVAILABLE - Stable state, ready to perform any operation. The most recent // operation succeeded and completed. // - UNDER_CHANGE - Transitive state. Operations performed might not have valid // results. Wait for an AVAILABLE status before performing operations. // - TAINTED - Stable state, ready to perform any operation. The stack has // completed the requested operation but is not exactly what was requested. For // example, a request to update to a new version failed and the stack rolled back // to the current version. // - ERROR - An unexpected error occurred. The provisioned product exists but the // stack is not running. For example, CloudFormation received a parameter value // that was not valid and could not launch the stack. // - PLAN_IN_PROGRESS - Transitive state. The plan operations were performed to // provision a new product, but resources have not yet been created. After // reviewing the list of resources to be created, execute the plan. Wait for an // AVAILABLE status before performing operations. Status ProvisionedProductStatus // The current status message of the provisioned product. StatusMessage *string // One or more tags. Tags []Tag // The type of provisioned product. The supported values are CFN_STACK and // CFN_STACKSET . Type *string // The Amazon Resource Name (ARN) of the user. UserArn *string // The ARN of the user in the session. This ARN might contain a session ID. UserArnSession *string noSmithyDocumentSerde } // Information about a provisioned product. type ProvisionedProductDetail struct { // The ARN of the provisioned product. Arn *string // The UTC time stamp of the creation time. CreatedTime *time.Time // The identifier of the provisioned product. Id *string // A unique identifier that you provide to ensure idempotency. If multiple // requests differ only by the idempotency token, the same response is returned for // each repeated request. IdempotencyToken *string // The record identifier of the last request performed on this provisioned product // of the following types: // - ProvisionedProduct // - UpdateProvisionedProduct // - ExecuteProvisionedProductPlan // - TerminateProvisionedProduct LastProvisioningRecordId *string // The record identifier of the last request performed on this provisioned product. LastRecordId *string // The record identifier of the last successful request performed on this // provisioned product of the following types: // - ProvisionedProduct // - UpdateProvisionedProduct // - ExecuteProvisionedProductPlan // - TerminateProvisionedProduct LastSuccessfulProvisioningRecordId *string // The ARN of the launch role associated with the provisioned product. LaunchRoleArn *string // The user-friendly name of the provisioned product. Name *string // The product identifier. For example, prod-abcdzk7xy33qa . ProductId *string // The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne . ProvisioningArtifactId *string // The current status of the provisioned product. // - AVAILABLE - Stable state, ready to perform any operation. The most recent // operation succeeded and completed. // - UNDER_CHANGE - Transitive state. Operations performed might not have valid // results. Wait for an AVAILABLE status before performing operations. // - TAINTED - Stable state, ready to perform any operation. The stack has // completed the requested operation but is not exactly what was requested. For // example, a request to update to a new version failed and the stack rolled back // to the current version. // - ERROR - An unexpected error occurred. The provisioned product exists but the // stack is not running. For example, CloudFormation received a parameter value // that was not valid and could not launch the stack. // - PLAN_IN_PROGRESS - Transitive state. The plan operations were performed to // provision a new product, but resources have not yet been created. After // reviewing the list of resources to be created, execute the plan. Wait for an // AVAILABLE status before performing operations. Status ProvisionedProductStatus // The current status message of the provisioned product. StatusMessage *string // The type of provisioned product. The supported values are CFN_STACK and // CFN_STACKSET . Type *string noSmithyDocumentSerde } // Information about a plan. type ProvisionedProductPlanDetails struct { // The UTC time stamp of the creation time. CreatedTime *time.Time // Passed to CloudFormation. The SNS topic ARNs to which to publish stack-related // events. NotificationArns []string // The path identifier of the product. This value is optional if the product has a // default path, and required if the product has more than one path. To list the // paths for a product, use ListLaunchPaths . PathId *string // The plan identifier. PlanId *string // The name of the plan. PlanName *string // The plan type. PlanType ProvisionedProductPlanType // The product identifier. ProductId *string // The product identifier. ProvisionProductId *string // The user-friendly name of the provisioned product. ProvisionProductName *string // The identifier of the provisioning artifact. ProvisioningArtifactId *string // Parameters specified by the administrator that are required for provisioning // the product. ProvisioningParameters []UpdateProvisioningParameter // The status. Status ProvisionedProductPlanStatus // The status message. StatusMessage *string // One or more tags. Tags []Tag // The UTC time stamp when the plan was last updated. UpdatedTime *time.Time noSmithyDocumentSerde } // Summary information about a plan. type ProvisionedProductPlanSummary struct { // The plan identifier. PlanId *string // The name of the plan. PlanName *string // The plan type. PlanType ProvisionedProductPlanType // The product identifier. ProvisionProductId *string // The user-friendly name of the provisioned product. ProvisionProductName *string // The identifier of the provisioning artifact. ProvisioningArtifactId *string noSmithyDocumentSerde } // Information about a provisioning artifact. A provisioning artifact is also // known as a product version. type ProvisioningArtifact struct { // The UTC time stamp of the creation time. CreatedTime *time.Time // The description of the provisioning artifact. Description *string // Information set by the administrator to provide guidance to end users about // which provisioning artifacts to use. Guidance ProvisioningArtifactGuidance // The identifier of the provisioning artifact. Id *string // The name of the provisioning artifact. Name *string noSmithyDocumentSerde } // Information about a provisioning artifact (also known as a version) for a // product. type ProvisioningArtifactDetail struct { // Indicates whether the product version is active. Active *bool // The UTC time stamp of the creation time. CreatedTime *time.Time // The description of the provisioning artifact. Description *string // Information set by the administrator to provide guidance to end users about // which provisioning artifacts to use. Guidance ProvisioningArtifactGuidance // The identifier of the provisioning artifact. Id *string // The name of the provisioning artifact. Name *string // Specifies the revision of the external artifact that was used to automatically // sync the Service Catalog product and create the provisioning artifact. Service // Catalog includes this response parameter as a high level field to the existing // ProvisioningArtifactDetail type, which is returned as part of the response for // CreateProduct , UpdateProduct , DescribeProductAsAdmin , // DescribeProvisioningArtifact , ListProvisioningArtifact , and // UpdateProvisioningArticat APIs. This field only exists for Repo-Synced products. SourceRevision *string // The type of provisioning artifact. // - CLOUD_FORMATION_TEMPLATE - CloudFormation template // - MARKETPLACE_AMI - Amazon Web Services Marketplace AMI // - MARKETPLACE_CAR - Amazon Web Services Marketplace Clusters and Amazon Web // Services Resources Type ProvisioningArtifactType noSmithyDocumentSerde } // Provisioning artifact output. type ProvisioningArtifactOutput struct { // Description of the provisioning artifact output key. Description *string // The provisioning artifact output key. Key *string noSmithyDocumentSerde } // Information about a parameter used to provision a product. type ProvisioningArtifactParameter struct { // The default value. DefaultValue *string // The description of the parameter. Description *string // If this value is true, the value for this parameter is obfuscated from view // when the parameter is retrieved. This parameter is used to hide sensitive // information. IsNoEcho bool // Constraints that the administrator has put on a parameter. ParameterConstraints *ParameterConstraints // The parameter key. ParameterKey *string // The parameter type. ParameterType *string noSmithyDocumentSerde } // The user-defined preferences that will be applied during product provisioning, // unless overridden by ProvisioningPreferences or UpdateProvisioningPreferences . // For more information on maximum concurrent accounts and failure tolerance, see // Stack set operation options (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options) // in the CloudFormation User Guide. type ProvisioningArtifactPreferences struct { // One or more Amazon Web Services accounts where stack instances are deployed // from the stack set. These accounts can be scoped in // ProvisioningPreferences$StackSetAccounts and // UpdateProvisioningPreferences$StackSetAccounts . Applicable only to a // CFN_STACKSET provisioned product type. StackSetAccounts []string // One or more Amazon Web Services Regions where stack instances are deployed from // the stack set. These Regions can be scoped in // ProvisioningPreferences$StackSetRegions and // UpdateProvisioningPreferences$StackSetRegions . Applicable only to a // CFN_STACKSET provisioned product type. StackSetRegions []string noSmithyDocumentSerde } // Information about a provisioning artifact (also known as a version) for a // product. type ProvisioningArtifactProperties struct { // The description of the provisioning artifact, including how it differs from the // previous provisioning artifact. Description *string // If set to true, Service Catalog stops validating the specified provisioning // artifact even if it is invalid. DisableTemplateValidation bool // Specify the template source with one of the following options, but not both. // Keys accepted: [ LoadTemplateFromURL , ImportFromPhysicalId ] The URL of the // CloudFormation template in Amazon S3 or GitHub in JSON format. Specify the URL // in JSON format as follows: "LoadTemplateFromURL": // "https://s3.amazonaws.com/cf-templates-ozkq9d3hgiq2-us-east-1/..." // ImportFromPhysicalId : The physical id of the resource that contains the // template. Currently only supports CloudFormation stack arn. Specify the physical // id in JSON format as follows: ImportFromPhysicalId: // “arn:aws:cloudformation:[us-east-1]:[accountId]:stack/[StackName]/[resourceId] Info map[string]string // The name of the provisioning artifact (for example, v1 v2beta). No spaces are // allowed. Name *string // The type of provisioning artifact. // - CLOUD_FORMATION_TEMPLATE - CloudFormation template // - MARKETPLACE_AMI - Amazon Web Services Marketplace AMI // - MARKETPLACE_CAR - Amazon Web Services Marketplace Clusters and Amazon Web // Services Resources // - TERRAFORM_OPEN_SOURCE - Terraform open source configuration file Type ProvisioningArtifactType noSmithyDocumentSerde } // Summary information about a provisioning artifact (also known as a version) for // a product. type ProvisioningArtifactSummary struct { // The UTC time stamp of the creation time. CreatedTime *time.Time // The description of the provisioning artifact. Description *string // The identifier of the provisioning artifact. Id *string // The name of the provisioning artifact. Name *string // The metadata for the provisioning artifact. This is used with Amazon Web // Services Marketplace products. ProvisioningArtifactMetadata map[string]string noSmithyDocumentSerde } // An object that contains summary information about a product view and a // provisioning artifact. type ProvisioningArtifactView struct { // Summary information about a product view. ProductViewSummary *ProductViewSummary // Information about a provisioning artifact. A provisioning artifact is also // known as a product version. ProvisioningArtifact *ProvisioningArtifact noSmithyDocumentSerde } // Information about a parameter used to provision a product. type ProvisioningParameter struct { // The parameter key. Key *string // The parameter value. Value *string noSmithyDocumentSerde } // The user-defined preferences that will be applied when updating a provisioned // product. Not all preferences are applicable to all provisioned product type One // or more Amazon Web Services accounts that will have access to the provisioned // product. Applicable only to a CFN_STACKSET provisioned product type. The Amazon // Web Services accounts specified should be within the list of accounts in the // STACKSET constraint. To get the list of accounts in the STACKSET constraint, // use the DescribeProvisioningParameters operation. If no values are specified, // the default value is all accounts from the STACKSET constraint. type ProvisioningPreferences struct { // One or more Amazon Web Services accounts where the provisioned product will be // available. Applicable only to a CFN_STACKSET provisioned product type. The // specified accounts should be within the list of accounts from the STACKSET // constraint. To get the list of accounts in the STACKSET constraint, use the // DescribeProvisioningParameters operation. If no values are specified, the // default value is all acounts from the STACKSET constraint. StackSetAccounts []string // The number of accounts, per Region, for which this operation can fail before // Service Catalog stops the operation in that Region. If the operation is stopped // in a Region, Service Catalog doesn't attempt the operation in any subsequent // Regions. Applicable only to a CFN_STACKSET provisioned product type. // Conditional: You must specify either StackSetFailureToleranceCount or // StackSetFailureTolerancePercentage , but not both. The default value is 0 if no // value is specified. StackSetFailureToleranceCount *int32 // The percentage of accounts, per Region, for which this stack operation can fail // before Service Catalog stops the operation in that Region. If the operation is // stopped in a Region, Service Catalog doesn't attempt the operation in any // subsequent Regions. When calculating the number of accounts based on the // specified percentage, Service Catalog rounds down to the next whole number. // Applicable only to a CFN_STACKSET provisioned product type. Conditional: You // must specify either StackSetFailureToleranceCount or // StackSetFailureTolerancePercentage , but not both. StackSetFailureTolerancePercentage *int32 // The maximum number of accounts in which to perform this operation at one time. // This is dependent on the value of StackSetFailureToleranceCount . // StackSetMaxConcurrentCount is at most one more than the // StackSetFailureToleranceCount . Note that this setting lets you specify the // maximum for operations. For large deployments, under certain circumstances the // actual number of accounts acted upon concurrently may be lower due to service // throttling. Applicable only to a CFN_STACKSET provisioned product type. // Conditional: You must specify either StackSetMaxConcurrentCount or // StackSetMaxConcurrentPercentage , but not both. StackSetMaxConcurrencyCount *int32 // The maximum percentage of accounts in which to perform this operation at one // time. When calculating the number of accounts based on the specified percentage, // Service Catalog rounds down to the next whole number. This is true except in // cases where rounding down would result is zero. In this case, Service Catalog // sets the number as 1 instead. Note that this setting lets you specify the // maximum for operations. For large deployments, under certain circumstances the // actual number of accounts acted upon concurrently may be lower due to service // throttling. Applicable only to a CFN_STACKSET provisioned product type. // Conditional: You must specify either StackSetMaxConcurrentCount or // StackSetMaxConcurrentPercentage , but not both. StackSetMaxConcurrencyPercentage *int32 // One or more Amazon Web Services Regions where the provisioned product will be // available. Applicable only to a CFN_STACKSET provisioned product type. The // specified Regions should be within the list of Regions from the STACKSET // constraint. To get the list of Regions in the STACKSET constraint, use the // DescribeProvisioningParameters operation. If no values are specified, the // default value is all Regions from the STACKSET constraint. StackSetRegions []string noSmithyDocumentSerde } // Information about a request operation. type RecordDetail struct { // The UTC time stamp of the creation time. CreatedTime *time.Time // The ARN of the launch role associated with the provisioned product. LaunchRoleArn *string // The path identifier. PathId *string // The product identifier. ProductId *string // The identifier of the provisioned product. ProvisionedProductId *string // The user-friendly name of the provisioned product. ProvisionedProductName *string // The type of provisioned product. The supported values are CFN_STACK and // CFN_STACKSET . ProvisionedProductType *string // The identifier of the provisioning artifact. ProvisioningArtifactId *string // The errors that occurred. RecordErrors []RecordError // The identifier of the record. RecordId *string // One or more tags. RecordTags []RecordTag // The record type. // - PROVISION_PRODUCT // - UPDATE_PROVISIONED_PRODUCT // - TERMINATE_PROVISIONED_PRODUCT RecordType *string // The status of the provisioned product. // - CREATED - The request was created but the operation has not started. // - IN_PROGRESS - The requested operation is in progress. // - IN_PROGRESS_IN_ERROR - The provisioned product is under change but the // requested operation failed and some remediation is occurring. For example, a // rollback. // - SUCCEEDED - The requested operation has successfully completed. // - FAILED - The requested operation has unsuccessfully completed. Investigate // using the error messages returned. Status RecordStatus // The time when the record was last updated. UpdatedTime *time.Time noSmithyDocumentSerde } // The error code and description resulting from an operation. type RecordError struct { // The numeric value of the error. Code *string // The description of the error. Description *string noSmithyDocumentSerde } // The output for the product created as the result of a request. For example, the // output for a CloudFormation-backed product that creates an S3 bucket would // include the S3 bucket URL. type RecordOutput struct { // The description of the output. Description *string // The output key. OutputKey *string // The output value. OutputValue *string noSmithyDocumentSerde } // Information about a tag, which is a key-value pair. type RecordTag struct { // The key for this tag. Key *string // The value for this tag. Value *string noSmithyDocumentSerde } // Information about a resource change that will occur when a plan is executed. type ResourceChange struct { // The change action. Action ChangeAction // Information about the resource changes. Details []ResourceChangeDetail // The ID of the resource, as defined in the CloudFormation template. LogicalResourceId *string // The ID of the resource, if it was already created. PhysicalResourceId *string // If the change type is Modify , indicates whether the existing resource is // deleted and replaced with a new one. Replacement Replacement // The type of resource. ResourceType *string // The change scope. Scope []ResourceAttribute noSmithyDocumentSerde } // Information about a change to a resource attribute. type ResourceChangeDetail struct { // The ID of the entity that caused the change. CausingEntity *string // For static evaluations, the value of the resource attribute will change and the // new value is known. For dynamic evaluations, the value might change, and any new // value will be determined when the plan is updated. Evaluation EvaluationType // Information about the resource attribute to be modified. Target *ResourceTargetDefinition noSmithyDocumentSerde } // Information about a resource. type ResourceDetail struct { // The ARN of the resource. ARN *string // The creation time of the resource. CreatedTime *time.Time // The description of the resource. Description *string // The identifier of the resource. Id *string // The name of the resource. Name *string noSmithyDocumentSerde } // Information about a change to a resource attribute. type ResourceTargetDefinition struct { // The attribute to be changed. Attribute ResourceAttribute // If the attribute is Properties , the value is the name of the property. // Otherwise, the value is null. Name *string // If the attribute is Properties , indicates whether a change to this property // causes the resource to be re-created. RequiresRecreation RequiresRecreation noSmithyDocumentSerde } // A self-service action association consisting of the Action ID, the Product ID, // and the Provisioning Artifact ID. type ServiceActionAssociation struct { // The product identifier. For example, prod-abcdzk7xy33qa . // // This member is required. ProductId *string // The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne . // // This member is required. ProvisioningArtifactId *string // The self-service action identifier. For example, act-fs7abcd89wxyz . // // This member is required. ServiceActionId *string noSmithyDocumentSerde } // An object containing detailed information about the self-service action. type ServiceActionDetail struct { // A map that defines the self-service action. Definition map[string]string // Summary information about the self-service action. ServiceActionSummary *ServiceActionSummary noSmithyDocumentSerde } // Detailed information about the self-service action. type ServiceActionSummary struct { // The self-service action definition type. For example, SSM_AUTOMATION . DefinitionType ServiceActionDefinitionType // The self-service action description. Description *string // The self-service action identifier. Id *string // The self-service action name. Name *string noSmithyDocumentSerde } // Information about the portfolio share operation. type ShareDetails struct { // List of errors. ShareErrors []ShareError // List of accounts for whom the operation succeeded. SuccessfulShares []string noSmithyDocumentSerde } // Errors that occurred during the portfolio share operation. type ShareError struct { // List of accounts impacted by the error. Accounts []string // Error type that happened when processing the operation. Error *string // Information about the error. Message *string noSmithyDocumentSerde } // A top level ProductViewDetail response containing details about the product’s // connection. Service Catalog returns this field for the CreateProduct , // UpdateProduct , DescribeProductAsAdmin , and SearchProductAsAdmin APIs. This // response contains the same fields as the ConnectionParameters request, with the // addition of the LastSync response. type SourceConnection struct { // The connection details based on the connection Type . // // This member is required. ConnectionParameters *SourceConnectionParameters // The only supported SourceConnection type is Codestar. Type SourceType noSmithyDocumentSerde } // Provides details about the configured SourceConnection . type SourceConnectionDetail struct { // The connection details based on the connection Type . ConnectionParameters *SourceConnectionParameters // Provides details about the product's connection sync and contains the following // sub-fields. // - LastSyncTime // - LastSyncStatus // - LastSyncStatusMessage // - LastSuccessfulSyncTime // - LastSuccessfulSyncProvisioningArtifactID LastSync *LastSync // The only supported SourceConnection type is Codestar. Type SourceType noSmithyDocumentSerde } // Provides connection details. type SourceConnectionParameters struct { // Provides ConnectionType details. CodeStar *CodeStarParameters noSmithyDocumentSerde } // An CloudFormation stack, in a specific account and Region, that's part of a // stack set operation. A stack instance is a reference to an attempted or actual // stack in a given account within a given Region. A stack instance can exist // without a stack—for example, if the stack couldn't be created for some reason. A // stack instance is associated with only one stack set. Each stack instance // contains the ID of its associated stack set, as well as the ID of the actual // stack and the stack status. type StackInstance struct { // The name of the Amazon Web Services account that the stack instance is // associated with. Account *string // The name of the Amazon Web Services Region that the stack instance is // associated with. Region *string // The status of the stack instance, in terms of its synchronization with its // associated stack set. // - INOPERABLE : A DeleteStackInstances operation has failed and left the stack // in an unstable state. Stacks in this state are excluded from further // UpdateStackSet operations. You might need to perform a DeleteStackInstances // operation, with RetainStacks set to true, to delete the stack instance, and // then delete the stack manually. // - OUTDATED : The stack isn't currently up to date with the stack set because // either the associated stack failed during a CreateStackSet or UpdateStackSet // operation, or the stack was part of a CreateStackSet or UpdateStackSet // operation that failed or was stopped before the stack was created or updated. // - CURRENT : The stack is currently up to date with the stack set. StackInstanceStatus StackInstanceStatus noSmithyDocumentSerde } // Information about a tag. A tag is a key-value pair. Tags are propagated to the // resources created when provisioning a product. type Tag struct { // The tag key. // // This member is required. Key *string // The value for this key. // // This member is required. Value *string noSmithyDocumentSerde } // Information about a TagOption. type TagOptionDetail struct { // The TagOption active state. Active *bool // The TagOption identifier. Id *string // The TagOption key. Key *string // The Amazon Web Services account Id of the owner account that created the // TagOption. Owner *string // The TagOption value. Value *string noSmithyDocumentSerde } // Summary information about a TagOption. type TagOptionSummary struct { // The TagOption key. Key *string // The TagOption value. Values []string noSmithyDocumentSerde } // The unique key-value pair for a tag that identifies provisioned product // resources. type UniqueTagResourceIdentifier struct { // A unique key that's attached to a resource. Key *string // A unique value that's attached to a resource. Value *string noSmithyDocumentSerde } // The parameter key-value pair used to update a provisioned product. type UpdateProvisioningParameter struct { // The parameter key. Key *string // If set to true, Value is ignored and the previous parameter value is kept. UsePreviousValue bool // The parameter value. Value *string noSmithyDocumentSerde } // The user-defined preferences that will be applied when updating a provisioned // product. Not all preferences are applicable to all provisioned product types. type UpdateProvisioningPreferences struct { // One or more Amazon Web Services accounts that will have access to the // provisioned product. Applicable only to a CFN_STACKSET provisioned product // type. The Amazon Web Services accounts specified should be within the list of // accounts in the STACKSET constraint. To get the list of accounts in the STACKSET // constraint, use the DescribeProvisioningParameters operation. If no values are // specified, the default value is all accounts from the STACKSET constraint. StackSetAccounts []string // The number of accounts, per Region, for which this operation can fail before // Service Catalog stops the operation in that Region. If the operation is stopped // in a Region, Service Catalog doesn't attempt the operation in any subsequent // Regions. Applicable only to a CFN_STACKSET provisioned product type. // Conditional: You must specify either StackSetFailureToleranceCount or // StackSetFailureTolerancePercentage , but not both. The default value is 0 if no // value is specified. StackSetFailureToleranceCount *int32 // The percentage of accounts, per Region, for which this stack operation can fail // before Service Catalog stops the operation in that Region. If the operation is // stopped in a Region, Service Catalog doesn't attempt the operation in any // subsequent Regions. When calculating the number of accounts based on the // specified percentage, Service Catalog rounds down to the next whole number. // Applicable only to a CFN_STACKSET provisioned product type. Conditional: You // must specify either StackSetFailureToleranceCount or // StackSetFailureTolerancePercentage , but not both. StackSetFailureTolerancePercentage *int32 // The maximum number of accounts in which to perform this operation at one time. // This is dependent on the value of StackSetFailureToleranceCount . // StackSetMaxConcurrentCount is at most one more than the // StackSetFailureToleranceCount . Note that this setting lets you specify the // maximum for operations. For large deployments, under certain circumstances the // actual number of accounts acted upon concurrently may be lower due to service // throttling. Applicable only to a CFN_STACKSET provisioned product type. // Conditional: You must specify either StackSetMaxConcurrentCount or // StackSetMaxConcurrentPercentage , but not both. StackSetMaxConcurrencyCount *int32 // The maximum percentage of accounts in which to perform this operation at one // time. When calculating the number of accounts based on the specified percentage, // Service Catalog rounds down to the next whole number. This is true except in // cases where rounding down would result is zero. In this case, Service Catalog // sets the number as 1 instead. Note that this setting lets you specify the // maximum for operations. For large deployments, under certain circumstances the // actual number of accounts acted upon concurrently may be lower due to service // throttling. Applicable only to a CFN_STACKSET provisioned product type. // Conditional: You must specify either StackSetMaxConcurrentCount or // StackSetMaxConcurrentPercentage , but not both. StackSetMaxConcurrencyPercentage *int32 // Determines what action Service Catalog performs to a stack set or a stack // instance represented by the provisioned product. The default value is UPDATE if // nothing is specified. Applicable only to a CFN_STACKSET provisioned product // type. CREATE Creates a new stack instance in the stack set represented by the // provisioned product. In this case, only new stack instances are created based on // accounts and Regions; if new ProductId or ProvisioningArtifactID are passed, // they will be ignored. UPDATE Updates the stack set represented by the // provisioned product and also its stack instances. DELETE Deletes a stack // instance in the stack set represented by the provisioned product. StackSetOperationType StackSetOperationType // One or more Amazon Web Services Regions where the provisioned product will be // available. Applicable only to a CFN_STACKSET provisioned product type. The // specified Regions should be within the list of Regions from the STACKSET // constraint. To get the list of Regions in the STACKSET constraint, use the // DescribeProvisioningParameters operation. If no values are specified, the // default value is all Regions from the STACKSET constraint. StackSetRegions []string noSmithyDocumentSerde } // Additional information provided by the administrator. type UsageInstruction struct { // The usage instruction type for the value. Type *string // The usage instruction value for this type. Value *string noSmithyDocumentSerde } type noSmithyDocumentSerde = smithydocument.NoSerde
1,507
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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 = "Service Catalog AppRegistry" const ServiceAPIVersion = "2020-06-24" // Client provides the API client to make operations call for AWS Service Catalog // App Registry. 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, "servicecatalogappregistry", 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 servicecatalogappregistry 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
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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" ) // Associates an attribute group with an application to augment the application's // metadata with the group's attributes. This feature enables applications to be // described with user-defined details that are machine-readable, such as // third-party integrations. func (c *Client) AssociateAttributeGroup(ctx context.Context, params *AssociateAttributeGroupInput, optFns ...func(*Options)) (*AssociateAttributeGroupOutput, error) { if params == nil { params = &AssociateAttributeGroupInput{} } result, metadata, err := c.invokeOperation(ctx, "AssociateAttributeGroup", params, optFns, c.addOperationAssociateAttributeGroupMiddlewares) if err != nil { return nil, err } out := result.(*AssociateAttributeGroupOutput) out.ResultMetadata = metadata return out, nil } type AssociateAttributeGroupInput struct { // The name, ID, or ARN of the application. // // This member is required. Application *string // The name, ID, or ARN of the attribute group that holds the attributes to // describe the application. // // This member is required. AttributeGroup *string noSmithyDocumentSerde } type AssociateAttributeGroupOutput struct { // The Amazon resource name (ARN) of the application that was augmented with // attributes. ApplicationArn *string // The Amazon resource name (ARN) of the attribute group that contains the // application's new attributes. AttributeGroupArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationAssociateAttributeGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpAssociateAttributeGroup{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAssociateAttributeGroup{}, 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 = addOpAssociateAttributeGroupValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateAttributeGroup(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_opAssociateAttributeGroup(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "AssociateAttributeGroup", } }
138
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Associates a resource with an application. The resource can be specified by its // ARN or name. The application can be specified by ARN, ID, or name. func (c *Client) AssociateResource(ctx context.Context, params *AssociateResourceInput, optFns ...func(*Options)) (*AssociateResourceOutput, error) { if params == nil { params = &AssociateResourceInput{} } result, metadata, err := c.invokeOperation(ctx, "AssociateResource", params, optFns, c.addOperationAssociateResourceMiddlewares) if err != nil { return nil, err } out := result.(*AssociateResourceOutput) out.ResultMetadata = metadata return out, nil } type AssociateResourceInput struct { // The name, ID, or ARN of the application. // // This member is required. Application *string // The name or ID of the resource of which the application will be associated. // // This member is required. Resource *string // The type of resource of which the application will be associated. // // This member is required. ResourceType types.ResourceType noSmithyDocumentSerde } type AssociateResourceOutput struct { // The Amazon resource name (ARN) of the application that was augmented with // attributes. ApplicationArn *string // The Amazon resource name (ARN) that specifies the resource. ResourceArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationAssociateResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpAssociateResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAssociateResource{}, 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 = addOpAssociateResourceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateResource(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_opAssociateResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "AssociateResource", } }
140
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Creates a new application that is the top-level node in a hierarchy of related // cloud resource abstractions. func (c *Client) CreateApplication(ctx context.Context, params *CreateApplicationInput, optFns ...func(*Options)) (*CreateApplicationOutput, error) { if params == nil { params = &CreateApplicationInput{} } result, metadata, err := c.invokeOperation(ctx, "CreateApplication", params, optFns, c.addOperationCreateApplicationMiddlewares) if err != nil { return nil, err } out := result.(*CreateApplicationOutput) out.ResultMetadata = metadata return out, nil } type CreateApplicationInput struct { // A unique identifier that you provide to ensure idempotency. If you retry a // request that completed successfully using the same client token and the same // parameters, the retry succeeds without performing any further actions. If you // retry a successful request using the same client token, but one or more of the // parameters are different, the retry fails. // // This member is required. ClientToken *string // The name of the application. The name must be unique in the region in which you // are creating the application. // // This member is required. Name *string // The description of the application. Description *string // Key-value pairs you can use to associate with the application. Tags map[string]string noSmithyDocumentSerde } type CreateApplicationOutput struct { // Information about the application. Application *types.Application // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationCreateApplicationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateApplication{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateApplication{}, 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_opCreateApplicationMiddleware(stack, options); err != nil { return err } if err = addOpCreateApplicationValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateApplication(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_initializeOpCreateApplication struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpCreateApplication) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpCreateApplication) 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.(*CreateApplicationInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateApplicationInput ") } 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_opCreateApplicationMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpCreateApplication{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opCreateApplication(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "CreateApplication", } }
179
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Creates a new attribute group as a container for user-defined attributes. This // feature enables users to have full control over their cloud application's // metadata in a rich machine-readable format to facilitate integration with // automated workflows and third-party tools. func (c *Client) CreateAttributeGroup(ctx context.Context, params *CreateAttributeGroupInput, optFns ...func(*Options)) (*CreateAttributeGroupOutput, error) { if params == nil { params = &CreateAttributeGroupInput{} } result, metadata, err := c.invokeOperation(ctx, "CreateAttributeGroup", params, optFns, c.addOperationCreateAttributeGroupMiddlewares) if err != nil { return nil, err } out := result.(*CreateAttributeGroupOutput) out.ResultMetadata = metadata return out, nil } type CreateAttributeGroupInput struct { // A JSON string in the form of nested key-value pairs that represent the // attributes in the group and describes an application and its components. // // This member is required. Attributes *string // A unique identifier that you provide to ensure idempotency. If you retry a // request that completed successfully using the same client token and the same // parameters, the retry succeeds without performing any further actions. If you // retry a successful request using the same client token, but one or more of the // parameters are different, the retry fails. // // This member is required. ClientToken *string // The name of the attribute group. // // This member is required. Name *string // The description of the attribute group that the user provides. Description *string // Key-value pairs you can use to associate with the attribute group. Tags map[string]string noSmithyDocumentSerde } type CreateAttributeGroupOutput struct { // Information about the attribute group. AttributeGroup *types.AttributeGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationCreateAttributeGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateAttributeGroup{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateAttributeGroup{}, 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_opCreateAttributeGroupMiddleware(stack, options); err != nil { return err } if err = addOpCreateAttributeGroupValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateAttributeGroup(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_initializeOpCreateAttributeGroup struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpCreateAttributeGroup) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpCreateAttributeGroup) 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.(*CreateAttributeGroupInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateAttributeGroupInput ") } 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_opCreateAttributeGroupMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpCreateAttributeGroup{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opCreateAttributeGroup(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "CreateAttributeGroup", } }
186
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Deletes an application that is specified either by its application ID, name, or // ARN. All associated attribute groups and resources must be disassociated from it // before deleting an application. func (c *Client) DeleteApplication(ctx context.Context, params *DeleteApplicationInput, optFns ...func(*Options)) (*DeleteApplicationOutput, error) { if params == nil { params = &DeleteApplicationInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteApplication", params, optFns, c.addOperationDeleteApplicationMiddlewares) if err != nil { return nil, err } out := result.(*DeleteApplicationOutput) out.ResultMetadata = metadata return out, nil } type DeleteApplicationInput struct { // The name, ID, or ARN of the application. // // This member is required. Application *string noSmithyDocumentSerde } type DeleteApplicationOutput struct { // Information about the deleted application. Application *types.ApplicationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteApplicationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteApplication{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteApplication{}, 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 = addOpDeleteApplicationValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteApplication(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_opDeleteApplication(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DeleteApplication", } }
127
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Deletes an attribute group, specified either by its attribute group ID, name, // or ARN. func (c *Client) DeleteAttributeGroup(ctx context.Context, params *DeleteAttributeGroupInput, optFns ...func(*Options)) (*DeleteAttributeGroupOutput, error) { if params == nil { params = &DeleteAttributeGroupInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteAttributeGroup", params, optFns, c.addOperationDeleteAttributeGroupMiddlewares) if err != nil { return nil, err } out := result.(*DeleteAttributeGroupOutput) out.ResultMetadata = metadata return out, nil } type DeleteAttributeGroupInput struct { // The name, ID, or ARN of the attribute group that holds the attributes to // describe the application. // // This member is required. AttributeGroup *string noSmithyDocumentSerde } type DeleteAttributeGroupOutput struct { // Information about the deleted attribute group. AttributeGroup *types.AttributeGroupSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteAttributeGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteAttributeGroup{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteAttributeGroup{}, 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 = addOpDeleteAttributeGroupValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteAttributeGroup(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_opDeleteAttributeGroup(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DeleteAttributeGroup", } }
127
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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" ) // Disassociates an attribute group from an application to remove the extra // attributes contained in the attribute group from the application's metadata. // This operation reverts AssociateAttributeGroup . func (c *Client) DisassociateAttributeGroup(ctx context.Context, params *DisassociateAttributeGroupInput, optFns ...func(*Options)) (*DisassociateAttributeGroupOutput, error) { if params == nil { params = &DisassociateAttributeGroupInput{} } result, metadata, err := c.invokeOperation(ctx, "DisassociateAttributeGroup", params, optFns, c.addOperationDisassociateAttributeGroupMiddlewares) if err != nil { return nil, err } out := result.(*DisassociateAttributeGroupOutput) out.ResultMetadata = metadata return out, nil } type DisassociateAttributeGroupInput struct { // The name, ID, or ARN of the application. // // This member is required. Application *string // The name, ID, or ARN of the attribute group that holds the attributes to // describe the application. // // This member is required. AttributeGroup *string noSmithyDocumentSerde } type DisassociateAttributeGroupOutput struct { // The Amazon resource name (ARN) that specifies the application. ApplicationArn *string // The Amazon resource name (ARN) that specifies the attribute group. AttributeGroupArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDisassociateAttributeGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDisassociateAttributeGroup{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDisassociateAttributeGroup{}, 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 = addOpDisassociateAttributeGroupValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateAttributeGroup(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_opDisassociateAttributeGroup(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DisassociateAttributeGroup", } }
135
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Disassociates a resource from application. Both the resource and the // application can be specified either by ID or name. func (c *Client) DisassociateResource(ctx context.Context, params *DisassociateResourceInput, optFns ...func(*Options)) (*DisassociateResourceOutput, error) { if params == nil { params = &DisassociateResourceInput{} } result, metadata, err := c.invokeOperation(ctx, "DisassociateResource", params, optFns, c.addOperationDisassociateResourceMiddlewares) if err != nil { return nil, err } out := result.(*DisassociateResourceOutput) out.ResultMetadata = metadata return out, nil } type DisassociateResourceInput struct { // The name or ID of the application. // // This member is required. Application *string // The name or ID of the resource. // // This member is required. Resource *string // The type of the resource that is being disassociated. // // This member is required. ResourceType types.ResourceType noSmithyDocumentSerde } type DisassociateResourceOutput struct { // The Amazon resource name (ARN) that specifies the application. ApplicationArn *string // The Amazon resource name (ARN) that specifies the resource. ResourceArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDisassociateResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDisassociateResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDisassociateResource{}, 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 = addOpDisassociateResourceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateResource(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_opDisassociateResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "DisassociateResource", } }
139
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "time" ) // Retrieves metadata information about one of your applications. The application // can be specified by its ARN, ID, or name (which is unique within one account in // one region at a given point in time). Specify by ARN or ID in automated // workflows if you want to make sure that the exact same application is returned // or a ResourceNotFoundException is thrown, avoiding the ABA addressing problem. func (c *Client) GetApplication(ctx context.Context, params *GetApplicationInput, optFns ...func(*Options)) (*GetApplicationOutput, error) { if params == nil { params = &GetApplicationInput{} } result, metadata, err := c.invokeOperation(ctx, "GetApplication", params, optFns, c.addOperationGetApplicationMiddlewares) if err != nil { return nil, err } out := result.(*GetApplicationOutput) out.ResultMetadata = metadata return out, nil } type GetApplicationInput struct { // The name, ID, or ARN of the application. // // This member is required. Application *string noSmithyDocumentSerde } type GetApplicationOutput struct { // The Amazon resource name (ARN) that specifies the application across services. Arn *string // The number of top-level resources that were registered as part of this // application. AssociatedResourceCount int32 // The ISO-8601 formatted timestamp of the moment when the application was created. CreationTime *time.Time // The description of the application. Description *string // The identifier of the application. Id *string // The information about the integration of the application with other services, // such as Resource Groups. Integrations *types.Integrations // The ISO-8601 formatted timestamp of the moment when the application was last // updated. LastUpdateTime *time.Time // The name of the application. The name must be unique in the region in which you // are creating the application. Name *string // Key-value pairs associated with the application. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationGetApplicationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpGetApplication{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetApplication{}, 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 = addOpGetApplicationValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetApplication(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_opGetApplication(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "GetApplication", } }
158
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets the resource associated with the application. func (c *Client) GetAssociatedResource(ctx context.Context, params *GetAssociatedResourceInput, optFns ...func(*Options)) (*GetAssociatedResourceOutput, error) { if params == nil { params = &GetAssociatedResourceInput{} } result, metadata, err := c.invokeOperation(ctx, "GetAssociatedResource", params, optFns, c.addOperationGetAssociatedResourceMiddlewares) if err != nil { return nil, err } out := result.(*GetAssociatedResourceOutput) out.ResultMetadata = metadata return out, nil } type GetAssociatedResourceInput struct { // The name, ID, or ARN of the application. // // This member is required. Application *string // The name or ID of the resource associated with the application. // // This member is required. Resource *string // The type of resource associated with the application. // // This member is required. ResourceType types.ResourceType noSmithyDocumentSerde } type GetAssociatedResourceOutput struct { // The resource associated with the application. Resource *types.Resource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationGetAssociatedResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpGetAssociatedResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetAssociatedResource{}, 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 = addOpGetAssociatedResourceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAssociatedResource(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_opGetAssociatedResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "GetAssociatedResource", } }
135
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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 an attribute group by its ARN, ID, or name. The attribute group can // be specified by its ARN, ID, or name. func (c *Client) GetAttributeGroup(ctx context.Context, params *GetAttributeGroupInput, optFns ...func(*Options)) (*GetAttributeGroupOutput, error) { if params == nil { params = &GetAttributeGroupInput{} } result, metadata, err := c.invokeOperation(ctx, "GetAttributeGroup", params, optFns, c.addOperationGetAttributeGroupMiddlewares) if err != nil { return nil, err } out := result.(*GetAttributeGroupOutput) out.ResultMetadata = metadata return out, nil } type GetAttributeGroupInput struct { // The name, ID, or ARN of the attribute group that holds the attributes to // describe the application. // // This member is required. AttributeGroup *string noSmithyDocumentSerde } type GetAttributeGroupOutput struct { // The Amazon resource name (ARN) that specifies the attribute group across // services. Arn *string // A JSON string in the form of nested key-value pairs that represent the // attributes in the group and describes an application and its components. Attributes *string // The service principal that created the attribute group. CreatedBy *string // The ISO-8601 formatted timestamp of the moment the attribute group was created. CreationTime *time.Time // The description of the attribute group that the user provides. Description *string // The identifier of the attribute group. Id *string // The ISO-8601 formatted timestamp of the moment the attribute group was last // updated. This time is the same as the creationTime for a newly created attribute // group. LastUpdateTime *time.Time // The name of the attribute group. Name *string // Key-value pairs associated with the attribute group. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationGetAttributeGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpGetAttributeGroup{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetAttributeGroup{}, 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 = addOpGetAttributeGroupValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAttributeGroup(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_opGetAttributeGroup(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "GetAttributeGroup", } }
155
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieves a TagKey configuration from an account. func (c *Client) GetConfiguration(ctx context.Context, params *GetConfigurationInput, optFns ...func(*Options)) (*GetConfigurationOutput, error) { if params == nil { params = &GetConfigurationInput{} } result, metadata, err := c.invokeOperation(ctx, "GetConfiguration", params, optFns, c.addOperationGetConfigurationMiddlewares) if err != nil { return nil, err } out := result.(*GetConfigurationOutput) out.ResultMetadata = metadata return out, nil } type GetConfigurationInput struct { noSmithyDocumentSerde } type GetConfigurationOutput struct { // Retrieves TagKey configuration from an account. Configuration *types.AppRegistryConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationGetConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpGetConfiguration{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetConfiguration{}, 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_opGetConfiguration(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_opGetConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "GetConfiguration", } }
116
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieves a list of all of your applications. Results are paginated. func (c *Client) ListApplications(ctx context.Context, params *ListApplicationsInput, optFns ...func(*Options)) (*ListApplicationsOutput, error) { if params == nil { params = &ListApplicationsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListApplications", params, optFns, c.addOperationListApplicationsMiddlewares) if err != nil { return nil, err } out := result.(*ListApplicationsOutput) out.ResultMetadata = metadata return out, nil } type ListApplicationsInput struct { // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. MaxResults *int32 // The token to use to get the next page of results after a previous API call. NextToken *string noSmithyDocumentSerde } type ListApplicationsOutput struct { // This list of applications. Applications []types.ApplicationSummary // The token to use to get the next page of results after a previous API call. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListApplicationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListApplications{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListApplications{}, 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_opListApplications(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 } // ListApplicationsAPIClient is a client that implements the ListApplications // operation. type ListApplicationsAPIClient interface { ListApplications(context.Context, *ListApplicationsInput, ...func(*Options)) (*ListApplicationsOutput, error) } var _ ListApplicationsAPIClient = (*Client)(nil) // ListApplicationsPaginatorOptions is the paginator options for ListApplications type ListApplicationsPaginatorOptions struct { // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. 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 } // ListApplicationsPaginator is a paginator for ListApplications type ListApplicationsPaginator struct { options ListApplicationsPaginatorOptions client ListApplicationsAPIClient params *ListApplicationsInput nextToken *string firstPage bool } // NewListApplicationsPaginator returns a new ListApplicationsPaginator func NewListApplicationsPaginator(client ListApplicationsAPIClient, params *ListApplicationsInput, optFns ...func(*ListApplicationsPaginatorOptions)) *ListApplicationsPaginator { if params == nil { params = &ListApplicationsInput{} } options := ListApplicationsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListApplicationsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListApplicationsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListApplications page. func (p *ListApplicationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListApplicationsOutput, 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.ListApplications(ctx, &params, 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_opListApplications(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListApplications", } }
219
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all attribute groups that are associated with specified application. // Results are paginated. func (c *Client) ListAssociatedAttributeGroups(ctx context.Context, params *ListAssociatedAttributeGroupsInput, optFns ...func(*Options)) (*ListAssociatedAttributeGroupsOutput, error) { if params == nil { params = &ListAssociatedAttributeGroupsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListAssociatedAttributeGroups", params, optFns, c.addOperationListAssociatedAttributeGroupsMiddlewares) if err != nil { return nil, err } out := result.(*ListAssociatedAttributeGroupsOutput) out.ResultMetadata = metadata return out, nil } type ListAssociatedAttributeGroupsInput struct { // The name or ID of the application. // // This member is required. Application *string // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. MaxResults *int32 // The token to use to get the next page of results after a previous API call. NextToken *string noSmithyDocumentSerde } type ListAssociatedAttributeGroupsOutput struct { // A list of attribute group IDs. AttributeGroups []string // The token to use to get the next page of results after a previous API call. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListAssociatedAttributeGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListAssociatedAttributeGroups{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAssociatedAttributeGroups{}, 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 = addOpListAssociatedAttributeGroupsValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAssociatedAttributeGroups(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 } // ListAssociatedAttributeGroupsAPIClient is a client that implements the // ListAssociatedAttributeGroups operation. type ListAssociatedAttributeGroupsAPIClient interface { ListAssociatedAttributeGroups(context.Context, *ListAssociatedAttributeGroupsInput, ...func(*Options)) (*ListAssociatedAttributeGroupsOutput, error) } var _ ListAssociatedAttributeGroupsAPIClient = (*Client)(nil) // ListAssociatedAttributeGroupsPaginatorOptions is the paginator options for // ListAssociatedAttributeGroups type ListAssociatedAttributeGroupsPaginatorOptions struct { // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. 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 } // ListAssociatedAttributeGroupsPaginator is a paginator for // ListAssociatedAttributeGroups type ListAssociatedAttributeGroupsPaginator struct { options ListAssociatedAttributeGroupsPaginatorOptions client ListAssociatedAttributeGroupsAPIClient params *ListAssociatedAttributeGroupsInput nextToken *string firstPage bool } // NewListAssociatedAttributeGroupsPaginator returns a new // ListAssociatedAttributeGroupsPaginator func NewListAssociatedAttributeGroupsPaginator(client ListAssociatedAttributeGroupsAPIClient, params *ListAssociatedAttributeGroupsInput, optFns ...func(*ListAssociatedAttributeGroupsPaginatorOptions)) *ListAssociatedAttributeGroupsPaginator { if params == nil { params = &ListAssociatedAttributeGroupsInput{} } options := ListAssociatedAttributeGroupsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListAssociatedAttributeGroupsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListAssociatedAttributeGroupsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListAssociatedAttributeGroups page. func (p *ListAssociatedAttributeGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAssociatedAttributeGroupsOutput, 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.ListAssociatedAttributeGroups(ctx, &params, 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_opListAssociatedAttributeGroups(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListAssociatedAttributeGroups", } }
230
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all of the resources that are associated with the specified application. // Results are paginated. If you share an application, and a consumer account // associates a tag query to the application, all of the users who can access the // application can also view the tag values in all accounts that are associated // with it using this API. func (c *Client) ListAssociatedResources(ctx context.Context, params *ListAssociatedResourcesInput, optFns ...func(*Options)) (*ListAssociatedResourcesOutput, error) { if params == nil { params = &ListAssociatedResourcesInput{} } result, metadata, err := c.invokeOperation(ctx, "ListAssociatedResources", params, optFns, c.addOperationListAssociatedResourcesMiddlewares) if err != nil { return nil, err } out := result.(*ListAssociatedResourcesOutput) out.ResultMetadata = metadata return out, nil } type ListAssociatedResourcesInput struct { // The name, ID, or ARN of the application. // // This member is required. Application *string // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. MaxResults *int32 // The token to use to get the next page of results after a previous API call. NextToken *string noSmithyDocumentSerde } type ListAssociatedResourcesOutput struct { // The token to use to get the next page of results after a previous API call. NextToken *string // Information about the resources. Resources []types.ResourceInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListAssociatedResourcesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListAssociatedResources{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAssociatedResources{}, 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 = addOpListAssociatedResourcesValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAssociatedResources(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 } // ListAssociatedResourcesAPIClient is a client that implements the // ListAssociatedResources operation. type ListAssociatedResourcesAPIClient interface { ListAssociatedResources(context.Context, *ListAssociatedResourcesInput, ...func(*Options)) (*ListAssociatedResourcesOutput, error) } var _ ListAssociatedResourcesAPIClient = (*Client)(nil) // ListAssociatedResourcesPaginatorOptions is the paginator options for // ListAssociatedResources type ListAssociatedResourcesPaginatorOptions struct { // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. 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 } // ListAssociatedResourcesPaginator is a paginator for ListAssociatedResources type ListAssociatedResourcesPaginator struct { options ListAssociatedResourcesPaginatorOptions client ListAssociatedResourcesAPIClient params *ListAssociatedResourcesInput nextToken *string firstPage bool } // NewListAssociatedResourcesPaginator returns a new // ListAssociatedResourcesPaginator func NewListAssociatedResourcesPaginator(client ListAssociatedResourcesAPIClient, params *ListAssociatedResourcesInput, optFns ...func(*ListAssociatedResourcesPaginatorOptions)) *ListAssociatedResourcesPaginator { if params == nil { params = &ListAssociatedResourcesInput{} } options := ListAssociatedResourcesPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListAssociatedResourcesPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListAssociatedResourcesPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListAssociatedResources page. func (p *ListAssociatedResourcesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAssociatedResourcesOutput, 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.ListAssociatedResources(ctx, &params, 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_opListAssociatedResources(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListAssociatedResources", } }
233
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all attribute groups which you have access to. Results are paginated. func (c *Client) ListAttributeGroups(ctx context.Context, params *ListAttributeGroupsInput, optFns ...func(*Options)) (*ListAttributeGroupsOutput, error) { if params == nil { params = &ListAttributeGroupsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListAttributeGroups", params, optFns, c.addOperationListAttributeGroupsMiddlewares) if err != nil { return nil, err } out := result.(*ListAttributeGroupsOutput) out.ResultMetadata = metadata return out, nil } type ListAttributeGroupsInput struct { // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. MaxResults *int32 // The token to use to get the next page of results after a previous API call. NextToken *string noSmithyDocumentSerde } type ListAttributeGroupsOutput struct { // This list of attribute groups. AttributeGroups []types.AttributeGroupSummary // The token to use to get the next page of results after a previous API call. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListAttributeGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListAttributeGroups{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAttributeGroups{}, 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_opListAttributeGroups(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 } // ListAttributeGroupsAPIClient is a client that implements the // ListAttributeGroups operation. type ListAttributeGroupsAPIClient interface { ListAttributeGroups(context.Context, *ListAttributeGroupsInput, ...func(*Options)) (*ListAttributeGroupsOutput, error) } var _ ListAttributeGroupsAPIClient = (*Client)(nil) // ListAttributeGroupsPaginatorOptions is the paginator options for // ListAttributeGroups type ListAttributeGroupsPaginatorOptions struct { // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. 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 } // ListAttributeGroupsPaginator is a paginator for ListAttributeGroups type ListAttributeGroupsPaginator struct { options ListAttributeGroupsPaginatorOptions client ListAttributeGroupsAPIClient params *ListAttributeGroupsInput nextToken *string firstPage bool } // NewListAttributeGroupsPaginator returns a new ListAttributeGroupsPaginator func NewListAttributeGroupsPaginator(client ListAttributeGroupsAPIClient, params *ListAttributeGroupsInput, optFns ...func(*ListAttributeGroupsPaginatorOptions)) *ListAttributeGroupsPaginator { if params == nil { params = &ListAttributeGroupsInput{} } options := ListAttributeGroupsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListAttributeGroupsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListAttributeGroupsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListAttributeGroups page. func (p *ListAttributeGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAttributeGroupsOutput, 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.ListAttributeGroups(ctx, &params, 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_opListAttributeGroups(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListAttributeGroups", } }
220
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists the details of all attribute groups associated with a specific // application. The results display in pages. func (c *Client) ListAttributeGroupsForApplication(ctx context.Context, params *ListAttributeGroupsForApplicationInput, optFns ...func(*Options)) (*ListAttributeGroupsForApplicationOutput, error) { if params == nil { params = &ListAttributeGroupsForApplicationInput{} } result, metadata, err := c.invokeOperation(ctx, "ListAttributeGroupsForApplication", params, optFns, c.addOperationListAttributeGroupsForApplicationMiddlewares) if err != nil { return nil, err } out := result.(*ListAttributeGroupsForApplicationOutput) out.ResultMetadata = metadata return out, nil } type ListAttributeGroupsForApplicationInput struct { // The name or ID of the application. // // This member is required. Application *string // The upper bound of the number of results to return. The value cannot exceed 25. // If you omit this parameter, it defaults to 25. This value is optional. MaxResults *int32 // This token retrieves the next page of results after a previous API call. NextToken *string noSmithyDocumentSerde } type ListAttributeGroupsForApplicationOutput struct { // The details related to a specific attribute group. AttributeGroupsDetails []types.AttributeGroupDetails // The token to use to get the next page of results after a previous API call. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListAttributeGroupsForApplicationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListAttributeGroupsForApplication{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAttributeGroupsForApplication{}, 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 = addOpListAttributeGroupsForApplicationValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAttributeGroupsForApplication(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 } // ListAttributeGroupsForApplicationAPIClient is a client that implements the // ListAttributeGroupsForApplication operation. type ListAttributeGroupsForApplicationAPIClient interface { ListAttributeGroupsForApplication(context.Context, *ListAttributeGroupsForApplicationInput, ...func(*Options)) (*ListAttributeGroupsForApplicationOutput, error) } var _ ListAttributeGroupsForApplicationAPIClient = (*Client)(nil) // ListAttributeGroupsForApplicationPaginatorOptions is the paginator options for // ListAttributeGroupsForApplication type ListAttributeGroupsForApplicationPaginatorOptions struct { // The upper bound of the number of results to return. The value cannot exceed 25. // If you omit this parameter, it defaults to 25. This value is optional. 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 } // ListAttributeGroupsForApplicationPaginator is a paginator for // ListAttributeGroupsForApplication type ListAttributeGroupsForApplicationPaginator struct { options ListAttributeGroupsForApplicationPaginatorOptions client ListAttributeGroupsForApplicationAPIClient params *ListAttributeGroupsForApplicationInput nextToken *string firstPage bool } // NewListAttributeGroupsForApplicationPaginator returns a new // ListAttributeGroupsForApplicationPaginator func NewListAttributeGroupsForApplicationPaginator(client ListAttributeGroupsForApplicationAPIClient, params *ListAttributeGroupsForApplicationInput, optFns ...func(*ListAttributeGroupsForApplicationPaginatorOptions)) *ListAttributeGroupsForApplicationPaginator { if params == nil { params = &ListAttributeGroupsForApplicationInput{} } options := ListAttributeGroupsForApplicationPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListAttributeGroupsForApplicationPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListAttributeGroupsForApplicationPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListAttributeGroupsForApplication page. func (p *ListAttributeGroupsForApplicationPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAttributeGroupsForApplicationOutput, 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.ListAttributeGroupsForApplication(ctx, &params, 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_opListAttributeGroupsForApplication(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "ListAttributeGroupsForApplication", } }
231
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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" ) // Lists all of the tags on the resource. 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 Amazon resource name (ARN) that specifies the resource. // // This member is required. ResourceArn *string noSmithyDocumentSerde } type ListTagsForResourceOutput struct { // The tags on the resource. Tags map[string]string // 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(&awsRestjson1_serializeOpListTagsForResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_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: "servicecatalog", OperationName: "ListTagsForResource", } }
124
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Associates a TagKey configuration to an account. func (c *Client) PutConfiguration(ctx context.Context, params *PutConfigurationInput, optFns ...func(*Options)) (*PutConfigurationOutput, error) { if params == nil { params = &PutConfigurationInput{} } result, metadata, err := c.invokeOperation(ctx, "PutConfiguration", params, optFns, c.addOperationPutConfigurationMiddlewares) if err != nil { return nil, err } out := result.(*PutConfigurationOutput) out.ResultMetadata = metadata return out, nil } type PutConfigurationInput struct { // Associates a TagKey configuration to an account. // // This member is required. Configuration *types.AppRegistryConfiguration noSmithyDocumentSerde } type PutConfigurationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationPutConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpPutConfiguration{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutConfiguration{}, 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 = addOpPutConfigurationValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutConfiguration(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_opPutConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "PutConfiguration", } }
121
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package servicecatalogappregistry 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/servicecatalogappregistry/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Syncs the resource with current AppRegistry records. Specifically, the // resource’s AppRegistry system tags sync with its associated application. We // remove the resource's AppRegistry system tags if it does not associate with the // application. The caller must have permissions to read and update the resource. func (c *Client) SyncResource(ctx context.Context, params *SyncResourceInput, optFns ...func(*Options)) (*SyncResourceOutput, error) { if params == nil { params = &SyncResourceInput{} } result, metadata, err := c.invokeOperation(ctx, "SyncResource", params, optFns, c.addOperationSyncResourceMiddlewares) if err != nil { return nil, err } out := result.(*SyncResourceOutput) out.ResultMetadata = metadata return out, nil } type SyncResourceInput struct { // An entity you can work with and specify with a name or ID. Examples include an // Amazon EC2 instance, an Amazon Web Services CloudFormation stack, or an Amazon // S3 bucket. // // This member is required. Resource *string // The type of resource of which the application will be associated. // // This member is required. ResourceType types.ResourceType noSmithyDocumentSerde } type SyncResourceOutput struct { // The results of the output if an application is associated with an ARN value, // which could be syncStarted or None. ActionTaken types.SyncAction // The Amazon resource name (ARN) that specifies the application. ApplicationArn *string // The Amazon resource name (ARN) that specifies the resource. ResourceArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationSyncResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpSyncResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpSyncResource{}, 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 = addOpSyncResourceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSyncResource(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_opSyncResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "servicecatalog", OperationName: "SyncResource", } }
142