client

package
v2.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This file is auto-generated, don't edit it. Thanks. *

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptResourceShareInvitationRequest

type AcceptResourceShareInvitationRequest struct {
	// The ID of the resource sharing invitation.
	//
	// You can call the [ListResourceShareInvitations](~~450564~~) operation to obtain the ID.
	ResourceShareInvitationId *string `json:"ResourceShareInvitationId,omitempty" xml:"ResourceShareInvitationId,omitempty"`
}

func (AcceptResourceShareInvitationRequest) GoString

func (*AcceptResourceShareInvitationRequest) SetResourceShareInvitationId

func (AcceptResourceShareInvitationRequest) String

type AcceptResourceShareInvitationResponse

type AcceptResourceShareInvitationResponse struct {
	Headers    map[string]*string                         `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                     `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *AcceptResourceShareInvitationResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (AcceptResourceShareInvitationResponse) GoString

func (*AcceptResourceShareInvitationResponse) SetHeaders

func (*AcceptResourceShareInvitationResponse) SetStatusCode

func (AcceptResourceShareInvitationResponse) String

type AcceptResourceShareInvitationResponseBody

type AcceptResourceShareInvitationResponseBody struct {
	// The request ID.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The information about the resource sharing invitation.
	ResourceShareInvitation *AcceptResourceShareInvitationResponseBodyResourceShareInvitation `json:"ResourceShareInvitation,omitempty" xml:"ResourceShareInvitation,omitempty" type:"Struct"`
}

func (AcceptResourceShareInvitationResponseBody) GoString

func (*AcceptResourceShareInvitationResponseBody) SetRequestId

func (AcceptResourceShareInvitationResponseBody) String

type AcceptResourceShareInvitationResponseBodyResourceShareInvitation

type AcceptResourceShareInvitationResponseBodyResourceShareInvitation struct {
	// The information about the failure.
	AcceptInvitationFailedDetails []*AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails `json:"AcceptInvitationFailedDetails,omitempty" xml:"AcceptInvitationFailedDetails,omitempty" type:"Repeated"`
	// The time when the invitation was created. The time is displayed in UTC.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The Alibaba Cloud account ID of the invitee.
	ReceiverAccountId *string `json:"ReceiverAccountId,omitempty" xml:"ReceiverAccountId,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The ID of the resource sharing invitation.
	ResourceShareInvitationId *string `json:"ResourceShareInvitationId,omitempty" xml:"ResourceShareInvitationId,omitempty"`
	// The name of the resource share.
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
	// The Alibaba Cloud account ID of the inviter.
	SenderAccountId *string `json:"SenderAccountId,omitempty" xml:"SenderAccountId,omitempty"`
	// The status of the invitation. Valid values:
	//
	// *   Pending
	// *   Accepted
	// *   Cancelled
	// *   Rejected
	// *   Expired
	// *   AcceptFailed
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
}

func (AcceptResourceShareInvitationResponseBodyResourceShareInvitation) GoString

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitation) SetCreateTime

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitation) SetReceiverAccountId

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitation) SetResourceShareId

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitation) SetResourceShareInvitationId

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitation) SetResourceShareName

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitation) SetSenderAccountId

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitation) SetStatus

func (AcceptResourceShareInvitationResponseBodyResourceShareInvitation) String

type AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails added in v2.1.1

type AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails struct {
	// The type of the sharing operation. Valid values:
	//
	// *   Associate
	AssociateType      *string `json:"AssociateType,omitempty" xml:"AssociateType,omitempty"`
	FailureDescription *string `json:"FailureDescription,omitempty" xml:"FailureDescription,omitempty"`
	FailureReason      *string `json:"FailureReason,omitempty" xml:"FailureReason,omitempty"`
	OperationType      *string `json:"OperationType,omitempty" xml:"OperationType,omitempty"`
	// The ID of the shared resource.
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
	// The type of the shared resource.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The failure status. Valid values:
	//
	// *   Unavailable: The resource cannot be shared.
	// *   LimitExceeded: The number of shared resources within the Alibaba Cloud account exceeds the upper limit.
	// *   ZonalResourceInaccessible: The resource is unavailable in this region.
	// *   InternalError: An internal error occurred during the check.
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
	// The failure cause.
	StatusMessage *string `json:"StatusMessage,omitempty" xml:"StatusMessage,omitempty"`
}

func (AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails) GoString added in v2.1.1

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails) SetAssociateType added in v2.1.1

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails) SetFailureDescription added in v2.1.4

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails) SetFailureReason added in v2.1.4

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails) SetOperationType added in v2.1.4

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails) SetResourceId added in v2.1.1

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails) SetResourceType added in v2.1.1

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails) SetStatus added in v2.1.1

func (*AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails) SetStatusMessage added in v2.1.1

func (AcceptResourceShareInvitationResponseBodyResourceShareInvitationAcceptInvitationFailedDetails) String added in v2.1.1

type AssociateResourceSharePermissionRequest added in v2.0.1

type AssociateResourceSharePermissionRequest struct {
	// The name of the permission.
	PermissionName *string `json:"PermissionName,omitempty" xml:"PermissionName,omitempty"`
	// Specifies whether to use the specified permission to replace an existing permission. Valid values:
	//
	// *   false: does not use the specified permission to replace an existing permission. This is the default value. If you set the value to false for a resource share that does not have associated permissions, the system associates the specified permission with the resource share. In a resource share, one resource type can have only one permission. If you set the value to false for a resource share that already has a permission for the resource type indicated by the specified permission, the system reports an error. This prevents you from replacing the existing permission by mistake.
	// *   true: uses the specified permission to replace an existing permission of the same resource type.
	Replace *bool `json:"Replace,omitempty" xml:"Replace,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
}

func (AssociateResourceSharePermissionRequest) GoString added in v2.0.1

func (*AssociateResourceSharePermissionRequest) SetPermissionName added in v2.0.1

func (*AssociateResourceSharePermissionRequest) SetReplace added in v2.0.1

func (*AssociateResourceSharePermissionRequest) SetResourceShareId added in v2.0.1

func (AssociateResourceSharePermissionRequest) String added in v2.0.1

type AssociateResourceSharePermissionResponse added in v2.0.1

type AssociateResourceSharePermissionResponse struct {
	Headers    map[string]*string                            `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                        `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *AssociateResourceSharePermissionResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (AssociateResourceSharePermissionResponse) GoString added in v2.0.1

func (*AssociateResourceSharePermissionResponse) SetBody added in v2.0.1

func (*AssociateResourceSharePermissionResponse) SetHeaders added in v2.0.1

func (*AssociateResourceSharePermissionResponse) SetStatusCode added in v2.0.1

func (AssociateResourceSharePermissionResponse) String added in v2.0.1

type AssociateResourceSharePermissionResponseBody added in v2.0.1

type AssociateResourceSharePermissionResponseBody struct {
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (AssociateResourceSharePermissionResponseBody) GoString added in v2.0.1

func (*AssociateResourceSharePermissionResponseBody) SetRequestId added in v2.0.1

func (AssociateResourceSharePermissionResponseBody) String added in v2.0.1

type AssociateResourceShareRequest

type AssociateResourceShareRequest struct {
	// The information about the permissions. If you do not configure this parameter, the system automatically associates the default permission for the specified resource type with the resource share. For more information, see [Permission library](~~465474~~).
	PermissionNames []*string `json:"PermissionNames,omitempty" xml:"PermissionNames,omitempty" type:"Repeated"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The information about the resources.
	Resources        []*AssociateResourceShareRequestResources        `json:"Resources,omitempty" xml:"Resources,omitempty" type:"Repeated"`
	TargetProperties []*AssociateResourceShareRequestTargetProperties `json:"TargetProperties,omitempty" xml:"TargetProperties,omitempty" type:"Repeated"`
	// The information about the principals.
	Targets []*string `json:"Targets,omitempty" xml:"Targets,omitempty" type:"Repeated"`
}

func (AssociateResourceShareRequest) GoString

func (*AssociateResourceShareRequest) SetPermissionNames added in v2.0.1

func (*AssociateResourceShareRequest) SetResourceShareId

func (*AssociateResourceShareRequest) SetResources

func (*AssociateResourceShareRequest) SetTargetProperties added in v2.1.3

func (*AssociateResourceShareRequest) SetTargets

func (AssociateResourceShareRequest) String

type AssociateResourceShareRequestResources

type AssociateResourceShareRequestResources struct {
	// The ID of a shared resource.
	//
	// Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.
	//
	// >  Resources.N.ResourceId and Resources.N.ResourceType must be used in pairs.
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
	// The type of a shared resource.
	//
	// Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	//
	// >  `Resources.N.ResourceId` and `Resources.N.ResourceType` must be used in pairs.
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
}

func (AssociateResourceShareRequestResources) GoString

func (*AssociateResourceShareRequestResources) SetResourceId

func (*AssociateResourceShareRequestResources) SetResourceType

func (AssociateResourceShareRequestResources) String

type AssociateResourceShareRequestTargetProperties added in v2.1.3

type AssociateResourceShareRequestTargetProperties struct {
	Property *string `json:"Property,omitempty" xml:"Property,omitempty"`
	TargetId *string `json:"TargetId,omitempty" xml:"TargetId,omitempty"`
}

func (AssociateResourceShareRequestTargetProperties) GoString added in v2.1.3

func (*AssociateResourceShareRequestTargetProperties) SetProperty added in v2.1.3

func (*AssociateResourceShareRequestTargetProperties) SetTargetId added in v2.1.3

func (AssociateResourceShareRequestTargetProperties) String added in v2.1.3

type AssociateResourceShareResponse

type AssociateResourceShareResponse struct {
	Headers    map[string]*string                  `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                              `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *AssociateResourceShareResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (AssociateResourceShareResponse) GoString

func (*AssociateResourceShareResponse) SetHeaders

func (*AssociateResourceShareResponse) SetStatusCode

func (AssociateResourceShareResponse) String

type AssociateResourceShareResponseBody

type AssociateResourceShareResponseBody struct {
	// The request ID.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The information about the entities that are associated with the resource share.
	ResourceShareAssociations []*AssociateResourceShareResponseBodyResourceShareAssociations `json:"ResourceShareAssociations,omitempty" xml:"ResourceShareAssociations,omitempty" type:"Repeated"`
}

func (AssociateResourceShareResponseBody) GoString

func (*AssociateResourceShareResponseBody) SetRequestId

func (AssociateResourceShareResponseBody) String

type AssociateResourceShareResponseBodyResourceShareAssociations

type AssociateResourceShareResponseBodyResourceShareAssociations struct {
	// The association status. Valid values:
	//
	// *   Associating: The entity is being associated.
	// *   Associated: The entity is associated.
	// *   Failed: The entity fails to be associated.
	// *   Disassociating: The entity is being disassociated.
	// *   Disassociated: The entity is disassociated.
	//
	// >  The system deletes the records of entities in the `Failed` or `Disassociated` state within 48 hours to 96 hours.
	AssociationStatus *string `json:"AssociationStatus,omitempty" xml:"AssociationStatus,omitempty"`
	// The cause of the association failure.
	AssociationStatusMessage *string `json:"AssociationStatusMessage,omitempty" xml:"AssociationStatusMessage,omitempty"`
	// The association type. Valid values:
	//
	// *   Resource
	// *   Target
	AssociationType *string `json:"AssociationType,omitempty" xml:"AssociationType,omitempty"`
	// The time when the association of the entity was created. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of `AssociationType` is `Resource`, the value of this parameter is the time when the shared resource was associated with the resource share.
	// *   If the value of `AssociationType` is `Target`, the value of this parameter is the time when the principal was associated with the resource share.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The ID of the entity. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of `AssociationType` is `Resource`, the value of this parameter is the ID of the shared resource.
	// *   If the value of `AssociationType` is `Target`, the value of this parameter is the ID of the principal.
	EntityId *string `json:"EntityId,omitempty" xml:"EntityId,omitempty"`
	// The type of the entity. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of AssociationType is Resource, the value of this parameter is the type of the shared resource. For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	// *   If the value of AssociationType is Target, the value of this parameter is `Account`.
	EntityType *string `json:"EntityType,omitempty" xml:"EntityType,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The name of the resource share.
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
	TargetProperty    *string `json:"TargetProperty,omitempty" xml:"TargetProperty,omitempty"`
	// The time when the association of the entity was updated. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of `AssociationType` is `Resource`, the value of this parameter is the time when the association of the shared resource was updated.
	// *   If the value of `AssociationType` is `Target`, the value of this parameter is the time when the association of the principal was updated.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (AssociateResourceShareResponseBodyResourceShareAssociations) GoString

func (*AssociateResourceShareResponseBodyResourceShareAssociations) SetAssociationStatus

func (*AssociateResourceShareResponseBodyResourceShareAssociations) SetAssociationStatusMessage

func (*AssociateResourceShareResponseBodyResourceShareAssociations) SetAssociationType

func (*AssociateResourceShareResponseBodyResourceShareAssociations) SetCreateTime

func (*AssociateResourceShareResponseBodyResourceShareAssociations) SetEntityId

func (*AssociateResourceShareResponseBodyResourceShareAssociations) SetEntityType

func (*AssociateResourceShareResponseBodyResourceShareAssociations) SetResourceShareId

func (*AssociateResourceShareResponseBodyResourceShareAssociations) SetResourceShareName

func (*AssociateResourceShareResponseBodyResourceShareAssociations) SetTargetProperty added in v2.1.2

func (*AssociateResourceShareResponseBodyResourceShareAssociations) SetUpdateTime

func (AssociateResourceShareResponseBodyResourceShareAssociations) String

type ChangeResourceGroupRequest added in v2.1.0

type ChangeResourceGroupRequest struct {
	// The ID of the destination resource group.
	ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"`
	// The ID of the resource share.
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
	// The region ID of the resource share.
	ResourceRegionId *string `json:"ResourceRegionId,omitempty" xml:"ResourceRegionId,omitempty"`
}

func (ChangeResourceGroupRequest) GoString added in v2.1.0

func (s ChangeResourceGroupRequest) GoString() string

func (*ChangeResourceGroupRequest) SetResourceGroupId added in v2.1.0

func (*ChangeResourceGroupRequest) SetResourceId added in v2.1.0

func (*ChangeResourceGroupRequest) SetResourceRegionId added in v2.1.0

func (ChangeResourceGroupRequest) String added in v2.1.0

type ChangeResourceGroupResponse added in v2.1.0

type ChangeResourceGroupResponse struct {
	Headers    map[string]*string               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ChangeResourceGroupResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ChangeResourceGroupResponse) GoString added in v2.1.0

func (s ChangeResourceGroupResponse) GoString() string

func (*ChangeResourceGroupResponse) SetBody added in v2.1.0

func (*ChangeResourceGroupResponse) SetHeaders added in v2.1.0

func (*ChangeResourceGroupResponse) SetStatusCode added in v2.1.0

func (ChangeResourceGroupResponse) String added in v2.1.0

type ChangeResourceGroupResponseBody added in v2.1.0

type ChangeResourceGroupResponseBody struct {
	// The request ID.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ChangeResourceGroupResponseBody) GoString added in v2.1.0

func (*ChangeResourceGroupResponseBody) SetRequestId added in v2.1.0

func (ChangeResourceGroupResponseBody) String added in v2.1.0

type CheckSharingWithResourceDirectoryStatusResponse added in v2.1.0

type CheckSharingWithResourceDirectoryStatusResponse struct {
	Headers    map[string]*string                                   `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                               `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CheckSharingWithResourceDirectoryStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CheckSharingWithResourceDirectoryStatusResponse) GoString added in v2.1.0

func (*CheckSharingWithResourceDirectoryStatusResponse) SetHeaders added in v2.1.0

func (*CheckSharingWithResourceDirectoryStatusResponse) SetStatusCode added in v2.1.0

func (CheckSharingWithResourceDirectoryStatusResponse) String added in v2.1.0

type CheckSharingWithResourceDirectoryStatusResponseBody added in v2.1.0

type CheckSharingWithResourceDirectoryStatusResponseBody struct {
	// Indicates whether resource sharing within a resource directory is enabled. Valid values:
	//
	// *   false
	// *   true
	EnableSharingWithRd *bool `json:"EnableSharingWithRd,omitempty" xml:"EnableSharingWithRd,omitempty"`
	// The request ID.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CheckSharingWithResourceDirectoryStatusResponseBody) GoString added in v2.1.0

func (*CheckSharingWithResourceDirectoryStatusResponseBody) SetEnableSharingWithRd added in v2.1.0

func (*CheckSharingWithResourceDirectoryStatusResponseBody) SetRequestId added in v2.1.0

func (CheckSharingWithResourceDirectoryStatusResponseBody) String added in v2.1.0

type Client

type Client struct {
	openapi.Client
}

func NewClient

func NewClient(config *openapi.Config) (*Client, error)

func (*Client) AcceptResourceShareInvitation

func (client *Client) AcceptResourceShareInvitation(request *AcceptResourceShareInvitationRequest) (_result *AcceptResourceShareInvitationResponse, _err error)

*

  • ### [](#)
  • * A principal needs to accept or reject a resource sharing invitation only if the principal is not the management account or a member of a resource directory. If you share resources with an object in a resource directory, the system automatically accepts the resource sharing invitation for the object.
  • * A resource sharing invitation is valid for seven days. A principal must accept or reject the invitation within the validity period.
  • This topic provides an example on how to call the API operation to accept the resource sharing invitation whose ID is `i-pMnItMX19fBJ****` in the `cn-hangzhou` region. *
  • @param request AcceptResourceShareInvitationRequest
  • @return AcceptResourceShareInvitationResponse

func (*Client) AcceptResourceShareInvitationWithOptions

func (client *Client) AcceptResourceShareInvitationWithOptions(request *AcceptResourceShareInvitationRequest, runtime *util.RuntimeOptions) (_result *AcceptResourceShareInvitationResponse, _err error)

*

  • ### [](#)
  • * A principal needs to accept or reject a resource sharing invitation only if the principal is not the management account or a member of a resource directory. If you share resources with an object in a resource directory, the system automatically accepts the resource sharing invitation for the object.
  • * A resource sharing invitation is valid for seven days. A principal must accept or reject the invitation within the validity period.
  • This topic provides an example on how to call the API operation to accept the resource sharing invitation whose ID is `i-pMnItMX19fBJ****` in the `cn-hangzhou` region. *
  • @param request AcceptResourceShareInvitationRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return AcceptResourceShareInvitationResponse

func (*Client) AssociateResourceShare

func (client *Client) AssociateResourceShare(request *AssociateResourceShareRequest) (_result *AssociateResourceShareResponse, _err error)

*

  • This topic provides an example on how to call the API operation to associate the vSwitch `vsw-bp183p93qs667muql****` and the member `172050525300****` with the resource share `rs-6GRmdD3X****` in the `cn-hangzhou` region. After the association, the vSwitch is shared with the member. *
  • @param request AssociateResourceShareRequest
  • @return AssociateResourceShareResponse

func (*Client) AssociateResourceSharePermission added in v2.0.1

func (client *Client) AssociateResourceSharePermission(request *AssociateResourceSharePermissionRequest) (_result *AssociateResourceSharePermissionResponse, _err error)

*

  • This topic provides an example on how to call the API operation to associate the `AliyunRSDefaultPermissionVSwitch` permission with the `rs-6GRmdD3X****` resource share in the `cn-hangzhou` region. *
  • @param request AssociateResourceSharePermissionRequest
  • @return AssociateResourceSharePermissionResponse

func (*Client) AssociateResourceSharePermissionWithOptions added in v2.0.1

func (client *Client) AssociateResourceSharePermissionWithOptions(request *AssociateResourceSharePermissionRequest, runtime *util.RuntimeOptions) (_result *AssociateResourceSharePermissionResponse, _err error)

*

  • This topic provides an example on how to call the API operation to associate the `AliyunRSDefaultPermissionVSwitch` permission with the `rs-6GRmdD3X****` resource share in the `cn-hangzhou` region. *
  • @param request AssociateResourceSharePermissionRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return AssociateResourceSharePermissionResponse

func (*Client) AssociateResourceShareWithOptions

func (client *Client) AssociateResourceShareWithOptions(request *AssociateResourceShareRequest, runtime *util.RuntimeOptions) (_result *AssociateResourceShareResponse, _err error)

*

  • This topic provides an example on how to call the API operation to associate the vSwitch `vsw-bp183p93qs667muql****` and the member `172050525300****` with the resource share `rs-6GRmdD3X****` in the `cn-hangzhou` region. After the association, the vSwitch is shared with the member. *
  • @param request AssociateResourceShareRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return AssociateResourceShareResponse

func (*Client) ChangeResourceGroup added in v2.1.0

func (client *Client) ChangeResourceGroup(request *ChangeResourceGroupRequest) (_result *ChangeResourceGroupResponse, _err error)

func (*Client) ChangeResourceGroupWithOptions added in v2.1.0

func (client *Client) ChangeResourceGroupWithOptions(request *ChangeResourceGroupRequest, runtime *util.RuntimeOptions) (_result *ChangeResourceGroupResponse, _err error)

func (*Client) CheckSharingWithResourceDirectoryStatus added in v2.1.0

func (client *Client) CheckSharingWithResourceDirectoryStatus() (_result *CheckSharingWithResourceDirectoryStatusResponse, _err error)

func (*Client) CheckSharingWithResourceDirectoryStatusWithOptions added in v2.1.0

func (client *Client) CheckSharingWithResourceDirectoryStatusWithOptions(runtime *util.RuntimeOptions) (_result *CheckSharingWithResourceDirectoryStatusResponse, _err error)

func (*Client) CreateResourceShare

func (client *Client) CreateResourceShare(request *CreateResourceShareRequest) (_result *CreateResourceShareResponse, _err error)

*

  • Resource Sharing allows you to share your resources with one or more accounts and access the resources shared by other accounts. For more information, see [Resource Sharing overview](~~160622~~).
  • This topic provides an example on how to call the API operation to create a resource share named `test` in the `cn-hangzhou` region to share the vSwitch `vsw-bp183p93qs667muql****` with the member `172050525300****`. In this example, the management account of a resource directory is used to call this API operation. *
  • @param request CreateResourceShareRequest
  • @return CreateResourceShareResponse

func (*Client) CreateResourceShareWithOptions

func (client *Client) CreateResourceShareWithOptions(request *CreateResourceShareRequest, runtime *util.RuntimeOptions) (_result *CreateResourceShareResponse, _err error)

*

  • Resource Sharing allows you to share your resources with one or more accounts and access the resources shared by other accounts. For more information, see [Resource Sharing overview](~~160622~~).
  • This topic provides an example on how to call the API operation to create a resource share named `test` in the `cn-hangzhou` region to share the vSwitch `vsw-bp183p93qs667muql****` with the member `172050525300****`. In this example, the management account of a resource directory is used to call this API operation. *
  • @param request CreateResourceShareRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return CreateResourceShareResponse

func (*Client) DeleteResourceShare

func (client *Client) DeleteResourceShare(request *DeleteResourceShareRequest) (_result *DeleteResourceShareResponse, _err error)

*

  • After a resource share is deleted, all principals in the resource share can no longer access the resources in the resource share. However, the resources are not deleted with the resource share.
  • A resource share that is deleted is in the `Deleted` state. The system deletes the record of the resource share within 48 hours to 96 hours.
  • This topic provides an example on how to call the API operation to delete the resource share `rs-qSkW1HBY****` in the `cn-hangzhou` region. *
  • @param request DeleteResourceShareRequest
  • @return DeleteResourceShareResponse

func (*Client) DeleteResourceShareWithOptions

func (client *Client) DeleteResourceShareWithOptions(request *DeleteResourceShareRequest, runtime *util.RuntimeOptions) (_result *DeleteResourceShareResponse, _err error)

*

  • After a resource share is deleted, all principals in the resource share can no longer access the resources in the resource share. However, the resources are not deleted with the resource share.
  • A resource share that is deleted is in the `Deleted` state. The system deletes the record of the resource share within 48 hours to 96 hours.
  • This topic provides an example on how to call the API operation to delete the resource share `rs-qSkW1HBY****` in the `cn-hangzhou` region. *
  • @param request DeleteResourceShareRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return DeleteResourceShareResponse

func (*Client) DescribeRegions

func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (_result *DescribeRegionsResponse, _err error)

func (*Client) DescribeRegionsWithOptions

func (client *Client) DescribeRegionsWithOptions(request *DescribeRegionsRequest, runtime *util.RuntimeOptions) (_result *DescribeRegionsResponse, _err error)

func (*Client) DisassociateResourceShare

func (client *Client) DisassociateResourceShare(request *DisassociateResourceShareRequest) (_result *DisassociateResourceShareResponse, _err error)

*

  • * A resource owner can call this API operation to remove shared resources or principals from a resource share.
  • * If an Alibaba Cloud account that is not the management account or a member of a resource directory is added to a resource share as a principal, you can use the Alibaba Cloud account to call this API operation to exit the resource share. For more information, see [Exit a resource share](~~440614~~).
  • This topic provides an example on how to use the management account of a resource directory to call the API operation to remove the member `172050525300****` from the resource share `rs-6GRmdD3X****` in the `cn-hangzhou` region. After the member is removed from the resource share, the member cannot share the resources in the resource share. *
  • @param request DisassociateResourceShareRequest
  • @return DisassociateResourceShareResponse

func (*Client) DisassociateResourceSharePermission added in v2.0.1

func (client *Client) DisassociateResourceSharePermission(request *DisassociateResourceSharePermissionRequest) (_result *DisassociateResourceSharePermissionResponse, _err error)

*

  • This topic provides an example on how to call the API operation to disassociate the `AliyunRSDefaultPermissionVSwitch` permission from the `rs-6GRmdD3X****` resource share in the `cn-hangzhou` region. *
  • @param request DisassociateResourceSharePermissionRequest
  • @return DisassociateResourceSharePermissionResponse

func (*Client) DisassociateResourceSharePermissionWithOptions added in v2.0.1

func (client *Client) DisassociateResourceSharePermissionWithOptions(request *DisassociateResourceSharePermissionRequest, runtime *util.RuntimeOptions) (_result *DisassociateResourceSharePermissionResponse, _err error)

*

  • This topic provides an example on how to call the API operation to disassociate the `AliyunRSDefaultPermissionVSwitch` permission from the `rs-6GRmdD3X****` resource share in the `cn-hangzhou` region. *
  • @param request DisassociateResourceSharePermissionRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return DisassociateResourceSharePermissionResponse

func (*Client) DisassociateResourceShareWithOptions

func (client *Client) DisassociateResourceShareWithOptions(request *DisassociateResourceShareRequest, runtime *util.RuntimeOptions) (_result *DisassociateResourceShareResponse, _err error)

*

  • * A resource owner can call this API operation to remove shared resources or principals from a resource share.
  • * If an Alibaba Cloud account that is not the management account or a member of a resource directory is added to a resource share as a principal, you can use the Alibaba Cloud account to call this API operation to exit the resource share. For more information, see [Exit a resource share](~~440614~~).
  • This topic provides an example on how to use the management account of a resource directory to call the API operation to remove the member `172050525300****` from the resource share `rs-6GRmdD3X****` in the `cn-hangzhou` region. After the member is removed from the resource share, the member cannot share the resources in the resource share. *
  • @param request DisassociateResourceShareRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return DisassociateResourceShareResponse

func (*Client) EnableSharingWithResourceDirectory

func (client *Client) EnableSharingWithResourceDirectory() (_result *EnableSharingWithResourceDirectoryResponse, _err error)

*

  • You can share your resources with all members in your resource directory, all members in a specific folder in your resource directory, or a specific member in your resource directory as a resource owner only after you enable resource sharing for your resource directory.
  • You can call this API operation only by using the management account of your resource directory or a RAM user or RAM role to which the required permissions are granted within the management account. *
  • @return EnableSharingWithResourceDirectoryResponse

func (*Client) EnableSharingWithResourceDirectoryWithOptions

func (client *Client) EnableSharingWithResourceDirectoryWithOptions(runtime *util.RuntimeOptions) (_result *EnableSharingWithResourceDirectoryResponse, _err error)

*

  • You can share your resources with all members in your resource directory, all members in a specific folder in your resource directory, or a specific member in your resource directory as a resource owner only after you enable resource sharing for your resource directory.
  • You can call this API operation only by using the management account of your resource directory or a RAM user or RAM role to which the required permissions are granted within the management account. *
  • @param request EnableSharingWithResourceDirectoryRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return EnableSharingWithResourceDirectoryResponse

func (*Client) GetEndpoint

func (client *Client) GetEndpoint(productId *string, regionId *string, endpointRule *string, network *string, suffix *string, endpointMap map[string]*string, endpoint *string) (_result *string, _err error)

func (*Client) GetPermission added in v2.0.1

func (client *Client) GetPermission(request *GetPermissionRequest) (_result *GetPermissionResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the information about the `AliyunRSDefaultPermissionVSwitch` permission whose version is `v1` in the `cn-hangzhou` region. *
  • @param request GetPermissionRequest
  • @return GetPermissionResponse

func (*Client) GetPermissionWithOptions added in v2.0.1

func (client *Client) GetPermissionWithOptions(request *GetPermissionRequest, runtime *util.RuntimeOptions) (_result *GetPermissionResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the information about the `AliyunRSDefaultPermissionVSwitch` permission whose version is `v1` in the `cn-hangzhou` region. *
  • @param request GetPermissionRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return GetPermissionResponse

func (*Client) Init

func (client *Client) Init(config *openapi.Config) (_err error)

func (*Client) ListPermissionVersions added in v2.0.1

func (client *Client) ListPermissionVersions(request *ListPermissionVersionsRequest) (_result *ListPermissionVersionsResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the versions of the `AliyunRSDefaultPermissionVSwitch` permission in the `cn-hangzhou` region. *
  • @param request ListPermissionVersionsRequest
  • @return ListPermissionVersionsResponse

func (*Client) ListPermissionVersionsWithOptions added in v2.0.1

func (client *Client) ListPermissionVersionsWithOptions(request *ListPermissionVersionsRequest, runtime *util.RuntimeOptions) (_result *ListPermissionVersionsResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the versions of the `AliyunRSDefaultPermissionVSwitch` permission in the `cn-hangzhou` region. *
  • @param request ListPermissionVersionsRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return ListPermissionVersionsResponse

func (*Client) ListPermissions added in v2.0.1

func (client *Client) ListPermissions(request *ListPermissionsRequest) (_result *ListPermissionsResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the information about the default permission for the `VSwitch` resource type in the `cn-hangzhou` region. *
  • @param request ListPermissionsRequest
  • @return ListPermissionsResponse

func (*Client) ListPermissionsWithOptions added in v2.0.1

func (client *Client) ListPermissionsWithOptions(request *ListPermissionsRequest, runtime *util.RuntimeOptions) (_result *ListPermissionsResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the information about the default permission for the `VSwitch` resource type in the `cn-hangzhou` region. *
  • @param request ListPermissionsRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return ListPermissionsResponse

func (*Client) ListResourceShareAssociations

func (client *Client) ListResourceShareAssociations(request *ListResourceShareAssociationsRequest) (_result *ListResourceShareAssociationsResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the association records of the resource shares that are created by using the current Alibaba Cloud account in the `cn-hangzhou` region. The response shows the following records:
  • * The resource `vsw-bp1upw03qyz8n7us9****` of the `VSwitch` type has been associated with the resource share `rs-6GRmdD3X****`. The resource is in the `Associated` state. This indicates that the resource is being shared.
  • * The resource `vsw-bp183p93qs667muql****` of the `VSwitch` type has been disassociated from the resource share `rs-6GRmdD3X****`. The resource is in the `Disassociated` state. This indicates that the sharing of the resource is stopped. *
  • @param request ListResourceShareAssociationsRequest
  • @return ListResourceShareAssociationsResponse

func (*Client) ListResourceShareAssociationsWithOptions

func (client *Client) ListResourceShareAssociationsWithOptions(request *ListResourceShareAssociationsRequest, runtime *util.RuntimeOptions) (_result *ListResourceShareAssociationsResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the association records of the resource shares that are created by using the current Alibaba Cloud account in the `cn-hangzhou` region. The response shows the following records:
  • * The resource `vsw-bp1upw03qyz8n7us9****` of the `VSwitch` type has been associated with the resource share `rs-6GRmdD3X****`. The resource is in the `Associated` state. This indicates that the resource is being shared.
  • * The resource `vsw-bp183p93qs667muql****` of the `VSwitch` type has been disassociated from the resource share `rs-6GRmdD3X****`. The resource is in the `Disassociated` state. This indicates that the sharing of the resource is stopped. *
  • @param request ListResourceShareAssociationsRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return ListResourceShareAssociationsResponse

func (*Client) ListResourceShareInvitations

func (client *Client) ListResourceShareInvitations(request *ListResourceShareInvitationsRequest) (_result *ListResourceShareInvitationsResponse, _err error)

*

  • ### [](#)
  • This topic provides an example on how to call the API operation to query the resource sharing invitations that are received by the current account in the `cn-hangzhou` region. The response shows that one invitation is received by the current account and is waiting for confirmation. *
  • @param request ListResourceShareInvitationsRequest
  • @return ListResourceShareInvitationsResponse

func (*Client) ListResourceShareInvitationsWithOptions

func (client *Client) ListResourceShareInvitationsWithOptions(request *ListResourceShareInvitationsRequest, runtime *util.RuntimeOptions) (_result *ListResourceShareInvitationsResponse, _err error)

*

  • ### [](#)
  • This topic provides an example on how to call the API operation to query the resource sharing invitations that are received by the current account in the `cn-hangzhou` region. The response shows that one invitation is received by the current account and is waiting for confirmation. *
  • @param request ListResourceShareInvitationsRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return ListResourceShareInvitationsResponse

func (*Client) ListResourceSharePermissions added in v2.0.1

func (client *Client) ListResourceSharePermissions(request *ListResourceSharePermissionsRequest) (_result *ListResourceSharePermissionsResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the permissions that are associated with the resource share created by using the current Alibaba Cloud account in the `cn-hangzhou` region. *
  • @param request ListResourceSharePermissionsRequest
  • @return ListResourceSharePermissionsResponse

func (*Client) ListResourceSharePermissionsWithOptions added in v2.0.1

func (client *Client) ListResourceSharePermissionsWithOptions(request *ListResourceSharePermissionsRequest, runtime *util.RuntimeOptions) (_result *ListResourceSharePermissionsResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the permissions that are associated with the resource share created by using the current Alibaba Cloud account in the `cn-hangzhou` region. *
  • @param request ListResourceSharePermissionsRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return ListResourceSharePermissionsResponse

func (*Client) ListResourceShares

func (client *Client) ListResourceShares(request *ListResourceSharesRequest) (_result *ListResourceSharesResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the resource shares that are created by using the current Alibaba Cloud account in the `cn-hangzhou` region. The response shows that the following resource shares are created by using the account whose ID is `151266687691****`:
  • * `rs-hX9wC5jO****`, which is in the `Deleted` state
  • * `rs-PqysnzIj****`, which is in the `Active` state *
  • @param request ListResourceSharesRequest
  • @return ListResourceSharesResponse

func (*Client) ListResourceSharesWithOptions

func (client *Client) ListResourceSharesWithOptions(request *ListResourceSharesRequest, runtime *util.RuntimeOptions) (_result *ListResourceSharesResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the resource shares that are created by using the current Alibaba Cloud account in the `cn-hangzhou` region. The response shows that the following resource shares are created by using the account whose ID is `151266687691****`:
  • * `rs-hX9wC5jO****`, which is in the `Deleted` state
  • * `rs-PqysnzIj****`, which is in the `Active` state *
  • @param request ListResourceSharesRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return ListResourceSharesResponse

func (*Client) ListSharedResources

func (client *Client) ListSharedResources(request *ListSharedResourcesRequest) (_result *ListSharedResourcesResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the resources that you share with other accounts in the `cn-hangzhou` region. The response shows that in the resource share `rs-6GRmdD3X****`, you share the `vsw-bp1upw03qyz8n7us9****` resource of the `VSwitch` type with other accounts. *
  • @param request ListSharedResourcesRequest
  • @return ListSharedResourcesResponse

func (*Client) ListSharedResourcesWithOptions

func (client *Client) ListSharedResourcesWithOptions(request *ListSharedResourcesRequest, runtime *util.RuntimeOptions) (_result *ListSharedResourcesResponse, _err error)

*

  • This topic provides an example on how to call the API operation to query the resources that you share with other accounts in the `cn-hangzhou` region. The response shows that in the resource share `rs-6GRmdD3X****`, you share the `vsw-bp1upw03qyz8n7us9****` resource of the `VSwitch` type with other accounts. *
  • @param request ListSharedResourcesRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return ListSharedResourcesResponse

func (*Client) ListSharedTargets

func (client *Client) ListSharedTargets(request *ListSharedTargetsRequest) (_result *ListSharedTargetsResponse, _err error)

*

  • If you are a resource owner, you can query the principals with which you share your resources.
  • If you are a principal, you can query the resources that are shared with you.
  • This topic provides an example on how to call the API operation to query the principals with which you share your resources in the `cn-hangzhou` region. The response shows that you share your resources with the principals `114240524784****` and `172050525300****`. *
  • @param request ListSharedTargetsRequest
  • @return ListSharedTargetsResponse

func (*Client) ListSharedTargetsWithOptions

func (client *Client) ListSharedTargetsWithOptions(request *ListSharedTargetsRequest, runtime *util.RuntimeOptions) (_result *ListSharedTargetsResponse, _err error)

*

  • If you are a resource owner, you can query the principals with which you share your resources.
  • If you are a principal, you can query the resources that are shared with you.
  • This topic provides an example on how to call the API operation to query the principals with which you share your resources in the `cn-hangzhou` region. The response shows that you share your resources with the principals `114240524784****` and `172050525300****`. *
  • @param request ListSharedTargetsRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return ListSharedTargetsResponse

func (*Client) RejectResourceShareInvitation

func (client *Client) RejectResourceShareInvitation(request *RejectResourceShareInvitationRequest) (_result *RejectResourceShareInvitationResponse, _err error)

*

  • This topic provides an example on how to call the API operation to reject the resource sharing invitation `i-yyTWbkjHArYh****` in the `cn-hangzhou` region. *
  • @param request RejectResourceShareInvitationRequest
  • @return RejectResourceShareInvitationResponse

func (*Client) RejectResourceShareInvitationWithOptions

func (client *Client) RejectResourceShareInvitationWithOptions(request *RejectResourceShareInvitationRequest, runtime *util.RuntimeOptions) (_result *RejectResourceShareInvitationResponse, _err error)

*

  • This topic provides an example on how to call the API operation to reject the resource sharing invitation `i-yyTWbkjHArYh****` in the `cn-hangzhou` region. *
  • @param request RejectResourceShareInvitationRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return RejectResourceShareInvitationResponse

func (*Client) UpdateResourceShare

func (client *Client) UpdateResourceShare(request *UpdateResourceShareRequest) (_result *UpdateResourceShareResponse, _err error)

*

  • You can call this API operation to change the name or resource sharing scope of a resource share.
  • This topic provides an example on how to call the API operation to change the name of the resource share `rs-qSkW1HBY****` in the `cn-hangzhou` region from `test` to `new`. *
  • @param request UpdateResourceShareRequest
  • @return UpdateResourceShareResponse

func (*Client) UpdateResourceShareWithOptions

func (client *Client) UpdateResourceShareWithOptions(request *UpdateResourceShareRequest, runtime *util.RuntimeOptions) (_result *UpdateResourceShareResponse, _err error)

*

  • You can call this API operation to change the name or resource sharing scope of a resource share.
  • This topic provides an example on how to call the API operation to change the name of the resource share `rs-qSkW1HBY****` in the `cn-hangzhou` region from `test` to `new`. *
  • @param request UpdateResourceShareRequest
  • @param runtime runtime options for this request RuntimeOptions
  • @return UpdateResourceShareResponse

type CreateResourceShareRequest

type CreateResourceShareRequest struct {
	// Specifies whether resources in the resource share can be shared with accounts outside the resource directory. Valid values:
	//
	// *   false (default): Resources in the resource share can be shared only with accounts in the resource directory.
	// *   true: Resources in the resource share can be shared with both accounts in the resource directory and accounts outside the resource directory.
	AllowExternalTargets *bool `json:"AllowExternalTargets,omitempty" xml:"AllowExternalTargets,omitempty"`
	// The information about the permissions. If you do not configure this parameter, the system automatically associates the default permission for the specified resource type with the resource share. For more information, see [Permission library](~~465474~~).
	PermissionNames []*string `json:"PermissionNames,omitempty" xml:"PermissionNames,omitempty" type:"Repeated"`
	// The name of the resource share.
	//
	// The name must be 1 to 50 characters in length.
	//
	// The name can contain letters, digits, periods (.), underscores (\_), and hyphens (-).
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
	// The information about the shared resources.
	Resources        []*CreateResourceShareRequestResources        `json:"Resources,omitempty" xml:"Resources,omitempty" type:"Repeated"`
	TargetProperties []*CreateResourceShareRequestTargetProperties `json:"TargetProperties,omitempty" xml:"TargetProperties,omitempty" type:"Repeated"`
	// The information about the principals.
	Targets []*string `json:"Targets,omitempty" xml:"Targets,omitempty" type:"Repeated"`
}

func (CreateResourceShareRequest) GoString

func (s CreateResourceShareRequest) GoString() string

func (*CreateResourceShareRequest) SetAllowExternalTargets

func (s *CreateResourceShareRequest) SetAllowExternalTargets(v bool) *CreateResourceShareRequest

func (*CreateResourceShareRequest) SetPermissionNames added in v2.0.1

func (s *CreateResourceShareRequest) SetPermissionNames(v []*string) *CreateResourceShareRequest

func (*CreateResourceShareRequest) SetResourceShareName

func (s *CreateResourceShareRequest) SetResourceShareName(v string) *CreateResourceShareRequest

func (*CreateResourceShareRequest) SetResources

func (*CreateResourceShareRequest) SetTargetProperties added in v2.1.3

func (*CreateResourceShareRequest) SetTargets

func (CreateResourceShareRequest) String

type CreateResourceShareRequestResources

type CreateResourceShareRequestResources struct {
	// The ID of a shared resource.
	//
	// Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.
	//
	// >  `Resources.N.ResourceId` and `Resources.N.ResourceType` must be used in pairs.
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
	// The type of a shared resource.
	//
	// Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	//
	// >  `Resources.N.ResourceId` and `Resources.N.ResourceType` must be used in pairs.
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
}

func (CreateResourceShareRequestResources) GoString

func (*CreateResourceShareRequestResources) SetResourceId

func (*CreateResourceShareRequestResources) SetResourceType

func (CreateResourceShareRequestResources) String

type CreateResourceShareRequestTargetProperties added in v2.1.3

type CreateResourceShareRequestTargetProperties struct {
	Property *string `json:"Property,omitempty" xml:"Property,omitempty"`
	TargetId *string `json:"TargetId,omitempty" xml:"TargetId,omitempty"`
}

func (CreateResourceShareRequestTargetProperties) GoString added in v2.1.3

func (*CreateResourceShareRequestTargetProperties) SetProperty added in v2.1.3

func (*CreateResourceShareRequestTargetProperties) SetTargetId added in v2.1.3

func (CreateResourceShareRequestTargetProperties) String added in v2.1.3

type CreateResourceShareResponse

type CreateResourceShareResponse struct {
	Headers    map[string]*string               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateResourceShareResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateResourceShareResponse) GoString

func (s CreateResourceShareResponse) GoString() string

func (*CreateResourceShareResponse) SetBody

func (*CreateResourceShareResponse) SetHeaders

func (*CreateResourceShareResponse) SetStatusCode

func (CreateResourceShareResponse) String

type CreateResourceShareResponseBody

type CreateResourceShareResponseBody struct {
	// The request ID.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The information about the resource share.
	ResourceShare *CreateResourceShareResponseBodyResourceShare `json:"ResourceShare,omitempty" xml:"ResourceShare,omitempty" type:"Struct"`
}

func (CreateResourceShareResponseBody) GoString

func (*CreateResourceShareResponseBody) SetRequestId

func (CreateResourceShareResponseBody) String

type CreateResourceShareResponseBodyResourceShare

type CreateResourceShareResponseBodyResourceShare struct {
	// Indicates whether resources in the resource share can be shared with accounts outside the resource directory. Valid values:
	//
	// *   false: Resources in the resource share can be shared only with accounts in the resource directory.
	// *   true: Resources in the resource share can be shared with both accounts in the resource directory and accounts outside the resource directory.
	AllowExternalTargets *bool `json:"AllowExternalTargets,omitempty" xml:"AllowExternalTargets,omitempty"`
	// The time when the resource share was created.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The name of the resource share.
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
	// The owner of the resource share.
	ResourceShareOwner *string `json:"ResourceShareOwner,omitempty" xml:"ResourceShareOwner,omitempty"`
	// The status of the resource share. Valid values:
	//
	// *   Active: The resource share is enabled.
	// *   Pending: The resource share is associated with one or more resource sharing invitations that are waiting for confirmation.
	// *   Deleting: The resource share is being deleted.
	// *   Deleted: The resource share is deleted.
	//
	// >  The system automatically deletes the records of resource shares in the Deleted state within 48 hours to 96 hours after you delete the resource shares.
	ResourceShareStatus *string `json:"ResourceShareStatus,omitempty" xml:"ResourceShareStatus,omitempty"`
	// The time when the resource share was updated.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (CreateResourceShareResponseBodyResourceShare) GoString

func (*CreateResourceShareResponseBodyResourceShare) SetAllowExternalTargets

func (*CreateResourceShareResponseBodyResourceShare) SetCreateTime

func (*CreateResourceShareResponseBodyResourceShare) SetResourceShareId

func (*CreateResourceShareResponseBodyResourceShare) SetResourceShareName

func (*CreateResourceShareResponseBodyResourceShare) SetResourceShareOwner

func (*CreateResourceShareResponseBodyResourceShare) SetResourceShareStatus

func (*CreateResourceShareResponseBodyResourceShare) SetUpdateTime

func (CreateResourceShareResponseBodyResourceShare) String

type DeleteResourceShareRequest

type DeleteResourceShareRequest struct {
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
}

func (DeleteResourceShareRequest) GoString

func (s DeleteResourceShareRequest) GoString() string

func (*DeleteResourceShareRequest) SetResourceShareId

func (DeleteResourceShareRequest) String

type DeleteResourceShareResponse

type DeleteResourceShareResponse struct {
	Headers    map[string]*string               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeleteResourceShareResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeleteResourceShareResponse) GoString

func (s DeleteResourceShareResponse) GoString() string

func (*DeleteResourceShareResponse) SetBody

func (*DeleteResourceShareResponse) SetHeaders

func (*DeleteResourceShareResponse) SetStatusCode

func (DeleteResourceShareResponse) String

type DeleteResourceShareResponseBody

type DeleteResourceShareResponseBody struct {
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DeleteResourceShareResponseBody) GoString

func (*DeleteResourceShareResponseBody) SetRequestId

func (DeleteResourceShareResponseBody) String

type DescribeRegionsRequest

type DescribeRegionsRequest struct {
	// The supported natural language. Valid values:
	//
	// *   zh-CN: Chinese
	// *   en-US: English
	AcceptLanguage *string `json:"AcceptLanguage,omitempty" xml:"AcceptLanguage,omitempty"`
}

func (DescribeRegionsRequest) GoString

func (s DescribeRegionsRequest) GoString() string

func (*DescribeRegionsRequest) SetAcceptLanguage

func (s *DescribeRegionsRequest) SetAcceptLanguage(v string) *DescribeRegionsRequest

func (DescribeRegionsRequest) String

func (s DescribeRegionsRequest) String() string

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeRegionsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeRegionsResponse) GoString

func (s DescribeRegionsResponse) GoString() string

func (*DescribeRegionsResponse) SetBody

func (*DescribeRegionsResponse) SetHeaders

func (*DescribeRegionsResponse) SetStatusCode

func (DescribeRegionsResponse) String

func (s DescribeRegionsResponse) String() string

type DescribeRegionsResponseBody

type DescribeRegionsResponseBody struct {
	// The information of the regions.
	Regions []*DescribeRegionsResponseBodyRegions `json:"Regions,omitempty" xml:"Regions,omitempty" type:"Repeated"`
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DescribeRegionsResponseBody) GoString

func (s DescribeRegionsResponseBody) GoString() string

func (*DescribeRegionsResponseBody) SetRegions

func (*DescribeRegionsResponseBody) SetRequestId

func (DescribeRegionsResponseBody) String

type DescribeRegionsResponseBodyRegions

type DescribeRegionsResponseBodyRegions struct {
	// The name of the region.
	LocalName *string `json:"LocalName,omitempty" xml:"LocalName,omitempty"`
	// The endpoint of the Resource Sharing service in the region.
	RegionEndpoint *string `json:"RegionEndpoint,omitempty" xml:"RegionEndpoint,omitempty"`
	// The ID of the region.
	RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
}

func (DescribeRegionsResponseBodyRegions) GoString

func (*DescribeRegionsResponseBodyRegions) SetLocalName

func (*DescribeRegionsResponseBodyRegions) SetRegionEndpoint

func (*DescribeRegionsResponseBodyRegions) SetRegionId

func (DescribeRegionsResponseBodyRegions) String

type DisassociateResourceSharePermissionRequest added in v2.0.1

type DisassociateResourceSharePermissionRequest struct {
	// The name of the permission. For more information, see [Permission library](~~465474~~).
	PermissionName *string `json:"PermissionName,omitempty" xml:"PermissionName,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
}

func (DisassociateResourceSharePermissionRequest) GoString added in v2.0.1

func (*DisassociateResourceSharePermissionRequest) SetPermissionName added in v2.0.1

func (*DisassociateResourceSharePermissionRequest) SetResourceShareId added in v2.0.1

func (DisassociateResourceSharePermissionRequest) String added in v2.0.1

type DisassociateResourceSharePermissionResponse added in v2.0.1

type DisassociateResourceSharePermissionResponse struct {
	Headers    map[string]*string                               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DisassociateResourceSharePermissionResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DisassociateResourceSharePermissionResponse) GoString added in v2.0.1

func (*DisassociateResourceSharePermissionResponse) SetBody added in v2.0.1

func (*DisassociateResourceSharePermissionResponse) SetHeaders added in v2.0.1

func (*DisassociateResourceSharePermissionResponse) SetStatusCode added in v2.0.1

func (DisassociateResourceSharePermissionResponse) String added in v2.0.1

type DisassociateResourceSharePermissionResponseBody added in v2.0.1

type DisassociateResourceSharePermissionResponseBody struct {
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DisassociateResourceSharePermissionResponseBody) GoString added in v2.0.1

func (*DisassociateResourceSharePermissionResponseBody) SetRequestId added in v2.0.1

func (DisassociateResourceSharePermissionResponseBody) String added in v2.0.1

type DisassociateResourceShareRequest

type DisassociateResourceShareRequest struct {
	// The owner of the resource share. Valid values:
	//
	// *   Self: The resource share belongs to the current account. This is the default value. If you are the management account or a member of a resource directory and you want to remove resources or principals from a resource share, set this parameter to Self.
	// *   OtherAccounts: The resource share belongs to another account. If you are not the management account or a member of a resource directory and you want to exit a resource share, set this parameter to OtherAccounts.
	ResourceOwner *string `json:"ResourceOwner,omitempty" xml:"ResourceOwner,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The shared resource.
	Resources []*DisassociateResourceShareRequestResources `json:"Resources,omitempty" xml:"Resources,omitempty" type:"Repeated"`
	// The ID of a principal.
	Targets []*string `json:"Targets,omitempty" xml:"Targets,omitempty" type:"Repeated"`
}

func (DisassociateResourceShareRequest) GoString

func (*DisassociateResourceShareRequest) SetResourceOwner

func (*DisassociateResourceShareRequest) SetResourceShareId

func (*DisassociateResourceShareRequest) SetTargets

func (DisassociateResourceShareRequest) String

type DisassociateResourceShareRequestResources

type DisassociateResourceShareRequestResources struct {
	// The ID of a shared resource.
	//
	// Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.
	//
	// >  Resources.N.ResourceId and Resources.N.ResourceType must be used in pairs.
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
	// The type of a shared resource.
	//
	// Valid values of N: 1 to 5. This indicates that a maximum of five shared resources can be specified at a time.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	//
	// >  Resources.N.ResourceId and Resources.N.ResourceType must be used in pairs.
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
}

func (DisassociateResourceShareRequestResources) GoString

func (*DisassociateResourceShareRequestResources) SetResourceId

func (*DisassociateResourceShareRequestResources) SetResourceType

func (DisassociateResourceShareRequestResources) String

type DisassociateResourceShareResponse

type DisassociateResourceShareResponse struct {
	Headers    map[string]*string                     `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DisassociateResourceShareResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DisassociateResourceShareResponse) GoString

func (*DisassociateResourceShareResponse) SetHeaders

func (*DisassociateResourceShareResponse) SetStatusCode

func (DisassociateResourceShareResponse) String

type DisassociateResourceShareResponseBody

type DisassociateResourceShareResponseBody struct {
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The information of the entities that are associated with the resource share.
	ResourceShareAssociations []*DisassociateResourceShareResponseBodyResourceShareAssociations `json:"ResourceShareAssociations,omitempty" xml:"ResourceShareAssociations,omitempty" type:"Repeated"`
}

func (DisassociateResourceShareResponseBody) GoString

func (*DisassociateResourceShareResponseBody) SetRequestId

func (DisassociateResourceShareResponseBody) String

type DisassociateResourceShareResponseBodyResourceShareAssociations

type DisassociateResourceShareResponseBodyResourceShareAssociations struct {
	// The association status. Valid values:
	//
	// *   Associating: The entity is being associated.
	// *   Associated: The entity is associated.
	// *   Failed: The entity fails to be associated.
	// *   Disassociating: The entity is being disassociated.
	// *   Disassociated: The entity is disassociated.
	//
	// >  The system deletes the records of entities in the `Failed` or `Disassociated` state within 48 hours to 96 hours.
	AssociationStatus *string `json:"AssociationStatus,omitempty" xml:"AssociationStatus,omitempty"`
	// The cause of the disassociation failure.
	AssociationStatusMessage *string `json:"AssociationStatusMessage,omitempty" xml:"AssociationStatusMessage,omitempty"`
	// The association type. Valid values:
	//
	// *   Resource
	// *   Target
	AssociationType *string `json:"AssociationType,omitempty" xml:"AssociationType,omitempty"`
	// The time when the disassociation of the entity was performed. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of `AssociationType` is `Resource`, the value of this parameter is the time when the resource was disassociated from the resource share.
	// *   If the value of `AssociationType` is `Target`, the value of this parameter is the time when the principal was disassociated from the resource share.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The ID of the entity. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of `AssociationType` is `Resource`, the value of this parameter is the ID of the resource.
	// *   If the value of `AssociationType` is `Target`, the value of this parameter is the ID of the resource directory, folder, or member.
	EntityId *string `json:"EntityId,omitempty" xml:"EntityId,omitempty"`
	// The type of the entity. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of AssociationType is Resource, the value of this parameter is the type of the resource. For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	// *   If the value of AssociationType is Target, the value of this parameter is Account.
	EntityType *string `json:"EntityType,omitempty" xml:"EntityType,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The name of the resource share.
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
	TargetProperty    *string `json:"TargetProperty,omitempty" xml:"TargetProperty,omitempty"`
	// The time when the disassociation of the entity was updated. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of `AssociationType` is `Resource`, the value of this parameter is the time when the disassociation of the resource was updated.
	// *   If the value of `AssociationType` is `Target`, the value of this parameter is the time when the disassociation of the principal was updated.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (DisassociateResourceShareResponseBodyResourceShareAssociations) GoString

func (*DisassociateResourceShareResponseBodyResourceShareAssociations) SetAssociationStatus

func (*DisassociateResourceShareResponseBodyResourceShareAssociations) SetAssociationStatusMessage

func (*DisassociateResourceShareResponseBodyResourceShareAssociations) SetAssociationType

func (*DisassociateResourceShareResponseBodyResourceShareAssociations) SetCreateTime

func (*DisassociateResourceShareResponseBodyResourceShareAssociations) SetEntityId

func (*DisassociateResourceShareResponseBodyResourceShareAssociations) SetEntityType

func (*DisassociateResourceShareResponseBodyResourceShareAssociations) SetResourceShareId

func (*DisassociateResourceShareResponseBodyResourceShareAssociations) SetResourceShareName

func (*DisassociateResourceShareResponseBodyResourceShareAssociations) SetTargetProperty added in v2.1.2

func (*DisassociateResourceShareResponseBodyResourceShareAssociations) SetUpdateTime

func (DisassociateResourceShareResponseBodyResourceShareAssociations) String

type EnableSharingWithResourceDirectoryResponse

type EnableSharingWithResourceDirectoryResponse struct {
	Headers    map[string]*string                              `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                          `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *EnableSharingWithResourceDirectoryResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (EnableSharingWithResourceDirectoryResponse) GoString

func (*EnableSharingWithResourceDirectoryResponse) SetHeaders

func (*EnableSharingWithResourceDirectoryResponse) SetStatusCode

func (EnableSharingWithResourceDirectoryResponse) String

type EnableSharingWithResourceDirectoryResponseBody

type EnableSharingWithResourceDirectoryResponseBody struct {
	// The request ID.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (EnableSharingWithResourceDirectoryResponseBody) GoString

func (*EnableSharingWithResourceDirectoryResponseBody) SetRequestId

func (EnableSharingWithResourceDirectoryResponseBody) String

type GetPermissionRequest added in v2.0.1

type GetPermissionRequest struct {
	// The name of the permission.
	PermissionName *string `json:"PermissionName,omitempty" xml:"PermissionName,omitempty"`
	// The version of the permission.
	PermissionVersion *string `json:"PermissionVersion,omitempty" xml:"PermissionVersion,omitempty"`
}

func (GetPermissionRequest) GoString added in v2.0.1

func (s GetPermissionRequest) GoString() string

func (*GetPermissionRequest) SetPermissionName added in v2.0.1

func (s *GetPermissionRequest) SetPermissionName(v string) *GetPermissionRequest

func (*GetPermissionRequest) SetPermissionVersion added in v2.0.1

func (s *GetPermissionRequest) SetPermissionVersion(v string) *GetPermissionRequest

func (GetPermissionRequest) String added in v2.0.1

func (s GetPermissionRequest) String() string

type GetPermissionResponse added in v2.0.1

type GetPermissionResponse struct {
	Headers    map[string]*string         `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                     `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetPermissionResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetPermissionResponse) GoString added in v2.0.1

func (s GetPermissionResponse) GoString() string

func (*GetPermissionResponse) SetBody added in v2.0.1

func (*GetPermissionResponse) SetHeaders added in v2.0.1

func (*GetPermissionResponse) SetStatusCode added in v2.0.1

func (s *GetPermissionResponse) SetStatusCode(v int32) *GetPermissionResponse

func (GetPermissionResponse) String added in v2.0.1

func (s GetPermissionResponse) String() string

type GetPermissionResponseBody added in v2.0.1

type GetPermissionResponseBody struct {
	// The information about the permission.
	Permission *GetPermissionResponseBodyPermission `json:"Permission,omitempty" xml:"Permission,omitempty" type:"Struct"`
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GetPermissionResponseBody) GoString added in v2.0.1

func (s GetPermissionResponseBody) GoString() string

func (*GetPermissionResponseBody) SetPermission added in v2.0.1

func (*GetPermissionResponseBody) SetRequestId added in v2.0.1

func (GetPermissionResponseBody) String added in v2.0.1

func (s GetPermissionResponseBody) String() string

type GetPermissionResponseBodyPermission added in v2.0.1

type GetPermissionResponseBodyPermission struct {
	// The creation time.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// Indicates whether the permission is the default permission. Valid values:
	//
	// *   false: The permission is not the default permission.
	// *   true: The permission is the default permission.
	DefaultPermission *bool `json:"DefaultPermission,omitempty" xml:"DefaultPermission,omitempty"`
	// Indicates whether the version is the default version. Valid values:
	//
	// *   false: The version is not the default version.
	// *   true: The version is the default version.
	DefaultVersion *bool `json:"DefaultVersion,omitempty" xml:"DefaultVersion,omitempty"`
	// The document of the policy related to the permission.
	Permission *string `json:"Permission,omitempty" xml:"Permission,omitempty"`
	// The name of the permission.
	PermissionName *string `json:"PermissionName,omitempty" xml:"PermissionName,omitempty"`
	// The version of the permission.
	PermissionVersion *string `json:"PermissionVersion,omitempty" xml:"PermissionVersion,omitempty"`
	// The type of the shared resources.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The update time.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (GetPermissionResponseBodyPermission) GoString added in v2.0.1

func (*GetPermissionResponseBodyPermission) SetCreateTime added in v2.0.1

func (*GetPermissionResponseBodyPermission) SetDefaultPermission added in v2.0.1

func (*GetPermissionResponseBodyPermission) SetDefaultVersion added in v2.0.1

func (*GetPermissionResponseBodyPermission) SetPermission added in v2.0.1

func (*GetPermissionResponseBodyPermission) SetPermissionName added in v2.0.1

func (*GetPermissionResponseBodyPermission) SetPermissionVersion added in v2.0.1

func (*GetPermissionResponseBodyPermission) SetResourceType added in v2.0.1

func (*GetPermissionResponseBodyPermission) SetUpdateTime added in v2.0.1

func (GetPermissionResponseBodyPermission) String added in v2.0.1

type ListPermissionVersionsRequest added in v2.0.1

type ListPermissionVersionsRequest struct {
	// The maximum number of entries to return for a single request.
	//
	// Valid values: 1 to 100. Default value: 20.
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The name of the permission.
	PermissionName *string `json:"PermissionName,omitempty" xml:"PermissionName,omitempty"`
}

func (ListPermissionVersionsRequest) GoString added in v2.0.1

func (*ListPermissionVersionsRequest) SetMaxResults added in v2.0.1

func (*ListPermissionVersionsRequest) SetNextToken added in v2.0.1

func (*ListPermissionVersionsRequest) SetPermissionName added in v2.0.1

func (ListPermissionVersionsRequest) String added in v2.0.1

type ListPermissionVersionsResponse added in v2.0.1

type ListPermissionVersionsResponse struct {
	Headers    map[string]*string                  `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                              `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListPermissionVersionsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListPermissionVersionsResponse) GoString added in v2.0.1

func (*ListPermissionVersionsResponse) SetBody added in v2.0.1

func (*ListPermissionVersionsResponse) SetHeaders added in v2.0.1

func (*ListPermissionVersionsResponse) SetStatusCode added in v2.0.1

func (ListPermissionVersionsResponse) String added in v2.0.1

type ListPermissionVersionsResponseBody added in v2.0.1

type ListPermissionVersionsResponseBody struct {
	// The token that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The information about the permission.
	Permissions []*ListPermissionVersionsResponseBodyPermissions `json:"Permissions,omitempty" xml:"Permissions,omitempty" type:"Repeated"`
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ListPermissionVersionsResponseBody) GoString added in v2.0.1

func (*ListPermissionVersionsResponseBody) SetNextToken added in v2.0.1

func (*ListPermissionVersionsResponseBody) SetPermissions added in v2.0.1

func (*ListPermissionVersionsResponseBody) SetRequestId added in v2.0.1

func (ListPermissionVersionsResponseBody) String added in v2.0.1

type ListPermissionVersionsResponseBodyPermissions added in v2.0.1

type ListPermissionVersionsResponseBodyPermissions struct {
	// The creation time.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// Indicates whether the permission is the default permission. Valid values:
	//
	// *   false: The permission is not the default permission.
	// *   true: The permission is the default permission.
	DefaultPermission *bool `json:"DefaultPermission,omitempty" xml:"DefaultPermission,omitempty"`
	// Indicates whether the version is the default version. Valid values:
	//
	// *   false: The version is not the default version.
	// *   true: The version is the default version.
	DefaultVersion *bool `json:"DefaultVersion,omitempty" xml:"DefaultVersion,omitempty"`
	// The name of the permission.
	PermissionName *string `json:"PermissionName,omitempty" xml:"PermissionName,omitempty"`
	// The version of the permission.
	PermissionVersion *string `json:"PermissionVersion,omitempty" xml:"PermissionVersion,omitempty"`
	// The type of the shared resources.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The update time.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (ListPermissionVersionsResponseBodyPermissions) GoString added in v2.0.1

func (*ListPermissionVersionsResponseBodyPermissions) SetCreateTime added in v2.0.1

func (*ListPermissionVersionsResponseBodyPermissions) SetDefaultPermission added in v2.0.1

func (*ListPermissionVersionsResponseBodyPermissions) SetDefaultVersion added in v2.0.1

func (*ListPermissionVersionsResponseBodyPermissions) SetPermissionName added in v2.0.1

func (*ListPermissionVersionsResponseBodyPermissions) SetPermissionVersion added in v2.0.1

func (*ListPermissionVersionsResponseBodyPermissions) SetResourceType added in v2.0.1

func (*ListPermissionVersionsResponseBodyPermissions) SetUpdateTime added in v2.0.1

func (ListPermissionVersionsResponseBodyPermissions) String added in v2.0.1

type ListPermissionsRequest added in v2.0.1

type ListPermissionsRequest struct {
	// The maximum number of entries to return for a single request.
	//
	// Valid values: 1 to 100. Default value: 20.
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The type of the shared resources.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
}

func (ListPermissionsRequest) GoString added in v2.0.1

func (s ListPermissionsRequest) GoString() string

func (*ListPermissionsRequest) SetMaxResults added in v2.0.1

func (*ListPermissionsRequest) SetNextToken added in v2.0.1

func (*ListPermissionsRequest) SetResourceType added in v2.0.1

func (s *ListPermissionsRequest) SetResourceType(v string) *ListPermissionsRequest

func (ListPermissionsRequest) String added in v2.0.1

func (s ListPermissionsRequest) String() string

type ListPermissionsResponse added in v2.0.1

type ListPermissionsResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListPermissionsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListPermissionsResponse) GoString added in v2.0.1

func (s ListPermissionsResponse) GoString() string

func (*ListPermissionsResponse) SetBody added in v2.0.1

func (*ListPermissionsResponse) SetHeaders added in v2.0.1

func (*ListPermissionsResponse) SetStatusCode added in v2.0.1

func (ListPermissionsResponse) String added in v2.0.1

func (s ListPermissionsResponse) String() string

type ListPermissionsResponseBody added in v2.0.1

type ListPermissionsResponseBody struct {
	// The token that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The information about the permission.
	Permissions []*ListPermissionsResponseBodyPermissions `json:"Permissions,omitempty" xml:"Permissions,omitempty" type:"Repeated"`
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ListPermissionsResponseBody) GoString added in v2.0.1

func (s ListPermissionsResponseBody) GoString() string

func (*ListPermissionsResponseBody) SetNextToken added in v2.0.1

func (*ListPermissionsResponseBody) SetPermissions added in v2.0.1

func (*ListPermissionsResponseBody) SetRequestId added in v2.0.1

func (ListPermissionsResponseBody) String added in v2.0.1

type ListPermissionsResponseBodyPermissions added in v2.0.1

type ListPermissionsResponseBodyPermissions struct {
	// The creation time.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// Indicates whether the permission is the default permission. Valid values:
	//
	// *   false: The permission is not the default permission.
	// *   true: The permission is the default permission.
	DefaultPermission *bool `json:"DefaultPermission,omitempty" xml:"DefaultPermission,omitempty"`
	// Indicates whether the version is the default version. Valid values:
	//
	// *   false: The version is not the default version.
	// *   true: The version is the default version.
	DefaultVersion *bool `json:"DefaultVersion,omitempty" xml:"DefaultVersion,omitempty"`
	// The name of the permission.
	PermissionName *string `json:"PermissionName,omitempty" xml:"PermissionName,omitempty"`
	// The version of the permission.
	PermissionVersion *string `json:"PermissionVersion,omitempty" xml:"PermissionVersion,omitempty"`
	// The type of the shared resources.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The update time.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (ListPermissionsResponseBodyPermissions) GoString added in v2.0.1

func (*ListPermissionsResponseBodyPermissions) SetCreateTime added in v2.0.1

func (*ListPermissionsResponseBodyPermissions) SetDefaultPermission added in v2.0.1

func (*ListPermissionsResponseBodyPermissions) SetDefaultVersion added in v2.0.1

func (*ListPermissionsResponseBodyPermissions) SetPermissionName added in v2.0.1

func (*ListPermissionsResponseBodyPermissions) SetPermissionVersion added in v2.0.1

func (*ListPermissionsResponseBodyPermissions) SetResourceType added in v2.0.1

func (*ListPermissionsResponseBodyPermissions) SetUpdateTime added in v2.0.1

func (ListPermissionsResponseBodyPermissions) String added in v2.0.1

type ListResourceShareAssociationsRequest

type ListResourceShareAssociationsRequest struct {
	// The association status. Valid values:
	//
	// *   Associating: The entity is being associated.
	// *   Associated: The entity is associated.
	// *   Failed: The entity fails to be associated.
	// *   Disassociating: The entity is being disassociated.
	// *   Disassociated: The entity is disassociated.
	//
	// >  The system deletes the records of entities in the `Failed` or `Disassociated` state within 48 hours to 96 hours.
	AssociationStatus *string `json:"AssociationStatus,omitempty" xml:"AssociationStatus,omitempty"`
	// The association type. Valid values:
	//
	// *   Resource
	// *   Target
	AssociationType *string `json:"AssociationType,omitempty" xml:"AssociationType,omitempty"`
	// The maximum number of entries to return for a single request.
	//
	// Valid values: 1 to 100. Default value: 20.
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The ID of the resource.
	//
	// >  This parameter is unavailable if you set the `AssociationType` parameter to `Target`.
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
	// The IDs of the resource shares.
	ResourceShareIds []*string `json:"ResourceShareIds,omitempty" xml:"ResourceShareIds,omitempty" type:"Repeated"`
	// The ID of the principal.
	//
	// >  This parameter is unavailable if you set the `AssociationType` parameter to `Resource`.
	Target *string `json:"Target,omitempty" xml:"Target,omitempty"`
}

func (ListResourceShareAssociationsRequest) GoString

func (*ListResourceShareAssociationsRequest) SetAssociationStatus

func (*ListResourceShareAssociationsRequest) SetAssociationType

func (*ListResourceShareAssociationsRequest) SetMaxResults

func (*ListResourceShareAssociationsRequest) SetNextToken

func (*ListResourceShareAssociationsRequest) SetResourceId

func (*ListResourceShareAssociationsRequest) SetResourceShareIds

func (*ListResourceShareAssociationsRequest) SetTarget

func (ListResourceShareAssociationsRequest) String

type ListResourceShareAssociationsResponse

type ListResourceShareAssociationsResponse struct {
	Headers    map[string]*string                         `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                     `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListResourceShareAssociationsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListResourceShareAssociationsResponse) GoString

func (*ListResourceShareAssociationsResponse) SetHeaders

func (*ListResourceShareAssociationsResponse) SetStatusCode

func (ListResourceShareAssociationsResponse) String

type ListResourceShareAssociationsResponseBody

type ListResourceShareAssociationsResponseBody struct {
	// The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The information of the entities.
	ResourceShareAssociations []*ListResourceShareAssociationsResponseBodyResourceShareAssociations `json:"ResourceShareAssociations,omitempty" xml:"ResourceShareAssociations,omitempty" type:"Repeated"`
}

func (ListResourceShareAssociationsResponseBody) GoString

func (*ListResourceShareAssociationsResponseBody) SetNextToken

func (*ListResourceShareAssociationsResponseBody) SetRequestId

func (ListResourceShareAssociationsResponseBody) String

type ListResourceShareAssociationsResponseBodyResourceShareAssociations

type ListResourceShareAssociationsResponseBodyResourceShareAssociations struct {
	AssociationFailedDetails []*ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails `json:"AssociationFailedDetails,omitempty" xml:"AssociationFailedDetails,omitempty" type:"Repeated"`
	// The association status. Valid values:
	//
	// *   Associating: The entity is being associated.
	// *   Associated: The entity is associated.
	// *   Failed: The entity fails to be associated.
	// *   Disassociating: The entity is being disassociated.
	// *   Disassociated: The entity is disassociated.
	//
	// >  The system deletes the records of entities in the `Failed` or `Disassociated` state within 48 hours to 96 hours.
	AssociationStatus *string `json:"AssociationStatus,omitempty" xml:"AssociationStatus,omitempty"`
	// The cause of the association failure.
	AssociationStatusMessage *string `json:"AssociationStatusMessage,omitempty" xml:"AssociationStatusMessage,omitempty"`
	// The association type. Valid values:
	//
	// *   Resource
	// *   Target
	AssociationType *string `json:"AssociationType,omitempty" xml:"AssociationType,omitempty"`
	// The time when the association of the entity was created. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of `AssociationType` is `Resource`, the value of this parameter is the time when the shared resource was associated with or disassociated from the resource share.
	// *   If the value of `AssociationType` is `Target`, the value of this parameter is the time when the principal was associated with or disassociated from the resource share.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The ID of the entity. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of `AssociationType` is `Resource`, the value of this parameter is the ID of the shared resource.
	// *   If the value of `AssociationType` is `Target`, the value of this parameter is the ID of the principal.
	EntityId *string `json:"EntityId,omitempty" xml:"EntityId,omitempty"`
	// The type of the entity. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of AssociationType is Resource, the value of this parameter is the type of the resource. For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	// *   If the value of AssociationType is Target, the value of this parameter is `Account`.
	EntityType *string `json:"EntityType,omitempty" xml:"EntityType,omitempty"`
	// Indicates whether the principal is outside the resource directory. Valid values:
	//
	// *   true: The principal is outside the resource directory.
	// *   false: The principal is in the resource directory.
	External *bool `json:"External,omitempty" xml:"External,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The name of the resource share.
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
	TargetProperty    *string `json:"TargetProperty,omitempty" xml:"TargetProperty,omitempty"`
	// The time when the association of the entity was updated. The value of this parameter depends on the value of the AssociationType parameter:
	//
	// *   If the value of `AssociationType` is `Resource`, the value of this parameter is the time when the association of the shared resource was updated.
	// *   If the value of `AssociationType` is `Target`, the value of this parameter is the time when the association of the principal was updated.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (ListResourceShareAssociationsResponseBodyResourceShareAssociations) GoString

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociations) SetAssociationStatus

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociations) SetAssociationStatusMessage

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociations) SetAssociationType

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociations) SetCreateTime

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociations) SetEntityId

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociations) SetEntityType

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociations) SetExternal

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociations) SetResourceShareId

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociations) SetResourceShareName

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociations) SetTargetProperty added in v2.1.2

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociations) SetUpdateTime

func (ListResourceShareAssociationsResponseBodyResourceShareAssociations) String

type ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails added in v2.1.2

type ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails struct {
	AssociateType      *string `json:"AssociateType,omitempty" xml:"AssociateType,omitempty"`
	EntityId           *string `json:"EntityId,omitempty" xml:"EntityId,omitempty"`
	EntityType         *string `json:"EntityType,omitempty" xml:"EntityType,omitempty"`
	FailureDescription *string `json:"FailureDescription,omitempty" xml:"FailureDescription,omitempty"`
	FailureReason      *string `json:"FailureReason,omitempty" xml:"FailureReason,omitempty"`
	OperationType      *string `json:"OperationType,omitempty" xml:"OperationType,omitempty"`
	Status             *string `json:"Status,omitempty" xml:"Status,omitempty"`
	StatusMessage      *string `json:"StatusMessage,omitempty" xml:"StatusMessage,omitempty"`
}

func (ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails) GoString added in v2.1.2

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails) SetAssociateType added in v2.1.2

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails) SetEntityId added in v2.1.2

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails) SetEntityType added in v2.1.2

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails) SetFailureDescription added in v2.1.4

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails) SetFailureReason added in v2.1.4

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails) SetOperationType added in v2.1.4

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails) SetStatus added in v2.1.2

func (*ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails) SetStatusMessage added in v2.1.2

func (ListResourceShareAssociationsResponseBodyResourceShareAssociationsAssociationFailedDetails) String added in v2.1.2

type ListResourceShareInvitationsRequest

type ListResourceShareInvitationsRequest struct {
	// The maximum number of entries to return for a single request.
	//
	// Valid values: 1 to 100. Default value: 20.
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of `NextToken`.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The IDs of the resource shares.
	ResourceShareIds []*string `json:"ResourceShareIds,omitempty" xml:"ResourceShareIds,omitempty" type:"Repeated"`
	// The IDs of the resource sharing invitations.
	ResourceShareInvitationIds []*string `json:"ResourceShareInvitationIds,omitempty" xml:"ResourceShareInvitationIds,omitempty" type:"Repeated"`
}

func (ListResourceShareInvitationsRequest) GoString

func (*ListResourceShareInvitationsRequest) SetMaxResults

func (*ListResourceShareInvitationsRequest) SetNextToken

func (*ListResourceShareInvitationsRequest) SetResourceShareIds

func (*ListResourceShareInvitationsRequest) SetResourceShareInvitationIds

func (s *ListResourceShareInvitationsRequest) SetResourceShareInvitationIds(v []*string) *ListResourceShareInvitationsRequest

func (ListResourceShareInvitationsRequest) String

type ListResourceShareInvitationsResponse

type ListResourceShareInvitationsResponse struct {
	Headers    map[string]*string                        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListResourceShareInvitationsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListResourceShareInvitationsResponse) GoString

func (*ListResourceShareInvitationsResponse) SetHeaders

func (*ListResourceShareInvitationsResponse) SetStatusCode

func (ListResourceShareInvitationsResponse) String

type ListResourceShareInvitationsResponseBody

type ListResourceShareInvitationsResponseBody struct {
	// The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of `NextToken`.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The request ID.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The information about the resource sharing invitations.
	ResourceShareInvitations []*ListResourceShareInvitationsResponseBodyResourceShareInvitations `json:"ResourceShareInvitations,omitempty" xml:"ResourceShareInvitations,omitempty" type:"Repeated"`
}

func (ListResourceShareInvitationsResponseBody) GoString

func (*ListResourceShareInvitationsResponseBody) SetNextToken

func (*ListResourceShareInvitationsResponseBody) SetRequestId

func (ListResourceShareInvitationsResponseBody) String

type ListResourceShareInvitationsResponseBodyResourceShareInvitations

type ListResourceShareInvitationsResponseBodyResourceShareInvitations struct {
	// The time when the invitation was created. The time is displayed in UTC.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The information about the failure.
	InvitationFailedDetails []*ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails `json:"InvitationFailedDetails,omitempty" xml:"InvitationFailedDetails,omitempty" type:"Repeated"`
	// The Alibaba Cloud account ID of the invitee.
	ReceiverAccountId *string `json:"ReceiverAccountId,omitempty" xml:"ReceiverAccountId,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The ID of the invitation.
	ResourceShareInvitationId *string `json:"ResourceShareInvitationId,omitempty" xml:"ResourceShareInvitationId,omitempty"`
	// The name of the resource share.
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
	// The Alibaba Cloud account ID of the inviter.
	SenderAccountId *string `json:"SenderAccountId,omitempty" xml:"SenderAccountId,omitempty"`
	// The status of the invitation. Valid values:
	//
	// *   Pending
	// *   Accepted
	// *   Cancelled
	// *   Rejected
	// *   Expired
	// *   AcceptFailed
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
}

func (ListResourceShareInvitationsResponseBodyResourceShareInvitations) GoString

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitations) SetCreateTime

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitations) SetReceiverAccountId

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitations) SetResourceShareId

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitations) SetResourceShareInvitationId

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitations) SetResourceShareName

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitations) SetSenderAccountId

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitations) SetStatus

func (ListResourceShareInvitationsResponseBodyResourceShareInvitations) String

type ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails added in v2.1.1

type ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails struct {
	// The type of the sharing operation. Valid values:
	//
	// *   Associate
	// *   Disassociate
	AssociateType      *string `json:"AssociateType,omitempty" xml:"AssociateType,omitempty"`
	FailureDescription *string `json:"FailureDescription,omitempty" xml:"FailureDescription,omitempty"`
	FailureReason      *string `json:"FailureReason,omitempty" xml:"FailureReason,omitempty"`
	OperationType      *string `json:"OperationType,omitempty" xml:"OperationType,omitempty"`
	// The ID of the shared resource.
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
	// The type of the shared resource.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The failure status. Valid values:
	//
	// *   Unavailable: The resource cannot be shared.
	// *   LimitExceeded: The number of shared resources within the Alibaba Cloud account exceeds the upper limit.
	// *   ZonalResourceInaccessible: The resource is unavailable in this region.
	// *   UnsupportedOperation: The operation is not allowed because another association exists.
	// *   InternalError: An internal error occurred during the check.
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
	// The failure cause.
	StatusMessage *string `json:"StatusMessage,omitempty" xml:"StatusMessage,omitempty"`
}

func (ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails) GoString added in v2.1.1

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails) SetAssociateType added in v2.1.1

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails) SetFailureDescription added in v2.1.4

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails) SetFailureReason added in v2.1.4

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails) SetOperationType added in v2.1.4

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails) SetResourceId added in v2.1.1

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails) SetResourceType added in v2.1.1

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails) SetStatus added in v2.1.1

func (*ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails) SetStatusMessage added in v2.1.1

func (ListResourceShareInvitationsResponseBodyResourceShareInvitationsInvitationFailedDetails) String added in v2.1.1

type ListResourceSharePermissionsRequest added in v2.0.1

type ListResourceSharePermissionsRequest struct {
	// The maximum number of entries to return for a single request.
	//
	// Valid values: 1 to 100. Default value: 20.
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The owner of the resource share. Valid values:
	//
	// *   Self: the current account
	// *   OtherAccounts: an account other than the current account
	ResourceOwner *string `json:"ResourceOwner,omitempty" xml:"ResourceOwner,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
}

func (ListResourceSharePermissionsRequest) GoString added in v2.0.1

func (*ListResourceSharePermissionsRequest) SetMaxResults added in v2.0.1

func (*ListResourceSharePermissionsRequest) SetNextToken added in v2.0.1

func (*ListResourceSharePermissionsRequest) SetResourceOwner added in v2.0.1

func (*ListResourceSharePermissionsRequest) SetResourceShareId added in v2.0.1

func (ListResourceSharePermissionsRequest) String added in v2.0.1

type ListResourceSharePermissionsResponse added in v2.0.1

type ListResourceSharePermissionsResponse struct {
	Headers    map[string]*string                        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListResourceSharePermissionsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListResourceSharePermissionsResponse) GoString added in v2.0.1

func (*ListResourceSharePermissionsResponse) SetBody added in v2.0.1

func (*ListResourceSharePermissionsResponse) SetHeaders added in v2.0.1

func (*ListResourceSharePermissionsResponse) SetStatusCode added in v2.0.1

func (ListResourceSharePermissionsResponse) String added in v2.0.1

type ListResourceSharePermissionsResponseBody added in v2.0.1

type ListResourceSharePermissionsResponseBody struct {
	// The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The information about the permissions.
	Permissions []*ListResourceSharePermissionsResponseBodyPermissions `json:"Permissions,omitempty" xml:"Permissions,omitempty" type:"Repeated"`
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ListResourceSharePermissionsResponseBody) GoString added in v2.0.1

func (*ListResourceSharePermissionsResponseBody) SetNextToken added in v2.0.1

func (*ListResourceSharePermissionsResponseBody) SetPermissions added in v2.0.1

func (*ListResourceSharePermissionsResponseBody) SetRequestId added in v2.0.1

func (ListResourceSharePermissionsResponseBody) String added in v2.0.1

type ListResourceSharePermissionsResponseBodyPermissions added in v2.0.1

type ListResourceSharePermissionsResponseBodyPermissions struct {
	// The creation time.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// Indicates whether the permission is the default permission. Valid values:
	//
	// *   false: The permission is not the default permission.
	// *   true: The permission is the default permission.
	DefaultPermission *bool `json:"DefaultPermission,omitempty" xml:"DefaultPermission,omitempty"`
	// Indicates whether the version is the default version. Valid values:
	//
	// *   false: The version is not the default version.
	// *   true: The version is the default version.
	DefaultVersion *bool `json:"DefaultVersion,omitempty" xml:"DefaultVersion,omitempty"`
	// The name of the permission.
	PermissionName *string `json:"PermissionName,omitempty" xml:"PermissionName,omitempty"`
	// The version of the permission.
	PermissionVersion *string `json:"PermissionVersion,omitempty" xml:"PermissionVersion,omitempty"`
	// The type of the shared resources.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The update time.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (ListResourceSharePermissionsResponseBodyPermissions) GoString added in v2.0.1

func (*ListResourceSharePermissionsResponseBodyPermissions) SetCreateTime added in v2.0.1

func (*ListResourceSharePermissionsResponseBodyPermissions) SetDefaultPermission added in v2.0.1

func (*ListResourceSharePermissionsResponseBodyPermissions) SetDefaultVersion added in v2.0.1

func (*ListResourceSharePermissionsResponseBodyPermissions) SetPermissionName added in v2.0.1

func (*ListResourceSharePermissionsResponseBodyPermissions) SetPermissionVersion added in v2.0.1

func (*ListResourceSharePermissionsResponseBodyPermissions) SetResourceType added in v2.0.1

func (*ListResourceSharePermissionsResponseBodyPermissions) SetUpdateTime added in v2.0.1

func (ListResourceSharePermissionsResponseBodyPermissions) String added in v2.0.1

type ListResourceSharesRequest

type ListResourceSharesRequest struct {
	// The maximum number of entries to return for a single request.
	//
	// Valid values: 1 to 100. Default value: 20.
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The name of the permission. For more information, see [Permission library](~~465474~~).
	PermissionName *string `json:"PermissionName,omitempty" xml:"PermissionName,omitempty"`
	// The owner of the resource shares. Valid values:
	//
	// *   Self: the current account
	// *   OtherAccounts: an account other than the current account
	ResourceOwner *string `json:"ResourceOwner,omitempty" xml:"ResourceOwner,omitempty"`
	// The ID of a resource share.
	ResourceShareIds []*string `json:"ResourceShareIds,omitempty" xml:"ResourceShareIds,omitempty" type:"Repeated"`
	// The name of the resource share.
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
	// The status of the resource share. Valid values:
	//
	// *   Active: The resource share is enabled.
	// *   Pending: The resource share is associated with one or more resource sharing invitations that are waiting for confirmation.
	// *   Deleting: The resource share is being deleted.
	// *   Deleted: The resource share is deleted.
	//
	// >  The system deletes the records of resource shares in the Deleted state within 48 hours to 96 hours after you delete the resource shares.
	ResourceShareStatus *string `json:"ResourceShareStatus,omitempty" xml:"ResourceShareStatus,omitempty"`
}

func (ListResourceSharesRequest) GoString

func (s ListResourceSharesRequest) GoString() string

func (*ListResourceSharesRequest) SetMaxResults

func (*ListResourceSharesRequest) SetNextToken

func (*ListResourceSharesRequest) SetPermissionName added in v2.0.1

func (*ListResourceSharesRequest) SetResourceOwner

func (*ListResourceSharesRequest) SetResourceShareIds

func (s *ListResourceSharesRequest) SetResourceShareIds(v []*string) *ListResourceSharesRequest

func (*ListResourceSharesRequest) SetResourceShareName

func (s *ListResourceSharesRequest) SetResourceShareName(v string) *ListResourceSharesRequest

func (*ListResourceSharesRequest) SetResourceShareStatus

func (s *ListResourceSharesRequest) SetResourceShareStatus(v string) *ListResourceSharesRequest

func (ListResourceSharesRequest) String

func (s ListResourceSharesRequest) String() string

type ListResourceSharesResponse

type ListResourceSharesResponse struct {
	Headers    map[string]*string              `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                          `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListResourceSharesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListResourceSharesResponse) GoString

func (s ListResourceSharesResponse) GoString() string

func (*ListResourceSharesResponse) SetBody

func (*ListResourceSharesResponse) SetHeaders

func (*ListResourceSharesResponse) SetStatusCode

func (ListResourceSharesResponse) String

type ListResourceSharesResponseBody

type ListResourceSharesResponseBody struct {
	// The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The information of the resource shares.
	ResourceShares []*ListResourceSharesResponseBodyResourceShares `json:"ResourceShares,omitempty" xml:"ResourceShares,omitempty" type:"Repeated"`
}

func (ListResourceSharesResponseBody) GoString

func (*ListResourceSharesResponseBody) SetNextToken

func (*ListResourceSharesResponseBody) SetRequestId

func (ListResourceSharesResponseBody) String

type ListResourceSharesResponseBodyResourceShares

type ListResourceSharesResponseBodyResourceShares struct {
	// Indicates whether resources in the resource share can be shared with accounts outside the resource directory. Valid values:
	//
	// *   false: Resources in the resource share can be shared only with accounts in the resource directory.
	// *   true: Resources in the resource share can be shared with both accounts in the resource directory and accounts outside the resource directory.
	AllowExternalTargets *bool `json:"AllowExternalTargets,omitempty" xml:"AllowExternalTargets,omitempty"`
	// The time when the resource share was created.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The name of the resource share.
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
	// The owner of the resource share.
	ResourceShareOwner *string `json:"ResourceShareOwner,omitempty" xml:"ResourceShareOwner,omitempty"`
	// The status of the resource share. Valid values:
	//
	// *   Active: The resource share is enabled.
	// *   Pending: The resource share is associated with one or more resource sharing invitations that are waiting for confirmation.
	// *   Deleting: The resource share is being deleted.
	// *   Deleted: The resource share is deleted.
	//
	// >  The system deletes the records of resource shares in the Deleted state within 48 hours to 96 hours after you delete the resource shares.
	ResourceShareStatus *string `json:"ResourceShareStatus,omitempty" xml:"ResourceShareStatus,omitempty"`
	// The time when the resource share was updated.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (ListResourceSharesResponseBodyResourceShares) GoString

func (*ListResourceSharesResponseBodyResourceShares) SetAllowExternalTargets

func (*ListResourceSharesResponseBodyResourceShares) SetCreateTime

func (*ListResourceSharesResponseBodyResourceShares) SetResourceShareId

func (*ListResourceSharesResponseBodyResourceShares) SetResourceShareName

func (*ListResourceSharesResponseBodyResourceShares) SetResourceShareOwner

func (*ListResourceSharesResponseBodyResourceShares) SetResourceShareStatus

func (*ListResourceSharesResponseBodyResourceShares) SetUpdateTime

func (ListResourceSharesResponseBodyResourceShares) String

type ListSharedResourcesRequest

type ListSharedResourcesRequest struct {
	// The maximum number of entries to return for a single request.
	//
	// Valid values: 1 to 100. Default value: 20.
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The ID of a shared resource.
	ResourceIds []*string `json:"ResourceIds,omitempty" xml:"ResourceIds,omitempty" type:"Repeated"`
	// The owner of the resource shares. Valid values:
	//
	// *   Self: your account. If you set the value to Self, the resources you share with other accounts are queried.
	// *   OtherAccounts: another account. If you set the value to OtherAccounts, the resources other accounts share with you are queried.
	ResourceOwner *string `json:"ResourceOwner,omitempty" xml:"ResourceOwner,omitempty"`
	// The ID of a resource share.
	ResourceShareIds []*string `json:"ResourceShareIds,omitempty" xml:"ResourceShareIds,omitempty" type:"Repeated"`
	// The type of the shared resources.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The ID of the principal or resource owner.
	//
	// *   If the value of `ResourceOwner` is `Self`, set this parameter to the ID of a principal.
	// *   If the value of `ResourceOwner` is `OtherAccounts`, set this parameter to the ID of a resource owner.
	Target *string `json:"Target,omitempty" xml:"Target,omitempty"`
}

func (ListSharedResourcesRequest) GoString

func (s ListSharedResourcesRequest) GoString() string

func (*ListSharedResourcesRequest) SetMaxResults

func (*ListSharedResourcesRequest) SetNextToken

func (*ListSharedResourcesRequest) SetResourceIds

func (*ListSharedResourcesRequest) SetResourceOwner

func (*ListSharedResourcesRequest) SetResourceShareIds

func (s *ListSharedResourcesRequest) SetResourceShareIds(v []*string) *ListSharedResourcesRequest

func (*ListSharedResourcesRequest) SetResourceType

func (*ListSharedResourcesRequest) SetTarget

func (ListSharedResourcesRequest) String

type ListSharedResourcesResponse

type ListSharedResourcesResponse struct {
	Headers    map[string]*string               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListSharedResourcesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListSharedResourcesResponse) GoString

func (s ListSharedResourcesResponse) GoString() string

func (*ListSharedResourcesResponse) SetBody

func (*ListSharedResourcesResponse) SetHeaders

func (*ListSharedResourcesResponse) SetStatusCode

func (ListSharedResourcesResponse) String

type ListSharedResourcesResponseBody

type ListSharedResourcesResponseBody struct {
	// The token that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The information of the shared resources.
	SharedResources []*ListSharedResourcesResponseBodySharedResources `json:"SharedResources,omitempty" xml:"SharedResources,omitempty" type:"Repeated"`
}

func (ListSharedResourcesResponseBody) GoString

func (*ListSharedResourcesResponseBody) SetNextToken

func (*ListSharedResourcesResponseBody) SetRequestId

func (ListSharedResourcesResponseBody) String

type ListSharedResourcesResponseBodySharedResources

type ListSharedResourcesResponseBodySharedResources struct {
	// The time when the shared resource was associated with the resource share.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The ID of the shared resource.
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The status of the shared resource. This parameter is returned only when you query the resources that other accounts share with you.
	//
	// Valid values:
	//
	// *   Available: The resource is available.
	// *   ZonalResourceInaccessible: The resource is unavailable in the current zone.
	// *   LimitExceeded: The resource is unavailable because the maximum number of resources that other accounts can share with you exceeds the upper limit.
	// *   Unavailable: The resource is unavailable.
	ResourceStatus *string `json:"ResourceStatus,omitempty" xml:"ResourceStatus,omitempty"`
	// The cause of the association failure.
	ResourceStatusMessage *string `json:"ResourceStatusMessage,omitempty" xml:"ResourceStatusMessage,omitempty"`
	// The type of the shared resource.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The time when the association of the shared resource was updated.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (ListSharedResourcesResponseBodySharedResources) GoString

func (*ListSharedResourcesResponseBodySharedResources) SetCreateTime

func (*ListSharedResourcesResponseBodySharedResources) SetResourceId

func (*ListSharedResourcesResponseBodySharedResources) SetResourceShareId

func (*ListSharedResourcesResponseBodySharedResources) SetResourceStatus

func (*ListSharedResourcesResponseBodySharedResources) SetResourceStatusMessage

func (*ListSharedResourcesResponseBodySharedResources) SetResourceType

func (*ListSharedResourcesResponseBodySharedResources) SetUpdateTime

func (ListSharedResourcesResponseBodySharedResources) String

type ListSharedTargetsRequest

type ListSharedTargetsRequest struct {
	// The maximum number of entries to return for a single request.
	//
	// Valid values: 1 to 100. Default value: 20.
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The ID of the shared resource.
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
	// The owner of the resource share.
	//
	// *   Self: your account. If you set the value to Self, the principals that are associated with your resource shares are queried.
	// *   OtherAccounts: another account. If you set the value to OtherAccounts, the resource shares with which your account is associated and the owners of the resource shares are queried.
	ResourceOwner *string `json:"ResourceOwner,omitempty" xml:"ResourceOwner,omitempty"`
	// The ID of a resource share.
	ResourceShareIds []*string `json:"ResourceShareIds,omitempty" xml:"ResourceShareIds,omitempty" type:"Repeated"`
	// The type of the shared resources.
	//
	// For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](~~450526~~).
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The ID of a principal.
	Targets []*string `json:"Targets,omitempty" xml:"Targets,omitempty" type:"Repeated"`
}

func (ListSharedTargetsRequest) GoString

func (s ListSharedTargetsRequest) GoString() string

func (*ListSharedTargetsRequest) SetMaxResults

func (*ListSharedTargetsRequest) SetNextToken

func (*ListSharedTargetsRequest) SetResourceId

func (*ListSharedTargetsRequest) SetResourceOwner

func (*ListSharedTargetsRequest) SetResourceShareIds

func (s *ListSharedTargetsRequest) SetResourceShareIds(v []*string) *ListSharedTargetsRequest

func (*ListSharedTargetsRequest) SetResourceType

func (*ListSharedTargetsRequest) SetTargets

func (ListSharedTargetsRequest) String

func (s ListSharedTargetsRequest) String() string

type ListSharedTargetsResponse

type ListSharedTargetsResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListSharedTargetsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListSharedTargetsResponse) GoString

func (s ListSharedTargetsResponse) GoString() string

func (*ListSharedTargetsResponse) SetBody

func (*ListSharedTargetsResponse) SetHeaders

func (*ListSharedTargetsResponse) SetStatusCode

func (ListSharedTargetsResponse) String

func (s ListSharedTargetsResponse) String() string

type ListSharedTargetsResponseBody

type ListSharedTargetsResponseBody struct {
	// The `token` that is used to initiate the next request. If the response of the current request is truncated, you can use the token to initiate another request and obtain the remaining records.
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The information of the principals.
	SharedTargets []*ListSharedTargetsResponseBodySharedTargets `json:"SharedTargets,omitempty" xml:"SharedTargets,omitempty" type:"Repeated"`
}

func (ListSharedTargetsResponseBody) GoString

func (*ListSharedTargetsResponseBody) SetNextToken

func (*ListSharedTargetsResponseBody) SetRequestId

func (ListSharedTargetsResponseBody) String

type ListSharedTargetsResponseBodySharedTargets

type ListSharedTargetsResponseBodySharedTargets struct {
	// The time when the principal was associated with the resource share.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// Indicates whether the principal is outside the resource directory. Valid values:
	//
	// *   true: The principal is outside the resource directory.
	// *   false: The principal is in the resource directory.
	External *bool `json:"External,omitempty" xml:"External,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The ID of the principal or resource owner.
	//
	// *   If the value of `ResourceOwner` is `Self`, the value of this parameter is the ID of a principal.
	// *   If the value of `ResourceOwner` is `OtherAccounts`, the value of this parameter is the ID of a resource owner.
	TargetId       *string `json:"TargetId,omitempty" xml:"TargetId,omitempty"`
	TargetProperty *string `json:"TargetProperty,omitempty" xml:"TargetProperty,omitempty"`
	// The time when the association of the principal was updated.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (ListSharedTargetsResponseBodySharedTargets) GoString

func (*ListSharedTargetsResponseBodySharedTargets) SetCreateTime

func (*ListSharedTargetsResponseBodySharedTargets) SetExternal

func (*ListSharedTargetsResponseBodySharedTargets) SetResourceShareId

func (*ListSharedTargetsResponseBodySharedTargets) SetTargetId

func (*ListSharedTargetsResponseBodySharedTargets) SetTargetProperty added in v2.1.2

func (*ListSharedTargetsResponseBodySharedTargets) SetUpdateTime

func (ListSharedTargetsResponseBodySharedTargets) String

type RejectResourceShareInvitationRequest

type RejectResourceShareInvitationRequest struct {
	// The ID of the resource sharing invitation.
	//
	// You can call the [ListResourceShareInvitations](~~450564~~) operation to obtain the ID of a resource sharing invitation.
	ResourceShareInvitationId *string `json:"ResourceShareInvitationId,omitempty" xml:"ResourceShareInvitationId,omitempty"`
}

func (RejectResourceShareInvitationRequest) GoString

func (*RejectResourceShareInvitationRequest) SetResourceShareInvitationId

func (RejectResourceShareInvitationRequest) String

type RejectResourceShareInvitationResponse

type RejectResourceShareInvitationResponse struct {
	Headers    map[string]*string                         `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                     `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *RejectResourceShareInvitationResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (RejectResourceShareInvitationResponse) GoString

func (*RejectResourceShareInvitationResponse) SetHeaders

func (*RejectResourceShareInvitationResponse) SetStatusCode

func (RejectResourceShareInvitationResponse) String

type RejectResourceShareInvitationResponseBody

type RejectResourceShareInvitationResponseBody struct {
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The information of the resource sharing invitation.
	ResourceShareInvitation *RejectResourceShareInvitationResponseBodyResourceShareInvitation `json:"ResourceShareInvitation,omitempty" xml:"ResourceShareInvitation,omitempty" type:"Struct"`
}

func (RejectResourceShareInvitationResponseBody) GoString

func (*RejectResourceShareInvitationResponseBody) SetRequestId

func (RejectResourceShareInvitationResponseBody) String

type RejectResourceShareInvitationResponseBodyResourceShareInvitation

type RejectResourceShareInvitationResponseBodyResourceShareInvitation struct {
	// The time when the invitation was created. The time is displayed in UTC.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The Alibaba Cloud account ID of the invitee.
	ReceiverAccountId *string `json:"ReceiverAccountId,omitempty" xml:"ReceiverAccountId,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The ID of the invitation.
	ResourceShareInvitationId *string `json:"ResourceShareInvitationId,omitempty" xml:"ResourceShareInvitationId,omitempty"`
	// The name of the resource share.
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
	// The Alibaba Cloud account ID of the inviter.
	SenderAccountId *string `json:"SenderAccountId,omitempty" xml:"SenderAccountId,omitempty"`
	// The status of the invitation. Valid values:
	//
	// *   Pending: The invitation is waiting for confirmation.
	// *   Accepted: The invitation is accepted.
	// *   Cancelled: The invitation is canceled.
	// *   Rejected: The invitation is rejected.
	// *   Expired: The invitation has expired.
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
}

func (RejectResourceShareInvitationResponseBodyResourceShareInvitation) GoString

func (*RejectResourceShareInvitationResponseBodyResourceShareInvitation) SetCreateTime

func (*RejectResourceShareInvitationResponseBodyResourceShareInvitation) SetReceiverAccountId

func (*RejectResourceShareInvitationResponseBodyResourceShareInvitation) SetResourceShareId

func (*RejectResourceShareInvitationResponseBodyResourceShareInvitation) SetResourceShareInvitationId

func (*RejectResourceShareInvitationResponseBodyResourceShareInvitation) SetResourceShareName

func (*RejectResourceShareInvitationResponseBodyResourceShareInvitation) SetSenderAccountId

func (*RejectResourceShareInvitationResponseBodyResourceShareInvitation) SetStatus

func (RejectResourceShareInvitationResponseBodyResourceShareInvitation) String

type UpdateResourceShareRequest

type UpdateResourceShareRequest struct {
	// Specifies whether resources in the resource share can be shared with accounts outside the resource directory. Valid values:
	//
	// *   false: Resources in the resource share can be shared only with accounts in the resource directory.
	// *   true: Resources in the resource share can be shared with both accounts in the resource directory and accounts outside the resource directory.
	AllowExternalTargets *bool `json:"AllowExternalTargets,omitempty" xml:"AllowExternalTargets,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The new name of the resource share.
	//
	// The name must be 1 to 50 characters in length.
	//
	// The name can contain letters, digits, periods (.), underscores (\_), and hyphens (-).
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
}

func (UpdateResourceShareRequest) GoString

func (s UpdateResourceShareRequest) GoString() string

func (*UpdateResourceShareRequest) SetAllowExternalTargets

func (s *UpdateResourceShareRequest) SetAllowExternalTargets(v bool) *UpdateResourceShareRequest

func (*UpdateResourceShareRequest) SetResourceShareId

func (*UpdateResourceShareRequest) SetResourceShareName

func (s *UpdateResourceShareRequest) SetResourceShareName(v string) *UpdateResourceShareRequest

func (UpdateResourceShareRequest) String

type UpdateResourceShareResponse

type UpdateResourceShareResponse struct {
	Headers    map[string]*string               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateResourceShareResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateResourceShareResponse) GoString

func (s UpdateResourceShareResponse) GoString() string

func (*UpdateResourceShareResponse) SetBody

func (*UpdateResourceShareResponse) SetHeaders

func (*UpdateResourceShareResponse) SetStatusCode

func (UpdateResourceShareResponse) String

type UpdateResourceShareResponseBody

type UpdateResourceShareResponseBody struct {
	// The ID of the request.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The information of the resource share.
	ResourceShare *UpdateResourceShareResponseBodyResourceShare `json:"ResourceShare,omitempty" xml:"ResourceShare,omitempty" type:"Struct"`
}

func (UpdateResourceShareResponseBody) GoString

func (*UpdateResourceShareResponseBody) SetRequestId

func (UpdateResourceShareResponseBody) String

type UpdateResourceShareResponseBodyResourceShare

type UpdateResourceShareResponseBodyResourceShare struct {
	// Indicates whether resources in the resource share can be shared with accounts outside the resource directory. Valid values:
	//
	// *   false: Resources in the resource share can be shared only with accounts in the resource directory.
	// *   true: Resources in the resource share can be shared with both accounts in the resource directory and accounts outside the resource directory.
	AllowExternalTargets *bool `json:"AllowExternalTargets,omitempty" xml:"AllowExternalTargets,omitempty"`
	// The time when the resource share was created.
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The ID of the resource share.
	ResourceShareId *string `json:"ResourceShareId,omitempty" xml:"ResourceShareId,omitempty"`
	// The name of the resource share.
	ResourceShareName *string `json:"ResourceShareName,omitempty" xml:"ResourceShareName,omitempty"`
	// The owner of the resource share.
	ResourceShareOwner *string `json:"ResourceShareOwner,omitempty" xml:"ResourceShareOwner,omitempty"`
	// The status of the resource share. Valid values:
	//
	// *   Active: The resource share is enabled.
	// *   Pending: The resource share is associated with one or more resource sharing invitations that are waiting for confirmation.
	// *   Deleting: The resource share is being deleted.
	// *   Deleted: The resource share is deleted.
	//
	// >  The system deletes the records of resource shares in the Deleted state within 48 hours to 96 hours after you delete the resource shares.
	ResourceShareStatus *string `json:"ResourceShareStatus,omitempty" xml:"ResourceShareStatus,omitempty"`
	// The time when the resource share was updated.
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (UpdateResourceShareResponseBodyResourceShare) GoString

func (*UpdateResourceShareResponseBodyResourceShare) SetAllowExternalTargets

func (*UpdateResourceShareResponseBodyResourceShare) SetCreateTime

func (*UpdateResourceShareResponseBodyResourceShare) SetResourceShareId

func (*UpdateResourceShareResponseBodyResourceShare) SetResourceShareName

func (*UpdateResourceShareResponseBodyResourceShare) SetResourceShareOwner

func (*UpdateResourceShareResponseBodyResourceShare) SetResourceShareStatus

func (*UpdateResourceShareResponseBodyResourceShare) SetUpdateTime

func (UpdateResourceShareResponseBodyResourceShare) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL