Documentation ¶
Overview ¶
Package ram provides the client and types for making API requests to RAM.
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 use RAM 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 RAM client 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
- type AcceptResourceShareInvitationOutput
- type AcceptResourceShareInvitationRequest
- type AcceptResourceShareInvitationResponse
- type AssociateResourceShareInput
- type AssociateResourceShareOutput
- type AssociateResourceShareRequest
- type AssociateResourceShareResponse
- type Client
- func (c *Client) AcceptResourceShareInvitationRequest(input *AcceptResourceShareInvitationInput) AcceptResourceShareInvitationRequest
- func (c *Client) AssociateResourceShareRequest(input *AssociateResourceShareInput) AssociateResourceShareRequest
- func (c *Client) CreateResourceShareRequest(input *CreateResourceShareInput) CreateResourceShareRequest
- func (c *Client) DeleteResourceShareRequest(input *DeleteResourceShareInput) DeleteResourceShareRequest
- func (c *Client) DisassociateResourceShareRequest(input *DisassociateResourceShareInput) DisassociateResourceShareRequest
- func (c *Client) EnableSharingWithAwsOrganizationRequest(input *EnableSharingWithAwsOrganizationInput) EnableSharingWithAwsOrganizationRequest
- func (c *Client) GetResourcePoliciesRequest(input *GetResourcePoliciesInput) GetResourcePoliciesRequest
- func (c *Client) GetResourceShareAssociationsRequest(input *GetResourceShareAssociationsInput) GetResourceShareAssociationsRequest
- func (c *Client) GetResourceShareInvitationsRequest(input *GetResourceShareInvitationsInput) GetResourceShareInvitationsRequest
- func (c *Client) GetResourceSharesRequest(input *GetResourceSharesInput) GetResourceSharesRequest
- func (c *Client) ListPrincipalsRequest(input *ListPrincipalsInput) ListPrincipalsRequest
- func (c *Client) ListResourcesRequest(input *ListResourcesInput) ListResourcesRequest
- func (c *Client) RejectResourceShareInvitationRequest(input *RejectResourceShareInvitationInput) RejectResourceShareInvitationRequest
- func (c *Client) TagResourceRequest(input *TagResourceInput) TagResourceRequest
- func (c *Client) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
- func (c *Client) UpdateResourceShareRequest(input *UpdateResourceShareInput) UpdateResourceShareRequest
- type CreateResourceShareInput
- type CreateResourceShareOutput
- type CreateResourceShareRequest
- type CreateResourceShareResponse
- type DeleteResourceShareInput
- type DeleteResourceShareOutput
- type DeleteResourceShareRequest
- type DeleteResourceShareResponse
- type DisassociateResourceShareInput
- type DisassociateResourceShareOutput
- type DisassociateResourceShareRequest
- type DisassociateResourceShareResponse
- type EnableSharingWithAwsOrganizationInput
- type EnableSharingWithAwsOrganizationOutput
- type EnableSharingWithAwsOrganizationRequest
- type EnableSharingWithAwsOrganizationResponse
- type GetResourcePoliciesInput
- type GetResourcePoliciesOutput
- type GetResourcePoliciesPaginator
- type GetResourcePoliciesRequest
- type GetResourcePoliciesResponse
- type GetResourceShareAssociationsInput
- type GetResourceShareAssociationsOutput
- type GetResourceShareAssociationsPaginator
- type GetResourceShareAssociationsRequest
- type GetResourceShareAssociationsResponse
- type GetResourceShareInvitationsInput
- type GetResourceShareInvitationsOutput
- type GetResourceShareInvitationsPaginator
- type GetResourceShareInvitationsRequest
- type GetResourceShareInvitationsResponse
- type GetResourceSharesInput
- type GetResourceSharesOutput
- type GetResourceSharesPaginator
- type GetResourceSharesRequest
- type GetResourceSharesResponse
- type ListPrincipalsInput
- type ListPrincipalsOutput
- type ListPrincipalsPaginator
- type ListPrincipalsRequest
- type ListPrincipalsResponse
- type ListResourcesInput
- type ListResourcesOutput
- type ListResourcesPaginator
- type ListResourcesRequest
- type ListResourcesResponse
- type Principal
- type RejectResourceShareInvitationInput
- type RejectResourceShareInvitationOutput
- type RejectResourceShareInvitationRequest
- type RejectResourceShareInvitationResponse
- type Resource
- type ResourceOwner
- type ResourceShare
- type ResourceShareAssociation
- type ResourceShareAssociationStatus
- type ResourceShareAssociationType
- type ResourceShareInvitation
- type ResourceShareInvitationStatus
- type ResourceShareStatus
- type ResourceStatus
- type Tag
- type TagFilter
- type TagResourceInput
- type TagResourceOutput
- type TagResourceRequest
- type TagResourceResponse
- type UntagResourceInput
- type UntagResourceOutput
- type UntagResourceRequest
- type UntagResourceResponse
- type UpdateResourceShareInput
- type UpdateResourceShareOutput
- type UpdateResourceShareRequest
- type UpdateResourceShareResponse
Constants ¶
const ( ServiceName = "RAM" // Service's name ServiceID = "RAM" // Service's identifier EndpointsID = "ram" // Service's Endpoint identifier )
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" )
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitationRequest
func (AcceptResourceShareInvitationInput) MarshalFields ¶
func (s AcceptResourceShareInvitationInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AcceptResourceShareInvitationInput) String ¶
func (s AcceptResourceShareInvitationInput) String() string
String returns the string representation
func (*AcceptResourceShareInvitationInput) Validate ¶
func (s *AcceptResourceShareInvitationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AcceptResourceShareInvitationOutput ¶
type AcceptResourceShareInvitationOutput struct { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShareInvitation *ResourceShareInvitation `locationName:"resourceShareInvitation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitationResponse
func (AcceptResourceShareInvitationOutput) MarshalFields ¶
func (s AcceptResourceShareInvitationOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AcceptResourceShareInvitationOutput) String ¶
func (s AcceptResourceShareInvitationOutput) String() string
String returns the string representation
type AcceptResourceShareInvitationRequest ¶
type AcceptResourceShareInvitationRequest struct {}
AcceptResourceShareInvitationRequest is the request type for the AcceptResourceShareInvitation API operation.
func (AcceptResourceShareInvitationRequest) Send ¶
func (r AcceptResourceShareInvitationRequest) Send(ctx context.Context) (*AcceptResourceShareInvitationResponse, error)
Send marshals and sends the AcceptResourceShareInvitation API request.
type AcceptResourceShareInvitationResponse ¶ added in v0.9.0
type AcceptResourceShareInvitationResponse struct { // contains filtered or unexported fields }
AcceptResourceShareInvitationResponse is the response type for the AcceptResourceShareInvitation API operation.
func (*AcceptResourceShareInvitationResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *AcceptResourceShareInvitationResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the AcceptResourceShareInvitation request.
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShareRequest
func (AssociateResourceShareInput) MarshalFields ¶
func (s AssociateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AssociateResourceShareInput) String ¶
func (s AssociateResourceShareInput) String() string
String returns the string representation
func (*AssociateResourceShareInput) Validate ¶
func (s *AssociateResourceShareInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AssociateResourceShareOutput ¶
type AssociateResourceShareOutput struct { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShareAssociations []ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShareResponse
func (AssociateResourceShareOutput) MarshalFields ¶
func (s AssociateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AssociateResourceShareOutput) String ¶
func (s AssociateResourceShareOutput) String() string
String returns the string representation
type AssociateResourceShareRequest ¶
type AssociateResourceShareRequest struct {}
AssociateResourceShareRequest is the request type for the AssociateResourceShare API operation.
func (AssociateResourceShareRequest) Send ¶
func (r AssociateResourceShareRequest) Send(ctx context.Context) (*AssociateResourceShareResponse, error)
Send marshals and sends the AssociateResourceShare API request.
type AssociateResourceShareResponse ¶ added in v0.9.0
type AssociateResourceShareResponse struct { // contains filtered or unexported fields }
AssociateResourceShareResponse is the response type for the AssociateResourceShare API operation.
func (*AssociateResourceShareResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *AssociateResourceShareResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the AssociateResourceShare request.
type Client ¶ added in v0.9.0
Client provides the API operation methods for making requests to RAM. See this package's package overview docs for details on the service.
The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
New creates a new instance of the client from the provided Config.
Example:
// Create a client from just a config. svc := ram.New(myConfig)
func (*Client) AcceptResourceShareInvitationRequest ¶ added in v0.9.0
func (c *Client) AcceptResourceShareInvitationRequest(input *AcceptResourceShareInvitationInput) AcceptResourceShareInvitationRequest
AcceptResourceShareInvitationRequest returns a request value for making API operation for AWS Resource Access Manager.
Accepts an invitation to a resource share from another AWS account.
// Example sending a request using AcceptResourceShareInvitationRequest. req := client.AcceptResourceShareInvitationRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitation
func (*Client) AssociateResourceShareRequest ¶ added in v0.9.0
func (c *Client) AssociateResourceShareRequest(input *AssociateResourceShareInput) AssociateResourceShareRequest
AssociateResourceShareRequest returns a request value for making API operation for AWS Resource Access Manager.
Associates the specified resource share with the specified principals and resources.
// Example sending a request using AssociateResourceShareRequest. req := client.AssociateResourceShareRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShare
func (*Client) CreateResourceShareRequest ¶ added in v0.9.0
func (c *Client) CreateResourceShareRequest(input *CreateResourceShareInput) CreateResourceShareRequest
CreateResourceShareRequest returns a request value for making API operation for AWS Resource Access Manager.
Creates a resource share.
// Example sending a request using CreateResourceShareRequest. req := client.CreateResourceShareRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShare
func (*Client) DeleteResourceShareRequest ¶ added in v0.9.0
func (c *Client) DeleteResourceShareRequest(input *DeleteResourceShareInput) DeleteResourceShareRequest
DeleteResourceShareRequest returns a request value for making API operation for AWS Resource Access Manager.
Deletes the specified resource share.
// Example sending a request using DeleteResourceShareRequest. req := client.DeleteResourceShareRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShare
func (*Client) DisassociateResourceShareRequest ¶ added in v0.9.0
func (c *Client) DisassociateResourceShareRequest(input *DisassociateResourceShareInput) DisassociateResourceShareRequest
DisassociateResourceShareRequest returns a request value for making API operation for AWS Resource Access Manager.
Disassociates the specified principals or resources from the specified resource share.
// Example sending a request using DisassociateResourceShareRequest. req := client.DisassociateResourceShareRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShare
func (*Client) EnableSharingWithAwsOrganizationRequest ¶ added in v0.9.0
func (c *Client) EnableSharingWithAwsOrganizationRequest(input *EnableSharingWithAwsOrganizationInput) EnableSharingWithAwsOrganizationRequest
EnableSharingWithAwsOrganizationRequest returns a request value for making API operation for AWS Resource Access Manager.
Enables resource sharing within your organization.
// Example sending a request using EnableSharingWithAwsOrganizationRequest. req := client.EnableSharingWithAwsOrganizationRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganization
func (*Client) GetResourcePoliciesRequest ¶ added in v0.9.0
func (c *Client) GetResourcePoliciesRequest(input *GetResourcePoliciesInput) GetResourcePoliciesRequest
GetResourcePoliciesRequest returns a request value for making API operation for AWS Resource Access Manager.
Gets the policies for the specifies resources.
// Example sending a request using GetResourcePoliciesRequest. req := client.GetResourcePoliciesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePolicies
func (*Client) GetResourceShareAssociationsRequest ¶ added in v0.9.0
func (c *Client) GetResourceShareAssociationsRequest(input *GetResourceShareAssociationsInput) GetResourceShareAssociationsRequest
GetResourceShareAssociationsRequest returns a request value for making API operation for AWS Resource Access Manager.
Gets the associations for the specified resource share.
// Example sending a request using GetResourceShareAssociationsRequest. req := client.GetResourceShareAssociationsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociations
func (*Client) GetResourceShareInvitationsRequest ¶ added in v0.9.0
func (c *Client) GetResourceShareInvitationsRequest(input *GetResourceShareInvitationsInput) GetResourceShareInvitationsRequest
GetResourceShareInvitationsRequest returns a request value for making API operation for AWS Resource Access Manager.
Gets the specified invitations for resource sharing.
// Example sending a request using GetResourceShareInvitationsRequest. req := client.GetResourceShareInvitationsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitations
func (*Client) GetResourceSharesRequest ¶ added in v0.9.0
func (c *Client) GetResourceSharesRequest(input *GetResourceSharesInput) GetResourceSharesRequest
GetResourceSharesRequest returns a request value for making API operation for AWS Resource Access Manager.
Gets the specified resource shares or all of your resource shares.
// Example sending a request using GetResourceSharesRequest. req := client.GetResourceSharesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShares
func (*Client) ListPrincipalsRequest ¶ added in v0.9.0
func (c *Client) ListPrincipalsRequest(input *ListPrincipalsInput) ListPrincipalsRequest
ListPrincipalsRequest returns a request value for making API operation for AWS Resource Access Manager.
Lists the principals with access to the specified resource.
// Example sending a request using ListPrincipalsRequest. req := client.ListPrincipalsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipals
func (*Client) ListResourcesRequest ¶ added in v0.9.0
func (c *Client) ListResourcesRequest(input *ListResourcesInput) ListResourcesRequest
ListResourcesRequest returns a request value for making API operation for AWS Resource Access Manager.
Lists the resources that the specified principal can access.
// Example sending a request using ListResourcesRequest. req := client.ListResourcesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResources
func (*Client) RejectResourceShareInvitationRequest ¶ added in v0.9.0
func (c *Client) RejectResourceShareInvitationRequest(input *RejectResourceShareInvitationInput) RejectResourceShareInvitationRequest
RejectResourceShareInvitationRequest returns a request value for making API operation for AWS Resource Access Manager.
Rejects an invitation to a resource share from another AWS account.
// Example sending a request using RejectResourceShareInvitationRequest. req := client.RejectResourceShareInvitationRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitation
func (*Client) TagResourceRequest ¶ added in v0.9.0
func (c *Client) TagResourceRequest(input *TagResourceInput) TagResourceRequest
TagResourceRequest returns a request value for making API operation for AWS Resource Access Manager.
Adds the specified tags to the specified resource share.
// Example sending a request using TagResourceRequest. req := client.TagResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResource
func (*Client) UntagResourceRequest ¶ added in v0.9.0
func (c *Client) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
UntagResourceRequest returns a request value for making API operation for AWS Resource Access Manager.
Removes the specified tags from the specified resource share.
// Example sending a request using UntagResourceRequest. req := client.UntagResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource
func (*Client) UpdateResourceShareRequest ¶ added in v0.9.0
func (c *Client) UpdateResourceShareRequest(input *UpdateResourceShareInput) UpdateResourceShareRequest
UpdateResourceShareRequest returns a request value for making API operation for AWS Resource Access Manager.
Updates the specified resource share.
// Example sending a request using UpdateResourceShareRequest. req := client.UpdateResourceShareRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShare
type 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShareRequest
func (CreateResourceShareInput) MarshalFields ¶
func (s CreateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateResourceShareInput) String ¶
func (s CreateResourceShareInput) String() string
String returns the string representation
func (*CreateResourceShareInput) Validate ¶
func (s *CreateResourceShareInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateResourceShareOutput ¶
type CreateResourceShareOutput struct { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShare *ResourceShare `locationName:"resourceShare" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShareResponse
func (CreateResourceShareOutput) MarshalFields ¶
func (s CreateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateResourceShareOutput) String ¶
func (s CreateResourceShareOutput) String() string
String returns the string representation
type CreateResourceShareRequest ¶
type CreateResourceShareRequest struct {}
CreateResourceShareRequest is the request type for the CreateResourceShare API operation.
func (CreateResourceShareRequest) Send ¶
func (r CreateResourceShareRequest) Send(ctx context.Context) (*CreateResourceShareResponse, error)
Send marshals and sends the CreateResourceShare API request.
type CreateResourceShareResponse ¶ added in v0.9.0
type CreateResourceShareResponse struct { // contains filtered or unexported fields }
CreateResourceShareResponse is the response type for the CreateResourceShare API operation.
func (*CreateResourceShareResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *CreateResourceShareResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the CreateResourceShare request.
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShareRequest
func (DeleteResourceShareInput) MarshalFields ¶
func (s DeleteResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteResourceShareInput) String ¶
func (s DeleteResourceShareInput) String() string
String returns the string representation
func (*DeleteResourceShareInput) Validate ¶
func (s *DeleteResourceShareInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteResourceShareOutput ¶
type DeleteResourceShareOutput struct { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ReturnValue *bool `locationName:"returnValue" type:"boolean"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShareResponse
func (DeleteResourceShareOutput) MarshalFields ¶
func (s DeleteResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteResourceShareOutput) String ¶
func (s DeleteResourceShareOutput) String() string
String returns the string representation
type DeleteResourceShareRequest ¶
type DeleteResourceShareRequest struct {}
DeleteResourceShareRequest is the request type for the DeleteResourceShare API operation.
func (DeleteResourceShareRequest) Send ¶
func (r DeleteResourceShareRequest) Send(ctx context.Context) (*DeleteResourceShareResponse, error)
Send marshals and sends the DeleteResourceShare API request.
type DeleteResourceShareResponse ¶ added in v0.9.0
type DeleteResourceShareResponse struct { // contains filtered or unexported fields }
DeleteResourceShareResponse is the response type for the DeleteResourceShare API operation.
func (*DeleteResourceShareResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteResourceShareResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteResourceShare request.
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShareRequest
func (DisassociateResourceShareInput) MarshalFields ¶
func (s DisassociateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DisassociateResourceShareInput) String ¶
func (s DisassociateResourceShareInput) String() string
String returns the string representation
func (*DisassociateResourceShareInput) Validate ¶
func (s *DisassociateResourceShareInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DisassociateResourceShareOutput ¶
type DisassociateResourceShareOutput struct { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShareAssociations []ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShareResponse
func (DisassociateResourceShareOutput) MarshalFields ¶
func (s DisassociateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DisassociateResourceShareOutput) String ¶
func (s DisassociateResourceShareOutput) String() string
String returns the string representation
type DisassociateResourceShareRequest ¶
type DisassociateResourceShareRequest struct {}
DisassociateResourceShareRequest is the request type for the DisassociateResourceShare API operation.
func (DisassociateResourceShareRequest) Send ¶
func (r DisassociateResourceShareRequest) Send(ctx context.Context) (*DisassociateResourceShareResponse, error)
Send marshals and sends the DisassociateResourceShare API request.
type DisassociateResourceShareResponse ¶ added in v0.9.0
type DisassociateResourceShareResponse struct { // contains filtered or unexported fields }
DisassociateResourceShareResponse is the response type for the DisassociateResourceShare API operation.
func (*DisassociateResourceShareResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DisassociateResourceShareResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DisassociateResourceShare request.
type EnableSharingWithAwsOrganizationInput ¶
type EnableSharingWithAwsOrganizationInput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganizationRequest
func (EnableSharingWithAwsOrganizationInput) MarshalFields ¶
func (s EnableSharingWithAwsOrganizationInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (EnableSharingWithAwsOrganizationInput) String ¶
func (s EnableSharingWithAwsOrganizationInput) String() string
String returns the string representation
type EnableSharingWithAwsOrganizationOutput ¶
type EnableSharingWithAwsOrganizationOutput struct { // Indicates whether the request succeeded. ReturnValue *bool `locationName:"returnValue" type:"boolean"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganizationResponse
func (EnableSharingWithAwsOrganizationOutput) MarshalFields ¶
func (s EnableSharingWithAwsOrganizationOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (EnableSharingWithAwsOrganizationOutput) String ¶
func (s EnableSharingWithAwsOrganizationOutput) String() string
String returns the string representation
type EnableSharingWithAwsOrganizationRequest ¶
type EnableSharingWithAwsOrganizationRequest struct { *aws.Request Input *EnableSharingWithAwsOrganizationInput Copy func(*EnableSharingWithAwsOrganizationInput) EnableSharingWithAwsOrganizationRequest }
EnableSharingWithAwsOrganizationRequest is the request type for the EnableSharingWithAwsOrganization API operation.
func (EnableSharingWithAwsOrganizationRequest) Send ¶
func (r EnableSharingWithAwsOrganizationRequest) Send(ctx context.Context) (*EnableSharingWithAwsOrganizationResponse, error)
Send marshals and sends the EnableSharingWithAwsOrganization API request.
type EnableSharingWithAwsOrganizationResponse ¶ added in v0.9.0
type EnableSharingWithAwsOrganizationResponse struct { *EnableSharingWithAwsOrganizationOutput // contains filtered or unexported fields }
EnableSharingWithAwsOrganizationResponse is the response type for the EnableSharingWithAwsOrganization API operation.
func (*EnableSharingWithAwsOrganizationResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *EnableSharingWithAwsOrganizationResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the EnableSharingWithAwsOrganization request.
type GetResourcePoliciesInput ¶
type GetResourcePoliciesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token for the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // The principal. Principal *string `locationName:"principal" type:"string"` // The Amazon Resource Names (ARN) of the resources. // // ResourceArns is a required field ResourceArns []string `locationName:"resourceArns" type:"list" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePoliciesRequest
func (GetResourcePoliciesInput) MarshalFields ¶
func (s GetResourcePoliciesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourcePoliciesInput) String ¶
func (s GetResourcePoliciesInput) String() string
String returns the string representation
func (*GetResourcePoliciesInput) Validate ¶
func (s *GetResourcePoliciesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetResourcePoliciesOutput ¶
type GetResourcePoliciesOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // A key policy document, in JSON format. Policies []string `locationName:"policies" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePoliciesResponse
func (GetResourcePoliciesOutput) MarshalFields ¶
func (s GetResourcePoliciesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourcePoliciesOutput) String ¶
func (s GetResourcePoliciesOutput) String() string
String returns the string representation
type GetResourcePoliciesPaginator ¶ added in v0.9.0
GetResourcePoliciesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewGetResourcePoliciesPaginator ¶ added in v0.9.0
func NewGetResourcePoliciesPaginator(req GetResourcePoliciesRequest) GetResourcePoliciesPaginator
NewGetResourcePoliciesRequestPaginator returns a paginator for GetResourcePolicies. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.GetResourcePoliciesRequest(input) p := ram.NewGetResourcePoliciesRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*GetResourcePoliciesPaginator) CurrentPage ¶ added in v0.9.0
func (p *GetResourcePoliciesPaginator) CurrentPage() *GetResourcePoliciesOutput
type GetResourcePoliciesRequest ¶
type GetResourcePoliciesRequest struct { *aws.Request Input *GetResourcePoliciesInput Copy func(*GetResourcePoliciesInput) GetResourcePoliciesRequest }
GetResourcePoliciesRequest is the request type for the GetResourcePolicies API operation.
func (GetResourcePoliciesRequest) Send ¶
func (r GetResourcePoliciesRequest) Send(ctx context.Context) (*GetResourcePoliciesResponse, error)
Send marshals and sends the GetResourcePolicies API request.
type GetResourcePoliciesResponse ¶ added in v0.9.0
type GetResourcePoliciesResponse struct { *GetResourcePoliciesOutput // contains filtered or unexported fields }
GetResourcePoliciesResponse is the response type for the GetResourcePolicies API operation.
func (*GetResourcePoliciesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetResourcePoliciesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetResourcePolicies request.
type GetResourceShareAssociationsInput ¶
type GetResourceShareAssociationsInput struct { ResourceShareAssociationStatus `locationName:"associationStatus" type:"string" enum:"true"` // // AssociationType is a required field AssociationType ResourceShareAssociationType `locationName:"associationType" type:"string" required:"true" enum:"true"` // 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
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociationsRequest
func (GetResourceShareAssociationsInput) MarshalFields ¶
func (s GetResourceShareAssociationsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceShareAssociationsInput) String ¶
func (s GetResourceShareAssociationsInput) String() string
String returns the string representation
func (*GetResourceShareAssociationsInput) Validate ¶
func (s *GetResourceShareAssociationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetResourceShareAssociationsOutput ¶
type GetResourceShareAssociationsOutput struct { // 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociationsResponse
func (GetResourceShareAssociationsOutput) MarshalFields ¶
func (s GetResourceShareAssociationsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceShareAssociationsOutput) String ¶
func (s GetResourceShareAssociationsOutput) String() string
String returns the string representation
type GetResourceShareAssociationsPaginator ¶ added in v0.9.0
type GetResourceShareAssociationsPaginator struct {
}GetResourceShareAssociationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewGetResourceShareAssociationsPaginator ¶ added in v0.9.0
func NewGetResourceShareAssociationsPaginator(req GetResourceShareAssociationsRequest) GetResourceShareAssociationsPaginator
NewGetResourceShareAssociationsRequestPaginator returns a paginator for GetResourceShareAssociations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.GetResourceShareAssociationsRequest(input) p := ram.NewGetResourceShareAssociationsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*GetResourceShareAssociationsPaginator) CurrentPage ¶ added in v0.9.0
func (p *GetResourceShareAssociationsPaginator) CurrentPage() *GetResourceShareAssociationsOutput
type GetResourceShareAssociationsRequest ¶
type GetResourceShareAssociationsRequest struct {}
GetResourceShareAssociationsRequest is the request type for the GetResourceShareAssociations API operation.
func (GetResourceShareAssociationsRequest) Send ¶
func (r GetResourceShareAssociationsRequest) Send(ctx context.Context) (*GetResourceShareAssociationsResponse, error)
Send marshals and sends the GetResourceShareAssociations API request.
type GetResourceShareAssociationsResponse ¶ added in v0.9.0
type GetResourceShareAssociationsResponse struct { // contains filtered or unexported fields }
GetResourceShareAssociationsResponse is the response type for the GetResourceShareAssociations API operation.
func (*GetResourceShareAssociationsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetResourceShareAssociationsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetResourceShareAssociations request.
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitationsRequest
func (GetResourceShareInvitationsInput) MarshalFields ¶
func (s GetResourceShareInvitationsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceShareInvitationsInput) String ¶
func (s GetResourceShareInvitationsInput) String() string
String returns the string representation
func (*GetResourceShareInvitationsInput) Validate ¶
func (s *GetResourceShareInvitationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetResourceShareInvitationsOutput ¶
type GetResourceShareInvitationsOutput struct { // 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitationsResponse
func (GetResourceShareInvitationsOutput) MarshalFields ¶
func (s GetResourceShareInvitationsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceShareInvitationsOutput) String ¶
func (s GetResourceShareInvitationsOutput) String() string
String returns the string representation
type GetResourceShareInvitationsPaginator ¶ added in v0.9.0
type GetResourceShareInvitationsPaginator struct {
}GetResourceShareInvitationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewGetResourceShareInvitationsPaginator ¶ added in v0.9.0
func NewGetResourceShareInvitationsPaginator(req GetResourceShareInvitationsRequest) GetResourceShareInvitationsPaginator
NewGetResourceShareInvitationsRequestPaginator returns a paginator for GetResourceShareInvitations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.GetResourceShareInvitationsRequest(input) p := ram.NewGetResourceShareInvitationsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*GetResourceShareInvitationsPaginator) CurrentPage ¶ added in v0.9.0
func (p *GetResourceShareInvitationsPaginator) CurrentPage() *GetResourceShareInvitationsOutput
type GetResourceShareInvitationsRequest ¶
type GetResourceShareInvitationsRequest struct {}
GetResourceShareInvitationsRequest is the request type for the GetResourceShareInvitations API operation.
func (GetResourceShareInvitationsRequest) Send ¶
func (r GetResourceShareInvitationsRequest) Send(ctx context.Context) (*GetResourceShareInvitationsResponse, error)
Send marshals and sends the GetResourceShareInvitations API request.
type GetResourceShareInvitationsResponse ¶ added in v0.9.0
type GetResourceShareInvitationsResponse struct { // contains filtered or unexported fields }
GetResourceShareInvitationsResponse is the response type for the GetResourceShareInvitations API operation.
func (*GetResourceShareInvitationsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetResourceShareInvitationsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetResourceShareInvitations request.
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 ResourceOwner `locationName:"resourceOwner" type:"string" required:"true" enum:"true"` ResourceShareArns []string `locationName:"resourceShareArns" type:"list"` ResourceShareStatus ResourceShareStatus `locationName:"resourceShareStatus" type:"string" enum:"true"` TagFilters []TagFilter `locationName:"tagFilters" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceSharesRequest
func (GetResourceSharesInput) MarshalFields ¶
func (s GetResourceSharesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceSharesInput) String ¶
func (s GetResourceSharesInput) String() string
String returns the string representation
func (*GetResourceSharesInput) Validate ¶
func (s *GetResourceSharesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetResourceSharesOutput ¶
type GetResourceSharesOutput struct { // 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceSharesResponse
func (GetResourceSharesOutput) MarshalFields ¶
func (s GetResourceSharesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetResourceSharesOutput) String ¶
func (s GetResourceSharesOutput) String() string
String returns the string representation
type GetResourceSharesPaginator ¶ added in v0.9.0
type GetResourceSharesPaginator struct {
}GetResourceSharesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewGetResourceSharesPaginator ¶ added in v0.9.0
func NewGetResourceSharesPaginator(req GetResourceSharesRequest) GetResourceSharesPaginator
NewGetResourceSharesRequestPaginator returns a paginator for GetResourceShares. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.GetResourceSharesRequest(input) p := ram.NewGetResourceSharesRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*GetResourceSharesPaginator) CurrentPage ¶ added in v0.9.0
func (p *GetResourceSharesPaginator) CurrentPage() *GetResourceSharesOutput
type GetResourceSharesRequest ¶
type GetResourceSharesRequest struct {}
GetResourceSharesRequest is the request type for the GetResourceShares API operation.
func (GetResourceSharesRequest) Send ¶
func (r GetResourceSharesRequest) Send(ctx context.Context) (*GetResourceSharesResponse, error)
Send marshals and sends the GetResourceShares API request.
type GetResourceSharesResponse ¶ added in v0.9.0
type GetResourceSharesResponse struct { // contains filtered or unexported fields }
GetResourceSharesResponse is the response type for the GetResourceShares API operation.
func (*GetResourceSharesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetResourceSharesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetResourceShares request.
type ListPrincipalsInput ¶
type ListPrincipalsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token for the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // The principals. Principals []string `locationName:"principals" type:"list"` // The Amazon Resource Name (ARN) of the resource. ResourceArn *string `locationName:"resourceArn" type:"string"` // The type of owner. // // ResourceOwner is a required field ResourceOwner ResourceOwner `locationName:"resourceOwner" type:"string" required:"true" enum:"true"` ResourceShareArns []string `locationName:"resourceShareArns" type:"list"` // The resource type. ResourceType *string `locationName:"resourceType" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipalsRequest
func (ListPrincipalsInput) MarshalFields ¶
func (s ListPrincipalsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListPrincipalsInput) String ¶
func (s ListPrincipalsInput) String() string
String returns the string representation
func (*ListPrincipalsInput) Validate ¶
func (s *ListPrincipalsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListPrincipalsOutput ¶
type ListPrincipalsOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // The principals. Principals []Principal `locationName:"principals" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipalsResponse
func (ListPrincipalsOutput) MarshalFields ¶
func (s ListPrincipalsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListPrincipalsOutput) String ¶
func (s ListPrincipalsOutput) String() string
String returns the string representation
type ListPrincipalsPaginator ¶ added in v0.9.0
ListPrincipalsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListPrincipalsPaginator ¶ added in v0.9.0
func NewListPrincipalsPaginator(req ListPrincipalsRequest) ListPrincipalsPaginator
NewListPrincipalsRequestPaginator returns a paginator for ListPrincipals. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListPrincipalsRequest(input) p := ram.NewListPrincipalsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListPrincipalsPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListPrincipalsPaginator) CurrentPage() *ListPrincipalsOutput
type ListPrincipalsRequest ¶
type ListPrincipalsRequest struct { *aws.Request Input *ListPrincipalsInput Copy func(*ListPrincipalsInput) ListPrincipalsRequest }
ListPrincipalsRequest is the request type for the ListPrincipals API operation.
func (ListPrincipalsRequest) Send ¶
func (r ListPrincipalsRequest) Send(ctx context.Context) (*ListPrincipalsResponse, error)
Send marshals and sends the ListPrincipals API request.
type ListPrincipalsResponse ¶ added in v0.9.0
type ListPrincipalsResponse struct { *ListPrincipalsOutput // contains filtered or unexported fields }
ListPrincipalsResponse is the response type for the ListPrincipals API operation.
func (*ListPrincipalsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListPrincipalsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListPrincipals request.
type ListResourcesInput ¶
type ListResourcesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token for the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // The principal. Principal *string `locationName:"principal" type:"string"` // The Amazon Resource Names (ARN) of the resources. ResourceArns []string `locationName:"resourceArns" type:"list"` // The type of owner. // // ResourceOwner is a required field ResourceOwner ResourceOwner `locationName:"resourceOwner" type:"string" required:"true" enum:"true"` ResourceShareArns []string `locationName:"resourceShareArns" type:"list"` // The resource type. ResourceType *string `locationName:"resourceType" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResourcesRequest
func (ListResourcesInput) MarshalFields ¶
func (s ListResourcesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListResourcesInput) String ¶
func (s ListResourcesInput) String() string
String returns the string representation
func (*ListResourcesInput) Validate ¶
func (s *ListResourcesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListResourcesOutput ¶
type ListResourcesOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // Information about the resources. Resources []Resource `locationName:"resources" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResourcesResponse
func (ListResourcesOutput) MarshalFields ¶
func (s ListResourcesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListResourcesOutput) String ¶
func (s ListResourcesOutput) String() string
String returns the string representation
type ListResourcesPaginator ¶ added in v0.9.0
ListResourcesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListResourcesPaginator ¶ added in v0.9.0
func NewListResourcesPaginator(req ListResourcesRequest) ListResourcesPaginator
NewListResourcesRequestPaginator returns a paginator for ListResources. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListResourcesRequest(input) p := ram.NewListResourcesRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListResourcesPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListResourcesPaginator) CurrentPage() *ListResourcesOutput
type ListResourcesRequest ¶
type ListResourcesRequest struct { *aws.Request Input *ListResourcesInput Copy func(*ListResourcesInput) ListResourcesRequest }
ListResourcesRequest is the request type for the ListResources API operation.
func (ListResourcesRequest) Send ¶
func (r ListResourcesRequest) Send(ctx context.Context) (*ListResourcesResponse, error)
Send marshals and sends the ListResources API request.
type ListResourcesResponse ¶ added in v0.9.0
type ListResourcesResponse struct { *ListResourcesOutput // contains filtered or unexported fields }
ListResourcesResponse is the response type for the ListResources API operation.
func (*ListResourcesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListResourcesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListResources request.
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. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/Principal
func (Principal) MarshalFields ¶
func (s Principal) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitationRequest
func (RejectResourceShareInvitationInput) MarshalFields ¶
func (s RejectResourceShareInvitationInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RejectResourceShareInvitationInput) String ¶
func (s RejectResourceShareInvitationInput) String() string
String returns the string representation
func (*RejectResourceShareInvitationInput) Validate ¶
func (s *RejectResourceShareInvitationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RejectResourceShareInvitationOutput ¶
type RejectResourceShareInvitationOutput struct { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShareInvitation *ResourceShareInvitation `locationName:"resourceShareInvitation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitationResponse
func (RejectResourceShareInvitationOutput) MarshalFields ¶
func (s RejectResourceShareInvitationOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RejectResourceShareInvitationOutput) String ¶
func (s RejectResourceShareInvitationOutput) String() string
String returns the string representation
type RejectResourceShareInvitationRequest ¶
type RejectResourceShareInvitationRequest struct {}
RejectResourceShareInvitationRequest is the request type for the RejectResourceShareInvitation API operation.
func (RejectResourceShareInvitationRequest) Send ¶
func (r RejectResourceShareInvitationRequest) Send(ctx context.Context) (*RejectResourceShareInvitationResponse, error)
Send marshals and sends the RejectResourceShareInvitation API request.
type RejectResourceShareInvitationResponse ¶ added in v0.9.0
type RejectResourceShareInvitationResponse struct { // contains filtered or unexported fields }
RejectResourceShareInvitationResponse is the response type for the RejectResourceShareInvitation API operation.
func (*RejectResourceShareInvitationResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *RejectResourceShareInvitationResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the RejectResourceShareInvitation request.
type Resource ¶
type Resource struct { // The Amazon Resource Name (ARN) of the resource. Arn *string `locationName:"arn" type:"string"` // The time when the resource was associated with the resource share. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` // 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 ResourceStatus `locationName:"status" type:"string" enum:"true"` // A message about the status of the resource. StatusMessage *string `locationName:"statusMessage" type:"string"` // The resource type. Type *string `locationName:"type" type:"string"` // contains filtered or unexported fields }
Describes a resource associated with a resource share. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/Resource
func (Resource) MarshalFields ¶
func (s Resource) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
type ResourceOwner ¶
type ResourceOwner string
const ( ResourceOwnerSelf ResourceOwner = "SELF" ResourceOwnerOtherAccounts ResourceOwner = "OTHER-ACCOUNTS" )
Enum values for ResourceOwner
func (ResourceOwner) MarshalValue ¶
func (enum ResourceOwner) MarshalValue() (string, error)
func (ResourceOwner) MarshalValueBuf ¶
func (enum ResourceOwner) MarshalValueBuf(b []byte) ([]byte, error)
type ResourceShare ¶
type ResourceShare struct { // 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 ResourceShareStatus `locationName:"status" type:"string" enum:"true"` StatusMessage *string `locationName:"statusMessage" type:"string"` Tags []Tag `locationName:"tags" type:"list"` // contains filtered or unexported fields }
Describes a resource share. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ResourceShare
func (ResourceShare) MarshalFields ¶
func (s ResourceShare) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ResourceShare) String ¶
func (s ResourceShare) String() string
String returns the string representation
type ResourceShareAssociation ¶
type ResourceShareAssociation struct { // 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 ResourceShareAssociationType `locationName:"associationType" type:"string" enum:"true"` 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 ResourceShareAssociationStatus `locationName:"status" type:"string" enum:"true"` StatusMessage *string `locationName:"statusMessage" type:"string"` // contains filtered or unexported fields }
Describes an association with a resource share. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ResourceShareAssociation
func (ResourceShareAssociation) MarshalFields ¶
func (s ResourceShareAssociation) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ResourceShareAssociation) String ¶
func (s ResourceShareAssociation) String() string
String returns the string representation
type ResourceShareAssociationStatus ¶
type ResourceShareAssociationStatus string
const ()
Enum values for ResourceShareAssociationStatus
func (ResourceShareAssociationStatus) MarshalValue ¶
func (enum ResourceShareAssociationStatus) MarshalValue() (string, error)
func (ResourceShareAssociationStatus) MarshalValueBuf ¶
func (enum ResourceShareAssociationStatus) MarshalValueBuf(b []byte) ([]byte, error)
type ResourceShareAssociationType ¶
type ResourceShareAssociationType string
const ()
Enum values for ResourceShareAssociationType
func (ResourceShareAssociationType) MarshalValue ¶
func (enum ResourceShareAssociationType) MarshalValue() (string, error)
func (ResourceShareAssociationType) MarshalValueBuf ¶
func (enum ResourceShareAssociationType) MarshalValueBuf(b []byte) ([]byte, error)
type ResourceShareInvitation ¶
type ResourceShareInvitation struct { 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 ResourceShareInvitationStatus `locationName:"status" type:"string" enum:"true"` // contains filtered or unexported fields }InvitationTimestamp *
Describes an invitation to join a resource share. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ResourceShareInvitation
func (ResourceShareInvitation) MarshalFields ¶
func (s ResourceShareInvitation) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ResourceShareInvitation) String ¶
func (s ResourceShareInvitation) String() string
String returns the string representation
type ResourceShareInvitationStatus ¶
type ResourceShareInvitationStatus string
const ()
Enum values for ResourceShareInvitationStatus
func (ResourceShareInvitationStatus) MarshalValue ¶
func (enum ResourceShareInvitationStatus) MarshalValue() (string, error)
func (ResourceShareInvitationStatus) MarshalValueBuf ¶
func (enum ResourceShareInvitationStatus) MarshalValueBuf(b []byte) ([]byte, error)
type ResourceShareStatus ¶
type ResourceShareStatus string
const ()
Enum values for ResourceShareStatus
func (ResourceShareStatus) MarshalValue ¶
func (enum ResourceShareStatus) MarshalValue() (string, error)
func (ResourceShareStatus) MarshalValueBuf ¶
func (enum ResourceShareStatus) MarshalValueBuf(b []byte) ([]byte, error)
type ResourceStatus ¶
type ResourceStatus string
const ( ResourceStatusAvailable ResourceStatus = "AVAILABLE" ResourceStatusZonalResourceInaccessible ResourceStatus = "ZONAL_RESOURCE_INACCESSIBLE" ResourceStatusLimitExceeded ResourceStatus = "LIMIT_EXCEEDED" )
Enum values for ResourceStatus
func (ResourceStatus) MarshalValue ¶
func (enum ResourceStatus) MarshalValue() (string, error)
func (ResourceStatus) MarshalValueBuf ¶
func (enum ResourceStatus) MarshalValueBuf(b []byte) ([]byte, error)
type Tag ¶
type Tag struct { // The key of the tag. Key *string `locationName:"key" type:"string"` // The value of the tag. Value *string `locationName:"value" type:"string"` // contains filtered or unexported fields }
Information about a tag. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/Tag
func (Tag) MarshalFields ¶
func (s Tag) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
type TagFilter ¶
type TagFilter struct { // The tag key. TagKey *string `locationName:"tagKey" type:"string"` // The tag values. TagValues []string `locationName:"tagValues" type:"list"` // contains filtered or unexported fields }
Used to filter information based on tags. Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagFilter
func (TagFilter) MarshalFields ¶
func (s TagFilter) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResourceRequest
func (TagResourceInput) MarshalFields ¶
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceInput) String ¶
func (s TagResourceInput) String() string
String returns the string representation
func (*TagResourceInput) Validate ¶
func (s *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceOutput ¶
type TagResourceOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResourceResponse
func (TagResourceOutput) MarshalFields ¶
func (s TagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceOutput) String ¶
func (s TagResourceOutput) String() string
String returns the string representation
type TagResourceRequest ¶
type TagResourceRequest struct { *aws.Request Input *TagResourceInput Copy func(*TagResourceInput) TagResourceRequest }
TagResourceRequest is the request type for the TagResource API operation.
func (TagResourceRequest) Send ¶
func (r TagResourceRequest) Send(ctx context.Context) (*TagResourceResponse, error)
Send marshals and sends the TagResource API request.
type TagResourceResponse ¶ added in v0.9.0
type TagResourceResponse struct { *TagResourceOutput // contains filtered or unexported fields }
TagResourceResponse is the response type for the TagResource API operation.
func (*TagResourceResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *TagResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the TagResource request.
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResourceRequest
func (UntagResourceInput) MarshalFields ¶
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceInput) String ¶
func (s UntagResourceInput) String() string
String returns the string representation
func (*UntagResourceInput) Validate ¶
func (s *UntagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceOutput ¶
type UntagResourceOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResourceResponse
func (UntagResourceOutput) MarshalFields ¶
func (s UntagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceOutput) String ¶
func (s UntagResourceOutput) String() string
String returns the string representation
type UntagResourceRequest ¶
type UntagResourceRequest struct { *aws.Request Input *UntagResourceInput Copy func(*UntagResourceInput) UntagResourceRequest }
UntagResourceRequest is the request type for the UntagResource API operation.
func (UntagResourceRequest) Send ¶
func (r UntagResourceRequest) Send(ctx context.Context) (*UntagResourceResponse, error)
Send marshals and sends the UntagResource API request.
type UntagResourceResponse ¶ added in v0.9.0
type UntagResourceResponse struct { *UntagResourceOutput // contains filtered or unexported fields }
UntagResourceResponse is the response type for the UntagResource API operation.
func (*UntagResourceResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *UntagResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the UntagResource request.
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShareRequest
func (UpdateResourceShareInput) MarshalFields ¶
func (s UpdateResourceShareInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateResourceShareInput) String ¶
func (s UpdateResourceShareInput) String() string
String returns the string representation
func (*UpdateResourceShareInput) Validate ¶
func (s *UpdateResourceShareInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateResourceShareOutput ¶
type UpdateResourceShareOutput struct { // of the request. ClientToken *string `locationName:"clientToken" type:"string"` ResourceShare *ResourceShare `locationName:"resourceShare" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShareResponse
func (UpdateResourceShareOutput) MarshalFields ¶
func (s UpdateResourceShareOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateResourceShareOutput) String ¶
func (s UpdateResourceShareOutput) String() string
String returns the string representation
type UpdateResourceShareRequest ¶
type UpdateResourceShareRequest struct {}
UpdateResourceShareRequest is the request type for the UpdateResourceShare API operation.
func (UpdateResourceShareRequest) Send ¶
func (r UpdateResourceShareRequest) Send(ctx context.Context) (*UpdateResourceShareResponse, error)
Send marshals and sends the UpdateResourceShare API request.
type UpdateResourceShareResponse ¶ added in v0.9.0
type UpdateResourceShareResponse struct { // contains filtered or unexported fields }
UpdateResourceShareResponse is the response type for the UpdateResourceShare API operation.
func (*UpdateResourceShareResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *UpdateResourceShareResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the UpdateResourceShare request.
Source Files ¶
- api_client.go
- api_doc.go
- api_enums.go
- api_errors.go
- api_op_AcceptResourceShareInvitation.go
- api_op_AssociateResourceShare.go
- api_op_CreateResourceShare.go
- api_op_DeleteResourceShare.go
- api_op_DisassociateResourceShare.go
- api_op_EnableSharingWithAwsOrganization.go
- api_op_GetResourcePolicies.go
- api_op_GetResourceShareAssociations.go
- api_op_GetResourceShareInvitations.go
- api_op_GetResourceShares.go
- api_op_ListPrincipals.go
- api_op_ListResources.go
- api_op_RejectResourceShareInvitation.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateResourceShare.go
- api_types.go