Documentation ¶
Overview ¶
Package cloudcontrol provides the API client, operations, and parameter types for AWS Cloud Control API.
For more information about Amazon Web Services Cloud Control API, see the Amazon Web Services Cloud Control API User Guide (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/what-is-cloudcontrolapi.html) .
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AuthResolverParameters
- type AuthSchemeResolver
- type CancelResourceRequestInput
- type CancelResourceRequestOutput
- type Client
- func (c *Client) CancelResourceRequest(ctx context.Context, params *CancelResourceRequestInput, ...) (*CancelResourceRequestOutput, error)
- func (c *Client) CreateResource(ctx context.Context, params *CreateResourceInput, optFns ...func(*Options)) (*CreateResourceOutput, error)
- func (c *Client) DeleteResource(ctx context.Context, params *DeleteResourceInput, optFns ...func(*Options)) (*DeleteResourceOutput, error)
- func (c *Client) GetResource(ctx context.Context, params *GetResourceInput, optFns ...func(*Options)) (*GetResourceOutput, error)
- func (c *Client) GetResourceRequestStatus(ctx context.Context, params *GetResourceRequestStatusInput, ...) (*GetResourceRequestStatusOutput, error)
- func (c *Client) ListResourceRequests(ctx context.Context, params *ListResourceRequestsInput, ...) (*ListResourceRequestsOutput, error)
- func (c *Client) ListResources(ctx context.Context, params *ListResourcesInput, optFns ...func(*Options)) (*ListResourcesOutput, error)
- func (c *Client) Options() Options
- func (c *Client) UpdateResource(ctx context.Context, params *UpdateResourceInput, optFns ...func(*Options)) (*UpdateResourceOutput, error)
- type CreateResourceInput
- type CreateResourceOutput
- type DeleteResourceInput
- type DeleteResourceOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetResourceInput
- type GetResourceOutput
- type GetResourceRequestStatusAPIClient
- type GetResourceRequestStatusInput
- type GetResourceRequestStatusOutput
- type HTTPClient
- type HTTPSignerV4
- type IdempotencyTokenProvider
- type ListResourceRequestsAPIClient
- type ListResourceRequestsInput
- type ListResourceRequestsOutput
- type ListResourceRequestsPaginator
- type ListResourceRequestsPaginatorOptions
- type ListResourcesAPIClient
- type ListResourcesInput
- type ListResourcesOutput
- type ListResourcesPaginator
- type ListResourcesPaginatorOptions
- type Options
- type ResolveEndpoint
- type ResourceRequestSuccessWaiter
- type ResourceRequestSuccessWaiterOptions
- type UpdateResourceInput
- type UpdateResourceOutput
Constants ¶
const ServiceAPIVersion = "2021-09-30"
const ServiceID = "CloudControl"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint. To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶ added in v1.12.0
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶ added in v1.14.3
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶ added in v1.14.3
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AuthResolverParameters ¶ added in v1.14.3
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶ added in v1.14.3
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type CancelResourceRequestInput ¶
type CancelResourceRequestInput struct { // The RequestToken of the ProgressEvent object returned by the resource operation // request. // // This member is required. RequestToken *string // contains filtered or unexported fields }
type CancelResourceRequestOutput ¶
type CancelResourceRequestOutput struct { // Represents the current status of a resource operation request. For more // information, see Managing resource operation requests (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html) // in the Amazon Web Services Cloud Control API User Guide. ProgressEvent *types.ProgressEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for AWS Cloud Control API.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CancelResourceRequest ¶
func (c *Client) CancelResourceRequest(ctx context.Context, params *CancelResourceRequestInput, optFns ...func(*Options)) (*CancelResourceRequestOutput, error)
Cancels the specified resource operation request. For more information, see Canceling resource operation requests (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel) in the Amazon Web Services Cloud Control API User Guide. Only resource operations requests with a status of PENDING or IN_PROGRESS can be canceled.
func (*Client) CreateResource ¶
func (c *Client) CreateResource(ctx context.Context, params *CreateResourceInput, optFns ...func(*Options)) (*CreateResourceOutput, error)
Creates the specified resource. For more information, see Creating a resource (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html) in the Amazon Web Services Cloud Control API User Guide. After you have initiated a resource creation request, you can monitor the progress of your request by calling GetResourceRequestStatus (https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html) using the RequestToken of the ProgressEvent type returned by CreateResource .
func (*Client) DeleteResource ¶
func (c *Client) DeleteResource(ctx context.Context, params *DeleteResourceInput, optFns ...func(*Options)) (*DeleteResourceOutput, error)
Deletes the specified resource. For details, see Deleting a resource (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html) in the Amazon Web Services Cloud Control API User Guide. After you have initiated a resource deletion request, you can monitor the progress of your request by calling GetResourceRequestStatus (https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html) using the RequestToken of the ProgressEvent returned by DeleteResource .
func (*Client) GetResource ¶
func (c *Client) GetResource(ctx context.Context, params *GetResourceInput, optFns ...func(*Options)) (*GetResourceOutput, error)
Returns information about the current state of the specified resource. For details, see Reading a resource's current state (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html) . You can use this action to return information about an existing resource in your account and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.
func (*Client) GetResourceRequestStatus ¶
func (c *Client) GetResourceRequestStatus(ctx context.Context, params *GetResourceRequestStatusInput, optFns ...func(*Options)) (*GetResourceRequestStatusOutput, error)
Returns the current status of a resource operation request. For more information, see Tracking the progress of resource operation requests (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track) in the Amazon Web Services Cloud Control API User Guide.
func (*Client) ListResourceRequests ¶
func (c *Client) ListResourceRequests(ctx context.Context, params *ListResourceRequestsInput, optFns ...func(*Options)) (*ListResourceRequestsOutput, error)
Returns existing resource operation requests. This includes requests of all status types. For more information, see Listing active resource operation requests (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list) in the Amazon Web Services Cloud Control API User Guide. Resource operation requests expire after 7 days.
func (*Client) ListResources ¶
func (c *Client) ListResources(ctx context.Context, params *ListResourcesInput, optFns ...func(*Options)) (*ListResourcesOutput, error)
Returns information about the specified resources. For more information, see Discovering resources (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html) in the Amazon Web Services Cloud Control API User Guide. You can use this action to return information about existing resources in your account and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.
func (*Client) Options ¶ added in v1.15.0
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) UpdateResource ¶
func (c *Client) UpdateResource(ctx context.Context, params *UpdateResourceInput, optFns ...func(*Options)) (*UpdateResourceOutput, error)
Updates the specified property values in the resource. You specify your resource property updates as a list of patch operations contained in a JSON patch document that adheres to the RFC 6902 - JavaScript Object Notation (JSON) Patch (https://datatracker.ietf.org/doc/html/rfc6902) standard. For details on how Cloud Control API performs resource update operations, see Updating a resource (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html) in the Amazon Web Services Cloud Control API User Guide. After you have initiated a resource update request, you can monitor the progress of your request by calling GetResourceRequestStatus (https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html) using the RequestToken of the ProgressEvent returned by UpdateResource . For more information about the properties of a specific resource, refer to the related topic for the resource in the Resource and property types reference (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) in the CloudFormation Users Guide.
type CreateResourceInput ¶
type CreateResourceInput struct { // Structured data format representing the desired state of the resource, // consisting of that resource's properties and their desired values. Cloud Control // API currently supports JSON as a structured data format. Specify the desired // state as one of the following: // - A JSON blob // - A local path containing the desired state in JSON data format // For more information, see Composing the desired state of the resource (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html#resource-operations-create-desiredstate) // in the Amazon Web Services Cloud Control API User Guide. For more information // about the properties of a specific resource, refer to the related topic for the // resource in the Resource and property types reference (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) // in the CloudFormation Users Guide. // // This member is required. DesiredState *string // The name of the resource type. // // This member is required. TypeName *string // A unique identifier to ensure the idempotency of the resource request. As a // best practice, specify this token to ensure idempotency, so that Amazon Web // Services Cloud Control API can accurately distinguish between request retries // and new resource requests. You might retry a resource request to ensure that it // was successfully received. A client token is valid for 36 hours once used. After // that, a resource request with the same client token is treated as a new request. // If you do not specify a client token, one is generated for inclusion in the // request. For more information, see Ensuring resource operation requests are // unique (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-idempotency) // in the Amazon Web Services Cloud Control API User Guide. ClientToken *string // The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role // for Cloud Control API to use when performing this resource operation. The role // specified must have the permissions required for this operation. The necessary // permissions for each event handler are defined in the handlers (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers) // section of the resource type definition schema (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html) // . If you do not specify a role, Cloud Control API uses a temporary session // created using your Amazon Web Services user credentials. For more information, // see Specifying credentials (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions) // in the Amazon Web Services Cloud Control API User Guide. RoleArn *string // For private resource types, the type version to use in this resource operation. // If you do not specify a resource version, CloudFormation uses the default // version. TypeVersionId *string // contains filtered or unexported fields }
type CreateResourceOutput ¶
type CreateResourceOutput struct { // Represents the current status of the resource creation request. After you have // initiated a resource creation request, you can monitor the progress of your // request by calling GetResourceRequestStatus (https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html) // using the RequestToken of the ProgressEvent returned by CreateResource . ProgressEvent *types.ProgressEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteResourceInput ¶
type DeleteResourceInput struct { // The identifier for the resource. You can specify the primary identifier, or any // secondary identifier defined for the resource type in its resource schema. You // can only specify one identifier. Primary identifiers can be specified as a // string or JSON; secondary identifiers must be specified as JSON. For compound // primary identifiers (that is, one that consists of multiple resource properties // strung together), to specify the primary identifier as a string, list the // property values in the order they are specified in the primary identifier // definition, separated by | . For more information, see Identifying resources (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-identifier.html) // in the Amazon Web Services Cloud Control API User Guide. // // This member is required. Identifier *string // The name of the resource type. // // This member is required. TypeName *string // A unique identifier to ensure the idempotency of the resource request. As a // best practice, specify this token to ensure idempotency, so that Amazon Web // Services Cloud Control API can accurately distinguish between request retries // and new resource requests. You might retry a resource request to ensure that it // was successfully received. A client token is valid for 36 hours once used. After // that, a resource request with the same client token is treated as a new request. // If you do not specify a client token, one is generated for inclusion in the // request. For more information, see Ensuring resource operation requests are // unique (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-idempotency) // in the Amazon Web Services Cloud Control API User Guide. ClientToken *string // The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role // for Cloud Control API to use when performing this resource operation. The role // specified must have the permissions required for this operation. The necessary // permissions for each event handler are defined in the handlers (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers) // section of the resource type definition schema (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html) // . If you do not specify a role, Cloud Control API uses a temporary session // created using your Amazon Web Services user credentials. For more information, // see Specifying credentials (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions) // in the Amazon Web Services Cloud Control API User Guide. RoleArn *string // For private resource types, the type version to use in this resource operation. // If you do not specify a resource version, CloudFormation uses the default // version. TypeVersionId *string // contains filtered or unexported fields }
type DeleteResourceOutput ¶
type DeleteResourceOutput struct { // Represents the current status of the resource deletion request. After you have // initiated a resource deletion request, you can monitor the progress of your // request by calling GetResourceRequestStatus (https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html) // using the RequestToken of the ProgressEvent returned by DeleteResource . ProgressEvent *types.ProgressEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶ added in v1.12.0
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶ added in v1.12.0
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶ added in v1.12.0
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶ added in v1.12.0
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶ added in v1.12.0
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetResourceInput ¶
type GetResourceInput struct { // The identifier for the resource. You can specify the primary identifier, or any // secondary identifier defined for the resource type in its resource schema. You // can only specify one identifier. Primary identifiers can be specified as a // string or JSON; secondary identifiers must be specified as JSON. For compound // primary identifiers (that is, one that consists of multiple resource properties // strung together), to specify the primary identifier as a string, list the // property values in the order they are specified in the primary identifier // definition, separated by | . For more information, see Identifying resources (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-identifier.html) // in the Amazon Web Services Cloud Control API User Guide. // // This member is required. Identifier *string // The name of the resource type. // // This member is required. TypeName *string // The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role // for Cloud Control API to use when performing this resource operation. The role // specified must have the permissions required for this operation. The necessary // permissions for each event handler are defined in the handlers (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers) // section of the resource type definition schema (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html) // . If you do not specify a role, Cloud Control API uses a temporary session // created using your Amazon Web Services user credentials. For more information, // see Specifying credentials (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions) // in the Amazon Web Services Cloud Control API User Guide. RoleArn *string // For private resource types, the type version to use in this resource operation. // If you do not specify a resource version, CloudFormation uses the default // version. TypeVersionId *string // contains filtered or unexported fields }
type GetResourceOutput ¶
type GetResourceOutput struct { // Represents information about a provisioned resource. ResourceDescription *types.ResourceDescription // The name of the resource type. TypeName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetResourceRequestStatusAPIClient ¶
type GetResourceRequestStatusAPIClient interface {
GetResourceRequestStatus(context.Context, *GetResourceRequestStatusInput, ...func(*Options)) (*GetResourceRequestStatusOutput, error)
}
GetResourceRequestStatusAPIClient is a client that implements the GetResourceRequestStatus operation.
type GetResourceRequestStatusInput ¶
type GetResourceRequestStatusInput struct { // A unique token used to track the progress of the resource operation request. // Request tokens are included in the ProgressEvent type returned by a resource // operation request. // // This member is required. RequestToken *string // contains filtered or unexported fields }
type GetResourceRequestStatusOutput ¶
type GetResourceRequestStatusOutput struct { // Represents the current status of the resource operation request. ProgressEvent *types.ProgressEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type IdempotencyTokenProvider ¶
IdempotencyTokenProvider interface for providing idempotency token
type ListResourceRequestsAPIClient ¶
type ListResourceRequestsAPIClient interface {
ListResourceRequests(context.Context, *ListResourceRequestsInput, ...func(*Options)) (*ListResourceRequestsOutput, error)
}
ListResourceRequestsAPIClient is a client that implements the ListResourceRequests operation.
type ListResourceRequestsInput ¶
type ListResourceRequestsInput struct { // The maximum number of results to be returned with a single call. If the number // of available results exceeds this maximum, the response includes a NextToken // value that you can assign to the NextToken request parameter to get the next // set of results. The default is 20 . MaxResults *int32 // If the previous paginated request didn't return all of the remaining results, // the response object's NextToken parameter value is set to a token. To retrieve // the next set of results, call this action again and assign that token to the // request object's NextToken parameter. If there are no remaining results, the // previous response object's NextToken parameter is set to null . NextToken *string // The filter criteria to apply to the requests returned. ResourceRequestStatusFilter *types.ResourceRequestStatusFilter // contains filtered or unexported fields }
type ListResourceRequestsOutput ¶
type ListResourceRequestsOutput struct { // If the request doesn't return all of the remaining results, NextToken is set to // a token. To retrieve the next set of results, call ListResources again and // assign that token to the request object's NextToken parameter. If the request // returns all results, NextToken is set to null. NextToken *string // The requests that match the specified filter criteria. ResourceRequestStatusSummaries []types.ProgressEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListResourceRequestsPaginator ¶
type ListResourceRequestsPaginator struct {
// contains filtered or unexported fields
}
ListResourceRequestsPaginator is a paginator for ListResourceRequests
func NewListResourceRequestsPaginator ¶
func NewListResourceRequestsPaginator(client ListResourceRequestsAPIClient, params *ListResourceRequestsInput, optFns ...func(*ListResourceRequestsPaginatorOptions)) *ListResourceRequestsPaginator
NewListResourceRequestsPaginator returns a new ListResourceRequestsPaginator
func (*ListResourceRequestsPaginator) HasMorePages ¶
func (p *ListResourceRequestsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListResourceRequestsPaginator) NextPage ¶
func (p *ListResourceRequestsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListResourceRequestsOutput, error)
NextPage retrieves the next ListResourceRequests page.
type ListResourceRequestsPaginatorOptions ¶
type ListResourceRequestsPaginatorOptions struct { // The maximum number of results to be returned with a single call. If the number // of available results exceeds this maximum, the response includes a NextToken // value that you can assign to the NextToken request parameter to get the next // set of results. The default is 20 . 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 }
ListResourceRequestsPaginatorOptions is the paginator options for ListResourceRequests
type ListResourcesAPIClient ¶
type ListResourcesAPIClient interface {
ListResources(context.Context, *ListResourcesInput, ...func(*Options)) (*ListResourcesOutput, error)
}
ListResourcesAPIClient is a client that implements the ListResources operation.
type ListResourcesInput ¶
type ListResourcesInput struct { // The name of the resource type. // // This member is required. TypeName *string // Reserved. MaxResults *int32 // If the previous paginated request didn't return all of the remaining results, // the response object's NextToken parameter value is set to a token. To retrieve // the next set of results, call this action again and assign that token to the // request object's NextToken parameter. If there are no remaining results, the // previous response object's NextToken parameter is set to null . NextToken *string // The resource model to use to select the resources to return. ResourceModel *string // The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role // for Cloud Control API to use when performing this resource operation. The role // specified must have the permissions required for this operation. The necessary // permissions for each event handler are defined in the handlers (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers) // section of the resource type definition schema (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html) // . If you do not specify a role, Cloud Control API uses a temporary session // created using your Amazon Web Services user credentials. For more information, // see Specifying credentials (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions) // in the Amazon Web Services Cloud Control API User Guide. RoleArn *string // For private resource types, the type version to use in this resource operation. // If you do not specify a resource version, CloudFormation uses the default // version. TypeVersionId *string // contains filtered or unexported fields }
type ListResourcesOutput ¶
type ListResourcesOutput struct { // If the request doesn't return all of the remaining results, NextToken is set to // a token. To retrieve the next set of results, call ListResources again and // assign that token to the request object's NextToken parameter. If the request // returns all results, NextToken is set to null. NextToken *string // Information about the specified resources, including primary identifier and // resource model. ResourceDescriptions []types.ResourceDescription // The name of the resource type. TypeName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListResourcesPaginator ¶
type ListResourcesPaginator struct {
// contains filtered or unexported fields
}
ListResourcesPaginator is a paginator for ListResources
func NewListResourcesPaginator ¶
func NewListResourcesPaginator(client ListResourcesAPIClient, params *ListResourcesInput, optFns ...func(*ListResourcesPaginatorOptions)) *ListResourcesPaginator
NewListResourcesPaginator returns a new ListResourcesPaginator
func (*ListResourcesPaginator) HasMorePages ¶
func (p *ListResourcesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListResourcesPaginator) NextPage ¶
func (p *ListResourcesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListResourcesOutput, error)
NextPage retrieves the next ListResources page.
type ListResourcesPaginatorOptions ¶
type ListResourcesPaginatorOptions struct { // Reserved. 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 }
ListResourcesPaginatorOptions is the paginator options for ListResources
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. To migrate an EndpointResolver implementation that uses a custom // endpoint, set the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // 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. If specified in an operation call's // functional options with a value that is different than the constructed client's // Options, the Client's Retryer will be wrapped to use the operation's specific // RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. Currently does not support per operation call // overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) GetIdentityResolver ¶ added in v1.14.3
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type ResourceRequestSuccessWaiter ¶
type ResourceRequestSuccessWaiter struct {
// contains filtered or unexported fields
}
ResourceRequestSuccessWaiter defines the waiters for ResourceRequestSuccess
func NewResourceRequestSuccessWaiter ¶
func NewResourceRequestSuccessWaiter(client GetResourceRequestStatusAPIClient, optFns ...func(*ResourceRequestSuccessWaiterOptions)) *ResourceRequestSuccessWaiter
NewResourceRequestSuccessWaiter constructs a ResourceRequestSuccessWaiter.
func (*ResourceRequestSuccessWaiter) Wait ¶
func (w *ResourceRequestSuccessWaiter) Wait(ctx context.Context, params *GetResourceRequestStatusInput, maxWaitDur time.Duration, optFns ...func(*ResourceRequestSuccessWaiterOptions)) error
Wait calls the waiter function for ResourceRequestSuccess waiter. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.
func (*ResourceRequestSuccessWaiter) WaitForOutput ¶ added in v1.3.0
func (w *ResourceRequestSuccessWaiter) WaitForOutput(ctx context.Context, params *GetResourceRequestStatusInput, maxWaitDur time.Duration, optFns ...func(*ResourceRequestSuccessWaiterOptions)) (*GetResourceRequestStatusOutput, error)
WaitForOutput calls the waiter function for ResourceRequestSuccess waiter and returns the output of the successful operation. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.
type ResourceRequestSuccessWaiterOptions ¶
type ResourceRequestSuccessWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // ResourceRequestSuccessWaiter will use default minimum delay of 5 seconds. Note // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, ResourceRequestSuccessWaiter will use default max delay of 120 // seconds. Note that MaxDelay must resolve to value greater than or equal to the // MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *GetResourceRequestStatusInput, *GetResourceRequestStatusOutput, error) (bool, error) }
ResourceRequestSuccessWaiterOptions are waiter options for ResourceRequestSuccessWaiter
type UpdateResourceInput ¶
type UpdateResourceInput struct { // The identifier for the resource. You can specify the primary identifier, or any // secondary identifier defined for the resource type in its resource schema. You // can only specify one identifier. Primary identifiers can be specified as a // string or JSON; secondary identifiers must be specified as JSON. For compound // primary identifiers (that is, one that consists of multiple resource properties // strung together), to specify the primary identifier as a string, list the // property values in the order they are specified in the primary identifier // definition, separated by | . For more information, see Identifying resources (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-identifier.html) // in the Amazon Web Services Cloud Control API User Guide. // // This member is required. Identifier *string // A JavaScript Object Notation (JSON) document listing the patch operations that // represent the updates to apply to the current resource properties. For details, // see Composing the patch document (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html#resource-operations-update-patch) // in the Amazon Web Services Cloud Control API User Guide. // // This member is required. PatchDocument *string // The name of the resource type. // // This member is required. TypeName *string // A unique identifier to ensure the idempotency of the resource request. As a // best practice, specify this token to ensure idempotency, so that Amazon Web // Services Cloud Control API can accurately distinguish between request retries // and new resource requests. You might retry a resource request to ensure that it // was successfully received. A client token is valid for 36 hours once used. After // that, a resource request with the same client token is treated as a new request. // If you do not specify a client token, one is generated for inclusion in the // request. For more information, see Ensuring resource operation requests are // unique (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-idempotency) // in the Amazon Web Services Cloud Control API User Guide. ClientToken *string // The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role // for Cloud Control API to use when performing this resource operation. The role // specified must have the permissions required for this operation. The necessary // permissions for each event handler are defined in the handlers (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers) // section of the resource type definition schema (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html) // . If you do not specify a role, Cloud Control API uses a temporary session // created using your Amazon Web Services user credentials. For more information, // see Specifying credentials (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions) // in the Amazon Web Services Cloud Control API User Guide. RoleArn *string // For private resource types, the type version to use in this resource operation. // If you do not specify a resource version, CloudFormation uses the default // version. TypeVersionId *string // contains filtered or unexported fields }
type UpdateResourceOutput ¶
type UpdateResourceOutput struct { // Represents the current status of the resource update request. Use the // RequestToken of the ProgressEvent with GetResourceRequestStatus (https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html) // to return the current status of a resource operation request. ProgressEvent *types.ProgressEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_CancelResourceRequest.go
- api_op_CreateResource.go
- api_op_DeleteResource.go
- api_op_GetResource.go
- api_op_GetResourceRequestStatus.go
- api_op_ListResourceRequests.go
- api_op_ListResources.go
- api_op_UpdateResource.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go