WellArchitected / Client / create_profile

create_profile#

WellArchitected.Client.create_profile(**kwargs)#

Create a profile.

See also: AWS API Documentation

Request Syntax

response = client.create_profile(
    ProfileName='string',
    ProfileDescription='string',
    ProfileQuestions=[
        {
            'QuestionId': 'string',
            'SelectedChoiceIds': [
                'string',
            ]
        },
    ],
    ClientRequestToken='string',
    Tags={
        'string': 'string'
    }
)
Parameters:
  • ProfileName (string) –

    [REQUIRED]

    Name of the profile.

  • ProfileDescription (string) –

    [REQUIRED]

    The profile description.

  • ProfileQuestions (list) –

    [REQUIRED]

    The profile questions.

    • (dict) –

      An update to a profile question.

      • QuestionId (string) –

        The ID of the question.

      • SelectedChoiceIds (list) –

        The selected choices.

        • (string) –

          The ID of a choice.

  • ClientRequestToken (string) –

    [REQUIRED]

    A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

    You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.

    Warning

    This token is listed as required, however, if you do not specify it, the Amazon Web Services SDKs automatically generate one for you. If you are not using the Amazon Web Services SDK or the CLI, you must provide this token or the request will fail.

    This field is autopopulated if not provided.

  • Tags (dict) –

    The tags assigned to the profile.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'ProfileArn': 'string',
    'ProfileVersion': 'string'
}

Response Structure

  • (dict) –

    • ProfileArn (string) –

      The profile ARN.

    • ProfileVersion (string) –

      Version of the profile.

Exceptions