// Registers an existing and disabled user, group, or resource for Amazon WorkMail
// use by associating a mailbox and calendaring capabilities. It performs no change
// if the user, group, or resource is enabled and fails if the user, group, or
// resource is deleted. This operation results in the accumulation of costs. For
// more information, see Pricing (https://aws.amazon.com/workmail/pricing). The
// equivalent console functionality for this operation is Enable. Users can either
// be created by calling the CreateUser API operation or they can be synchronized
// from your directory. For more information, see DeregisterFromWorkMail.
Registers an existing and disabled user, group, or resource for Amazon WorkMail
use by associating a mailbox and calendaring capabilities. It performs no change
if the user, group, or resource is enabled and fails if the user, group, or
resource is deleted. This operation results in the accumulation of costs. For
more information, see Pricing . The
equivalent console functionality for this operation is Enable. Users can either
be created by calling the CreateUser API operation or they can be synchronized
from your directory. For more information, see DeregisterFromWorkMail.
// Registers an existing and disabled user group or resource for Amazon WorkMail // use by associating a mailbox and calendaring capabilities . It performs no change // if the user group or resource is enabled and fails if the user group or // resource is deleted . This operation results in the accumulation of costs . For // more information see Pricing ( https : // aws . amazon . com / workmail / pricing ) . The // equivalent console functionality for this operation is Enable . Users can either // be created by calling the CreateUser API operation or they can be synchronized // from your directory . For more information see DeregisterFromWorkMail .
func (c *Client) RegisterToWorkMail(ctx context.Context, params *RegisterToWorkMailInput, optFns ...func(*Options)) (*RegisterToWorkMailOutput, error) {
	if params == nil {
		params = &RegisterToWorkMailInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "RegisterToWorkMail", params, optFns, addOperationRegisterToWorkMailMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*RegisterToWorkMailOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) RegisterToWorkMail ( ctx context . Context , params * RegisterToWorkMailInput , optFns ... func ( * Options ) ) ( * RegisterToWorkMailOutput , error ) { if params == nil { params = & RegisterToWorkMailInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationRegisterToWorkMailMiddlewares ) if err != nil { return nil , err } out := result . ( * RegisterToWorkMailOutput ) out . ResultMetadata = metadata return out , nil }
Registers an existing and disabled user, group, or resource for Amazon WorkMail
use by associating a mailbox and calendaring capabilities.
Registers an existing and disabled user group or resource for Amazon WorkMail use by associating a mailbox and calendaring capabilities .