Assurance / Client / enable_framework

enable_framework

Assurance.Client.enable_framework(**kwargs)

Enables a compliance framework for a project in a governance environment. AWS Assurance then assesses the project’s resources against the framework’s controls.

See also: AWS API Documentation

Request Syntax

response = client.enable_framework(
    environmentArn='string',
    framework='string',
    project='string',
    frameworkVersion='string',
    assessmentMode='SCHEDULED'|'CONTINUOUS'
)
Parameters:
  • environmentArn (string) –

    [REQUIRED]

    The ARN of this governance environment.

  • framework (string) –

    [REQUIRED]

    The name of the compliance framework.

  • project (string) –

    [REQUIRED]

    The name of the project.

  • frameworkVersion (string) – The version of the compliance framework.

  • assessmentMode (string) –

    The way that assessments run for the framework. The default is SCHEDULED.

    • CONTINUOUS – Runs assessments when a relevant change occurs.

    • SCHEDULED – Runs assessments on a recurring schedule.

Return type:

dict

Returns:

Response Syntax

{
    'environment': 'string',
    'framework': 'string',
    'frameworkVersion': 'string',
    'project': 'string',
    'type': 'MANAGED'|'CUSTOM',
    'assessmentMode': 'SCHEDULED'|'CONTINUOUS'
}

Response Structure

  • (dict) –

    • environment (string) –

      The name of the governance environment the framework belongs to.

    • framework (string) –

      The name of the compliance framework.

    • frameworkVersion (string) –

      The version of the compliance framework.

    • project (string) –

      The name of the project.

    • type (string) –

      The type of the compliance framework.

    • assessmentMode (string) –

      The way that assessments run for the framework. This field is empty if assessment modes aren’t available for your account.

Exceptions