package ram
import "github.com/aws/aws-sdk-go-v2/service/ram"
Package ram provides the client and types for making API requests to AWS Resource Access Manager.
Use AWS Resource Access Manager to share AWS resources between AWS accounts. To share a resource, you create a resource share, associate the resource with the resource share, and specify the principals that can access the resource. The following principals are supported:
The ID of an AWS account
The Amazon Resource Name (ARN) of an OU from AWS Organizations
The Amazon Resource Name (ARN) of an organization from AWS Organizations
If you specify an AWS account that doesn't exist in the same organization as the account that owns the resource share, the owner of the specified account receives an invitation to accept the resource share. After the owner accepts the invitation, they can access the resources in the resource share. An administrator of the specified account can use IAM policies to restrict access resources in the resource share.
See https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04 for more information on this service.
See ram package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/ram/
Using the Client
To AWS Resource Access Manager with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the AWS Resource Access Manager client RAM for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/ram/#New
Index ¶
- Constants
- type AcceptResourceShareInvitationInput
- func (s AcceptResourceShareInvitationInput) GoString() string
- func (s AcceptResourceShareInvitationInput) MarshalFields(e protocol.FieldEncoder) error
- func (s AcceptResourceShareInvitationInput) String() string
- func (s *AcceptResourceShareInvitationInput) Validate() error
- type AcceptResourceShareInvitationOutput
- func (s AcceptResourceShareInvitationOutput) GoString() string
- func (s AcceptResourceShareInvitationOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s AcceptResourceShareInvitationOutput) SDKResponseMetadata() aws.Response
- func (s AcceptResourceShareInvitationOutput) String() string
- type AcceptResourceShareInvitationRequest
- type AssociateResourceShareInput
- func (s AssociateResourceShareInput) GoString() string
- func (s AssociateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
- func (s AssociateResourceShareInput) String() string
- func (s *AssociateResourceShareInput) Validate() error
- type AssociateResourceShareOutput
- func (s AssociateResourceShareOutput) GoString() string
- func (s AssociateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s AssociateResourceShareOutput) SDKResponseMetadata() aws.Response
- func (s AssociateResourceShareOutput) String() string
- type AssociateResourceShareRequest
- type CreateResourceShareInput
- func (s CreateResourceShareInput) GoString() string
- func (s CreateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
- func (s CreateResourceShareInput) String() string
- func (s *CreateResourceShareInput) Validate() error
- type CreateResourceShareOutput
- func (s CreateResourceShareOutput) GoString() string
- func (s CreateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s CreateResourceShareOutput) SDKResponseMetadata() aws.Response
- func (s CreateResourceShareOutput) String() string
- type CreateResourceShareRequest
- type DeleteResourceShareInput
- func (s DeleteResourceShareInput) GoString() string
- func (s DeleteResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
- func (s DeleteResourceShareInput) String() string
- func (s *DeleteResourceShareInput) Validate() error
- type DeleteResourceShareOutput
- func (s DeleteResourceShareOutput) GoString() string
- func (s DeleteResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s DeleteResourceShareOutput) SDKResponseMetadata() aws.Response
- func (s DeleteResourceShareOutput) String() string
- type DeleteResourceShareRequest
- type DisassociateResourceShareInput
- func (s DisassociateResourceShareInput) GoString() string
- func (s DisassociateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
- func (s DisassociateResourceShareInput) String() string
- func (s *DisassociateResourceShareInput) Validate() error
- type DisassociateResourceShareOutput
- func (s DisassociateResourceShareOutput) GoString() string
- func (s DisassociateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s DisassociateResourceShareOutput) SDKResponseMetadata() aws.Response
- func (s DisassociateResourceShareOutput) String() string
- type DisassociateResourceShareRequest
- type EnableSharingWithAwsOrganizationInput
- func (s EnableSharingWithAwsOrganizationInput) GoString() string
- func (s EnableSharingWithAwsOrganizationInput) MarshalFields(e protocol.FieldEncoder) error
- func (s EnableSharingWithAwsOrganizationInput) String() string
- type EnableSharingWithAwsOrganizationOutput
- func (s EnableSharingWithAwsOrganizationOutput) GoString() string
- func (s EnableSharingWithAwsOrganizationOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s EnableSharingWithAwsOrganizationOutput) SDKResponseMetadata() aws.Response
- func (s EnableSharingWithAwsOrganizationOutput) String() string
- type EnableSharingWithAwsOrganizationRequest
- type GetResourcePoliciesInput
- func (s GetResourcePoliciesInput) GoString() string
- func (s GetResourcePoliciesInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetResourcePoliciesInput) String() string
- func (s *GetResourcePoliciesInput) Validate() error
- type GetResourcePoliciesOutput
- func (s GetResourcePoliciesOutput) GoString() string
- func (s GetResourcePoliciesOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetResourcePoliciesOutput) SDKResponseMetadata() aws.Response
- func (s GetResourcePoliciesOutput) String() string
- type GetResourcePoliciesPager
- type GetResourcePoliciesRequest
- func (p *GetResourcePoliciesRequest) Paginate(opts ...aws.Option) GetResourcePoliciesPager
- func (r GetResourcePoliciesRequest) Send(ctx context.Context) (*GetResourcePoliciesOutput, error)
- type GetResourceShareAssociationsInput
- func (s GetResourceShareAssociationsInput) GoString() string
- func (s GetResourceShareAssociationsInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetResourceShareAssociationsInput) String() string
- func (s *GetResourceShareAssociationsInput) Validate() error
- type GetResourceShareAssociationsOutput
- func (s GetResourceShareAssociationsOutput) GoString() string
- func (s GetResourceShareAssociationsOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetResourceShareAssociationsOutput) SDKResponseMetadata() aws.Response
- func (s GetResourceShareAssociationsOutput) String() string
- type GetResourceShareAssociationsPager
- type GetResourceShareAssociationsRequest
- func (p *GetResourceShareAssociationsRequest) Paginate(opts ...aws.Option) GetResourceShareAssociationsPager
- func (r GetResourceShareAssociationsRequest) Send(ctx context.Context) (*GetResourceShareAssociationsOutput, error)
- type GetResourceShareInvitationsInput
- func (s GetResourceShareInvitationsInput) GoString() string
- func (s GetResourceShareInvitationsInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetResourceShareInvitationsInput) String() string
- func (s *GetResourceShareInvitationsInput) Validate() error
- type GetResourceShareInvitationsOutput
- func (s GetResourceShareInvitationsOutput) GoString() string
- func (s GetResourceShareInvitationsOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetResourceShareInvitationsOutput) SDKResponseMetadata() aws.Response
- func (s GetResourceShareInvitationsOutput) String() string
- type GetResourceShareInvitationsPager
- type GetResourceShareInvitationsRequest
- func (p *GetResourceShareInvitationsRequest) Paginate(opts ...aws.Option) GetResourceShareInvitationsPager
- func (r GetResourceShareInvitationsRequest) Send(ctx context.Context) (*GetResourceShareInvitationsOutput, error)
- type GetResourceSharesInput
- func (s GetResourceSharesInput) GoString() string
- func (s GetResourceSharesInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetResourceSharesInput) String() string
- func (s *GetResourceSharesInput) Validate() error
- type GetResourceSharesOutput
- func (s GetResourceSharesOutput) GoString() string
- func (s GetResourceSharesOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetResourceSharesOutput) SDKResponseMetadata() aws.Response
- func (s GetResourceSharesOutput) String() string
- type GetResourceSharesPager
- type GetResourceSharesRequest
- func (p *GetResourceSharesRequest) Paginate(opts ...aws.Option) GetResourceSharesPager
- func (r GetResourceSharesRequest) Send(ctx context.Context) (*GetResourceSharesOutput, error)
- type ListPrincipalsInput
- func (s ListPrincipalsInput) GoString() string
- func (s ListPrincipalsInput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListPrincipalsInput) String() string
- func (s *ListPrincipalsInput) Validate() error
- type ListPrincipalsOutput
- func (s ListPrincipalsOutput) GoString() string
- func (s ListPrincipalsOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListPrincipalsOutput) SDKResponseMetadata() aws.Response
- func (s ListPrincipalsOutput) String() string
- type ListPrincipalsPager
- type ListPrincipalsRequest
- func (p *ListPrincipalsRequest) Paginate(opts ...aws.Option) ListPrincipalsPager
- func (r ListPrincipalsRequest) Send(ctx context.Context) (*ListPrincipalsOutput, error)
- type ListResourcesInput
- func (s ListResourcesInput) GoString() string
- func (s ListResourcesInput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListResourcesInput) String() string
- func (s *ListResourcesInput) Validate() error
- type ListResourcesOutput
- func (s ListResourcesOutput) GoString() string
- func (s ListResourcesOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListResourcesOutput) SDKResponseMetadata() aws.Response
- func (s ListResourcesOutput) String() string
- type ListResourcesPager
- type ListResourcesRequest
- func (p *ListResourcesRequest) Paginate(opts ...aws.Option) ListResourcesPager
- func (r ListResourcesRequest) Send(ctx context.Context) (*ListResourcesOutput, error)
- type Principal
- func (s Principal) GoString() string
- func (s Principal) MarshalFields(e protocol.FieldEncoder) error
- func (s Principal) String() string
- type RAM
- func New(config aws.Config) *RAM
- func (c *RAM) AcceptResourceShareInvitationRequest(input *AcceptResourceShareInvitationInput) AcceptResourceShareInvitationRequest
- func (c *RAM) AssociateResourceShareRequest(input *AssociateResourceShareInput) AssociateResourceShareRequest
- func (c *RAM) CreateResourceShareRequest(input *CreateResourceShareInput) CreateResourceShareRequest
- func (c *RAM) DeleteResourceShareRequest(input *DeleteResourceShareInput) DeleteResourceShareRequest
- func (c *RAM) DisassociateResourceShareRequest(input *DisassociateResourceShareInput) DisassociateResourceShareRequest
- func (c *RAM) EnableSharingWithAwsOrganizationRequest(input *EnableSharingWithAwsOrganizationInput) EnableSharingWithAwsOrganizationRequest
- func (c *RAM) GetResourcePoliciesRequest(input *GetResourcePoliciesInput) GetResourcePoliciesRequest
- func (c *RAM) GetResourceShareAssociationsRequest(input *GetResourceShareAssociationsInput) GetResourceShareAssociationsRequest
- func (c *RAM) GetResourceShareInvitationsRequest(input *GetResourceShareInvitationsInput) GetResourceShareInvitationsRequest
- func (c *RAM) GetResourceSharesRequest(input *GetResourceSharesInput) GetResourceSharesRequest
- func (c *RAM) ListPrincipalsRequest(input *ListPrincipalsInput) ListPrincipalsRequest
- func (c *RAM) ListResourcesRequest(input *ListResourcesInput) ListResourcesRequest
- func (c *RAM) RejectResourceShareInvitationRequest(input *RejectResourceShareInvitationInput) RejectResourceShareInvitationRequest
- func (c *RAM) TagResourceRequest(input *TagResourceInput) TagResourceRequest
- func (c *RAM) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
- func (c *RAM) UpdateResourceShareRequest(input *UpdateResourceShareInput) UpdateResourceShareRequest
- type RejectResourceShareInvitationInput
- func (s RejectResourceShareInvitationInput) GoString() string
- func (s RejectResourceShareInvitationInput) MarshalFields(e protocol.FieldEncoder) error
- func (s RejectResourceShareInvitationInput) String() string
- func (s *RejectResourceShareInvitationInput) Validate() error
- type RejectResourceShareInvitationOutput
- func (s RejectResourceShareInvitationOutput) GoString() string
- func (s RejectResourceShareInvitationOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s RejectResourceShareInvitationOutput) SDKResponseMetadata() aws.Response
- func (s RejectResourceShareInvitationOutput) String() string
- type RejectResourceShareInvitationRequest
- type Resource
- func (s Resource) GoString() string
- func (s Resource) MarshalFields(e protocol.FieldEncoder) error
- func (s Resource) String() string
- type ResourceOwner
- func (enum ResourceOwner) MarshalValue() (string, error)
- func (enum ResourceOwner) MarshalValueBuf(b []byte) ([]byte, error)
- type ResourceShare
- func (s ResourceShare) GoString() string
- func (s ResourceShare) MarshalFields(e protocol.FieldEncoder) error
- func (s ResourceShare) String() string
- type ResourceShareAssociation
- func (s ResourceShareAssociation) GoString() string
- func (s ResourceShareAssociation) MarshalFields(e protocol.FieldEncoder) error
- func (s ResourceShareAssociation) String() string
- type ResourceShareAssociationStatus
- func (enum ResourceShareAssociationStatus) MarshalValue() (string, error)
- func (enum ResourceShareAssociationStatus) MarshalValueBuf(b []byte) ([]byte, error)
- type ResourceShareAssociationType
- func (enum ResourceShareAssociationType) MarshalValue() (string, error)
- func (enum ResourceShareAssociationType) MarshalValueBuf(b []byte) ([]byte, error)
- type ResourceShareInvitation
- func (s ResourceShareInvitation) GoString() string
- func (s ResourceShareInvitation) MarshalFields(e protocol.FieldEncoder) error
- func (s ResourceShareInvitation) String() string
- type ResourceShareInvitationStatus
- func (enum ResourceShareInvitationStatus) MarshalValue() (string, error)
- func (enum ResourceShareInvitationStatus) MarshalValueBuf(b []byte) ([]byte, error)
- type ResourceShareStatus
- func (enum ResourceShareStatus) MarshalValue() (string, error)
- func (enum ResourceShareStatus) MarshalValueBuf(b []byte) ([]byte, error)
- type ResourceStatus
- func (enum ResourceStatus) MarshalValue() (string, error)
- func (enum ResourceStatus) MarshalValueBuf(b []byte) ([]byte, error)
- type Tag
- func (s Tag) GoString() string
- func (s Tag) MarshalFields(e protocol.FieldEncoder) error
- func (s Tag) String() string
- type TagFilter
- func (s TagFilter) GoString() string
- func (s TagFilter) MarshalFields(e protocol.FieldEncoder) error
- func (s TagFilter) String() string
- type TagResourceInput
- func (s TagResourceInput) GoString() string
- func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error
- func (s TagResourceInput) String() string
- func (s *TagResourceInput) Validate() error
- type TagResourceOutput
- func (s TagResourceOutput) GoString() string
- func (s TagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s TagResourceOutput) SDKResponseMetadata() aws.Response
- func (s TagResourceOutput) String() string
- type TagResourceRequest
- type UntagResourceInput
- func (s UntagResourceInput) GoString() string
- func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error
- func (s UntagResourceInput) String() string
- func (s *UntagResourceInput) Validate() error
- type UntagResourceOutput
- func (s UntagResourceOutput) GoString() string
- func (s UntagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s UntagResourceOutput) SDKResponseMetadata() aws.Response
- func (s UntagResourceOutput) String() string
- type UntagResourceRequest
- type UpdateResourceShareInput
- func (s UpdateResourceShareInput) GoString() string
- func (s UpdateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
- func (s UpdateResourceShareInput) String() string
- func (s *UpdateResourceShareInput) Validate() error
- type UpdateResourceShareOutput
- func (s UpdateResourceShareOutput) GoString() string
- func (s UpdateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s UpdateResourceShareOutput) SDKResponseMetadata() aws.Response
- func (s UpdateResourceShareOutput) String() string
- type UpdateResourceShareRequest
Constants ¶
const ( // ErrCodeIdempotentParameterMismatchException for service response error code // "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. ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException" // ErrCodeInvalidClientTokenException for service response error code // "InvalidClientTokenException". // // A client token is not valid. ErrCodeInvalidClientTokenException = "InvalidClientTokenException" // ErrCodeInvalidMaxResultsException for service response error code // "InvalidMaxResultsException". // // The specified value for MaxResults is not valid. ErrCodeInvalidMaxResultsException = "InvalidMaxResultsException" // ErrCodeInvalidNextTokenException for service response error code // "InvalidNextTokenException". // // The specified value for NextToken is not valid. ErrCodeInvalidNextTokenException = "InvalidNextTokenException" // ErrCodeInvalidParameterException for service response error code // "InvalidParameterException". // // A parameter is not valid. ErrCodeInvalidParameterException = "InvalidParameterException" // ErrCodeInvalidResourceTypeException for service response error code // "InvalidResourceTypeException". // // The specified resource type is not valid. ErrCodeInvalidResourceTypeException = "InvalidResourceTypeException" // ErrCodeInvalidStateTransitionException for service response error code // "InvalidStateTransitionException". // // The requested state transition is not valid. ErrCodeInvalidStateTransitionException = "InvalidStateTransitionException" // ErrCodeMalformedArnException for service response error code // "MalformedArnException". // // The format of an Amazon Resource Name (ARN) is not valid. ErrCodeMalformedArnException = "MalformedArnException" // ErrCodeMissingRequiredParameterException for service response error code // "MissingRequiredParameterException". // // A required input parameter is missing. ErrCodeMissingRequiredParameterException = "MissingRequiredParameterException" // ErrCodeOperationNotPermittedException for service response error code // "OperationNotPermittedException". // // The requested operation is not permitted. ErrCodeOperationNotPermittedException = "OperationNotPermittedException" // ErrCodeResourceArnNotFoundException for service response error code // "ResourceArnNotFoundException". // // An Amazon Resource Name (ARN) was not found. ErrCodeResourceArnNotFoundException = "ResourceArnNotFoundException" // ErrCodeResourceShareInvitationAlreadyAcceptedException for service response error code // "ResourceShareInvitationAlreadyAcceptedException". // // The invitation was already accepted. = "ResourceShareInvitationAlreadyAcceptedException" // ErrCodeResourceShareInvitationAlreadyRejectedException for service response error code // "ResourceShareInvitationAlreadyRejectedException". // // The invitation was already rejected. = "ResourceShareInvitationAlreadyRejectedException" // ErrCodeResourceShareInvitationArnNotFoundException for service response error code // "ResourceShareInvitationArnNotFoundException". // // The Amazon Resource Name (ARN) for an invitation was not found. = "ResourceShareInvitationArnNotFoundException" // ErrCodeResourceShareInvitationExpiredException for service response error code // "ResourceShareInvitationExpiredException". // // The invitation is expired. = "ResourceShareInvitationExpiredException" // ErrCodeResourceShareLimitExceededException for service response error code // "ResourceShareLimitExceededException". // // The requested resource share exceeds the limit for your account. = "ResourceShareLimitExceededException" // ErrCodeServerInternalException for service response error code // "ServerInternalException". // // The service could not respond to the request due to an internal problem. ErrCodeServerInternalException = "ServerInternalException" // ErrCodeServiceUnavailableException for service response error code // "ServiceUnavailableException". // // The service is not available. = "ServiceUnavailableException" // ErrCodeTagLimitExceededException for service response error code // "TagLimitExceededException". // // The requested tags exceed the limit for your account. ErrCodeTagLimitExceededException = "TagLimitExceededException" // ErrCodeUnknownResourceException for service response error code // "UnknownResourceException". // // A specified resource was not found. ErrCodeUnknownResourceException = "UnknownResourceException" )
const ( ServiceName = "ram" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Types ¶
type AcceptResourceShareInvitationInput ¶
type AcceptResourceShareInvitationInput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // The Amazon Resource Name (ARN) of the invitation. // // ResourceShareInvitationArn is a required field *string `locationName:"resourceShareInvitationArn" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitationRequest
func (AcceptResourceShareInvitationInput) GoString ¶
func (s AcceptResourceShareInvitationInput) GoString() string
GoString returns the string representation
func (AcceptResourceShareInvitationInput) MarshalFields ¶
func (s AcceptResourceShareInvitationInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AcceptResourceShareInvitationInput) String ¶
func (s AcceptResourceShareInvitationInput) String() string
String returns the string representation
func (*AcceptResourceShareInvitationInput) Validate ¶
func (s *AcceptResourceShareInvitationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AcceptResourceShareInvitationOutput ¶
type AcceptResourceShareInvitationOutput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // Information about the invitation. *ResourceShareInvitation `locationName:"resourceShareInvitation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitationResponse
func (AcceptResourceShareInvitationOutput) GoString ¶
func (s AcceptResourceShareInvitationOutput) GoString() string
GoString returns the string representation
func (AcceptResourceShareInvitationOutput) MarshalFields ¶
func (s AcceptResourceShareInvitationOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AcceptResourceShareInvitationOutput) SDKResponseMetadata ¶
func (s AcceptResourceShareInvitationOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (AcceptResourceShareInvitationOutput) String ¶
func (s AcceptResourceShareInvitationOutput) String() string
String returns the string representation
type AcceptResourceShareInvitationRequest ¶
type AcceptResourceShareInvitationRequest struct { *aws.Request *AcceptResourceShareInvitationInput func(*AcceptResourceShareInvitationInput) AcceptResourceShareInvitationRequest }
AcceptResourceShareInvitationRequest is a API request type for the AcceptResourceShareInvitation API operation.
func (AcceptResourceShareInvitationRequest) Send ¶
func (r AcceptResourceShareInvitationRequest) Send(ctx context.Context) (*AcceptResourceShareInvitationOutput, error)
Send marshals and sends the AcceptResourceShareInvitation API request.
type AssociateResourceShareInput ¶
type AssociateResourceShareInput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // The principals. []string `locationName:"principals" type:"list"` // The Amazon Resource Names (ARN) of the resources. []string `locationName:"resourceArns" type:"list"` // The Amazon Resource Name (ARN) of the resource share. // // ResourceShareArn is a required field *string `locationName:"resourceShareArn" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShareRequest
func (AssociateResourceShareInput) GoString ¶
func (s AssociateResourceShareInput) GoString() string
GoString returns the string representation
func (AssociateResourceShareInput) MarshalFields ¶
func (s AssociateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AssociateResourceShareInput) String ¶
func (s AssociateResourceShareInput) String() string
String returns the string representation
func (*AssociateResourceShareInput) Validate ¶
func (s *AssociateResourceShareInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AssociateResourceShareOutput ¶
type AssociateResourceShareOutput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // Information about the associations. []ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShareResponse
func (AssociateResourceShareOutput) GoString ¶
func (s AssociateResourceShareOutput) GoString() string
GoString returns the string representation
func (AssociateResourceShareOutput) MarshalFields ¶
func (s AssociateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AssociateResourceShareOutput) SDKResponseMetadata ¶
func (s AssociateResourceShareOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (AssociateResourceShareOutput) String ¶
func (s AssociateResourceShareOutput) String() string
String returns the string representation
type AssociateResourceShareRequest ¶
type AssociateResourceShareRequest struct { *aws.Request *AssociateResourceShareInput func(*AssociateResourceShareInput) AssociateResourceShareRequest }
AssociateResourceShareRequest is a API request type for the AssociateResourceShare API operation.
func (AssociateResourceShareRequest) Send ¶
func (r AssociateResourceShareRequest) Send(ctx context.Context) (*AssociateResourceShareOutput, error)
Send marshals and sends the AssociateResourceShare API request.
type CreateResourceShareInput ¶
type CreateResourceShareInput struct { // Indicates whether principals outside your organization can be associated // with a resource share. *bool `locationName:"allowExternalPrincipals" type:"boolean"` // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // The name of the resource share. // // Name is a required field *string `locationName:"name" type:"string" required:"true"` // The principals to associate with the resource share. The possible values // are IDs of AWS accounts, the ARN of an OU or organization from AWS Organizations. []string `locationName:"principals" type:"list"` // The Amazon Resource Names (ARN) of the resources to associate with the resource // share. []string `locationName:"resourceArns" type:"list"` // One or more tags. []Tag `locationName:"tags" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShareRequest
func (CreateResourceShareInput) GoString ¶
func (s CreateResourceShareInput) GoString() string
GoString returns the string representation
func (CreateResourceShareInput) MarshalFields ¶
func (s CreateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateResourceShareInput) String ¶
func (s CreateResourceShareInput) String() string
String returns the string representation
func (*CreateResourceShareInput) Validate ¶
func (s *CreateResourceShareInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateResourceShareOutput ¶
type CreateResourceShareOutput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // Information about the resource share. *ResourceShare `locationName:"resourceShare" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShareResponse
func (CreateResourceShareOutput) GoString ¶
func (s CreateResourceShareOutput) GoString() string
GoString returns the string representation
func (CreateResourceShareOutput) MarshalFields ¶
func (s CreateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateResourceShareOutput) SDKResponseMetadata ¶
func (s CreateResourceShareOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateResourceShareOutput) String ¶
func (s CreateResourceShareOutput) String() string
String returns the string representation
type CreateResourceShareRequest ¶
type CreateResourceShareRequest struct { *aws.Request *CreateResourceShareInput func(*CreateResourceShareInput) CreateResourceShareRequest }
CreateResourceShareRequest is a API request type for the CreateResourceShare API operation.
func (CreateResourceShareRequest) Send ¶
func (r CreateResourceShareRequest) Send(ctx context.Context) (*CreateResourceShareOutput, error)
Send marshals and sends the CreateResourceShare API request.
type DeleteResourceShareInput ¶
type DeleteResourceShareInput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `location:"querystring" locationName:"clientToken" type:"string"` // The Amazon Resource Name (ARN) of the resource share. // // ResourceShareArn is a required field *string `location:"querystring" locationName:"resourceShareArn" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShareRequest
func (DeleteResourceShareInput) GoString ¶
func (s DeleteResourceShareInput) GoString() string
GoString returns the string representation
func (DeleteResourceShareInput) MarshalFields ¶
func (s DeleteResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteResourceShareInput) String ¶
func (s DeleteResourceShareInput) String() string
String returns the string representation
func (*DeleteResourceShareInput) Validate ¶
func (s *DeleteResourceShareInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteResourceShareOutput ¶
type DeleteResourceShareOutput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // Indicates whether the request succeeded. *bool `locationName:"returnValue" type:"boolean"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShareResponse
func (DeleteResourceShareOutput) GoString ¶
func (s DeleteResourceShareOutput) GoString() string
GoString returns the string representation
func (DeleteResourceShareOutput) MarshalFields ¶
func (s DeleteResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteResourceShareOutput) SDKResponseMetadata ¶
func (s DeleteResourceShareOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteResourceShareOutput) String ¶
func (s DeleteResourceShareOutput) String() string
String returns the string representation
type DeleteResourceShareRequest ¶
type DeleteResourceShareRequest struct { *aws.Request *DeleteResourceShareInput func(*DeleteResourceShareInput) DeleteResourceShareRequest }
DeleteResourceShareRequest is a API request type for the DeleteResourceShare API operation.
func (DeleteResourceShareRequest) Send ¶
func (r DeleteResourceShareRequest) Send(ctx context.Context) (*DeleteResourceShareOutput, error)
Send marshals and sends the DeleteResourceShare API request.
type DisassociateResourceShareInput ¶
type DisassociateResourceShareInput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // The principals. []string `locationName:"principals" type:"list"` // The Amazon Resource Names (ARN) of the resources. []string `locationName:"resourceArns" type:"list"` // The Amazon Resource Name (ARN) of the resource share. // // ResourceShareArn is a required field *string `locationName:"resourceShareArn" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShareRequest
func (DisassociateResourceShareInput) GoString ¶
func (s DisassociateResourceShareInput) GoString() string
GoString returns the string representation
func (DisassociateResourceShareInput) MarshalFields ¶
func (s DisassociateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DisassociateResourceShareInput) String ¶
func (s DisassociateResourceShareInput) String() string
String returns the string representation
func (*DisassociateResourceShareInput) Validate ¶
func (s *DisassociateResourceShareInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DisassociateResourceShareOutput ¶
type DisassociateResourceShareOutput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // Information about the associations. []ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShareResponse
func (DisassociateResourceShareOutput) GoString ¶
func (s DisassociateResourceShareOutput) GoString() string
GoString returns the string representation
func (DisassociateResourceShareOutput) MarshalFields ¶
func (s DisassociateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DisassociateResourceShareOutput) SDKResponseMetadata ¶
func (s DisassociateResourceShareOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DisassociateResourceShareOutput) String ¶
func (s DisassociateResourceShareOutput) String() string
String returns the string representation
type DisassociateResourceShareRequest ¶
type DisassociateResourceShareRequest struct { *aws.Request *DisassociateResourceShareInput func(*DisassociateResourceShareInput) DisassociateResourceShareRequest }
DisassociateResourceShareRequest is a API request type for the DisassociateResourceShare API operation.
func (DisassociateResourceShareRequest) Send ¶
func (r DisassociateResourceShareRequest) Send(ctx context.Context) (*DisassociateResourceShareOutput, error)
Send marshals and sends the DisassociateResourceShare API request.
type EnableSharingWithAwsOrganizationInput ¶
type EnableSharingWithAwsOrganizationInput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganizationRequest
func (EnableSharingWithAwsOrganizationInput) GoString ¶
func (s EnableSharingWithAwsOrganizationInput) GoString() string
GoString returns the string representation
func (EnableSharingWithAwsOrganizationInput) MarshalFields ¶
func (s EnableSharingWithAwsOrganizationInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (EnableSharingWithAwsOrganizationInput) String ¶
func (s EnableSharingWithAwsOrganizationInput) String() string
String returns the string representation
type EnableSharingWithAwsOrganizationOutput ¶
type EnableSharingWithAwsOrganizationOutput struct { // Indicates whether the request succeeded. ReturnValue *bool `locationName:"returnValue" type:"boolean"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganizationResponse
func (EnableSharingWithAwsOrganizationOutput) GoString ¶
func (s EnableSharingWithAwsOrganizationOutput) GoString() string
GoString returns the string representation
func (EnableSharingWithAwsOrganizationOutput) MarshalFields ¶
func (s EnableSharingWithAwsOrganizationOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (EnableSharingWithAwsOrganizationOutput) SDKResponseMetadata ¶
func (s EnableSharingWithAwsOrganizationOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (EnableSharingWithAwsOrganizationOutput) String ¶
func (s EnableSharingWithAwsOrganizationOutput) String() string
String returns the string representation
type EnableSharingWithAwsOrganizationRequest ¶
type EnableSharingWithAwsOrganizationRequest struct { *aws.Request Input *EnableSharingWithAwsOrganizationInput Copy func(*EnableSharingWithAwsOrganizationInput) EnableSharingWithAwsOrganizationRequest }
EnableSharingWithAwsOrganizationRequest is a API request type for the EnableSharingWithAwsOrganization API operation.
func (EnableSharingWithAwsOrganizationRequest) Send ¶
func (r EnableSharingWithAwsOrganizationRequest) Send(ctx context.Context) (*EnableSharingWithAwsOrganizationOutput, error)
Send marshals and sends the EnableSharingWithAwsOrganization API request.
type GetResourcePoliciesInput ¶
type GetResourcePoliciesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token for the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // The principal. Principal *string `locationName:"principal" type:"string"` // The Amazon Resource Names (ARN) of the resources. // // ResourceArns is a required field ResourceArns []string `locationName:"resourceArns" type:"list" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePoliciesRequest
func (GetResourcePoliciesInput) GoString ¶
func (s GetResourcePoliciesInput) GoString() string
GoString returns the string representation
func (GetResourcePoliciesInput) MarshalFields ¶
func (s GetResourcePoliciesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourcePoliciesInput) String ¶
func (s GetResourcePoliciesInput) String() string
String returns the string representation
func (*GetResourcePoliciesInput) Validate ¶
func (s *GetResourcePoliciesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetResourcePoliciesOutput ¶
type GetResourcePoliciesOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // A key policy document, in JSON format. Policies []string `locationName:"policies" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePoliciesResponse
func (GetResourcePoliciesOutput) GoString ¶
func (s GetResourcePoliciesOutput) GoString() string
GoString returns the string representation
func (GetResourcePoliciesOutput) MarshalFields ¶
func (s GetResourcePoliciesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourcePoliciesOutput) SDKResponseMetadata ¶
func (s GetResourcePoliciesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetResourcePoliciesOutput) String ¶
func (s GetResourcePoliciesOutput) String() string
String returns the string representation
type GetResourcePoliciesPager ¶
GetResourcePoliciesPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*GetResourcePoliciesPager) CurrentPage ¶
func (p *GetResourcePoliciesPager) CurrentPage() *GetResourcePoliciesOutput
type GetResourcePoliciesRequest ¶
type GetResourcePoliciesRequest struct { *aws.Request Input *GetResourcePoliciesInput Copy func(*GetResourcePoliciesInput) GetResourcePoliciesRequest }
GetResourcePoliciesRequest is a API request type for the GetResourcePolicies API operation.
func (*GetResourcePoliciesRequest) Paginate ¶
func (p *GetResourcePoliciesRequest) Paginate(opts ...aws.Option) GetResourcePoliciesPager
Paginate pages iterates over the pages of a GetResourcePoliciesRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetResourcePolicies operation. req := client.GetResourcePoliciesRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (GetResourcePoliciesRequest) Send ¶
func (r GetResourcePoliciesRequest) Send(ctx context.Context) (*GetResourcePoliciesOutput, error)
Send marshals and sends the GetResourcePolicies API request.
type GetResourceShareAssociationsInput ¶
type GetResourceShareAssociationsInput struct { // The status of the association. ResourceShareAssociationStatus `locationName:"associationStatus" type:"string" enum:"true"` // The association type. // // AssociationType is a required field ResourceShareAssociationType `locationName:"associationType" type:"string" required:"true" enum:"true"` // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token for the next page of results. *string `locationName:"nextToken" type:"string"` // The principal. *string `locationName:"principal" type:"string"` // The Amazon Resource Name (ARN) of the resource. *string `locationName:"resourceArn" type:"string"` // The Amazon Resource Names (ARN) of the resource shares. []string `locationName:"resourceShareArns" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociationsRequest
func (GetResourceShareAssociationsInput) GoString ¶
func (s GetResourceShareAssociationsInput) GoString() string
GoString returns the string representation
func (GetResourceShareAssociationsInput) MarshalFields ¶
func (s GetResourceShareAssociationsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceShareAssociationsInput) String ¶
func (s GetResourceShareAssociationsInput) String() string
String returns the string representation
func (*GetResourceShareAssociationsInput) Validate ¶
func (s *GetResourceShareAssociationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetResourceShareAssociationsOutput ¶
type GetResourceShareAssociationsOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. *string `locationName:"nextToken" type:"string"` // Information about the association. []ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociationsResponse
func (GetResourceShareAssociationsOutput) GoString ¶
func (s GetResourceShareAssociationsOutput) GoString() string
GoString returns the string representation
func (GetResourceShareAssociationsOutput) MarshalFields ¶
func (s GetResourceShareAssociationsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceShareAssociationsOutput) SDKResponseMetadata ¶
func (s GetResourceShareAssociationsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetResourceShareAssociationsOutput) String ¶
func (s GetResourceShareAssociationsOutput) String() string
String returns the string representation
type GetResourceShareAssociationsPager ¶
GetResourceShareAssociationsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*GetResourceShareAssociationsPager) CurrentPage ¶
func (p *GetResourceShareAssociationsPager) CurrentPage() *GetResourceShareAssociationsOutput
type GetResourceShareAssociationsRequest ¶
type GetResourceShareAssociationsRequest struct { *aws.Request *GetResourceShareAssociationsInput func(*GetResourceShareAssociationsInput) GetResourceShareAssociationsRequest }
GetResourceShareAssociationsRequest is a API request type for the GetResourceShareAssociations API operation.
func (*GetResourceShareAssociationsRequest) Paginate ¶
func (p *GetResourceShareAssociationsRequest) Paginate(opts ...aws.Option) GetResourceShareAssociationsPager
Paginate pages iterates over the pages of a GetResourceShareAssociationsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetResourceShareAssociations operation. req := client.GetResourceShareAssociationsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (GetResourceShareAssociationsRequest) Send ¶
func (r GetResourceShareAssociationsRequest) Send(ctx context.Context) (*GetResourceShareAssociationsOutput, error)
Send marshals and sends the GetResourceShareAssociations API request.
type GetResourceShareInvitationsInput ¶
type GetResourceShareInvitationsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token for the next page of results. *string `locationName:"nextToken" type:"string"` // The Amazon Resource Names (ARN) of the resource shares. []string `locationName:"resourceShareArns" type:"list"` // The Amazon Resource Names (ARN) of the invitations. []string `locationName:"resourceShareInvitationArns" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitationsRequest
func (GetResourceShareInvitationsInput) GoString ¶
func (s GetResourceShareInvitationsInput) GoString() string
GoString returns the string representation
func (GetResourceShareInvitationsInput) MarshalFields ¶
func (s GetResourceShareInvitationsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceShareInvitationsInput) String ¶
func (s GetResourceShareInvitationsInput) String() string
String returns the string representation
func (*GetResourceShareInvitationsInput) Validate ¶
func (s *GetResourceShareInvitationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetResourceShareInvitationsOutput ¶
type GetResourceShareInvitationsOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. *string `locationName:"nextToken" type:"string"` // Information about the invitations. []ResourceShareInvitation `locationName:"resourceShareInvitations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitationsResponse
func (GetResourceShareInvitationsOutput) GoString ¶
func (s GetResourceShareInvitationsOutput) GoString() string
GoString returns the string representation
func (GetResourceShareInvitationsOutput) MarshalFields ¶
func (s GetResourceShareInvitationsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceShareInvitationsOutput) SDKResponseMetadata ¶
func (s GetResourceShareInvitationsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetResourceShareInvitationsOutput) String ¶
func (s GetResourceShareInvitationsOutput) String() string
String returns the string representation
type GetResourceShareInvitationsPager ¶
GetResourceShareInvitationsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*GetResourceShareInvitationsPager) CurrentPage ¶
func (p *GetResourceShareInvitationsPager) CurrentPage() *GetResourceShareInvitationsOutput
type GetResourceShareInvitationsRequest ¶
type GetResourceShareInvitationsRequest struct { *aws.Request *GetResourceShareInvitationsInput func(*GetResourceShareInvitationsInput) GetResourceShareInvitationsRequest }
GetResourceShareInvitationsRequest is a API request type for the GetResourceShareInvitations API operation.
func (*GetResourceShareInvitationsRequest) Paginate ¶
func (p *GetResourceShareInvitationsRequest) Paginate(opts ...aws.Option) GetResourceShareInvitationsPager
Paginate pages iterates over the pages of a GetResourceShareInvitationsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetResourceShareInvitations operation. req := client.GetResourceShareInvitationsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (GetResourceShareInvitationsRequest) Send ¶
func (r GetResourceShareInvitationsRequest) Send(ctx context.Context) (*GetResourceShareInvitationsOutput, error)
Send marshals and sends the GetResourceShareInvitations API request.
type GetResourceSharesInput ¶
type GetResourceSharesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. *int64 `locationName:"maxResults" min:"1" type:"integer"` // The name of the resource share. *string `locationName:"name" type:"string"` // The token for the next page of results. *string `locationName:"nextToken" type:"string"` // The type of owner. // // ResourceOwner is a required field ResourceOwner `locationName:"resourceOwner" type:"string" required:"true" enum:"true"` // The Amazon Resource Names (ARN) of the resource shares. []string `locationName:"resourceShareArns" type:"list"` // The status of the resource share. ResourceShareStatus `locationName:"resourceShareStatus" type:"string" enum:"true"` // One or more tag filters. []TagFilter `locationName:"tagFilters" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceSharesRequest
func (GetResourceSharesInput) GoString ¶
func (s GetResourceSharesInput) GoString() string
GoString returns the string representation
func (GetResourceSharesInput) MarshalFields ¶
func (s GetResourceSharesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceSharesInput) String ¶
func (s GetResourceSharesInput) String() string
String returns the string representation
func (*GetResourceSharesInput) Validate ¶
func (s *GetResourceSharesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetResourceSharesOutput ¶
type GetResourceSharesOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. *string `locationName:"nextToken" type:"string"` // Information about the resource shares. []ResourceShare `locationName:"resourceShares" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceSharesResponse
func (GetResourceSharesOutput) GoString ¶
func (s GetResourceSharesOutput) GoString() string
GoString returns the string representation
func (GetResourceSharesOutput) MarshalFields ¶
func (s GetResourceSharesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceSharesOutput) SDKResponseMetadata ¶
func (s GetResourceSharesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetResourceSharesOutput) String ¶
func (s GetResourceSharesOutput) String() string
String returns the string representation
type GetResourceSharesPager ¶
GetResourceSharesPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*GetResourceSharesPager) CurrentPage ¶
func (p *GetResourceSharesPager) CurrentPage() *GetResourceSharesOutput
type GetResourceSharesRequest ¶
type GetResourceSharesRequest struct { *aws.Request *GetResourceSharesInput func(*GetResourceSharesInput) GetResourceSharesRequest }
GetResourceSharesRequest is a API request type for the GetResourceShares API operation.
func (*GetResourceSharesRequest) Paginate ¶
func (p *GetResourceSharesRequest) Paginate(opts ...aws.Option) GetResourceSharesPager
Paginate pages iterates over the pages of a GetResourceSharesRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetResourceShares operation. req := client.GetResourceSharesRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (GetResourceSharesRequest) Send ¶
func (r GetResourceSharesRequest) Send(ctx context.Context) (*GetResourceSharesOutput, error)
Send marshals and sends the GetResourceShares API request.
type ListPrincipalsInput ¶
type ListPrincipalsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token for the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // The principals. Principals []string `locationName:"principals" type:"list"` // The Amazon Resource Name (ARN) of the resource. ResourceArn *string `locationName:"resourceArn" type:"string"` // The type of owner. // // ResourceOwner is a required field ResourceOwner ResourceOwner `locationName:"resourceOwner" type:"string" required:"true" enum:"true"` // The Amazon Resource Names (ARN) of the resource shares. []string `locationName:"resourceShareArns" type:"list"` // The resource type. ResourceType *string `locationName:"resourceType" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipalsRequest
func (ListPrincipalsInput) GoString ¶
func (s ListPrincipalsInput) GoString() string
GoString returns the string representation
func (ListPrincipalsInput) MarshalFields ¶
func (s ListPrincipalsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListPrincipalsInput) String ¶
func (s ListPrincipalsInput) String() string
String returns the string representation
func (*ListPrincipalsInput) Validate ¶
func (s *ListPrincipalsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListPrincipalsOutput ¶
type ListPrincipalsOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // The principals. Principals []Principal `locationName:"principals" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipalsResponse
func (ListPrincipalsOutput) GoString ¶
func (s ListPrincipalsOutput) GoString() string
GoString returns the string representation
func (ListPrincipalsOutput) MarshalFields ¶
func (s ListPrincipalsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListPrincipalsOutput) SDKResponseMetadata ¶
func (s ListPrincipalsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListPrincipalsOutput) String ¶
func (s ListPrincipalsOutput) String() string
String returns the string representation
type ListPrincipalsPager ¶
ListPrincipalsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListPrincipalsPager) CurrentPage ¶
func (p *ListPrincipalsPager) CurrentPage() *ListPrincipalsOutput
type ListPrincipalsRequest ¶
type ListPrincipalsRequest struct { *aws.Request Input *ListPrincipalsInput Copy func(*ListPrincipalsInput) ListPrincipalsRequest }
ListPrincipalsRequest is a API request type for the ListPrincipals API operation.
func (*ListPrincipalsRequest) Paginate ¶
func (p *ListPrincipalsRequest) Paginate(opts ...aws.Option) ListPrincipalsPager
Paginate pages iterates over the pages of a ListPrincipalsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListPrincipals operation. req := client.ListPrincipalsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListPrincipalsRequest) Send ¶
func (r ListPrincipalsRequest) Send(ctx context.Context) (*ListPrincipalsOutput, error)
Send marshals and sends the ListPrincipals API request.
type ListResourcesInput ¶
type ListResourcesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token for the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // The principal. Principal *string `locationName:"principal" type:"string"` // The Amazon Resource Names (ARN) of the resources. ResourceArns []string `locationName:"resourceArns" type:"list"` // The type of owner. // // ResourceOwner is a required field ResourceOwner ResourceOwner `locationName:"resourceOwner" type:"string" required:"true" enum:"true"` // The Amazon Resource Names (ARN) of the resource shares. []string `locationName:"resourceShareArns" type:"list"` // The resource type. ResourceType *string `locationName:"resourceType" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResourcesRequest
func (ListResourcesInput) GoString ¶
func (s ListResourcesInput) GoString() string
GoString returns the string representation
func (ListResourcesInput) MarshalFields ¶
func (s ListResourcesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListResourcesInput) String ¶
func (s ListResourcesInput) String() string
String returns the string representation
func (*ListResourcesInput) Validate ¶
func (s *ListResourcesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListResourcesOutput ¶
type ListResourcesOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // Information about the resources. Resources []Resource `locationName:"resources" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResourcesResponse
func (ListResourcesOutput) GoString ¶
func (s ListResourcesOutput) GoString() string
GoString returns the string representation
func (ListResourcesOutput) MarshalFields ¶
func (s ListResourcesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListResourcesOutput) SDKResponseMetadata ¶
func (s ListResourcesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListResourcesOutput) String ¶
func (s ListResourcesOutput) String() string
String returns the string representation
type ListResourcesPager ¶
ListResourcesPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListResourcesPager) CurrentPage ¶
func (p *ListResourcesPager) CurrentPage() *ListResourcesOutput
type ListResourcesRequest ¶
type ListResourcesRequest struct { *aws.Request Input *ListResourcesInput Copy func(*ListResourcesInput) ListResourcesRequest }
ListResourcesRequest is a API request type for the ListResources API operation.
func (*ListResourcesRequest) Paginate ¶
func (p *ListResourcesRequest) Paginate(opts ...aws.Option) ListResourcesPager
Paginate pages iterates over the pages of a ListResourcesRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListResources operation. req := client.ListResourcesRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListResourcesRequest) Send ¶
func (r ListResourcesRequest) Send(ctx context.Context) (*ListResourcesOutput, error)
Send marshals and sends the ListResources API request.
type Principal ¶
type Principal struct { // The time when the principal was associated with the resource share. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // Indicates whether the principal belongs to the same organization as the AWS // account that owns the resource share. External *bool `locationName:"external" type:"boolean"` // The ID of the principal. Id *string `locationName:"id" type:"string"` // The time when the association was last updated. LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"` // The Amazon Resource Name (ARN) of the resource share. *string `locationName:"resourceShareArn" type:"string"` // contains filtered or unexported fields }
Describes a principal for use with AWS Resource Access Manager. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/Principal
func (Principal) GoString ¶
GoString returns the string representation
func (Principal) MarshalFields ¶
func (s Principal) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (Principal) String ¶
String returns the string representation
type RAM ¶
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.
func New ¶
New creates a new instance of the RAM client with a config.
Example:
// Create a RAM client from just a config. svc := ram.New(myConfig)
func (*RAM) AcceptResourceShareInvitationRequest ¶
func (c *RAM) AcceptResourceShareInvitationRequest(input *AcceptResourceShareInvitationInput) AcceptResourceShareInvitationRequest
AcceptResourceShareInvitationRequest returns a request value for making API operation for AWS Resource Access Manager.
Accepts an invitation to a resource share from another AWS account.
// Example sending a request using the AcceptResourceShareInvitationRequest method. req := client.AcceptResourceShareInvitationRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitation
func (*RAM) AssociateResourceShareRequest ¶
func (c *RAM) AssociateResourceShareRequest(input *AssociateResourceShareInput) AssociateResourceShareRequest
AssociateResourceShareRequest returns a request value for making API operation for AWS Resource Access Manager.
Associates the specified resource share with the specified principals and resources.
// Example sending a request using the AssociateResourceShareRequest method. req := client.AssociateResourceShareRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShare
func (*RAM) CreateResourceShareRequest ¶
func (c *RAM) CreateResourceShareRequest(input *CreateResourceShareInput) CreateResourceShareRequest
CreateResourceShareRequest returns a request value for making API operation for AWS Resource Access Manager.
Creates a resource share.
// Example sending a request using the CreateResourceShareRequest method. req := client.CreateResourceShareRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShare
func (*RAM) DeleteResourceShareRequest ¶
func (c *RAM) DeleteResourceShareRequest(input *DeleteResourceShareInput) DeleteResourceShareRequest
DeleteResourceShareRequest returns a request value for making API operation for AWS Resource Access Manager.
Deletes the specified resource share.
// Example sending a request using the DeleteResourceShareRequest method. req := client.DeleteResourceShareRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShare
func (*RAM) DisassociateResourceShareRequest ¶
func (c *RAM) DisassociateResourceShareRequest(input *DisassociateResourceShareInput) DisassociateResourceShareRequest
DisassociateResourceShareRequest returns a request value for making API operation for AWS Resource Access Manager.
Disassociates the specified principals or resources from the specified resource share.
// Example sending a request using the DisassociateResourceShareRequest method. req := client.DisassociateResourceShareRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShare
func (*RAM) EnableSharingWithAwsOrganizationRequest ¶
func (c *RAM) EnableSharingWithAwsOrganizationRequest(input *EnableSharingWithAwsOrganizationInput) EnableSharingWithAwsOrganizationRequest
EnableSharingWithAwsOrganizationRequest returns a request value for making API operation for AWS Resource Access Manager.
Enables resource sharing within your organization.
// Example sending a request using the EnableSharingWithAwsOrganizationRequest method. req := client.EnableSharingWithAwsOrganizationRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganization
func (*RAM) GetResourcePoliciesRequest ¶
func (c *RAM) GetResourcePoliciesRequest(input *GetResourcePoliciesInput) GetResourcePoliciesRequest
GetResourcePoliciesRequest returns a request value for making API operation for AWS Resource Access Manager.
Gets the policies for the specifies resources.
// Example sending a request using the GetResourcePoliciesRequest method. req := client.GetResourcePoliciesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePolicies
func (*RAM) GetResourceShareAssociationsRequest ¶
func (c *RAM) GetResourceShareAssociationsRequest(input *GetResourceShareAssociationsInput) GetResourceShareAssociationsRequest
GetResourceShareAssociationsRequest returns a request value for making API operation for AWS Resource Access Manager.
Gets the associations for the specified resource share.
// Example sending a request using the GetResourceShareAssociationsRequest method. req := client.GetResourceShareAssociationsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociations
func (*RAM) GetResourceShareInvitationsRequest ¶
func (c *RAM) GetResourceShareInvitationsRequest(input *GetResourceShareInvitationsInput) GetResourceShareInvitationsRequest
GetResourceShareInvitationsRequest returns a request value for making API operation for AWS Resource Access Manager.
Gets the specified invitations for resource sharing.
// Example sending a request using the GetResourceShareInvitationsRequest method. req := client.GetResourceShareInvitationsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitations
func (*RAM) GetResourceSharesRequest ¶
func (c *RAM) GetResourceSharesRequest(input *GetResourceSharesInput) GetResourceSharesRequest
GetResourceSharesRequest returns a request value for making API operation for AWS Resource Access Manager.
Gets the specified resource shares or all of your resource shares.
// Example sending a request using the GetResourceSharesRequest method. req := client.GetResourceSharesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShares
func (*RAM) ListPrincipalsRequest ¶
func (c *RAM) ListPrincipalsRequest(input *ListPrincipalsInput) ListPrincipalsRequest
ListPrincipalsRequest returns a request value for making API operation for AWS Resource Access Manager.
Lists the principals with access to the specified resource.
// Example sending a request using the ListPrincipalsRequest method. req := client.ListPrincipalsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipals
func (*RAM) ListResourcesRequest ¶
func (c *RAM) ListResourcesRequest(input *ListResourcesInput) ListResourcesRequest
ListResourcesRequest returns a request value for making API operation for AWS Resource Access Manager.
Lists the resources that the specified principal can access.
// Example sending a request using the ListResourcesRequest method. req := client.ListResourcesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResources
func (*RAM) RejectResourceShareInvitationRequest ¶
func (c *RAM) RejectResourceShareInvitationRequest(input *RejectResourceShareInvitationInput) RejectResourceShareInvitationRequest
RejectResourceShareInvitationRequest returns a request value for making API operation for AWS Resource Access Manager.
Rejects an invitation to a resource share from another AWS account.
// Example sending a request using the RejectResourceShareInvitationRequest method. req := client.RejectResourceShareInvitationRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitation
func (*RAM) TagResourceRequest ¶
func (c *RAM) TagResourceRequest(input *TagResourceInput) TagResourceRequest
TagResourceRequest returns a request value for making API operation for AWS Resource Access Manager.
Adds the specified tags to the specified resource share.
// Example sending a request using the TagResourceRequest method. req := client.TagResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResource
func (*RAM) UntagResourceRequest ¶
func (c *RAM) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
UntagResourceRequest returns a request value for making API operation for AWS Resource Access Manager.
Removes the specified tags from the specified resource share.
// Example sending a request using the UntagResourceRequest method. req := client.UntagResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource
func (*RAM) UpdateResourceShareRequest ¶
func (c *RAM) UpdateResourceShareRequest(input *UpdateResourceShareInput) UpdateResourceShareRequest
UpdateResourceShareRequest returns a request value for making API operation for AWS Resource Access Manager.
Updates the specified resource share.
// Example sending a request using the UpdateResourceShareRequest method. req := client.UpdateResourceShareRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShare
type RejectResourceShareInvitationInput ¶
type RejectResourceShareInvitationInput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // The Amazon Resource Name (ARN) of the invitation. // // ResourceShareInvitationArn is a required field *string `locationName:"resourceShareInvitationArn" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitationRequest
func (RejectResourceShareInvitationInput) GoString ¶
func (s RejectResourceShareInvitationInput) GoString() string
GoString returns the string representation
func (RejectResourceShareInvitationInput) MarshalFields ¶
func (s RejectResourceShareInvitationInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RejectResourceShareInvitationInput) String ¶
func (s RejectResourceShareInvitationInput) String() string
String returns the string representation
func (*RejectResourceShareInvitationInput) Validate ¶
func (s *RejectResourceShareInvitationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RejectResourceShareInvitationOutput ¶
type RejectResourceShareInvitationOutput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // Information about the invitation. *ResourceShareInvitation `locationName:"resourceShareInvitation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitationResponse
func (RejectResourceShareInvitationOutput) GoString ¶
func (s RejectResourceShareInvitationOutput) GoString() string
GoString returns the string representation
func (RejectResourceShareInvitationOutput) MarshalFields ¶
func (s RejectResourceShareInvitationOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RejectResourceShareInvitationOutput) SDKResponseMetadata ¶
func (s RejectResourceShareInvitationOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (RejectResourceShareInvitationOutput) String ¶
func (s RejectResourceShareInvitationOutput) String() string
String returns the string representation
type RejectResourceShareInvitationRequest ¶
type RejectResourceShareInvitationRequest struct { *aws.Request *RejectResourceShareInvitationInput func(*RejectResourceShareInvitationInput) RejectResourceShareInvitationRequest }
RejectResourceShareInvitationRequest is a API request type for the RejectResourceShareInvitation API operation.
func (RejectResourceShareInvitationRequest) Send ¶
func (r RejectResourceShareInvitationRequest) Send(ctx context.Context) (*RejectResourceShareInvitationOutput, error)
Send marshals and sends the RejectResourceShareInvitation API request.
type Resource ¶
type Resource struct { // The Amazon Resource Name (ARN) of the resource. Arn *string `locationName:"arn" type:"string"` // The time when the resource was associated with the resource share. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // The time when the association was last updated. LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"` // The Amazon Resource Name (ARN) of the resource share. *string `locationName:"resourceShareArn" type:"string"` // The status of the resource. Status ResourceStatus `locationName:"status" type:"string" enum:"true"` // A message about the status of the resource. StatusMessage *string `locationName:"statusMessage" type:"string"` // The resource type. Type *string `locationName:"type" type:"string"` // contains filtered or unexported fields }
Describes a resource associated with a resource share. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/Resource
func (Resource) GoString ¶
GoString returns the string representation
func (Resource) MarshalFields ¶
func (s Resource) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (Resource) String ¶
String returns the string representation
type ResourceOwner ¶
type ResourceOwner string
const ( ResourceOwnerSelf ResourceOwner = "SELF" ResourceOwnerOtherAccounts ResourceOwner = "OTHER-ACCOUNTS" )
Enum values for ResourceOwner
func (ResourceOwner) MarshalValue ¶
func (enum ResourceOwner) MarshalValue() (string, error)
func (ResourceOwner) MarshalValueBuf ¶
func (enum ResourceOwner) MarshalValueBuf(b []byte) ([]byte, error)
type ResourceShare ¶
type ResourceShare struct { // Indicates whether principals outside your organization can be associated // with a resource share. *bool `locationName:"allowExternalPrincipals" type:"boolean"` // The time when the resource share was created. *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // The time when the resource share was last updated. *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"` // The name of the resource share. *string `locationName:"name" type:"string"` // The ID of the AWS account that owns the resource share. *string `locationName:"owningAccountId" type:"string"` // The Amazon Resource Name (ARN) of the resource share. *string `locationName:"resourceShareArn" type:"string"` // The status of the resource share. ResourceShareStatus `locationName:"status" type:"string" enum:"true"` // A message about the status of the resource share. *string `locationName:"statusMessage" type:"string"` // The tags for the resource share. []Tag `locationName:"tags" type:"list"` // contains filtered or unexported fields }
Describes a resource share. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ResourceShare
func (ResourceShare) GoString ¶
func (s ResourceShare) GoString() string
GoString returns the string representation
func (ResourceShare) MarshalFields ¶
func (s ResourceShare) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ResourceShare) String ¶
func (s ResourceShare) String() string
String returns the string representation
type ResourceShareAssociation ¶
type ResourceShareAssociation struct { // The associated entity. For resource associations, this is the ARN of the // resource. For principal associations, this is the ID of an AWS account or // the ARN of an OU or organization from AWS Organizations. *string `locationName:"associatedEntity" type:"string"` // The association type. ResourceShareAssociationType `locationName:"associationType" type:"string" enum:"true"` // The time when the association was created. *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // Indicates whether the principal belongs to the same organization as the AWS // account that owns the resource share. *bool `locationName:"external" type:"boolean"` // The time when the association was last updated. *time.Time `locationName:"lastUpdatedTime" type:"timestamp" timestampFormat:"unix"` // The Amazon Resource Name (ARN) of the resource share. *string `locationName:"resourceShareArn" type:"string"` // The status of the association. ResourceShareAssociationStatus `locationName:"status" type:"string" enum:"true"` // A message about the status of the association. *string `locationName:"statusMessage" type:"string"` // contains filtered or unexported fields }
Describes an association with a resource share. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ResourceShareAssociation
func (ResourceShareAssociation) GoString ¶
func (s ResourceShareAssociation) GoString() string
GoString returns the string representation
func (ResourceShareAssociation) MarshalFields ¶
func (s ResourceShareAssociation) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ResourceShareAssociation) String ¶
func (s ResourceShareAssociation) String() string
String returns the string representation
type ResourceShareAssociationStatus ¶
type ResourceShareAssociationStatus string
const ( ResourceShareAssociationStatus = "ASSOCIATING" ResourceShareAssociationStatus = "ASSOCIATED" ResourceShareAssociationStatus = "FAILED" ResourceShareAssociationStatus = "DISASSOCIATING" ResourceShareAssociationStatus = "DISASSOCIATED" )
Enum values for ResourceShareAssociationStatus
func (ResourceShareAssociationStatus) MarshalValue ¶
func (enum ResourceShareAssociationStatus) MarshalValue() (string, error)
func (ResourceShareAssociationStatus) MarshalValueBuf ¶
func (enum ResourceShareAssociationStatus) MarshalValueBuf(b []byte) ([]byte, error)
type ResourceShareAssociationType ¶
type ResourceShareAssociationType string
const ( ResourceShareAssociationType = "PRINCIPAL" ResourceShareAssociationType = "RESOURCE" )
Enum values for ResourceShareAssociationType
func (ResourceShareAssociationType) MarshalValue ¶
func (enum ResourceShareAssociationType) MarshalValue() (string, error)
func (ResourceShareAssociationType) MarshalValueBuf ¶
func (enum ResourceShareAssociationType) MarshalValueBuf(b []byte) ([]byte, error)
type ResourceShareInvitation ¶
type ResourceShareInvitation struct { // The date and time when the invitation was sent. *time.Time `locationName:"invitationTimestamp" type:"timestamp" timestampFormat:"unix"` // The ID of the AWS account that received the invitation. *string `locationName:"receiverAccountId" type:"string"` // The Amazon Resource Name (ARN) of the resource share. *string `locationName:"resourceShareArn" type:"string"` // The resources associated with the resource share. []ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` // The Amazon Resource Name (ARN) of the invitation. *string `locationName:"resourceShareInvitationArn" type:"string"` // The name of the resource share. *string `locationName:"resourceShareName" type:"string"` // The ID of the AWS account that sent the invitation. *string `locationName:"senderAccountId" type:"string"` // The status of the invitation. ResourceShareInvitationStatus `locationName:"status" type:"string" enum:"true"` // contains filtered or unexported fields }
Describes an invitation to join a resource share. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ResourceShareInvitation
func (ResourceShareInvitation) GoString ¶
func (s ResourceShareInvitation) GoString() string
GoString returns the string representation
func (ResourceShareInvitation) MarshalFields ¶
func (s ResourceShareInvitation) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ResourceShareInvitation) String ¶
func (s ResourceShareInvitation) String() string
String returns the string representation
type ResourceShareInvitationStatus ¶
type ResourceShareInvitationStatus string
const ( ResourceShareInvitationStatus = "PENDING" ResourceShareInvitationStatus = "ACCEPTED" ResourceShareInvitationStatus = "REJECTED" ResourceShareInvitationStatus = "EXPIRED" )
Enum values for ResourceShareInvitationStatus
func (ResourceShareInvitationStatus) MarshalValue ¶
func (enum ResourceShareInvitationStatus) MarshalValue() (string, error)
func (ResourceShareInvitationStatus) MarshalValueBuf ¶
func (enum ResourceShareInvitationStatus) MarshalValueBuf(b []byte) ([]byte, error)
type ResourceShareStatus ¶
type ResourceShareStatus string
const ( ResourceShareStatus = "PENDING" ResourceShareStatus = "ACTIVE" ResourceShareStatus = "FAILED" ResourceShareStatus = "DELETING" ResourceShareStatus = "DELETED" )
Enum values for ResourceShareStatus
func (ResourceShareStatus) MarshalValue ¶
func (enum ResourceShareStatus) MarshalValue() (string, error)
func (ResourceShareStatus) MarshalValueBuf ¶
func (enum ResourceShareStatus) MarshalValueBuf(b []byte) ([]byte, error)
type ResourceStatus ¶
type ResourceStatus string
const ( ResourceStatusAvailable ResourceStatus = "AVAILABLE" ResourceStatusZonalResourceInaccessible ResourceStatus = "ZONAL_RESOURCE_INACCESSIBLE" ResourceStatusLimitExceeded ResourceStatus = "LIMIT_EXCEEDED" ResourceStatus = "UNAVAILABLE" )
Enum values for ResourceStatus
func (ResourceStatus) MarshalValue ¶
func (enum ResourceStatus) MarshalValue() (string, error)
func (ResourceStatus) MarshalValueBuf ¶
func (enum ResourceStatus) MarshalValueBuf(b []byte) ([]byte, error)
type Tag ¶
type Tag struct { // The key of the tag. Key *string `locationName:"key" type:"string"` // The value of the tag. Value *string `locationName:"value" type:"string"` // contains filtered or unexported fields }
Information about a tag. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/Tag
func (Tag) GoString ¶
GoString returns the string representation
func (Tag) MarshalFields ¶
func (s Tag) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (Tag) String ¶
String returns the string representation
type TagFilter ¶
type TagFilter struct { // The tag key. TagKey *string `locationName:"tagKey" type:"string"` // The tag values. TagValues []string `locationName:"tagValues" type:"list"` // contains filtered or unexported fields }
Used to filter information based on tags. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagFilter
func (TagFilter) GoString ¶
GoString returns the string representation
func (TagFilter) MarshalFields ¶
func (s TagFilter) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagFilter) String ¶
String returns the string representation
type TagResourceInput ¶
type TagResourceInput struct { // The Amazon Resource Name (ARN) of the resource share. // // ResourceShareArn is a required field *string `locationName:"resourceShareArn" type:"string" required:"true"` // One or more tags. // // Tags is a required field Tags []Tag `locationName:"tags" type:"list" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResourceRequest
func (TagResourceInput) GoString ¶
func (s TagResourceInput) GoString() string
GoString returns the string representation
func (TagResourceInput) MarshalFields ¶
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceInput) String ¶
func (s TagResourceInput) String() string
String returns the string representation
func (*TagResourceInput) Validate ¶
func (s *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceOutput ¶
type TagResourceOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResourceResponse
func (TagResourceOutput) GoString ¶
func (s TagResourceOutput) GoString() string
GoString returns the string representation
func (TagResourceOutput) MarshalFields ¶
func (s TagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceOutput) SDKResponseMetadata ¶
func (s TagResourceOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (TagResourceOutput) String ¶
func (s TagResourceOutput) String() string
String returns the string representation
type TagResourceRequest ¶
type TagResourceRequest struct { *aws.Request Input *TagResourceInput Copy func(*TagResourceInput) TagResourceRequest }
TagResourceRequest is a API request type for the TagResource API operation.
func (TagResourceRequest) Send ¶
func (r TagResourceRequest) Send(ctx context.Context) (*TagResourceOutput, error)
Send marshals and sends the TagResource API request.
type UntagResourceInput ¶
type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the resource share. // // ResourceShareArn is a required field *string `locationName:"resourceShareArn" type:"string" required:"true"` // The tag keys of the tags to remove. // // TagKeys is a required field TagKeys []string `locationName:"tagKeys" type:"list" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResourceRequest
func (UntagResourceInput) GoString ¶
func (s UntagResourceInput) GoString() string
GoString returns the string representation
func (UntagResourceInput) MarshalFields ¶
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceInput) String ¶
func (s UntagResourceInput) String() string
String returns the string representation
func (*UntagResourceInput) Validate ¶
func (s *UntagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceOutput ¶
type UntagResourceOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResourceResponse
func (UntagResourceOutput) GoString ¶
func (s UntagResourceOutput) GoString() string
GoString returns the string representation
func (UntagResourceOutput) MarshalFields ¶
func (s UntagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceOutput) SDKResponseMetadata ¶
func (s UntagResourceOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UntagResourceOutput) String ¶
func (s UntagResourceOutput) String() string
String returns the string representation
type UntagResourceRequest ¶
type UntagResourceRequest struct { *aws.Request Input *UntagResourceInput Copy func(*UntagResourceInput) UntagResourceRequest }
UntagResourceRequest is a API request type for the UntagResource API operation.
func (UntagResourceRequest) Send ¶
func (r UntagResourceRequest) Send(ctx context.Context) (*UntagResourceOutput, error)
Send marshals and sends the UntagResource API request.
type UpdateResourceShareInput ¶
type UpdateResourceShareInput struct { // Indicates whether principals outside your organization can be associated // with a resource share. *bool `locationName:"allowExternalPrincipals" type:"boolean"` // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // The name of the resource share. *string `locationName:"name" type:"string"` // The Amazon Resource Name (ARN) of the resource share. // // ResourceShareArn is a required field *string `locationName:"resourceShareArn" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShareRequest
func (UpdateResourceShareInput) GoString ¶
func (s UpdateResourceShareInput) GoString() string
GoString returns the string representation
func (UpdateResourceShareInput) MarshalFields ¶
func (s UpdateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateResourceShareInput) String ¶
func (s UpdateResourceShareInput) String() string
String returns the string representation
func (*UpdateResourceShareInput) Validate ¶
func (s *UpdateResourceShareInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateResourceShareOutput ¶
type UpdateResourceShareOutput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. *string `locationName:"clientToken" type:"string"` // Information about the resource share. *ResourceShare `locationName:"resourceShare" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShareResponse
func (UpdateResourceShareOutput) GoString ¶
func (s UpdateResourceShareOutput) GoString() string
GoString returns the string representation
func (UpdateResourceShareOutput) MarshalFields ¶
func (s UpdateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateResourceShareOutput) SDKResponseMetadata ¶
func (s UpdateResourceShareOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateResourceShareOutput) String ¶
func (s UpdateResourceShareOutput) String() string
String returns the string representation
type UpdateResourceShareRequest ¶
type UpdateResourceShareRequest struct { *aws.Request *UpdateResourceShareInput func(*UpdateResourceShareInput) UpdateResourceShareRequest }
UpdateResourceShareRequest is a API request type for the UpdateResourceShare API operation.
func (UpdateResourceShareRequest) Send ¶
func (r UpdateResourceShareRequest) Send(ctx context.Context) (*UpdateResourceShareOutput, error)
Send marshals and sends the UpdateResourceShare API request.
Source Files ¶
api.go doc.go errors.go service.go
Directories ¶
Path | Synopsis |
---|---|
service/ram/ramiface | Package ramiface provides an interface to enable mocking the AWS Resource Access Manager service client for testing your code. |
- Version
- v0.8.0
- Published
- Apr 25, 2019
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 12 minutes ago –
Tools for package owners.