// Calling this operation enables AWS Health to work with AWS Organizations. This
// applies a service-linked role (SLR) to the master account in the organization.
// To call this operation, you must sign in as an IAM user, assume an IAM role, or
// sign in as the root user (not recommended) in the organization's master account.
// For more information, see Aggregating AWS Health events
// (https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html) in the AWS
// Health User Guide.
Calling this operation enables AWS Health to work with AWS Organizations. This
applies a service-linked role (SLR) to the master account in the organization.
To call this operation, you must sign in as an IAM user, assume an IAM role, or
sign in as the root user (not recommended) in the organization's master account.
For more information, see Aggregating AWS Health events
in the AWS
Health User Guide.
// Calling this operation enables AWS Health to work with AWS Organizations . This // applies a service - linked role ( SLR ) to the master account in the organization . // To call this operation you must sign in as an IAM user assume an IAM role or // sign in as the root user ( not recommended ) in the organization ' s master account . // For more information see Aggregating AWS Health events // ( https : // docs . aws . amazon . com / health / latest / ug / aggregate - events . html ) in the AWS // Health User Guide .
func (c *Client) EnableHealthServiceAccessForOrganization(ctx context.Context, params *EnableHealthServiceAccessForOrganizationInput, optFns ...func(*Options)) (*EnableHealthServiceAccessForOrganizationOutput, error) {
	if params == nil {
		params = &EnableHealthServiceAccessForOrganizationInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "EnableHealthServiceAccessForOrganization", params, optFns, addOperationEnableHealthServiceAccessForOrganizationMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*EnableHealthServiceAccessForOrganizationOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) EnableHealthServiceAccessForOrganization ( ctx context . Context , params * EnableHealthServiceAccessForOrganizationInput , optFns ... func ( * Options ) ) ( * EnableHealthServiceAccessForOrganizationOutput , error ) { if params == nil { params = & EnableHealthServiceAccessForOrganizationInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationEnableHealthServiceAccessForOrganizationMiddlewares ) if err != nil { return nil , err } out := result . ( * EnableHealthServiceAccessForOrganizationOutput ) out . ResultMetadata = metadata return out , nil }
Calling this operation enables AWS Health to work with AWS Organizations.
Calling this operation enables AWS Health to work with AWS Organizations .