AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

RAM

import "github.com/aws/aws-sdk-go/service/ram"

type RAM struct { *client.Client }

RAM provides the API operation methods for making requests to AWS Resource Access Manager. See this package's package overview docs for details on the service.

RAM methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

Client

Type: *client.Client

Method

AcceptResourceShareInvitation

func (c *RAM) AcceptResourceShareInvitation(input *AcceptResourceShareInvitationInput) (*AcceptResourceShareInvitationOutput, error)

AcceptResourceShareInvitation API operation for AWS Resource Access Manager.

Accepts an invitation to a resource share from another AWS account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation AcceptResourceShareInvitation for usage and error information.

Returned Error Codes:

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.

  • ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" The Amazon Resource Name (ARN) for an invitation was not found.

  • ErrCodeResourceShareInvitationAlreadyAcceptedException "ResourceShareInvitationAlreadyAcceptedException" The invitation was already accepted.

  • ErrCodeResourceShareInvitationAlreadyRejectedException "ResourceShareInvitationAlreadyRejectedException" The invitation was already rejected.

  • ErrCodeResourceShareInvitationExpiredException "ResourceShareInvitationExpiredException" The invitation is expired.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitation

AcceptResourceShareInvitationRequest

func (c *RAM) AcceptResourceShareInvitationRequest(input *AcceptResourceShareInvitationInput) (req *request.Request, output *AcceptResourceShareInvitationOutput)

AcceptResourceShareInvitationRequest generates a "aws/request.Request" representing the client's request for the AcceptResourceShareInvitation operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AcceptResourceShareInvitation for more information on using the AcceptResourceShareInvitation API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AcceptResourceShareInvitationRequest method. req, resp := client.AcceptResourceShareInvitationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitation

AcceptResourceShareInvitationWithContext

func (c *RAM) AcceptResourceShareInvitationWithContext(ctx aws.Context, input *AcceptResourceShareInvitationInput, opts ...request.Option) (*AcceptResourceShareInvitationOutput, error)

AcceptResourceShareInvitationWithContext is the same as AcceptResourceShareInvitation with the addition of the ability to pass a context and additional request options.

See AcceptResourceShareInvitation for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

AssociateResourceShare

func (c *RAM) AssociateResourceShare(input *AssociateResourceShareInput) (*AssociateResourceShareOutput, error)

AssociateResourceShare API operation for AWS Resource Access Manager.

Associates the specified resource share with the specified principals and resources.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation AssociateResourceShare for usage and error information.

Returned Error Codes:

  • ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" A client token input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.

  • ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.

  • ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" The requested state transition is not valid.

  • ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" The requested resource share exceeds the limit for your account.

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" The requested state transition is not valid.

  • ErrCodeInvalidClientTokenException "InvalidClientTokenException" A client token is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

  • ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShare

AssociateResourceShareRequest

func (c *RAM) AssociateResourceShareRequest(input *AssociateResourceShareInput) (req *request.Request, output *AssociateResourceShareOutput)

AssociateResourceShareRequest generates a "aws/request.Request" representing the client's request for the AssociateResourceShare operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AssociateResourceShare for more information on using the AssociateResourceShare API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AssociateResourceShareRequest method. req, resp := client.AssociateResourceShareRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShare

AssociateResourceShareWithContext

func (c *RAM) AssociateResourceShareWithContext(ctx aws.Context, input *AssociateResourceShareInput, opts ...request.Option) (*AssociateResourceShareOutput, error)

AssociateResourceShareWithContext is the same as AssociateResourceShare with the addition of the ability to pass a context and additional request options.

See AssociateResourceShare for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateResourceShare

func (c *RAM) CreateResourceShare(input *CreateResourceShareInput) (*CreateResourceShareOutput, error)

CreateResourceShare API operation for AWS Resource Access Manager.

Creates a resource share.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation CreateResourceShare for usage and error information.

Returned Error Codes:

  • ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" A client token input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.

  • ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" The requested state transition is not valid.

  • ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeInvalidClientTokenException "InvalidClientTokenException" A client token is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.

  • ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" The requested resource share exceeds the limit for your account.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShare

CreateResourceShareRequest

func (c *RAM) CreateResourceShareRequest(input *CreateResourceShareInput) (req *request.Request, output *CreateResourceShareOutput)

CreateResourceShareRequest generates a "aws/request.Request" representing the client's request for the CreateResourceShare operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateResourceShare for more information on using the CreateResourceShare API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateResourceShareRequest method. req, resp := client.CreateResourceShareRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShare

CreateResourceShareWithContext

func (c *RAM) CreateResourceShareWithContext(ctx aws.Context, input *CreateResourceShareInput, opts ...request.Option) (*CreateResourceShareOutput, error)

CreateResourceShareWithContext is the same as CreateResourceShare with the addition of the ability to pass a context and additional request options.

See CreateResourceShare for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteResourceShare

func (c *RAM) DeleteResourceShare(input *DeleteResourceShareInput) (*DeleteResourceShareOutput, error)

DeleteResourceShare API operation for AWS Resource Access Manager.

Deletes the specified resource share.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation DeleteResourceShare for usage and error information.

Returned Error Codes:

  • ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.

  • ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" A client token input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.

  • ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" The requested state transition is not valid.

  • ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeInvalidClientTokenException "InvalidClientTokenException" A client token is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShare

DeleteResourceShareRequest

func (c *RAM) DeleteResourceShareRequest(input *DeleteResourceShareInput) (req *request.Request, output *DeleteResourceShareOutput)

DeleteResourceShareRequest generates a "aws/request.Request" representing the client's request for the DeleteResourceShare operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteResourceShare for more information on using the DeleteResourceShare API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteResourceShareRequest method. req, resp := client.DeleteResourceShareRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShare

DeleteResourceShareWithContext

func (c *RAM) DeleteResourceShareWithContext(ctx aws.Context, input *DeleteResourceShareInput, opts ...request.Option) (*DeleteResourceShareOutput, error)

DeleteResourceShareWithContext is the same as DeleteResourceShare with the addition of the ability to pass a context and additional request options.

See DeleteResourceShare for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DisassociateResourceShare

func (c *RAM) DisassociateResourceShare(input *DisassociateResourceShareInput) (*DisassociateResourceShareOutput, error)

DisassociateResourceShare API operation for AWS Resource Access Manager.

Disassociates the specified principals or resources from the specified resource share.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation DisassociateResourceShare for usage and error information.

Returned Error Codes:

  • ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" A client token input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.

  • ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" The requested resource share exceeds the limit for your account.

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" The requested state transition is not valid.

  • ErrCodeInvalidClientTokenException "InvalidClientTokenException" A client token is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

  • ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShare

DisassociateResourceShareRequest

func (c *RAM) DisassociateResourceShareRequest(input *DisassociateResourceShareInput) (req *request.Request, output *DisassociateResourceShareOutput)

DisassociateResourceShareRequest generates a "aws/request.Request" representing the client's request for the DisassociateResourceShare operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DisassociateResourceShare for more information on using the DisassociateResourceShare API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DisassociateResourceShareRequest method. req, resp := client.DisassociateResourceShareRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShare

DisassociateResourceShareWithContext

func (c *RAM) DisassociateResourceShareWithContext(ctx aws.Context, input *DisassociateResourceShareInput, opts ...request.Option) (*DisassociateResourceShareOutput, error)

DisassociateResourceShareWithContext is the same as DisassociateResourceShare with the addition of the ability to pass a context and additional request options.

See DisassociateResourceShare for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

EnableSharingWithAwsOrganization

func (c *RAM) EnableSharingWithAwsOrganization(input *EnableSharingWithAwsOrganizationInput) (*EnableSharingWithAwsOrganizationOutput, error)

EnableSharingWithAwsOrganization API operation for AWS Resource Access Manager.

Enables resource sharing within your organization.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation EnableSharingWithAwsOrganization for usage and error information.

Returned Error Codes:

  • ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganization

EnableSharingWithAwsOrganizationRequest

func (c *RAM) EnableSharingWithAwsOrganizationRequest(input *EnableSharingWithAwsOrganizationInput) (req *request.Request, output *EnableSharingWithAwsOrganizationOutput)

EnableSharingWithAwsOrganizationRequest generates a "aws/request.Request" representing the client's request for the EnableSharingWithAwsOrganization operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See EnableSharingWithAwsOrganization for more information on using the EnableSharingWithAwsOrganization API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the EnableSharingWithAwsOrganizationRequest method. req, resp := client.EnableSharingWithAwsOrganizationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganization

EnableSharingWithAwsOrganizationWithContext

func (c *RAM) EnableSharingWithAwsOrganizationWithContext(ctx aws.Context, input *EnableSharingWithAwsOrganizationInput, opts ...request.Option) (*EnableSharingWithAwsOrganizationOutput, error)

EnableSharingWithAwsOrganizationWithContext is the same as EnableSharingWithAwsOrganization with the addition of the ability to pass a context and additional request options.

See EnableSharingWithAwsOrganization for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetResourcePolicies

func (c *RAM) GetResourcePolicies(input *GetResourcePoliciesInput) (*GetResourcePoliciesOutput, error)

GetResourcePolicies API operation for AWS Resource Access Manager.

Gets the policies for the specifies resources.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation GetResourcePolicies for usage and error information.

Returned Error Codes:

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePolicies

GetResourcePoliciesPages

func (c *RAM) GetResourcePoliciesPages(input *GetResourcePoliciesInput, fn func(*GetResourcePoliciesOutput, bool) bool) error

GetResourcePoliciesPages iterates over the pages of a GetResourcePolicies operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See GetResourcePolicies method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a GetResourcePolicies operation. pageNum := 0 err := client.GetResourcePoliciesPages(params, func(page *GetResourcePoliciesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

GetResourcePoliciesPagesWithContext

func (c *RAM) GetResourcePoliciesPagesWithContext(ctx aws.Context, input *GetResourcePoliciesInput, fn func(*GetResourcePoliciesOutput, bool) bool, opts ...request.Option) error

GetResourcePoliciesPagesWithContext same as GetResourcePoliciesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetResourcePoliciesRequest

func (c *RAM) GetResourcePoliciesRequest(input *GetResourcePoliciesInput) (req *request.Request, output *GetResourcePoliciesOutput)

GetResourcePoliciesRequest generates a "aws/request.Request" representing the client's request for the GetResourcePolicies operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetResourcePolicies for more information on using the GetResourcePolicies API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetResourcePoliciesRequest method. req, resp := client.GetResourcePoliciesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePolicies

GetResourcePoliciesWithContext

func (c *RAM) GetResourcePoliciesWithContext(ctx aws.Context, input *GetResourcePoliciesInput, opts ...request.Option) (*GetResourcePoliciesOutput, error)

GetResourcePoliciesWithContext is the same as GetResourcePolicies with the addition of the ability to pass a context and additional request options.

See GetResourcePolicies for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetResourceShareAssociations

func (c *RAM) GetResourceShareAssociations(input *GetResourceShareAssociationsInput) (*GetResourceShareAssociationsOutput, error)

GetResourceShareAssociations API operation for AWS Resource Access Manager.

Gets the associations for the specified resource share.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation GetResourceShareAssociations for usage and error information.

Returned Error Codes:

  • ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociations

GetResourceShareAssociationsPages

func (c *RAM) GetResourceShareAssociationsPages(input *GetResourceShareAssociationsInput, fn func(*GetResourceShareAssociationsOutput, bool) bool) error

GetResourceShareAssociationsPages iterates over the pages of a GetResourceShareAssociations operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See GetResourceShareAssociations method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a GetResourceShareAssociations operation. pageNum := 0 err := client.GetResourceShareAssociationsPages(params, func(page *GetResourceShareAssociationsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

GetResourceShareAssociationsPagesWithContext

func (c *RAM) GetResourceShareAssociationsPagesWithContext(ctx aws.Context, input *GetResourceShareAssociationsInput, fn func(*GetResourceShareAssociationsOutput, bool) bool, opts ...request.Option) error

GetResourceShareAssociationsPagesWithContext same as GetResourceShareAssociationsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetResourceShareAssociationsRequest

func (c *RAM) GetResourceShareAssociationsRequest(input *GetResourceShareAssociationsInput) (req *request.Request, output *GetResourceShareAssociationsOutput)

GetResourceShareAssociationsRequest generates a "aws/request.Request" representing the client's request for the GetResourceShareAssociations operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetResourceShareAssociations for more information on using the GetResourceShareAssociations API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetResourceShareAssociationsRequest method. req, resp := client.GetResourceShareAssociationsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociations

GetResourceShareAssociationsWithContext

func (c *RAM) GetResourceShareAssociationsWithContext(ctx aws.Context, input *GetResourceShareAssociationsInput, opts ...request.Option) (*GetResourceShareAssociationsOutput, error)

GetResourceShareAssociationsWithContext is the same as GetResourceShareAssociations with the addition of the ability to pass a context and additional request options.

See GetResourceShareAssociations for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetResourceShareInvitations

func (c *RAM) GetResourceShareInvitations(input *GetResourceShareInvitationsInput) (*GetResourceShareInvitationsOutput, error)

GetResourceShareInvitations API operation for AWS Resource Access Manager.

Gets the specified invitations for resource sharing.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation GetResourceShareInvitations for usage and error information.

Returned Error Codes:

  • ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" The Amazon Resource Name (ARN) for an invitation was not found.

  • ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" The specified value for MaxResults is not valid.

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitations

GetResourceShareInvitationsPages

func (c *RAM) GetResourceShareInvitationsPages(input *GetResourceShareInvitationsInput, fn func(*GetResourceShareInvitationsOutput, bool) bool) error

GetResourceShareInvitationsPages iterates over the pages of a GetResourceShareInvitations operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See GetResourceShareInvitations method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a GetResourceShareInvitations operation. pageNum := 0 err := client.GetResourceShareInvitationsPages(params, func(page *GetResourceShareInvitationsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

GetResourceShareInvitationsPagesWithContext

func (c *RAM) GetResourceShareInvitationsPagesWithContext(ctx aws.Context, input *GetResourceShareInvitationsInput, fn func(*GetResourceShareInvitationsOutput, bool) bool, opts ...request.Option) error

GetResourceShareInvitationsPagesWithContext same as GetResourceShareInvitationsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetResourceShareInvitationsRequest

func (c *RAM) GetResourceShareInvitationsRequest(input *GetResourceShareInvitationsInput) (req *request.Request, output *GetResourceShareInvitationsOutput)

GetResourceShareInvitationsRequest generates a "aws/request.Request" representing the client's request for the GetResourceShareInvitations operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetResourceShareInvitations for more information on using the GetResourceShareInvitations API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetResourceShareInvitationsRequest method. req, resp := client.GetResourceShareInvitationsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitations

GetResourceShareInvitationsWithContext

func (c *RAM) GetResourceShareInvitationsWithContext(ctx aws.Context, input *GetResourceShareInvitationsInput, opts ...request.Option) (*GetResourceShareInvitationsOutput, error)

GetResourceShareInvitationsWithContext is the same as GetResourceShareInvitations with the addition of the ability to pass a context and additional request options.

See GetResourceShareInvitations for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetResourceShares

func (c *RAM) GetResourceShares(input *GetResourceSharesInput) (*GetResourceSharesOutput, error)

GetResourceShares API operation for AWS Resource Access Manager.

Gets the specified resource shares or all of your resource shares.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation GetResourceShares for usage and error information.

Returned Error Codes:

  • ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShares

GetResourceSharesPages

func (c *RAM) GetResourceSharesPages(input *GetResourceSharesInput, fn func(*GetResourceSharesOutput, bool) bool) error

GetResourceSharesPages iterates over the pages of a GetResourceShares operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See GetResourceShares method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a GetResourceShares operation. pageNum := 0 err := client.GetResourceSharesPages(params, func(page *GetResourceSharesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

GetResourceSharesPagesWithContext

func (c *RAM) GetResourceSharesPagesWithContext(ctx aws.Context, input *GetResourceSharesInput, fn func(*GetResourceSharesOutput, bool) bool, opts ...request.Option) error

GetResourceSharesPagesWithContext same as GetResourceSharesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetResourceSharesRequest

func (c *RAM) GetResourceSharesRequest(input *GetResourceSharesInput) (req *request.Request, output *GetResourceSharesOutput)

GetResourceSharesRequest generates a "aws/request.Request" representing the client's request for the GetResourceShares operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetResourceShares for more information on using the GetResourceShares API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetResourceSharesRequest method. req, resp := client.GetResourceSharesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShares

GetResourceSharesWithContext

func (c *RAM) GetResourceSharesWithContext(ctx aws.Context, input *GetResourceSharesInput, opts ...request.Option) (*GetResourceSharesOutput, error)

GetResourceSharesWithContext is the same as GetResourceShares with the addition of the ability to pass a context and additional request options.

See GetResourceShares for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListPrincipals

func (c *RAM) ListPrincipals(input *ListPrincipalsInput) (*ListPrincipalsOutput, error)

ListPrincipals API operation for AWS Resource Access Manager.

Lists the principals with access to the specified resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation ListPrincipals for usage and error information.

Returned Error Codes:

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.

  • ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipals

ListPrincipalsPages

func (c *RAM) ListPrincipalsPages(input *ListPrincipalsInput, fn func(*ListPrincipalsOutput, bool) bool) error

ListPrincipalsPages iterates over the pages of a ListPrincipals operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListPrincipals method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListPrincipals operation. pageNum := 0 err := client.ListPrincipalsPages(params, func(page *ListPrincipalsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListPrincipalsPagesWithContext

func (c *RAM) ListPrincipalsPagesWithContext(ctx aws.Context, input *ListPrincipalsInput, fn func(*ListPrincipalsOutput, bool) bool, opts ...request.Option) error

ListPrincipalsPagesWithContext same as ListPrincipalsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListPrincipalsRequest

func (c *RAM) ListPrincipalsRequest(input *ListPrincipalsInput) (req *request.Request, output *ListPrincipalsOutput)

ListPrincipalsRequest generates a "aws/request.Request" representing the client's request for the ListPrincipals operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListPrincipals for more information on using the ListPrincipals API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListPrincipalsRequest method. req, resp := client.ListPrincipalsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipals

ListPrincipalsWithContext

func (c *RAM) ListPrincipalsWithContext(ctx aws.Context, input *ListPrincipalsInput, opts ...request.Option) (*ListPrincipalsOutput, error)

ListPrincipalsWithContext is the same as ListPrincipals with the addition of the ability to pass a context and additional request options.

See ListPrincipals for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListResources

func (c *RAM) ListResources(input *ListResourcesInput) (*ListResourcesOutput, error)

ListResources API operation for AWS Resource Access Manager.

Lists the resources that the specified principal can access.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation ListResources for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidResourceTypeException "InvalidResourceTypeException" The specified resource type is not valid.

  • ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResources

ListResourcesPages

func (c *RAM) ListResourcesPages(input *ListResourcesInput, fn func(*ListResourcesOutput, bool) bool) error

ListResourcesPages iterates over the pages of a ListResources operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListResources method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListResources operation. pageNum := 0 err := client.ListResourcesPages(params, func(page *ListResourcesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListResourcesPagesWithContext

func (c *RAM) ListResourcesPagesWithContext(ctx aws.Context, input *ListResourcesInput, fn func(*ListResourcesOutput, bool) bool, opts ...request.Option) error

ListResourcesPagesWithContext same as ListResourcesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListResourcesRequest

func (c *RAM) ListResourcesRequest(input *ListResourcesInput) (req *request.Request, output *ListResourcesOutput)

ListResourcesRequest generates a "aws/request.Request" representing the client's request for the ListResources operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListResources for more information on using the ListResources API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListResourcesRequest method. req, resp := client.ListResourcesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResources

ListResourcesWithContext

func (c *RAM) ListResourcesWithContext(ctx aws.Context, input *ListResourcesInput, opts ...request.Option) (*ListResourcesOutput, error)

ListResourcesWithContext is the same as ListResources with the addition of the ability to pass a context and additional request options.

See ListResources for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RejectResourceShareInvitation

func (c *RAM) RejectResourceShareInvitation(input *RejectResourceShareInvitationInput) (*RejectResourceShareInvitationOutput, error)

RejectResourceShareInvitation API operation for AWS Resource Access Manager.

Rejects an invitation to a resource share from another AWS account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation RejectResourceShareInvitation for usage and error information.

Returned Error Codes:

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.

  • ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" The Amazon Resource Name (ARN) for an invitation was not found.

  • ErrCodeResourceShareInvitationAlreadyAcceptedException "ResourceShareInvitationAlreadyAcceptedException" The invitation was already accepted.

  • ErrCodeResourceShareInvitationAlreadyRejectedException "ResourceShareInvitationAlreadyRejectedException" The invitation was already rejected.

  • ErrCodeResourceShareInvitationExpiredException "ResourceShareInvitationExpiredException" The invitation is expired.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitation

RejectResourceShareInvitationRequest

func (c *RAM) RejectResourceShareInvitationRequest(input *RejectResourceShareInvitationInput) (req *request.Request, output *RejectResourceShareInvitationOutput)

RejectResourceShareInvitationRequest generates a "aws/request.Request" representing the client's request for the RejectResourceShareInvitation operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RejectResourceShareInvitation for more information on using the RejectResourceShareInvitation API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RejectResourceShareInvitationRequest method. req, resp := client.RejectResourceShareInvitationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitation

RejectResourceShareInvitationWithContext

func (c *RAM) RejectResourceShareInvitationWithContext(ctx aws.Context, input *RejectResourceShareInvitationInput, opts ...request.Option) (*RejectResourceShareInvitationOutput, error)

RejectResourceShareInvitationWithContext is the same as RejectResourceShareInvitation with the addition of the ability to pass a context and additional request options.

See RejectResourceShareInvitation for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

TagResource

func (c *RAM) TagResource(input *TagResourceInput) (*TagResourceOutput, error)

TagResource API operation for AWS Resource Access Manager.

Adds the specified tags to the specified resource share.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation TagResource for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeTagLimitExceededException "TagLimitExceededException" The requested tags exceed the limit for your account.

  • ErrCodeResourceArnNotFoundException "ResourceArnNotFoundException" An Amazon Resource Name (ARN) was not found.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResource

TagResourceRequest

func (c *RAM) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)

TagResourceRequest generates a "aws/request.Request" representing the client's request for the TagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TagResource for more information on using the TagResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TagResourceRequest method. req, resp := client.TagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResource

TagResourceWithContext

func (c *RAM) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)

TagResourceWithContext is the same as TagResource with the addition of the ability to pass a context and additional request options.

See TagResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UntagResource

func (c *RAM) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)

UntagResource API operation for AWS Resource Access Manager.

Removes the specified tags from the specified resource share.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation UntagResource for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource

UntagResourceRequest

func (c *RAM) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)

UntagResourceRequest generates a "aws/request.Request" representing the client's request for the UntagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UntagResource for more information on using the UntagResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UntagResourceRequest method. req, resp := client.UntagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource

UntagResourceWithContext

func (c *RAM) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)

UntagResourceWithContext is the same as UntagResource with the addition of the ability to pass a context and additional request options.

See UntagResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateResourceShare

func (c *RAM) UpdateResourceShare(input *UpdateResourceShareInput) (*UpdateResourceShareOutput, error)

UpdateResourceShare API operation for AWS Resource Access Manager.

Updates the specified resource share.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Resource Access Manager's API operation UpdateResourceShare for usage and error information.

Returned Error Codes:

  • ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" A client token input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.

  • ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" A required input parameter is missing.

  • ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.

  • ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.

  • ErrCodeInvalidClientTokenException "InvalidClientTokenException" A client token is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.

  • ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.

  • ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShare

UpdateResourceShareRequest

func (c *RAM) UpdateResourceShareRequest(input *UpdateResourceShareInput) (req *request.Request, output *UpdateResourceShareOutput)

UpdateResourceShareRequest generates a "aws/request.Request" representing the client's request for the UpdateResourceShare operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateResourceShare for more information on using the UpdateResourceShare API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateResourceShareRequest method. req, resp := client.UpdateResourceShareRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShare

UpdateResourceShareWithContext

func (c *RAM) UpdateResourceShareWithContext(ctx aws.Context, input *UpdateResourceShareInput, opts ...request.Option) (*UpdateResourceShareOutput, error)

UpdateResourceShareWithContext is the same as UpdateResourceShare with the addition of the ability to pass a context and additional request options.

See UpdateResourceShare for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

On this page: