Documentation ¶
Overview ¶
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 contact 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) SetClientToken(v string) *AcceptResourceShareInvitationInput
- func (s *AcceptResourceShareInvitationInput) SetResourceShareInvitationArn(v string) *AcceptResourceShareInvitationInput
- func (s AcceptResourceShareInvitationInput) String() string
- func (s *AcceptResourceShareInvitationInput) Validate() error
- type AcceptResourceShareInvitationOutput
- func (s AcceptResourceShareInvitationOutput) GoString() string
- func (s *AcceptResourceShareInvitationOutput) SetClientToken(v string) *AcceptResourceShareInvitationOutput
- func (s *AcceptResourceShareInvitationOutput) SetResourceShareInvitation(v *ResourceShareInvitation) *AcceptResourceShareInvitationOutput
- func (s AcceptResourceShareInvitationOutput) String() string
- type AssociateResourceShareInput
- func (s AssociateResourceShareInput) GoString() string
- func (s *AssociateResourceShareInput) SetClientToken(v string) *AssociateResourceShareInput
- func (s *AssociateResourceShareInput) SetPrincipals(v []*string) *AssociateResourceShareInput
- func (s *AssociateResourceShareInput) SetResourceArns(v []*string) *AssociateResourceShareInput
- func (s *AssociateResourceShareInput) SetResourceShareArn(v string) *AssociateResourceShareInput
- func (s AssociateResourceShareInput) String() string
- func (s *AssociateResourceShareInput) Validate() error
- type AssociateResourceShareOutput
- func (s AssociateResourceShareOutput) GoString() string
- func (s *AssociateResourceShareOutput) SetClientToken(v string) *AssociateResourceShareOutput
- func (s *AssociateResourceShareOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *AssociateResourceShareOutput
- func (s AssociateResourceShareOutput) String() string
- type CreateResourceShareInput
- func (s CreateResourceShareInput) GoString() string
- func (s *CreateResourceShareInput) SetAllowExternalPrincipals(v bool) *CreateResourceShareInput
- func (s *CreateResourceShareInput) SetClientToken(v string) *CreateResourceShareInput
- func (s *CreateResourceShareInput) SetName(v string) *CreateResourceShareInput
- func (s *CreateResourceShareInput) SetPrincipals(v []*string) *CreateResourceShareInput
- func (s *CreateResourceShareInput) SetResourceArns(v []*string) *CreateResourceShareInput
- func (s *CreateResourceShareInput) SetTags(v []*Tag) *CreateResourceShareInput
- func (s CreateResourceShareInput) String() string
- func (s *CreateResourceShareInput) Validate() error
- type CreateResourceShareOutput
- type DeleteResourceShareInput
- func (s DeleteResourceShareInput) GoString() string
- func (s *DeleteResourceShareInput) SetClientToken(v string) *DeleteResourceShareInput
- func (s *DeleteResourceShareInput) SetResourceShareArn(v string) *DeleteResourceShareInput
- func (s DeleteResourceShareInput) String() string
- func (s *DeleteResourceShareInput) Validate() error
- type DeleteResourceShareOutput
- type DisassociateResourceShareInput
- func (s DisassociateResourceShareInput) GoString() string
- func (s *DisassociateResourceShareInput) SetClientToken(v string) *DisassociateResourceShareInput
- func (s *DisassociateResourceShareInput) SetPrincipals(v []*string) *DisassociateResourceShareInput
- func (s *DisassociateResourceShareInput) SetResourceArns(v []*string) *DisassociateResourceShareInput
- func (s *DisassociateResourceShareInput) SetResourceShareArn(v string) *DisassociateResourceShareInput
- func (s DisassociateResourceShareInput) String() string
- func (s *DisassociateResourceShareInput) Validate() error
- type DisassociateResourceShareOutput
- func (s DisassociateResourceShareOutput) GoString() string
- func (s *DisassociateResourceShareOutput) SetClientToken(v string) *DisassociateResourceShareOutput
- func (s *DisassociateResourceShareOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *DisassociateResourceShareOutput
- func (s DisassociateResourceShareOutput) String() string
- type EnableSharingWithAwsOrganizationInput
- type EnableSharingWithAwsOrganizationOutput
- type GetResourcePoliciesInput
- func (s GetResourcePoliciesInput) GoString() string
- func (s *GetResourcePoliciesInput) SetMaxResults(v int64) *GetResourcePoliciesInput
- func (s *GetResourcePoliciesInput) SetNextToken(v string) *GetResourcePoliciesInput
- func (s *GetResourcePoliciesInput) SetPrincipal(v string) *GetResourcePoliciesInput
- func (s *GetResourcePoliciesInput) SetResourceArns(v []*string) *GetResourcePoliciesInput
- func (s GetResourcePoliciesInput) String() string
- func (s *GetResourcePoliciesInput) Validate() error
- type GetResourcePoliciesOutput
- type GetResourceShareAssociationsInput
- func (s GetResourceShareAssociationsInput) GoString() string
- func (s *GetResourceShareAssociationsInput) SetAssociationStatus(v string) *GetResourceShareAssociationsInput
- func (s *GetResourceShareAssociationsInput) SetAssociationType(v string) *GetResourceShareAssociationsInput
- func (s *GetResourceShareAssociationsInput) SetMaxResults(v int64) *GetResourceShareAssociationsInput
- func (s *GetResourceShareAssociationsInput) SetNextToken(v string) *GetResourceShareAssociationsInput
- func (s *GetResourceShareAssociationsInput) SetPrincipal(v string) *GetResourceShareAssociationsInput
- func (s *GetResourceShareAssociationsInput) SetResourceArn(v string) *GetResourceShareAssociationsInput
- func (s *GetResourceShareAssociationsInput) SetResourceShareArns(v []*string) *GetResourceShareAssociationsInput
- func (s GetResourceShareAssociationsInput) String() string
- func (s *GetResourceShareAssociationsInput) Validate() error
- type GetResourceShareAssociationsOutput
- func (s GetResourceShareAssociationsOutput) GoString() string
- func (s *GetResourceShareAssociationsOutput) SetNextToken(v string) *GetResourceShareAssociationsOutput
- func (s *GetResourceShareAssociationsOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *GetResourceShareAssociationsOutput
- func (s GetResourceShareAssociationsOutput) String() string
- type GetResourceShareInvitationsInput
- func (s GetResourceShareInvitationsInput) GoString() string
- func (s *GetResourceShareInvitationsInput) SetMaxResults(v int64) *GetResourceShareInvitationsInput
- func (s *GetResourceShareInvitationsInput) SetNextToken(v string) *GetResourceShareInvitationsInput
- func (s *GetResourceShareInvitationsInput) SetResourceShareArns(v []*string) *GetResourceShareInvitationsInput
- func (s *GetResourceShareInvitationsInput) SetResourceShareInvitationArns(v []*string) *GetResourceShareInvitationsInput
- func (s GetResourceShareInvitationsInput) String() string
- func (s *GetResourceShareInvitationsInput) Validate() error
- type GetResourceShareInvitationsOutput
- func (s GetResourceShareInvitationsOutput) GoString() string
- func (s *GetResourceShareInvitationsOutput) SetNextToken(v string) *GetResourceShareInvitationsOutput
- func (s *GetResourceShareInvitationsOutput) SetResourceShareInvitations(v []*ResourceShareInvitation) *GetResourceShareInvitationsOutput
- func (s GetResourceShareInvitationsOutput) String() string
- type GetResourceSharesInput
- func (s GetResourceSharesInput) GoString() string
- func (s *GetResourceSharesInput) SetMaxResults(v int64) *GetResourceSharesInput
- func (s *GetResourceSharesInput) SetName(v string) *GetResourceSharesInput
- func (s *GetResourceSharesInput) SetNextToken(v string) *GetResourceSharesInput
- func (s *GetResourceSharesInput) SetResourceOwner(v string) *GetResourceSharesInput
- func (s *GetResourceSharesInput) SetResourceShareArns(v []*string) *GetResourceSharesInput
- func (s *GetResourceSharesInput) SetResourceShareStatus(v string) *GetResourceSharesInput
- func (s *GetResourceSharesInput) SetTagFilters(v []*TagFilter) *GetResourceSharesInput
- func (s GetResourceSharesInput) String() string
- func (s *GetResourceSharesInput) Validate() error
- type GetResourceSharesOutput
- type ListPrincipalsInput
- func (s ListPrincipalsInput) GoString() string
- func (s *ListPrincipalsInput) SetMaxResults(v int64) *ListPrincipalsInput
- func (s *ListPrincipalsInput) SetNextToken(v string) *ListPrincipalsInput
- func (s *ListPrincipalsInput) SetPrincipals(v []*string) *ListPrincipalsInput
- func (s *ListPrincipalsInput) SetResourceArn(v string) *ListPrincipalsInput
- func (s *ListPrincipalsInput) SetResourceOwner(v string) *ListPrincipalsInput
- func (s *ListPrincipalsInput) SetResourceShareArns(v []*string) *ListPrincipalsInput
- func (s *ListPrincipalsInput) SetResourceType(v string) *ListPrincipalsInput
- func (s ListPrincipalsInput) String() string
- func (s *ListPrincipalsInput) Validate() error
- type ListPrincipalsOutput
- type ListResourcesInput
- func (s ListResourcesInput) GoString() string
- func (s *ListResourcesInput) SetMaxResults(v int64) *ListResourcesInput
- func (s *ListResourcesInput) SetNextToken(v string) *ListResourcesInput
- func (s *ListResourcesInput) SetPrincipal(v string) *ListResourcesInput
- func (s *ListResourcesInput) SetResourceArns(v []*string) *ListResourcesInput
- func (s *ListResourcesInput) SetResourceOwner(v string) *ListResourcesInput
- func (s *ListResourcesInput) SetResourceShareArns(v []*string) *ListResourcesInput
- func (s *ListResourcesInput) SetResourceType(v string) *ListResourcesInput
- func (s ListResourcesInput) String() string
- func (s *ListResourcesInput) Validate() error
- type ListResourcesOutput
- type Principal
- func (s Principal) GoString() string
- func (s *Principal) SetCreationTime(v time.Time) *Principal
- func (s *Principal) SetExternal(v bool) *Principal
- func (s *Principal) SetId(v string) *Principal
- func (s *Principal) SetLastUpdatedTime(v time.Time) *Principal
- func (s *Principal) SetResourceShareArn(v string) *Principal
- func (s Principal) String() string
- type RAM
- func (c *RAM) AcceptResourceShareInvitation(input *AcceptResourceShareInvitationInput) (*AcceptResourceShareInvitationOutput, error)
- func (c *RAM) AcceptResourceShareInvitationRequest(input *AcceptResourceShareInvitationInput) (req *request.Request, output *AcceptResourceShareInvitationOutput)
- func (c *RAM) AcceptResourceShareInvitationWithContext(ctx aws.Context, input *AcceptResourceShareInvitationInput, ...) (*AcceptResourceShareInvitationOutput, error)
- func (c *RAM) AssociateResourceShare(input *AssociateResourceShareInput) (*AssociateResourceShareOutput, error)
- func (c *RAM) AssociateResourceShareRequest(input *AssociateResourceShareInput) (req *request.Request, output *AssociateResourceShareOutput)
- func (c *RAM) AssociateResourceShareWithContext(ctx aws.Context, input *AssociateResourceShareInput, opts ...request.Option) (*AssociateResourceShareOutput, error)
- func (c *RAM) CreateResourceShare(input *CreateResourceShareInput) (*CreateResourceShareOutput, error)
- func (c *RAM) CreateResourceShareRequest(input *CreateResourceShareInput) (req *request.Request, output *CreateResourceShareOutput)
- func (c *RAM) CreateResourceShareWithContext(ctx aws.Context, input *CreateResourceShareInput, opts ...request.Option) (*CreateResourceShareOutput, error)
- func (c *RAM) DeleteResourceShare(input *DeleteResourceShareInput) (*DeleteResourceShareOutput, error)
- func (c *RAM) DeleteResourceShareRequest(input *DeleteResourceShareInput) (req *request.Request, output *DeleteResourceShareOutput)
- func (c *RAM) DeleteResourceShareWithContext(ctx aws.Context, input *DeleteResourceShareInput, opts ...request.Option) (*DeleteResourceShareOutput, error)
- func (c *RAM) DisassociateResourceShare(input *DisassociateResourceShareInput) (*DisassociateResourceShareOutput, error)
- func (c *RAM) DisassociateResourceShareRequest(input *DisassociateResourceShareInput) (req *request.Request, output *DisassociateResourceShareOutput)
- func (c *RAM) DisassociateResourceShareWithContext(ctx aws.Context, input *DisassociateResourceShareInput, opts ...request.Option) (*DisassociateResourceShareOutput, error)
- func (c *RAM) EnableSharingWithAwsOrganization(input *EnableSharingWithAwsOrganizationInput) (*EnableSharingWithAwsOrganizationOutput, error)
- func (c *RAM) EnableSharingWithAwsOrganizationRequest(input *EnableSharingWithAwsOrganizationInput) (req *request.Request, output *EnableSharingWithAwsOrganizationOutput)
- func (c *RAM) EnableSharingWithAwsOrganizationWithContext(ctx aws.Context, input *EnableSharingWithAwsOrganizationInput, ...) (*EnableSharingWithAwsOrganizationOutput, error)
- func (c *RAM) GetResourcePolicies(input *GetResourcePoliciesInput) (*GetResourcePoliciesOutput, error)
- func (c *RAM) GetResourcePoliciesPages(input *GetResourcePoliciesInput, ...) error
- func (c *RAM) GetResourcePoliciesPagesWithContext(ctx aws.Context, input *GetResourcePoliciesInput, ...) error
- func (c *RAM) GetResourcePoliciesRequest(input *GetResourcePoliciesInput) (req *request.Request, output *GetResourcePoliciesOutput)
- func (c *RAM) GetResourcePoliciesWithContext(ctx aws.Context, input *GetResourcePoliciesInput, opts ...request.Option) (*GetResourcePoliciesOutput, error)
- func (c *RAM) GetResourceShareAssociations(input *GetResourceShareAssociationsInput) (*GetResourceShareAssociationsOutput, error)
- func (c *RAM) GetResourceShareAssociationsPages(input *GetResourceShareAssociationsInput, ...) error
- func (c *RAM) GetResourceShareAssociationsPagesWithContext(ctx aws.Context, input *GetResourceShareAssociationsInput, ...) error
- func (c *RAM) GetResourceShareAssociationsRequest(input *GetResourceShareAssociationsInput) (req *request.Request, output *GetResourceShareAssociationsOutput)
- func (c *RAM) GetResourceShareAssociationsWithContext(ctx aws.Context, input *GetResourceShareAssociationsInput, ...) (*GetResourceShareAssociationsOutput, error)
- func (c *RAM) GetResourceShareInvitations(input *GetResourceShareInvitationsInput) (*GetResourceShareInvitationsOutput, error)
- func (c *RAM) GetResourceShareInvitationsPages(input *GetResourceShareInvitationsInput, ...) error
- func (c *RAM) GetResourceShareInvitationsPagesWithContext(ctx aws.Context, input *GetResourceShareInvitationsInput, ...) error
- func (c *RAM) GetResourceShareInvitationsRequest(input *GetResourceShareInvitationsInput) (req *request.Request, output *GetResourceShareInvitationsOutput)
- func (c *RAM) GetResourceShareInvitationsWithContext(ctx aws.Context, input *GetResourceShareInvitationsInput, ...) (*GetResourceShareInvitationsOutput, error)
- func (c *RAM) GetResourceShares(input *GetResourceSharesInput) (*GetResourceSharesOutput, error)
- func (c *RAM) GetResourceSharesPages(input *GetResourceSharesInput, fn func(*GetResourceSharesOutput, bool) bool) error
- func (c *RAM) GetResourceSharesPagesWithContext(ctx aws.Context, input *GetResourceSharesInput, ...) error
- func (c *RAM) GetResourceSharesRequest(input *GetResourceSharesInput) (req *request.Request, output *GetResourceSharesOutput)
- func (c *RAM) GetResourceSharesWithContext(ctx aws.Context, input *GetResourceSharesInput, opts ...request.Option) (*GetResourceSharesOutput, error)
- func (c *RAM) ListPrincipals(input *ListPrincipalsInput) (*ListPrincipalsOutput, error)
- func (c *RAM) ListPrincipalsPages(input *ListPrincipalsInput, fn func(*ListPrincipalsOutput, bool) bool) error
- func (c *RAM) ListPrincipalsPagesWithContext(ctx aws.Context, input *ListPrincipalsInput, ...) error
- func (c *RAM) ListPrincipalsRequest(input *ListPrincipalsInput) (req *request.Request, output *ListPrincipalsOutput)
- func (c *RAM) ListPrincipalsWithContext(ctx aws.Context, input *ListPrincipalsInput, opts ...request.Option) (*ListPrincipalsOutput, error)
- func (c *RAM) ListResources(input *ListResourcesInput) (*ListResourcesOutput, error)
- func (c *RAM) ListResourcesPages(input *ListResourcesInput, fn func(*ListResourcesOutput, bool) bool) error
- func (c *RAM) ListResourcesPagesWithContext(ctx aws.Context, input *ListResourcesInput, ...) error
- func (c *RAM) ListResourcesRequest(input *ListResourcesInput) (req *request.Request, output *ListResourcesOutput)
- func (c *RAM) ListResourcesWithContext(ctx aws.Context, input *ListResourcesInput, opts ...request.Option) (*ListResourcesOutput, error)
- func (c *RAM) RejectResourceShareInvitation(input *RejectResourceShareInvitationInput) (*RejectResourceShareInvitationOutput, error)
- func (c *RAM) RejectResourceShareInvitationRequest(input *RejectResourceShareInvitationInput) (req *request.Request, output *RejectResourceShareInvitationOutput)
- func (c *RAM) RejectResourceShareInvitationWithContext(ctx aws.Context, input *RejectResourceShareInvitationInput, ...) (*RejectResourceShareInvitationOutput, error)
- func (c *RAM) TagResource(input *TagResourceInput) (*TagResourceOutput, error)
- func (c *RAM) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)
- func (c *RAM) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)
- func (c *RAM) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)
- func (c *RAM) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)
- func (c *RAM) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)
- func (c *RAM) UpdateResourceShare(input *UpdateResourceShareInput) (*UpdateResourceShareOutput, error)
- func (c *RAM) UpdateResourceShareRequest(input *UpdateResourceShareInput) (req *request.Request, output *UpdateResourceShareOutput)
- func (c *RAM) UpdateResourceShareWithContext(ctx aws.Context, input *UpdateResourceShareInput, opts ...request.Option) (*UpdateResourceShareOutput, error)
- type RejectResourceShareInvitationInput
- func (s RejectResourceShareInvitationInput) GoString() string
- func (s *RejectResourceShareInvitationInput) SetClientToken(v string) *RejectResourceShareInvitationInput
- func (s *RejectResourceShareInvitationInput) SetResourceShareInvitationArn(v string) *RejectResourceShareInvitationInput
- func (s RejectResourceShareInvitationInput) String() string
- func (s *RejectResourceShareInvitationInput) Validate() error
- type RejectResourceShareInvitationOutput
- func (s RejectResourceShareInvitationOutput) GoString() string
- func (s *RejectResourceShareInvitationOutput) SetClientToken(v string) *RejectResourceShareInvitationOutput
- func (s *RejectResourceShareInvitationOutput) SetResourceShareInvitation(v *ResourceShareInvitation) *RejectResourceShareInvitationOutput
- func (s RejectResourceShareInvitationOutput) String() string
- type Resource
- func (s Resource) GoString() string
- func (s *Resource) SetArn(v string) *Resource
- func (s *Resource) SetCreationTime(v time.Time) *Resource
- func (s *Resource) SetLastUpdatedTime(v time.Time) *Resource
- func (s *Resource) SetResourceShareArn(v string) *Resource
- func (s *Resource) SetStatus(v string) *Resource
- func (s *Resource) SetStatusMessage(v string) *Resource
- func (s *Resource) SetType(v string) *Resource
- func (s Resource) String() string
- type ResourceShare
- func (s ResourceShare) GoString() string
- func (s *ResourceShare) SetAllowExternalPrincipals(v bool) *ResourceShare
- func (s *ResourceShare) SetCreationTime(v time.Time) *ResourceShare
- func (s *ResourceShare) SetLastUpdatedTime(v time.Time) *ResourceShare
- func (s *ResourceShare) SetName(v string) *ResourceShare
- func (s *ResourceShare) SetOwningAccountId(v string) *ResourceShare
- func (s *ResourceShare) SetResourceShareArn(v string) *ResourceShare
- func (s *ResourceShare) SetStatus(v string) *ResourceShare
- func (s *ResourceShare) SetStatusMessage(v string) *ResourceShare
- func (s *ResourceShare) SetTags(v []*Tag) *ResourceShare
- func (s ResourceShare) String() string
- type ResourceShareAssociation
- func (s ResourceShareAssociation) GoString() string
- func (s *ResourceShareAssociation) SetAssociatedEntity(v string) *ResourceShareAssociation
- func (s *ResourceShareAssociation) SetAssociationType(v string) *ResourceShareAssociation
- func (s *ResourceShareAssociation) SetCreationTime(v time.Time) *ResourceShareAssociation
- func (s *ResourceShareAssociation) SetExternal(v bool) *ResourceShareAssociation
- func (s *ResourceShareAssociation) SetLastUpdatedTime(v time.Time) *ResourceShareAssociation
- func (s *ResourceShareAssociation) SetResourceShareArn(v string) *ResourceShareAssociation
- func (s *ResourceShareAssociation) SetStatus(v string) *ResourceShareAssociation
- func (s *ResourceShareAssociation) SetStatusMessage(v string) *ResourceShareAssociation
- func (s ResourceShareAssociation) String() string
- type ResourceShareInvitation
- func (s ResourceShareInvitation) GoString() string
- func (s *ResourceShareInvitation) SetInvitationTimestamp(v time.Time) *ResourceShareInvitation
- func (s *ResourceShareInvitation) SetReceiverAccountId(v string) *ResourceShareInvitation
- func (s *ResourceShareInvitation) SetResourceShareArn(v string) *ResourceShareInvitation
- func (s *ResourceShareInvitation) SetResourceShareAssociations(v []*ResourceShareAssociation) *ResourceShareInvitation
- func (s *ResourceShareInvitation) SetResourceShareInvitationArn(v string) *ResourceShareInvitation
- func (s *ResourceShareInvitation) SetResourceShareName(v string) *ResourceShareInvitation
- func (s *ResourceShareInvitation) SetSenderAccountId(v string) *ResourceShareInvitation
- func (s *ResourceShareInvitation) SetStatus(v string) *ResourceShareInvitation
- func (s ResourceShareInvitation) String() string
- type Tag
- type TagFilter
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateResourceShareInput
- func (s UpdateResourceShareInput) GoString() string
- func (s *UpdateResourceShareInput) SetAllowExternalPrincipals(v bool) *UpdateResourceShareInput
- func (s *UpdateResourceShareInput) SetClientToken(v string) *UpdateResourceShareInput
- func (s *UpdateResourceShareInput) SetName(v string) *UpdateResourceShareInput
- func (s *UpdateResourceShareInput) SetResourceShareArn(v string) *UpdateResourceShareInput
- func (s UpdateResourceShareInput) String() string
- func (s *UpdateResourceShareInput) Validate() error
- type UpdateResourceShareOutput
Constants ¶
const ( // ResourceOwnerSelf is a ResourceOwner enum value ResourceOwnerSelf = "SELF" // ResourceOwnerOtherAccounts is a ResourceOwner enum value ResourceOwnerOtherAccounts = "OTHER-ACCOUNTS" )
const (ResourceShareAssociationStatusAssociating = "ASSOCIATING" ResourceShareAssociationStatusAssociated = "ASSOCIATED" ResourceShareAssociationStatusFailed = "FAILED" ResourceShareAssociationStatusDisassociating = "DISASSOCIATING" ResourceShareAssociationStatusDisassociated = "DISASSOCIATED" )
const (ResourceShareAssociationTypePrincipal = "PRINCIPAL" ResourceShareAssociationTypeResource = "RESOURCE" )
const (ResourceShareInvitationStatusPending = "PENDING" ResourceShareInvitationStatusAccepted = "ACCEPTED" ResourceShareInvitationStatusRejected = "REJECTED" ResourceShareInvitationStatusExpired = "EXPIRED" )
const (ResourceShareStatusPending = "PENDING" ResourceShareStatusActive = "ACTIVE" ResourceShareStatusFailed = "FAILED" ResourceShareStatusDeleting = "DELETING" ResourceShareStatusDeleted = "DELETED" )
const ( // ResourceStatusAvailable is a ResourceStatus enum value ResourceStatusAvailable = "AVAILABLE" // ResourceStatusZonalResourceInaccessible is a ResourceStatus enum value ResourceStatusZonalResourceInaccessible = "ZONAL_RESOURCE_INACCESSIBLE" // ResourceStatusLimitExceeded is a ResourceStatus enum value ResourceStatusLimitExceeded = "LIMIT_EXCEEDED" ResourceStatusUnavailable = "UNAVAILABLE" )
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" // "ResourceShareInvitationAlreadyAcceptedException". // // The invitation was already accepted. ErrCodeResourceShareInvitationAlreadyAcceptedException = "ResourceShareInvitationAlreadyAcceptedException" // "ResourceShareInvitationAlreadyRejectedException". // // The invitation was already rejected. ErrCodeResourceShareInvitationAlreadyRejectedException = "ResourceShareInvitationAlreadyRejectedException" // "ResourceShareInvitationArnNotFoundException". // // The Amazon Resource Name (ARN) for an invitation was not found. ErrCodeResourceShareInvitationArnNotFoundException = "ResourceShareInvitationArnNotFoundException" // "ResourceShareInvitationExpiredException". // // The invitation is expired. ErrCodeResourceShareInvitationExpiredException = "ResourceShareInvitationExpiredException" // "ResourceShareLimitExceededException". // // The requested resource share exceeds the limit for your account. ErrCodeResourceShareLimitExceededException = "ResourceShareLimitExceededException" // ErrCodeServerInternalException for service response error code // "ServerInternalException". // // The service could not respond to the request due to an internal problem. ErrCodeServerInternalException = "ServerInternalException" // "ServiceUnavailableException". // // The service is not available. ErrCodeServiceUnavailableException = "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" // Name of service. EndpointsID = "ram" // ID to lookup a service endpoint with. ServiceID = "RAM" // ServiceID is a unique identifer of a specific service. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptResourceShareInvitationInput ¶
type AcceptResourceShareInvitationInput struct { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` // // ResourceShareInvitationArn is a required field ResourceShareInvitationArn *string `locationName:"resourceShareInvitationArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (AcceptResourceShareInvitationInput) GoString ¶
func (s AcceptResourceShareInvitationInput) GoString() string
GoString returns the string representation
func (*AcceptResourceShareInvitationInput) SetClientToken ¶
func (s *AcceptResourceShareInvitationInput) SetClientToken(v string) *AcceptResourceShareInvitationInput
SetClientToken sets the ClientToken field's value.
func (*AcceptResourceShareInvitationInput) SetResourceShareInvitationArn ¶
func (s *AcceptResourceShareInvitationInput) SetResourceShareInvitationArn(v string) *AcceptResourceShareInvitationInput
SetResourceShareInvitationArn sets the ResourceShareInvitationArn field's value.
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 { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShareInvitation *ResourceShareInvitation `locationName:"resourceShareInvitation" type:"structure"` // contains filtered or unexported fields }
func (AcceptResourceShareInvitationOutput) GoString ¶
func (s AcceptResourceShareInvitationOutput) GoString() string
GoString returns the string representation
func (*AcceptResourceShareInvitationOutput) SetClientToken ¶
func (s *AcceptResourceShareInvitationOutput) SetClientToken(v string) *AcceptResourceShareInvitationOutput
SetClientToken sets the ClientToken field's value.
func (*AcceptResourceShareInvitationOutput) SetResourceShareInvitation ¶
func (s *AcceptResourceShareInvitationOutput) SetResourceShareInvitation(v *ResourceShareInvitation) *AcceptResourceShareInvitationOutput
SetResourceShareInvitation sets the ResourceShareInvitation field's value.
func (AcceptResourceShareInvitationOutput) String ¶
func (s AcceptResourceShareInvitationOutput) String() string
String returns the string representation
type AssociateResourceShareInput ¶
type AssociateResourceShareInput struct { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` Principals []*string `locationName:"principals" type:"list"` ResourceArns []*string `locationName:"resourceArns" type:"list"` // // ResourceShareArn is a required field ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (AssociateResourceShareInput) GoString ¶
func (s AssociateResourceShareInput) GoString() string
GoString returns the string representation
func (*AssociateResourceShareInput) SetClientToken ¶
func (s *AssociateResourceShareInput) SetClientToken(v string) *AssociateResourceShareInput
SetClientToken sets the ClientToken field's value.
func (*AssociateResourceShareInput) SetPrincipals ¶
func (s *AssociateResourceShareInput) SetPrincipals(v []*string) *AssociateResourceShareInput
SetPrincipals sets the Principals field's value.
func (*AssociateResourceShareInput) SetResourceArns ¶
func (s *AssociateResourceShareInput) SetResourceArns(v []*string) *AssociateResourceShareInput
SetResourceArns sets the ResourceArns field's value.
func (*AssociateResourceShareInput) SetResourceShareArn ¶
func (s *AssociateResourceShareInput) SetResourceShareArn(v string) *AssociateResourceShareInput
SetResourceShareArn sets the ResourceShareArn field's value.
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 { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` // contains filtered or unexported fields }
func (AssociateResourceShareOutput) GoString ¶
func (s AssociateResourceShareOutput) GoString() string
GoString returns the string representation
func (*AssociateResourceShareOutput) SetClientToken ¶
func (s *AssociateResourceShareOutput) SetClientToken(v string) *AssociateResourceShareOutput
SetClientToken sets the ClientToken field's value.
func (*AssociateResourceShareOutput) SetResourceShareAssociations ¶
func (s *AssociateResourceShareOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *AssociateResourceShareOutput
SetResourceShareAssociations sets the ResourceShareAssociations field's value.
func (AssociateResourceShareOutput) String ¶
func (s AssociateResourceShareOutput) String() string
String returns the string representation
type CreateResourceShareInput ¶
type CreateResourceShareInput struct { // with a resource share. AllowExternalPrincipals *bool `locationName:"allowExternalPrincipals" type:"boolean"` // of the request. ClientToken *string `locationName:"clientToken" type:"string"` // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // are IDs of AWS accounts, the ARN of an OU or organization from AWS Organizations. Principals []*string `locationName:"principals" type:"list"` // share. ResourceArns []*string `locationName:"resourceArns" type:"list"` Tags []*Tag `locationName:"tags" type:"list"` // contains filtered or unexported fields }
func (CreateResourceShareInput) GoString ¶
func (s CreateResourceShareInput) GoString() string
GoString returns the string representation
func (*CreateResourceShareInput) SetAllowExternalPrincipals ¶
func (s *CreateResourceShareInput) SetAllowExternalPrincipals(v bool) *CreateResourceShareInput
SetAllowExternalPrincipals sets the AllowExternalPrincipals field's value.
func (*CreateResourceShareInput) SetClientToken ¶
func (s *CreateResourceShareInput) SetClientToken(v string) *CreateResourceShareInput
SetClientToken sets the ClientToken field's value.
func (*CreateResourceShareInput) SetName ¶
func (s *CreateResourceShareInput) SetName(v string) *CreateResourceShareInput
SetName sets the Name field's value.
func (*CreateResourceShareInput) SetPrincipals ¶
func (s *CreateResourceShareInput) SetPrincipals(v []*string) *CreateResourceShareInput
SetPrincipals sets the Principals field's value.
func (*CreateResourceShareInput) SetResourceArns ¶
func (s *CreateResourceShareInput) SetResourceArns(v []*string) *CreateResourceShareInput
SetResourceArns sets the ResourceArns field's value.
func (*CreateResourceShareInput) SetTags ¶
func (s *CreateResourceShareInput) SetTags(v []*Tag) *CreateResourceShareInput
SetTags sets the Tags field's value.
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 { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShare *ResourceShare `locationName:"resourceShare" type:"structure"` // contains filtered or unexported fields }
func (CreateResourceShareOutput) GoString ¶
func (s CreateResourceShareOutput) GoString() string
GoString returns the string representation
func (*CreateResourceShareOutput) SetClientToken ¶
func (s *CreateResourceShareOutput) SetClientToken(v string) *CreateResourceShareOutput
SetClientToken sets the ClientToken field's value.
func (*CreateResourceShareOutput) SetResourceShare ¶
func (s *CreateResourceShareOutput) SetResourceShare(v *ResourceShare) *CreateResourceShareOutput
SetResourceShare sets the ResourceShare field's value.
func (CreateResourceShareOutput) String ¶
func (s CreateResourceShareOutput) String() string
String returns the string representation
type DeleteResourceShareInput ¶
type DeleteResourceShareInput struct { // of the request. ClientToken *string `location:"querystring" locationName:"clientToken" type:"string"` // // ResourceShareArn is a required field ResourceShareArn *string `location:"querystring" locationName:"resourceShareArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteResourceShareInput) GoString ¶
func (s DeleteResourceShareInput) GoString() string
GoString returns the string representation
func (*DeleteResourceShareInput) SetClientToken ¶
func (s *DeleteResourceShareInput) SetClientToken(v string) *DeleteResourceShareInput
SetClientToken sets the ClientToken field's value.
func (*DeleteResourceShareInput) SetResourceShareArn ¶
func (s *DeleteResourceShareInput) SetResourceShareArn(v string) *DeleteResourceShareInput
SetResourceShareArn sets the ResourceShareArn field's value.
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 { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ReturnValue *bool `locationName:"returnValue" type:"boolean"` // contains filtered or unexported fields }
func (DeleteResourceShareOutput) GoString ¶
func (s DeleteResourceShareOutput) GoString() string
GoString returns the string representation
func (*DeleteResourceShareOutput) SetClientToken ¶
func (s *DeleteResourceShareOutput) SetClientToken(v string) *DeleteResourceShareOutput
SetClientToken sets the ClientToken field's value.
func (*DeleteResourceShareOutput) SetReturnValue ¶
func (s *DeleteResourceShareOutput) SetReturnValue(v bool) *DeleteResourceShareOutput
SetReturnValue sets the ReturnValue field's value.
func (DeleteResourceShareOutput) String ¶
func (s DeleteResourceShareOutput) String() string
String returns the string representation
type DisassociateResourceShareInput ¶
type DisassociateResourceShareInput struct { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` Principals []*string `locationName:"principals" type:"list"` ResourceArns []*string `locationName:"resourceArns" type:"list"` // // ResourceShareArn is a required field ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (DisassociateResourceShareInput) GoString ¶
func (s DisassociateResourceShareInput) GoString() string
GoString returns the string representation
func (*DisassociateResourceShareInput) SetClientToken ¶
func (s *DisassociateResourceShareInput) SetClientToken(v string) *DisassociateResourceShareInput
SetClientToken sets the ClientToken field's value.
func (*DisassociateResourceShareInput) SetPrincipals ¶
func (s *DisassociateResourceShareInput) SetPrincipals(v []*string) *DisassociateResourceShareInput
SetPrincipals sets the Principals field's value.
func (*DisassociateResourceShareInput) SetResourceArns ¶
func (s *DisassociateResourceShareInput) SetResourceArns(v []*string) *DisassociateResourceShareInput
SetResourceArns sets the ResourceArns field's value.
func (*DisassociateResourceShareInput) SetResourceShareArn ¶
func (s *DisassociateResourceShareInput) SetResourceShareArn(v string) *DisassociateResourceShareInput
SetResourceShareArn sets the ResourceShareArn field's value.
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 { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` // contains filtered or unexported fields }
func (DisassociateResourceShareOutput) GoString ¶
func (s DisassociateResourceShareOutput) GoString() string
GoString returns the string representation
func (*DisassociateResourceShareOutput) SetClientToken ¶
func (s *DisassociateResourceShareOutput) SetClientToken(v string) *DisassociateResourceShareOutput
SetClientToken sets the ClientToken field's value.
func (*DisassociateResourceShareOutput) SetResourceShareAssociations ¶
func (s *DisassociateResourceShareOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *DisassociateResourceShareOutput
SetResourceShareAssociations sets the ResourceShareAssociations field's value.
func (DisassociateResourceShareOutput) String ¶
func (s DisassociateResourceShareOutput) String() string
String returns the string representation
type EnableSharingWithAwsOrganizationInput ¶
type EnableSharingWithAwsOrganizationInput struct {
// contains filtered or unexported fields
}
func (EnableSharingWithAwsOrganizationInput) GoString ¶
func (s EnableSharingWithAwsOrganizationInput) GoString() string
GoString returns the string representation
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 }
func (EnableSharingWithAwsOrganizationOutput) GoString ¶
func (s EnableSharingWithAwsOrganizationOutput) GoString() string
GoString returns the string representation
func (*EnableSharingWithAwsOrganizationOutput) SetReturnValue ¶
func (s *EnableSharingWithAwsOrganizationOutput) SetReturnValue(v bool) *EnableSharingWithAwsOrganizationOutput
SetReturnValue sets the ReturnValue field's value.
func (EnableSharingWithAwsOrganizationOutput) String ¶
func (s EnableSharingWithAwsOrganizationOutput) String() string
String returns the string representation
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 }
func (GetResourcePoliciesInput) GoString ¶
func (s GetResourcePoliciesInput) GoString() string
GoString returns the string representation
func (*GetResourcePoliciesInput) SetMaxResults ¶
func (s *GetResourcePoliciesInput) SetMaxResults(v int64) *GetResourcePoliciesInput
SetMaxResults sets the MaxResults field's value.
func (*GetResourcePoliciesInput) SetNextToken ¶
func (s *GetResourcePoliciesInput) SetNextToken(v string) *GetResourcePoliciesInput
SetNextToken sets the NextToken field's value.
func (*GetResourcePoliciesInput) SetPrincipal ¶
func (s *GetResourcePoliciesInput) SetPrincipal(v string) *GetResourcePoliciesInput
SetPrincipal sets the Principal field's value.
func (*GetResourcePoliciesInput) SetResourceArns ¶
func (s *GetResourcePoliciesInput) SetResourceArns(v []*string) *GetResourcePoliciesInput
SetResourceArns sets the ResourceArns field's value.
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 }
func (GetResourcePoliciesOutput) GoString ¶
func (s GetResourcePoliciesOutput) GoString() string
GoString returns the string representation
func (*GetResourcePoliciesOutput) SetNextToken ¶
func (s *GetResourcePoliciesOutput) SetNextToken(v string) *GetResourcePoliciesOutput
SetNextToken sets the NextToken field's value.
func (*GetResourcePoliciesOutput) SetPolicies ¶
func (s *GetResourcePoliciesOutput) SetPolicies(v []*string) *GetResourcePoliciesOutput
SetPolicies sets the Policies field's value.
func (GetResourcePoliciesOutput) String ¶
func (s GetResourcePoliciesOutput) String() string
String returns the string representation
type GetResourceShareAssociationsInput ¶
type GetResourceShareAssociationsInput struct { string `locationName:"associationStatus" type:"string" enum:"ResourceShareAssociationStatus"` // // AssociationType is a required field AssociationType *string `locationName:"associationType" type:"string" required:"true" enum:"ResourceShareAssociationType"` // remaining results, make another call with the returned nextToken value. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` NextToken *string `locationName:"nextToken" type:"string"` Principal *string `locationName:"principal" type:"string"` ResourceArn *string `locationName:"resourceArn" type:"string"` ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"` // contains filtered or unexported fields }AssociationStatus *
func (GetResourceShareAssociationsInput) GoString ¶
func (s GetResourceShareAssociationsInput) GoString() string
GoString returns the string representation
func (*GetResourceShareAssociationsInput) SetAssociationStatus ¶
func (s *GetResourceShareAssociationsInput) SetAssociationStatus(v string) *GetResourceShareAssociationsInput
SetAssociationStatus sets the AssociationStatus field's value.
func (*GetResourceShareAssociationsInput) SetAssociationType ¶
func (s *GetResourceShareAssociationsInput) SetAssociationType(v string) *GetResourceShareAssociationsInput
SetAssociationType sets the AssociationType field's value.
func (*GetResourceShareAssociationsInput) SetMaxResults ¶
func (s *GetResourceShareAssociationsInput) SetMaxResults(v int64) *GetResourceShareAssociationsInput
SetMaxResults sets the MaxResults field's value.
func (*GetResourceShareAssociationsInput) SetNextToken ¶
func (s *GetResourceShareAssociationsInput) SetNextToken(v string) *GetResourceShareAssociationsInput
SetNextToken sets the NextToken field's value.
func (*GetResourceShareAssociationsInput) SetPrincipal ¶
func (s *GetResourceShareAssociationsInput) SetPrincipal(v string) *GetResourceShareAssociationsInput
SetPrincipal sets the Principal field's value.
func (*GetResourceShareAssociationsInput) SetResourceArn ¶
func (s *GetResourceShareAssociationsInput) SetResourceArn(v string) *GetResourceShareAssociationsInput
SetResourceArn sets the ResourceArn field's value.
func (*GetResourceShareAssociationsInput) SetResourceShareArns ¶
func (s *GetResourceShareAssociationsInput) SetResourceShareArns(v []*string) *GetResourceShareAssociationsInput
SetResourceShareArns sets the ResourceShareArns field's value.
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 { // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` // contains filtered or unexported fields }
func (GetResourceShareAssociationsOutput) GoString ¶
func (s GetResourceShareAssociationsOutput) GoString() string
GoString returns the string representation
func (*GetResourceShareAssociationsOutput) SetNextToken ¶
func (s *GetResourceShareAssociationsOutput) SetNextToken(v string) *GetResourceShareAssociationsOutput
SetNextToken sets the NextToken field's value.
func (*GetResourceShareAssociationsOutput) SetResourceShareAssociations ¶
func (s *GetResourceShareAssociationsOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *GetResourceShareAssociationsOutput
SetResourceShareAssociations sets the ResourceShareAssociations field's value.
func (GetResourceShareAssociationsOutput) String ¶
func (s GetResourceShareAssociationsOutput) String() string
String returns the string representation
type GetResourceShareInvitationsInput ¶
type GetResourceShareInvitationsInput struct { // remaining results, make another call with the returned nextToken value. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` NextToken *string `locationName:"nextToken" type:"string"` ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"` ResourceShareInvitationArns []*string `locationName:"resourceShareInvitationArns" type:"list"` // contains filtered or unexported fields }
func (GetResourceShareInvitationsInput) GoString ¶
func (s GetResourceShareInvitationsInput) GoString() string
GoString returns the string representation
func (*GetResourceShareInvitationsInput) SetMaxResults ¶
func (s *GetResourceShareInvitationsInput) SetMaxResults(v int64) *GetResourceShareInvitationsInput
SetMaxResults sets the MaxResults field's value.
func (*GetResourceShareInvitationsInput) SetNextToken ¶
func (s *GetResourceShareInvitationsInput) SetNextToken(v string) *GetResourceShareInvitationsInput
SetNextToken sets the NextToken field's value.
func (*GetResourceShareInvitationsInput) SetResourceShareArns ¶
func (s *GetResourceShareInvitationsInput) SetResourceShareArns(v []*string) *GetResourceShareInvitationsInput
SetResourceShareArns sets the ResourceShareArns field's value.
func (*GetResourceShareInvitationsInput) SetResourceShareInvitationArns ¶
func (s *GetResourceShareInvitationsInput) SetResourceShareInvitationArns(v []*string) *GetResourceShareInvitationsInput
SetResourceShareInvitationArns sets the ResourceShareInvitationArns field's value.
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 { // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` ResourceShareInvitations []*ResourceShareInvitation `locationName:"resourceShareInvitations" type:"list"` // contains filtered or unexported fields }
func (GetResourceShareInvitationsOutput) GoString ¶
func (s GetResourceShareInvitationsOutput) GoString() string
GoString returns the string representation
func (*GetResourceShareInvitationsOutput) SetNextToken ¶
func (s *GetResourceShareInvitationsOutput) SetNextToken(v string) *GetResourceShareInvitationsOutput
SetNextToken sets the NextToken field's value.
func (*GetResourceShareInvitationsOutput) SetResourceShareInvitations ¶
func (s *GetResourceShareInvitationsOutput) SetResourceShareInvitations(v []*ResourceShareInvitation) *GetResourceShareInvitationsOutput
SetResourceShareInvitations sets the ResourceShareInvitations field's value.
func (GetResourceShareInvitationsOutput) String ¶
func (s GetResourceShareInvitationsOutput) String() string
String returns the string representation
type GetResourceSharesInput ¶
type GetResourceSharesInput struct { // remaining results, make another call with the returned nextToken value. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` Name *string `locationName:"name" type:"string"` NextToken *string `locationName:"nextToken" type:"string"` // // ResourceOwner is a required field ResourceOwner *string `locationName:"resourceOwner" type:"string" required:"true" enum:"ResourceOwner"` ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"` ResourceShareStatus *string `locationName:"resourceShareStatus" type:"string" enum:"ResourceShareStatus"` TagFilters []*TagFilter `locationName:"tagFilters" type:"list"` // contains filtered or unexported fields }
func (GetResourceSharesInput) GoString ¶
func (s GetResourceSharesInput) GoString() string
GoString returns the string representation
func (*GetResourceSharesInput) SetMaxResults ¶
func (s *GetResourceSharesInput) SetMaxResults(v int64) *GetResourceSharesInput
SetMaxResults sets the MaxResults field's value.
func (*GetResourceSharesInput) SetName ¶
func (s *GetResourceSharesInput) SetName(v string) *GetResourceSharesInput
SetName sets the Name field's value.
func (*GetResourceSharesInput) SetNextToken ¶
func (s *GetResourceSharesInput) SetNextToken(v string) *GetResourceSharesInput
SetNextToken sets the NextToken field's value.
func (*GetResourceSharesInput) SetResourceOwner ¶
func (s *GetResourceSharesInput) SetResourceOwner(v string) *GetResourceSharesInput
SetResourceOwner sets the ResourceOwner field's value.
func (*GetResourceSharesInput) SetResourceShareArns ¶
func (s *GetResourceSharesInput) SetResourceShareArns(v []*string) *GetResourceSharesInput
SetResourceShareArns sets the ResourceShareArns field's value.
func (*GetResourceSharesInput) SetResourceShareStatus ¶
func (s *GetResourceSharesInput) SetResourceShareStatus(v string) *GetResourceSharesInput
SetResourceShareStatus sets the ResourceShareStatus field's value.
func (*GetResourceSharesInput) SetTagFilters ¶
func (s *GetResourceSharesInput) SetTagFilters(v []*TagFilter) *GetResourceSharesInput
SetTagFilters sets the TagFilters field's value.
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 { // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` ResourceShares []*ResourceShare `locationName:"resourceShares" type:"list"` // contains filtered or unexported fields }
func (GetResourceSharesOutput) GoString ¶
func (s GetResourceSharesOutput) GoString() string
GoString returns the string representation
func (*GetResourceSharesOutput) SetNextToken ¶
func (s *GetResourceSharesOutput) SetNextToken(v string) *GetResourceSharesOutput
SetNextToken sets the NextToken field's value.
func (*GetResourceSharesOutput) SetResourceShares ¶
func (s *GetResourceSharesOutput) SetResourceShares(v []*ResourceShare) *GetResourceSharesOutput
SetResourceShares sets the ResourceShares field's value.
func (GetResourceSharesOutput) String ¶
func (s GetResourceSharesOutput) String() string
String returns the string representation
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 *string `locationName:"resourceOwner" type:"string" required:"true" enum:"ResourceOwner"` ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"` // The resource type. ResourceType *string `locationName:"resourceType" type:"string"` // contains filtered or unexported fields }
func (ListPrincipalsInput) GoString ¶
func (s ListPrincipalsInput) GoString() string
GoString returns the string representation
func (*ListPrincipalsInput) SetMaxResults ¶
func (s *ListPrincipalsInput) SetMaxResults(v int64) *ListPrincipalsInput
SetMaxResults sets the MaxResults field's value.
func (*ListPrincipalsInput) SetNextToken ¶
func (s *ListPrincipalsInput) SetNextToken(v string) *ListPrincipalsInput
SetNextToken sets the NextToken field's value.
func (*ListPrincipalsInput) SetPrincipals ¶
func (s *ListPrincipalsInput) SetPrincipals(v []*string) *ListPrincipalsInput
SetPrincipals sets the Principals field's value.
func (*ListPrincipalsInput) SetResourceArn ¶
func (s *ListPrincipalsInput) SetResourceArn(v string) *ListPrincipalsInput
SetResourceArn sets the ResourceArn field's value.
func (*ListPrincipalsInput) SetResourceOwner ¶
func (s *ListPrincipalsInput) SetResourceOwner(v string) *ListPrincipalsInput
SetResourceOwner sets the ResourceOwner field's value.
func (*ListPrincipalsInput) SetResourceShareArns ¶
func (s *ListPrincipalsInput) SetResourceShareArns(v []*string) *ListPrincipalsInput
SetResourceShareArns sets the ResourceShareArns field's value.
func (*ListPrincipalsInput) SetResourceType ¶
func (s *ListPrincipalsInput) SetResourceType(v string) *ListPrincipalsInput
SetResourceType sets the ResourceType field's value.
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 }
func (ListPrincipalsOutput) GoString ¶
func (s ListPrincipalsOutput) GoString() string
GoString returns the string representation
func (*ListPrincipalsOutput) SetNextToken ¶
func (s *ListPrincipalsOutput) SetNextToken(v string) *ListPrincipalsOutput
SetNextToken sets the NextToken field's value.
func (*ListPrincipalsOutput) SetPrincipals ¶
func (s *ListPrincipalsOutput) SetPrincipals(v []*Principal) *ListPrincipalsOutput
SetPrincipals sets the Principals field's value.
func (ListPrincipalsOutput) String ¶
func (s ListPrincipalsOutput) String() string
String returns the string representation
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 *string `locationName:"resourceOwner" type:"string" required:"true" enum:"ResourceOwner"` ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"` // The resource type. ResourceType *string `locationName:"resourceType" type:"string"` // contains filtered or unexported fields }
func (ListResourcesInput) GoString ¶
func (s ListResourcesInput) GoString() string
GoString returns the string representation
func (*ListResourcesInput) SetMaxResults ¶
func (s *ListResourcesInput) SetMaxResults(v int64) *ListResourcesInput
SetMaxResults sets the MaxResults field's value.
func (*ListResourcesInput) SetNextToken ¶
func (s *ListResourcesInput) SetNextToken(v string) *ListResourcesInput
SetNextToken sets the NextToken field's value.
func (*ListResourcesInput) SetPrincipal ¶
func (s *ListResourcesInput) SetPrincipal(v string) *ListResourcesInput
SetPrincipal sets the Principal field's value.
func (*ListResourcesInput) SetResourceArns ¶
func (s *ListResourcesInput) SetResourceArns(v []*string) *ListResourcesInput
SetResourceArns sets the ResourceArns field's value.
func (*ListResourcesInput) SetResourceOwner ¶
func (s *ListResourcesInput) SetResourceOwner(v string) *ListResourcesInput
SetResourceOwner sets the ResourceOwner field's value.
func (*ListResourcesInput) SetResourceShareArns ¶
func (s *ListResourcesInput) SetResourceShareArns(v []*string) *ListResourcesInput
SetResourceShareArns sets the ResourceShareArns field's value.
func (*ListResourcesInput) SetResourceType ¶
func (s *ListResourcesInput) SetResourceType(v string) *ListResourcesInput
SetResourceType sets the ResourceType field's value.
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 }
func (ListResourcesOutput) GoString ¶
func (s ListResourcesOutput) GoString() string
GoString returns the string representation
func (*ListResourcesOutput) SetNextToken ¶
func (s *ListResourcesOutput) SetNextToken(v string) *ListResourcesOutput
SetNextToken sets the NextToken field's value.
func (*ListResourcesOutput) SetResources ¶
func (s *ListResourcesOutput) SetResources(v []*Resource) *ListResourcesOutput
SetResources sets the Resources field's value.
func (ListResourcesOutput) String ¶
func (s ListResourcesOutput) String() string
String returns the string representation
type Principal ¶
type Principal struct { // The time when the principal was associated with the resource share. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` // 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"` ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` // contains filtered or unexported fields }
Describes a principal for use with AWS Resource Access Manager.
func (*Principal) SetCreationTime ¶
SetCreationTime sets the CreationTime field's value.
func (*Principal) SetExternal ¶
SetExternal sets the External field's value.
func (*Principal) SetLastUpdatedTime ¶
SetLastUpdatedTime sets the LastUpdatedTime field's value.
func (*Principal) SetResourceShareArn ¶
SetResourceShareArn sets the ResourceShareArn field's value.
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 ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *RAM
New creates a new instance of the RAM client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
// Create a RAM client from just a session. svc := ram.New(mySession) // Create a RAM client with additional configuration svc := ram.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*RAM) AcceptResourceShareInvitation ¶
func (c *RAM) AcceptResourceShareInvitation(input *AcceptResourceShareInvitationInput) (*AcceptResourceShareInvitationOutput, error)
AcceptResourceShareInvitation API operation for AWS Resource Access Manager.
Accepts an invitation to a resource share from another AWS account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation AcceptResourceShareInvitation for usage and error information.
Returned Error Codes:
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.
ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" The Amazon Resource Name (ARN) for an invitation was not found.
ErrCodeResourceShareInvitationAlreadyAcceptedException "ResourceShareInvitationAlreadyAcceptedException" The invitation was already accepted.
ErrCodeResourceShareInvitationAlreadyRejectedException "ResourceShareInvitationAlreadyRejectedException" The invitation was already rejected.
ErrCodeResourceShareInvitationExpiredException "ResourceShareInvitationExpiredException" The invitation is expired.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitation
func (*RAM) AcceptResourceShareInvitationRequest ¶
func (c *RAM) AcceptResourceShareInvitationRequest(input *AcceptResourceShareInvitationInput) (req *request.Request, output *AcceptResourceShareInvitationOutput)
AcceptResourceShareInvitationRequest generates a "aws/request.Request" representing the client's request for the AcceptResourceShareInvitation operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See AcceptResourceShareInvitation for more information on using the AcceptResourceShareInvitation API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the AcceptResourceShareInvitationRequest method. req, resp := client.AcceptResourceShareInvitationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitation
func (*RAM) AcceptResourceShareInvitationWithContext ¶
func (c *RAM) AcceptResourceShareInvitationWithContext(ctx aws.Context, input *AcceptResourceShareInvitationInput, opts ...request.Option) (*AcceptResourceShareInvitationOutput, error)
AcceptResourceShareInvitationWithContext is the same as AcceptResourceShareInvitation with the addition of the ability to pass a context and additional request options.
See AcceptResourceShareInvitation for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) AssociateResourceShare ¶
func (c *RAM) AssociateResourceShare(input *AssociateResourceShareInput) (*AssociateResourceShareOutput, error)
AssociateResourceShare API operation for AWS Resource Access Manager.
Associates the specified resource share with the specified principals and resources.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation AssociateResourceShare for usage and error information.
Returned Error Codes:
ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" A client token input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.
ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.
ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" The requested state transition is not valid.
ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" The requested resource share exceeds the limit for your account.
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" The requested state transition is not valid.
ErrCodeInvalidClientTokenException "InvalidClientTokenException" A client token is not valid.
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShare
func (*RAM) AssociateResourceShareRequest ¶
func (c *RAM) AssociateResourceShareRequest(input *AssociateResourceShareInput) (req *request.Request, output *AssociateResourceShareOutput)
AssociateResourceShareRequest generates a "aws/request.Request" representing the client's request for the AssociateResourceShare operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See AssociateResourceShare for more information on using the AssociateResourceShare API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the AssociateResourceShareRequest method. req, resp := client.AssociateResourceShareRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShare
func (*RAM) AssociateResourceShareWithContext ¶
func (c *RAM) AssociateResourceShareWithContext(ctx aws.Context, input *AssociateResourceShareInput, opts ...request.Option) (*AssociateResourceShareOutput, error)
AssociateResourceShareWithContext is the same as AssociateResourceShare with the addition of the ability to pass a context and additional request options.
See AssociateResourceShare for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) CreateResourceShare ¶
func (c *RAM) CreateResourceShare(input *CreateResourceShareInput) (*CreateResourceShareOutput, error)
CreateResourceShare API operation for AWS Resource Access Manager.
Creates a resource share.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation CreateResourceShare for usage and error information.
Returned Error Codes:
ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" A client token input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.
ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" The requested state transition is not valid.
ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeInvalidClientTokenException "InvalidClientTokenException" A client token is not valid.
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.
ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" The requested resource share exceeds the limit for your account.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShare
func (*RAM) CreateResourceShareRequest ¶
func (c *RAM) CreateResourceShareRequest(input *CreateResourceShareInput) (req *request.Request, output *CreateResourceShareOutput)
CreateResourceShareRequest generates a "aws/request.Request" representing the client's request for the CreateResourceShare operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateResourceShare for more information on using the CreateResourceShare API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateResourceShareRequest method. req, resp := client.CreateResourceShareRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShare
func (*RAM) CreateResourceShareWithContext ¶
func (c *RAM) CreateResourceShareWithContext(ctx aws.Context, input *CreateResourceShareInput, opts ...request.Option) (*CreateResourceShareOutput, error)
CreateResourceShareWithContext is the same as CreateResourceShare with the addition of the ability to pass a context and additional request options.
See CreateResourceShare for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) DeleteResourceShare ¶
func (c *RAM) DeleteResourceShare(input *DeleteResourceShareInput) (*DeleteResourceShareOutput, error)
DeleteResourceShare API operation for AWS Resource Access Manager.
Deletes the specified resource share.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation DeleteResourceShare for usage and error information.
Returned Error Codes:
ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.
ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" A client token input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.
ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" The requested state transition is not valid.
ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeInvalidClientTokenException "InvalidClientTokenException" A client token is not valid.
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShare
func (*RAM) DeleteResourceShareRequest ¶
func (c *RAM) DeleteResourceShareRequest(input *DeleteResourceShareInput) (req *request.Request, output *DeleteResourceShareOutput)
DeleteResourceShareRequest generates a "aws/request.Request" representing the client's request for the DeleteResourceShare operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteResourceShare for more information on using the DeleteResourceShare API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteResourceShareRequest method. req, resp := client.DeleteResourceShareRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShare
func (*RAM) DeleteResourceShareWithContext ¶
func (c *RAM) DeleteResourceShareWithContext(ctx aws.Context, input *DeleteResourceShareInput, opts ...request.Option) (*DeleteResourceShareOutput, error)
DeleteResourceShareWithContext is the same as DeleteResourceShare with the addition of the ability to pass a context and additional request options.
See DeleteResourceShare for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) DisassociateResourceShare ¶
func (c *RAM) DisassociateResourceShare(input *DisassociateResourceShareInput) (*DisassociateResourceShareOutput, error)
DisassociateResourceShare API operation for AWS Resource Access Manager.
Disassociates the specified principals or resources from the specified resource share.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation DisassociateResourceShare for usage and error information.
Returned Error Codes:
ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" A client token input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.
ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" The requested resource share exceeds the limit for your account.
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" The requested state transition is not valid.
ErrCodeInvalidClientTokenException "InvalidClientTokenException" A client token is not valid.
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShare
func (*RAM) DisassociateResourceShareRequest ¶
func (c *RAM) DisassociateResourceShareRequest(input *DisassociateResourceShareInput) (req *request.Request, output *DisassociateResourceShareOutput)
DisassociateResourceShareRequest generates a "aws/request.Request" representing the client's request for the DisassociateResourceShare operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DisassociateResourceShare for more information on using the DisassociateResourceShare API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DisassociateResourceShareRequest method. req, resp := client.DisassociateResourceShareRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShare
func (*RAM) DisassociateResourceShareWithContext ¶
func (c *RAM) DisassociateResourceShareWithContext(ctx aws.Context, input *DisassociateResourceShareInput, opts ...request.Option) (*DisassociateResourceShareOutput, error)
DisassociateResourceShareWithContext is the same as DisassociateResourceShare with the addition of the ability to pass a context and additional request options.
See DisassociateResourceShare for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) EnableSharingWithAwsOrganization ¶
func (c *RAM) EnableSharingWithAwsOrganization(input *EnableSharingWithAwsOrganizationInput) (*EnableSharingWithAwsOrganizationOutput, error)
EnableSharingWithAwsOrganization API operation for AWS Resource Access Manager.
Enables resource sharing within your organization.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation EnableSharingWithAwsOrganization for usage and error information.
Returned Error Codes:
ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganization
func (*RAM) EnableSharingWithAwsOrganizationRequest ¶
func (c *RAM) EnableSharingWithAwsOrganizationRequest(input *EnableSharingWithAwsOrganizationInput) (req *request.Request, output *EnableSharingWithAwsOrganizationOutput)
EnableSharingWithAwsOrganizationRequest generates a "aws/request.Request" representing the client's request for the EnableSharingWithAwsOrganization operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See EnableSharingWithAwsOrganization for more information on using the EnableSharingWithAwsOrganization API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the EnableSharingWithAwsOrganizationRequest method. req, resp := client.EnableSharingWithAwsOrganizationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganization
func (*RAM) EnableSharingWithAwsOrganizationWithContext ¶
func (c *RAM) EnableSharingWithAwsOrganizationWithContext(ctx aws.Context, input *EnableSharingWithAwsOrganizationInput, opts ...request.Option) (*EnableSharingWithAwsOrganizationOutput, error)
EnableSharingWithAwsOrganizationWithContext is the same as EnableSharingWithAwsOrganization with the addition of the ability to pass a context and additional request options.
See EnableSharingWithAwsOrganization for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) GetResourcePolicies ¶
func (c *RAM) GetResourcePolicies(input *GetResourcePoliciesInput) (*GetResourcePoliciesOutput, error)
GetResourcePolicies API operation for AWS Resource Access Manager.
Gets the policies for the specifies resources.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation GetResourcePolicies for usage and error information.
Returned Error Codes:
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePolicies
func (*RAM) GetResourcePoliciesPages ¶
func (c *RAM) GetResourcePoliciesPages(input *GetResourcePoliciesInput, fn func(*GetResourcePoliciesOutput, bool) bool) error
GetResourcePoliciesPages iterates over the pages of a GetResourcePolicies operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See GetResourcePolicies method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetResourcePolicies operation. pageNum := 0 err := client.GetResourcePoliciesPages(params, func(page *GetResourcePoliciesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*RAM) GetResourcePoliciesPagesWithContext ¶
func (c *RAM) GetResourcePoliciesPagesWithContext(ctx aws.Context, input *GetResourcePoliciesInput, fn func(*GetResourcePoliciesOutput, bool) bool, opts ...request.Option) error
GetResourcePoliciesPagesWithContext same as GetResourcePoliciesPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) GetResourcePoliciesRequest ¶
func (c *RAM) GetResourcePoliciesRequest(input *GetResourcePoliciesInput) (req *request.Request, output *GetResourcePoliciesOutput)
GetResourcePoliciesRequest generates a "aws/request.Request" representing the client's request for the GetResourcePolicies operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetResourcePolicies for more information on using the GetResourcePolicies API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetResourcePoliciesRequest method. req, resp := client.GetResourcePoliciesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePolicies
func (*RAM) GetResourcePoliciesWithContext ¶
func (c *RAM) GetResourcePoliciesWithContext(ctx aws.Context, input *GetResourcePoliciesInput, opts ...request.Option) (*GetResourcePoliciesOutput, error)
GetResourcePoliciesWithContext is the same as GetResourcePolicies with the addition of the ability to pass a context and additional request options.
See GetResourcePolicies for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) GetResourceShareAssociations ¶
func (c *RAM) GetResourceShareAssociations(input *GetResourceShareAssociationsInput) (*GetResourceShareAssociationsOutput, error)
GetResourceShareAssociations API operation for AWS Resource Access Manager.
Gets the associations for the specified resource share.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation GetResourceShareAssociations for usage and error information.
Returned Error Codes:
ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociations
func (*RAM) GetResourceShareAssociationsPages ¶
func (c *RAM) GetResourceShareAssociationsPages(input *GetResourceShareAssociationsInput, fn func(*GetResourceShareAssociationsOutput, bool) bool) error
GetResourceShareAssociationsPages iterates over the pages of a GetResourceShareAssociations operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See GetResourceShareAssociations method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetResourceShareAssociations operation. pageNum := 0 err := client.GetResourceShareAssociationsPages(params, func(page *GetResourceShareAssociationsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*RAM) GetResourceShareAssociationsPagesWithContext ¶
func (c *RAM) GetResourceShareAssociationsPagesWithContext(ctx aws.Context, input *GetResourceShareAssociationsInput, fn func(*GetResourceShareAssociationsOutput, bool) bool, opts ...request.Option) error
GetResourceShareAssociationsPagesWithContext same as GetResourceShareAssociationsPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) GetResourceShareAssociationsRequest ¶
func (c *RAM) GetResourceShareAssociationsRequest(input *GetResourceShareAssociationsInput) (req *request.Request, output *GetResourceShareAssociationsOutput)
GetResourceShareAssociationsRequest generates a "aws/request.Request" representing the client's request for the GetResourceShareAssociations operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetResourceShareAssociations for more information on using the GetResourceShareAssociations API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetResourceShareAssociationsRequest method. req, resp := client.GetResourceShareAssociationsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociations
func (*RAM) GetResourceShareAssociationsWithContext ¶
func (c *RAM) GetResourceShareAssociationsWithContext(ctx aws.Context, input *GetResourceShareAssociationsInput, opts ...request.Option) (*GetResourceShareAssociationsOutput, error)
GetResourceShareAssociationsWithContext is the same as GetResourceShareAssociations with the addition of the ability to pass a context and additional request options.
See GetResourceShareAssociations for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) GetResourceShareInvitations ¶
func (c *RAM) GetResourceShareInvitations(input *GetResourceShareInvitationsInput) (*GetResourceShareInvitationsOutput, error)
GetResourceShareInvitations API operation for AWS Resource Access Manager.
Gets the specified invitations for resource sharing.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation GetResourceShareInvitations for usage and error information.
Returned Error Codes:
ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" The Amazon Resource Name (ARN) for an invitation was not found.
ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" The specified value for MaxResults is not valid.
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitations
func (*RAM) GetResourceShareInvitationsPages ¶
func (c *RAM) GetResourceShareInvitationsPages(input *GetResourceShareInvitationsInput, fn func(*GetResourceShareInvitationsOutput, bool) bool) error
GetResourceShareInvitationsPages iterates over the pages of a GetResourceShareInvitations operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See GetResourceShareInvitations method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetResourceShareInvitations operation. pageNum := 0 err := client.GetResourceShareInvitationsPages(params, func(page *GetResourceShareInvitationsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*RAM) GetResourceShareInvitationsPagesWithContext ¶
func (c *RAM) GetResourceShareInvitationsPagesWithContext(ctx aws.Context, input *GetResourceShareInvitationsInput, fn func(*GetResourceShareInvitationsOutput, bool) bool, opts ...request.Option) error
GetResourceShareInvitationsPagesWithContext same as GetResourceShareInvitationsPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) GetResourceShareInvitationsRequest ¶
func (c *RAM) GetResourceShareInvitationsRequest(input *GetResourceShareInvitationsInput) (req *request.Request, output *GetResourceShareInvitationsOutput)
GetResourceShareInvitationsRequest generates a "aws/request.Request" representing the client's request for the GetResourceShareInvitations operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetResourceShareInvitations for more information on using the GetResourceShareInvitations API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetResourceShareInvitationsRequest method. req, resp := client.GetResourceShareInvitationsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitations
func (*RAM) GetResourceShareInvitationsWithContext ¶
func (c *RAM) GetResourceShareInvitationsWithContext(ctx aws.Context, input *GetResourceShareInvitationsInput, opts ...request.Option) (*GetResourceShareInvitationsOutput, error)
GetResourceShareInvitationsWithContext is the same as GetResourceShareInvitations with the addition of the ability to pass a context and additional request options.
See GetResourceShareInvitations for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) GetResourceShares ¶
func (c *RAM) GetResourceShares(input *GetResourceSharesInput) (*GetResourceSharesOutput, error)
GetResourceShares API operation for AWS Resource Access Manager.
Gets the specified resource shares or all of your resource shares.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation GetResourceShares for usage and error information.
Returned Error Codes:
ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShares
func (*RAM) GetResourceSharesPages ¶
func (c *RAM) GetResourceSharesPages(input *GetResourceSharesInput, fn func(*GetResourceSharesOutput, bool) bool) error
GetResourceSharesPages iterates over the pages of a GetResourceShares operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See GetResourceShares method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetResourceShares operation. pageNum := 0 err := client.GetResourceSharesPages(params, func(page *GetResourceSharesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*RAM) GetResourceSharesPagesWithContext ¶
func (c *RAM) GetResourceSharesPagesWithContext(ctx aws.Context, input *GetResourceSharesInput, fn func(*GetResourceSharesOutput, bool) bool, opts ...request.Option) error
GetResourceSharesPagesWithContext same as GetResourceSharesPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) GetResourceSharesRequest ¶
func (c *RAM) GetResourceSharesRequest(input *GetResourceSharesInput) (req *request.Request, output *GetResourceSharesOutput)
GetResourceSharesRequest generates a "aws/request.Request" representing the client's request for the GetResourceShares operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetResourceShares for more information on using the GetResourceShares API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetResourceSharesRequest method. req, resp := client.GetResourceSharesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShares
func (*RAM) GetResourceSharesWithContext ¶
func (c *RAM) GetResourceSharesWithContext(ctx aws.Context, input *GetResourceSharesInput, opts ...request.Option) (*GetResourceSharesOutput, error)
GetResourceSharesWithContext is the same as GetResourceShares with the addition of the ability to pass a context and additional request options.
See GetResourceShares for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) ListPrincipals ¶
func (c *RAM) ListPrincipals(input *ListPrincipalsInput) (*ListPrincipalsOutput, error)
ListPrincipals API operation for AWS Resource Access Manager.
Lists the principals with access to the specified resource.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation ListPrincipals for usage and error information.
Returned Error Codes:
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.
ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipals
func (*RAM) ListPrincipalsPages ¶
func (c *RAM) ListPrincipalsPages(input *ListPrincipalsInput, fn func(*ListPrincipalsOutput, bool) bool) error
ListPrincipalsPages iterates over the pages of a ListPrincipals operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListPrincipals method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListPrincipals operation. pageNum := 0 err := client.ListPrincipalsPages(params, func(page *ListPrincipalsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*RAM) ListPrincipalsPagesWithContext ¶
func (c *RAM) ListPrincipalsPagesWithContext(ctx aws.Context, input *ListPrincipalsInput, fn func(*ListPrincipalsOutput, bool) bool, opts ...request.Option) error
ListPrincipalsPagesWithContext same as ListPrincipalsPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) ListPrincipalsRequest ¶
func (c *RAM) ListPrincipalsRequest(input *ListPrincipalsInput) (req *request.Request, output *ListPrincipalsOutput)
ListPrincipalsRequest generates a "aws/request.Request" representing the client's request for the ListPrincipals operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListPrincipals for more information on using the ListPrincipals API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListPrincipalsRequest method. req, resp := client.ListPrincipalsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipals
func (*RAM) ListPrincipalsWithContext ¶
func (c *RAM) ListPrincipalsWithContext(ctx aws.Context, input *ListPrincipalsInput, opts ...request.Option) (*ListPrincipalsOutput, error)
ListPrincipalsWithContext is the same as ListPrincipals with the addition of the ability to pass a context and additional request options.
See ListPrincipals for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) ListResources ¶
func (c *RAM) ListResources(input *ListResourcesInput) (*ListResourcesOutput, error)
ListResources API operation for AWS Resource Access Manager.
Lists the resources that the specified principal can access.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation ListResources for usage and error information.
Returned Error Codes:
ErrCodeInvalidResourceTypeException "InvalidResourceTypeException" The specified resource type is not valid.
ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeInvalidNextTokenException "InvalidNextTokenException" The specified value for NextToken is not valid.
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResources
func (*RAM) ListResourcesPages ¶
func (c *RAM) ListResourcesPages(input *ListResourcesInput, fn func(*ListResourcesOutput, bool) bool) error
ListResourcesPages iterates over the pages of a ListResources operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListResources method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListResources operation. pageNum := 0 err := client.ListResourcesPages(params, func(page *ListResourcesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*RAM) ListResourcesPagesWithContext ¶
func (c *RAM) ListResourcesPagesWithContext(ctx aws.Context, input *ListResourcesInput, fn func(*ListResourcesOutput, bool) bool, opts ...request.Option) error
ListResourcesPagesWithContext same as ListResourcesPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) ListResourcesRequest ¶
func (c *RAM) ListResourcesRequest(input *ListResourcesInput) (req *request.Request, output *ListResourcesOutput)
ListResourcesRequest generates a "aws/request.Request" representing the client's request for the ListResources operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListResources for more information on using the ListResources API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListResourcesRequest method. req, resp := client.ListResourcesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResources
func (*RAM) ListResourcesWithContext ¶
func (c *RAM) ListResourcesWithContext(ctx aws.Context, input *ListResourcesInput, opts ...request.Option) (*ListResourcesOutput, error)
ListResourcesWithContext is the same as ListResources with the addition of the ability to pass a context and additional request options.
See ListResources for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) RejectResourceShareInvitation ¶
func (c *RAM) RejectResourceShareInvitation(input *RejectResourceShareInvitationInput) (*RejectResourceShareInvitationOutput, error)
RejectResourceShareInvitation API operation for AWS Resource Access Manager.
Rejects an invitation to a resource share from another AWS account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation RejectResourceShareInvitation for usage and error information.
Returned Error Codes:
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.
ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" The Amazon Resource Name (ARN) for an invitation was not found.
ErrCodeResourceShareInvitationAlreadyAcceptedException "ResourceShareInvitationAlreadyAcceptedException" The invitation was already accepted.
ErrCodeResourceShareInvitationAlreadyRejectedException "ResourceShareInvitationAlreadyRejectedException" The invitation was already rejected.
ErrCodeResourceShareInvitationExpiredException "ResourceShareInvitationExpiredException" The invitation is expired.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitation
func (*RAM) RejectResourceShareInvitationRequest ¶
func (c *RAM) RejectResourceShareInvitationRequest(input *RejectResourceShareInvitationInput) (req *request.Request, output *RejectResourceShareInvitationOutput)
RejectResourceShareInvitationRequest generates a "aws/request.Request" representing the client's request for the RejectResourceShareInvitation operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See RejectResourceShareInvitation for more information on using the RejectResourceShareInvitation API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the RejectResourceShareInvitationRequest method. req, resp := client.RejectResourceShareInvitationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitation
func (*RAM) RejectResourceShareInvitationWithContext ¶
func (c *RAM) RejectResourceShareInvitationWithContext(ctx aws.Context, input *RejectResourceShareInvitationInput, opts ...request.Option) (*RejectResourceShareInvitationOutput, error)
RejectResourceShareInvitationWithContext is the same as RejectResourceShareInvitation with the addition of the ability to pass a context and additional request options.
See RejectResourceShareInvitation for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) TagResource ¶
func (c *RAM) TagResource(input *TagResourceInput) (*TagResourceOutput, error)
TagResource API operation for AWS Resource Access Manager.
Adds the specified tags to the specified resource share.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation TagResource for usage and error information.
Returned Error Codes:
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeTagLimitExceededException "TagLimitExceededException" The requested tags exceed the limit for your account.
ErrCodeResourceArnNotFoundException "ResourceArnNotFoundException" An Amazon Resource Name (ARN) was not found.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResource
func (*RAM) TagResourceRequest ¶
func (c *RAM) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)
TagResourceRequest generates a "aws/request.Request" representing the client's request for the TagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See TagResource for more information on using the TagResource API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the TagResourceRequest method. req, resp := client.TagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResource
func (*RAM) TagResourceWithContext ¶
func (c *RAM) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)
TagResourceWithContext is the same as TagResource with the addition of the ability to pass a context and additional request options.
See TagResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) UntagResource ¶
func (c *RAM) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)
UntagResource API operation for AWS Resource Access Manager.
Removes the specified tags from the specified resource share.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation UntagResource for usage and error information.
Returned Error Codes:
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource
func (*RAM) UntagResourceRequest ¶
func (c *RAM) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)
UntagResourceRequest generates a "aws/request.Request" representing the client's request for the UntagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UntagResource for more information on using the UntagResource API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UntagResourceRequest method. req, resp := client.UntagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource
func (*RAM) UntagResourceWithContext ¶
func (c *RAM) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)
UntagResourceWithContext is the same as UntagResource with the addition of the ability to pass a context and additional request options.
See UntagResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*RAM) UpdateResourceShare ¶
func (c *RAM) UpdateResourceShare(input *UpdateResourceShareInput) (*UpdateResourceShareOutput, error)
UpdateResourceShare API operation for AWS Resource Access Manager.
Updates the specified resource share.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Resource Access Manager's API operation UpdateResourceShare for usage and error information.
Returned Error Codes:
ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" A client token input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.
ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" A required input parameter is missing.
ErrCodeUnknownResourceException "UnknownResourceException" A specified resource was not found.
ErrCodeMalformedArnException "MalformedArnException" The format of an Amazon Resource Name (ARN) is not valid.
ErrCodeInvalidClientTokenException "InvalidClientTokenException" A client token is not valid.
ErrCodeInvalidParameterException "InvalidParameterException" A parameter is not valid.
ErrCodeOperationNotPermittedException "OperationNotPermittedException" The requested operation is not permitted.
ErrCodeServerInternalException "ServerInternalException" The service could not respond to the request due to an internal problem.
ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is not available.
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShare
func (*RAM) UpdateResourceShareRequest ¶
func (c *RAM) UpdateResourceShareRequest(input *UpdateResourceShareInput) (req *request.Request, output *UpdateResourceShareOutput)
UpdateResourceShareRequest generates a "aws/request.Request" representing the client's request for the UpdateResourceShare operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UpdateResourceShare for more information on using the UpdateResourceShare API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UpdateResourceShareRequest method. req, resp := client.UpdateResourceShareRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShare
func (*RAM) UpdateResourceShareWithContext ¶
func (c *RAM) UpdateResourceShareWithContext(ctx aws.Context, input *UpdateResourceShareInput, opts ...request.Option) (*UpdateResourceShareOutput, error)
UpdateResourceShareWithContext is the same as UpdateResourceShare with the addition of the ability to pass a context and additional request options.
See UpdateResourceShare for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type RejectResourceShareInvitationInput ¶
type RejectResourceShareInvitationInput struct { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` // // ResourceShareInvitationArn is a required field ResourceShareInvitationArn *string `locationName:"resourceShareInvitationArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (RejectResourceShareInvitationInput) GoString ¶
func (s RejectResourceShareInvitationInput) GoString() string
GoString returns the string representation
func (*RejectResourceShareInvitationInput) SetClientToken ¶
func (s *RejectResourceShareInvitationInput) SetClientToken(v string) *RejectResourceShareInvitationInput
SetClientToken sets the ClientToken field's value.
func (*RejectResourceShareInvitationInput) SetResourceShareInvitationArn ¶
func (s *RejectResourceShareInvitationInput) SetResourceShareInvitationArn(v string) *RejectResourceShareInvitationInput
SetResourceShareInvitationArn sets the ResourceShareInvitationArn field's value.
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 { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShareInvitation *ResourceShareInvitation `locationName:"resourceShareInvitation" type:"structure"` // contains filtered or unexported fields }
func (RejectResourceShareInvitationOutput) GoString ¶
func (s RejectResourceShareInvitationOutput) GoString() string
GoString returns the string representation
func (*RejectResourceShareInvitationOutput) SetClientToken ¶
func (s *RejectResourceShareInvitationOutput) SetClientToken(v string) *RejectResourceShareInvitationOutput
SetClientToken sets the ClientToken field's value.
func (*RejectResourceShareInvitationOutput) SetResourceShareInvitation ¶
func (s *RejectResourceShareInvitationOutput) SetResourceShareInvitation(v *ResourceShareInvitation) *RejectResourceShareInvitationOutput
SetResourceShareInvitation sets the ResourceShareInvitation field's value.
func (RejectResourceShareInvitationOutput) String ¶
func (s RejectResourceShareInvitationOutput) String() string
String returns the string representation
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"` // The time when the association was last updated. LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"` ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` // The status of the resource. Status *string `locationName:"status" type:"string" enum:"ResourceStatus"` // 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.
func (*Resource) SetCreationTime ¶
SetCreationTime sets the CreationTime field's value.
func (*Resource) SetLastUpdatedTime ¶
SetLastUpdatedTime sets the LastUpdatedTime field's value.
func (*Resource) SetResourceShareArn ¶
SetResourceShareArn sets the ResourceShareArn field's value.
func (*Resource) SetStatusMessage ¶
SetStatusMessage sets the StatusMessage field's value.
type ResourceShare ¶
type ResourceShare struct { // with a resource share. AllowExternalPrincipals *bool `locationName:"allowExternalPrincipals" type:"boolean"` CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"` Name *string `locationName:"name" type:"string"` OwningAccountId *string `locationName:"owningAccountId" type:"string"` ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` Status *string `locationName:"status" type:"string" enum:"ResourceShareStatus"` StatusMessage *string `locationName:"statusMessage" type:"string"` Tags []*Tag `locationName:"tags" type:"list"` // contains filtered or unexported fields }
Describes a resource share.
func (ResourceShare) GoString ¶
func (s ResourceShare) GoString() string
GoString returns the string representation
func (*ResourceShare) SetAllowExternalPrincipals ¶
func (s *ResourceShare) SetAllowExternalPrincipals(v bool) *ResourceShare
SetAllowExternalPrincipals sets the AllowExternalPrincipals field's value.
func (*ResourceShare) SetCreationTime ¶
func (s *ResourceShare) SetCreationTime(v time.Time) *ResourceShare
SetCreationTime sets the CreationTime field's value.
func (*ResourceShare) SetLastUpdatedTime ¶
func (s *ResourceShare) SetLastUpdatedTime(v time.Time) *ResourceShare
SetLastUpdatedTime sets the LastUpdatedTime field's value.
func (*ResourceShare) SetName ¶
func (s *ResourceShare) SetName(v string) *ResourceShare
SetName sets the Name field's value.
func (*ResourceShare) SetOwningAccountId ¶
func (s *ResourceShare) SetOwningAccountId(v string) *ResourceShare
SetOwningAccountId sets the OwningAccountId field's value.
func (*ResourceShare) SetResourceShareArn ¶
func (s *ResourceShare) SetResourceShareArn(v string) *ResourceShare
SetResourceShareArn sets the ResourceShareArn field's value.
func (*ResourceShare) SetStatus ¶
func (s *ResourceShare) SetStatus(v string) *ResourceShare
SetStatus sets the Status field's value.
func (*ResourceShare) SetStatusMessage ¶
func (s *ResourceShare) SetStatusMessage(v string) *ResourceShare
SetStatusMessage sets the StatusMessage field's value.
func (*ResourceShare) SetTags ¶
func (s *ResourceShare) SetTags(v []*Tag) *ResourceShare
SetTags sets the Tags field's value.
func (ResourceShare) String ¶
func (s ResourceShare) String() string
String returns the string representation
type ResourceShareAssociation ¶
type ResourceShareAssociation struct { // resource. For principal associations, this is the ID of an AWS account or // the ARN of an OU or organization from AWS Organizations. AssociatedEntity *string `locationName:"associatedEntity" type:"string"` AssociationType *string `locationName:"associationType" type:"string" enum:"ResourceShareAssociationType"` CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` // account that owns the resource share. External *bool `locationName:"external" type:"boolean"` LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"` ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` Status *string `locationName:"status" type:"string" enum:"ResourceShareAssociationStatus"` StatusMessage *string `locationName:"statusMessage" type:"string"` // contains filtered or unexported fields }
Describes an association with a resource share.
func (ResourceShareAssociation) GoString ¶
func (s ResourceShareAssociation) GoString() string
GoString returns the string representation
func (*ResourceShareAssociation) SetAssociatedEntity ¶
func (s *ResourceShareAssociation) SetAssociatedEntity(v string) *ResourceShareAssociation
SetAssociatedEntity sets the AssociatedEntity field's value.
func (*ResourceShareAssociation) SetAssociationType ¶
func (s *ResourceShareAssociation) SetAssociationType(v string) *ResourceShareAssociation
SetAssociationType sets the AssociationType field's value.
func (*ResourceShareAssociation) SetCreationTime ¶
func (s *ResourceShareAssociation) SetCreationTime(v time.Time) *ResourceShareAssociation
SetCreationTime sets the CreationTime field's value.
func (*ResourceShareAssociation) SetExternal ¶
func (s *ResourceShareAssociation) SetExternal(v bool) *ResourceShareAssociation
SetExternal sets the External field's value.
func (*ResourceShareAssociation) SetLastUpdatedTime ¶
func (s *ResourceShareAssociation) SetLastUpdatedTime(v time.Time) *ResourceShareAssociation
SetLastUpdatedTime sets the LastUpdatedTime field's value.
func (*ResourceShareAssociation) SetResourceShareArn ¶
func (s *ResourceShareAssociation) SetResourceShareArn(v string) *ResourceShareAssociation
SetResourceShareArn sets the ResourceShareArn field's value.
func (*ResourceShareAssociation) SetStatus ¶
func (s *ResourceShareAssociation) SetStatus(v string) *ResourceShareAssociation
SetStatus sets the Status field's value.
func (*ResourceShareAssociation) SetStatusMessage ¶
func (s *ResourceShareAssociation) SetStatusMessage(v string) *ResourceShareAssociation
SetStatusMessage sets the StatusMessage field's value.
func (ResourceShareAssociation) String ¶
func (s ResourceShareAssociation) String() string
String returns the string representation
type ResourceShareInvitation ¶
type ResourceShareInvitation struct { time.Time `locationName:"invitationTimestamp" type:"timestamp"` ReceiverAccountId *string `locationName:"receiverAccountId" type:"string"` ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` ResourceShareInvitationArn *string `locationName:"resourceShareInvitationArn" type:"string"` ResourceShareName *string `locationName:"resourceShareName" type:"string"` SenderAccountId *string `locationName:"senderAccountId" type:"string"` Status *string `locationName:"status" type:"string" enum:"ResourceShareInvitationStatus"` // contains filtered or unexported fields }InvitationTimestamp *
Describes an invitation to join a resource share.
func (ResourceShareInvitation) GoString ¶
func (s ResourceShareInvitation) GoString() string
GoString returns the string representation
func (*ResourceShareInvitation) SetInvitationTimestamp ¶
func (s *ResourceShareInvitation) SetInvitationTimestamp(v time.Time) *ResourceShareInvitation
SetInvitationTimestamp sets the InvitationTimestamp field's value.
func (*ResourceShareInvitation) SetReceiverAccountId ¶
func (s *ResourceShareInvitation) SetReceiverAccountId(v string) *ResourceShareInvitation
SetReceiverAccountId sets the ReceiverAccountId field's value.
func (*ResourceShareInvitation) SetResourceShareArn ¶
func (s *ResourceShareInvitation) SetResourceShareArn(v string) *ResourceShareInvitation
SetResourceShareArn sets the ResourceShareArn field's value.
func (*ResourceShareInvitation) SetResourceShareAssociations ¶
func (s *ResourceShareInvitation) SetResourceShareAssociations(v []*ResourceShareAssociation) *ResourceShareInvitation
SetResourceShareAssociations sets the ResourceShareAssociations field's value.
func (*ResourceShareInvitation) SetResourceShareInvitationArn ¶
func (s *ResourceShareInvitation) SetResourceShareInvitationArn(v string) *ResourceShareInvitation
SetResourceShareInvitationArn sets the ResourceShareInvitationArn field's value.
func (*ResourceShareInvitation) SetResourceShareName ¶
func (s *ResourceShareInvitation) SetResourceShareName(v string) *ResourceShareInvitation
SetResourceShareName sets the ResourceShareName field's value.
func (*ResourceShareInvitation) SetSenderAccountId ¶
func (s *ResourceShareInvitation) SetSenderAccountId(v string) *ResourceShareInvitation
SetSenderAccountId sets the SenderAccountId field's value.
func (*ResourceShareInvitation) SetStatus ¶
func (s *ResourceShareInvitation) SetStatus(v string) *ResourceShareInvitation
SetStatus sets the Status field's value.
func (ResourceShareInvitation) String ¶
func (s ResourceShareInvitation) String() string
String returns the string representation
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.
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.
func (*TagFilter) SetTagValues ¶
SetTagValues sets the TagValues field's value.
type TagResourceInput ¶
type TagResourceInput struct { // // ResourceShareArn is a required field ResourceShareArn *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 }
func (TagResourceInput) GoString ¶
func (s TagResourceInput) GoString() string
GoString returns the string representation
func (*TagResourceInput) SetResourceShareArn ¶
func (s *TagResourceInput) SetResourceShareArn(v string) *TagResourceInput
SetResourceShareArn sets the ResourceShareArn field's value.
func (*TagResourceInput) SetTags ¶
func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput
SetTags sets the Tags field's value.
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
}
func (TagResourceOutput) GoString ¶
func (s TagResourceOutput) GoString() string
GoString returns the string representation
func (TagResourceOutput) String ¶
func (s TagResourceOutput) String() string
String returns the string representation
type UntagResourceInput ¶
type UntagResourceInput struct { // // ResourceShareArn is a required field ResourceShareArn *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 }
func (UntagResourceInput) GoString ¶
func (s UntagResourceInput) GoString() string
GoString returns the string representation
func (*UntagResourceInput) SetResourceShareArn ¶
func (s *UntagResourceInput) SetResourceShareArn(v string) *UntagResourceInput
SetResourceShareArn sets the ResourceShareArn field's value.
func (*UntagResourceInput) SetTagKeys ¶
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput
SetTagKeys sets the TagKeys field's value.
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
}
func (UntagResourceOutput) GoString ¶
func (s UntagResourceOutput) GoString() string
GoString returns the string representation
func (UntagResourceOutput) String ¶
func (s UntagResourceOutput) String() string
String returns the string representation
type UpdateResourceShareInput ¶
type UpdateResourceShareInput struct { // with a resource share. AllowExternalPrincipals *bool `locationName:"allowExternalPrincipals" type:"boolean"` // of the request. ClientToken *string `locationName:"clientToken" type:"string"` Name *string `locationName:"name" type:"string"` // // ResourceShareArn is a required field ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (UpdateResourceShareInput) GoString ¶
func (s UpdateResourceShareInput) GoString() string
GoString returns the string representation
func (*UpdateResourceShareInput) SetAllowExternalPrincipals ¶
func (s *UpdateResourceShareInput) SetAllowExternalPrincipals(v bool) *UpdateResourceShareInput
SetAllowExternalPrincipals sets the AllowExternalPrincipals field's value.
func (*UpdateResourceShareInput) SetClientToken ¶
func (s *UpdateResourceShareInput) SetClientToken(v string) *UpdateResourceShareInput
SetClientToken sets the ClientToken field's value.
func (*UpdateResourceShareInput) SetName ¶
func (s *UpdateResourceShareInput) SetName(v string) *UpdateResourceShareInput
SetName sets the Name field's value.
func (*UpdateResourceShareInput) SetResourceShareArn ¶
func (s *UpdateResourceShareInput) SetResourceShareArn(v string) *UpdateResourceShareInput
SetResourceShareArn sets the ResourceShareArn field's value.
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 { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShare *ResourceShare `locationName:"resourceShare" type:"structure"` // contains filtered or unexported fields }
func (UpdateResourceShareOutput) GoString ¶
func (s UpdateResourceShareOutput) GoString() string
GoString returns the string representation
func (*UpdateResourceShareOutput) SetClientToken ¶
func (s *UpdateResourceShareOutput) SetClientToken(v string) *UpdateResourceShareOutput
SetClientToken sets the ClientToken field's value.
func (*UpdateResourceShareOutput) SetResourceShare ¶
func (s *UpdateResourceShareOutput) SetResourceShare(v *ResourceShare) *UpdateResourceShareOutput
SetResourceShare sets the ResourceShare field's value.
func (UpdateResourceShareOutput) String ¶
func (s UpdateResourceShareOutput) String() string
String returns the string representation