// Resource shares that were created by attaching a policy to a resource are
// visible only to the resource share owner, and the resource share cannot be
// modified in AWS RAM. Use this API action to promote the resource share. When you
// promote the resource share, it becomes:
//
// * Visible to all principals that it is
// shared with.
//
// * Modifiable in AWS RAM.
Resource shares that were created by attaching a policy to a resource are
visible only to the resource share owner, and the resource share cannot be
modified in AWS RAM. Use this API action to promote the resource share. When you
promote the resource share, it becomes.

Visible to all principals that it is
shared with.

Modifiable in AWS RAM.
// Resource shares that were created by attaching a policy to a resource are // visible only to the resource share owner and the resource share cannot be // modified in AWS RAM . Use this API action to promote the resource share . When you // promote the resource share it becomes : // // * Visible to all principals that it is // shared with . // // * Modifiable in AWS RAM .
func (c *Client) PromoteResourceShareCreatedFromPolicy(ctx context.Context, params *PromoteResourceShareCreatedFromPolicyInput, optFns ...func(*Options)) (*PromoteResourceShareCreatedFromPolicyOutput, error) {
	if params == nil {
		params = &PromoteResourceShareCreatedFromPolicyInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "PromoteResourceShareCreatedFromPolicy", params, optFns, addOperationPromoteResourceShareCreatedFromPolicyMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*PromoteResourceShareCreatedFromPolicyOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) PromoteResourceShareCreatedFromPolicy ( ctx context . Context , params * PromoteResourceShareCreatedFromPolicyInput , optFns ... func ( * Options ) ) ( * PromoteResourceShareCreatedFromPolicyOutput , error ) { if params == nil { params = & PromoteResourceShareCreatedFromPolicyInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationPromoteResourceShareCreatedFromPolicyMiddlewares ) if err != nil { return nil , err } out := result . ( * PromoteResourceShareCreatedFromPolicyOutput ) out . ResultMetadata = metadata return out , nil }
Resource shares that were created by attaching a policy to a resource are
visible only to the resource share owner, and the resource share cannot be
modified in AWS RAM.
Resource shares that were created by attaching a policy to a resource are visible only to the resource share owner and the resource share cannot be modified in AWS RAM .