GuardDuty / Client / get_custom_detection_rule_association

get_custom_detection_rule_association

GuardDuty.Client.get_custom_detection_rule_association(**kwargs)

Returns details for a custom detection rule association.

See also: AWS API Documentation

Request Syntax

response = client.get_custom_detection_rule_association(
    RuleId='string',
    AssociationId='string'
)
Parameters:
  • RuleId (string) –

    [REQUIRED]

    The unique identifier for the custom detection rule.

  • AssociationId (string) –

    [REQUIRED]

    The unique identifier for the association.

Return type:

dict

Returns:

Response Syntax

{
    'RuleAssociation': {
        'AssociationId': 'string',
        'Arn': 'string',
        'RuleId': 'string',
        'AccountId': 'string',
        'Mode': 'LIVE'|'DRY_RUN',
        'CreatedAt': datetime(2015, 1, 1),
        'UpdatedAt': datetime(2015, 1, 1),
        'ExpiresAt': datetime(2015, 1, 1)
    },
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    • RuleAssociation (dict) –

      The details of the custom detection rule association.

      • AssociationId (string) –

        The unique identifier for the association.

      • Arn (string) –

        The Amazon Resource Name (ARN) of the association.

      • RuleId (string) –

        The unique identifier for the custom detection rule.

      • AccountId (string) –

        The Amazon Web Services account ID associated with this rule association.

      • Mode (string) –

        The rule execution mode. Valid values: LIVE | DRY_RUN.

      • CreatedAt (datetime) –

        The timestamp when the association was created.

      • UpdatedAt (datetime) –

        The timestamp when the association was last updated.

      • ExpiresAt (datetime) –

        The timestamp when the association expires.

    • Tags (dict) –

      The tags associated with the custom detection rule association resource.

      • (string) –

        • (string) –

Exceptions