CfnOrganizationLogsMixin

class aws_cdk.mixins_preview.aws_organizations.mixins.CfnOrganizationLogsMixin(log_type, log_delivery)

Bases: Mixin

Creates an AWS organization.

The account whose user is calling the `CreateOrganization <https://docs.aws.amazon.com/organizations/latest/APIReference/API_CreateOrganization.html>`_ operation automatically becomes the management account of the new organization.

This operation must be called using credentials from the account that is to become the new organization’s management account. The principal must also have the relevant IAM permissions . .. epigraph:

- If you delete an organization, you can't recover it. If you created any policies inside of the organization, they're also deleted and you can't recover them.
- You can delete an organization only after you remove all member accounts from the organization. If you created some of your member accounts using AWS Organizations , you might be blocked from removing those accounts. You can remove a member account only if it has all the information that's required to operate as a standalone AWS account. For more information about how to provide that information and then remove the account, see `Leave an organization from your member account <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_leave-as-member.html>`_ in the *AWS Organizations User Guide* .
- If you closed a member account before you remove it from the organization, it enters a 'suspended' state for a period of time and you can't remove the account from the organization until it is finally closed. This can take up to 90 days and can prevent you from deleting the organization until all member accounts are completely closed.

For more information, see `Deleting an organization <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_delete.html>`_ in the *AWS Organizations User Guide* .
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-organizations-organization.html

CloudformationResource:

AWS::Organizations::Organization

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import aws_logs as logs
from aws_cdk.mixins_preview.aws_organizations import mixins as organizations_mixins

# logs_delivery: logs.ILogsDelivery

cfn_organization_logs_mixin = organizations_mixins.CfnOrganizationLogsMixin("logType", logs_delivery)

Create a mixin to enable vended logs for AWS::Organizations::Organization.

Parameters:
  • log_type (str) – Type of logs that are getting vended.

  • log_delivery (ILogsDelivery) – Object in charge of setting up the delivery destination and delivery connection.

Methods

apply_to(resource)

Apply vended logs configuration to the construct.

Parameters:

resource (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct (has vendedLogs property).

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

ACCESS_CONTROL_LOGS = <aws_cdk.mixins_preview.aws_organizations.mixins.CfnOrganizationAccessControlLogs object>
AUTHENTICATION_LOGS = <aws_cdk.mixins_preview.aws_organizations.mixins.CfnOrganizationAuthenticationLogs object>
WORKMAIL_AVAILABILITY_PROVIDER_LOGS = <aws_cdk.mixins_preview.aws_organizations.mixins.CfnOrganizationWorkmailAvailabilityProviderLogs object>
WORKMAIL_MAILBOX_ACCESS_LOGS = <aws_cdk.mixins_preview.aws_organizations.mixins.CfnOrganizationWorkmailMailboxAccessLogs object>
WORKMAIL_PERSONAL_ACCESS_TOKEN_LOGS = <aws_cdk.mixins_preview.aws_organizations.mixins.CfnOrganizationWorkmailPersonalAccessTokenLogs object>

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental