Amazon Detective

2021/03/31 - Amazon Detective - 3 new api methods

Changes  Added the ability to assign tag values to Detective behavior graphs. Tag values can be used for attribute-based access control, and for cost allocation for billing.

ListTagsForResource (new) Link ¶

Returns the tag values that are assigned to a behavior graph.

See also: AWS API Documentation

Request Syntax

client.list_tags_for_resource(
    ResourceArn='string'
)
type ResourceArn:

string

param ResourceArn:

[REQUIRED]

The ARN of the behavior graph for which to retrieve the tag values.

rtype:

dict

returns:

Response Syntax

{
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • Tags (dict) --

      The tag values that are assigned to the behavior graph.

      • (string) --

        • (string) --

UntagResource (new) Link ¶

Removes tags from a behavior graph.

See also: AWS API Documentation

Request Syntax

client.untag_resource(
    ResourceArn='string',
    TagKeys=[
        'string',
    ]
)
type ResourceArn:

string

param ResourceArn:

[REQUIRED]

The ARN of the behavior graph to remove the tags from.

type TagKeys:

list

param TagKeys:

[REQUIRED]

The tag keys of the tags to remove from the behavior graph.

  • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

TagResource (new) Link ¶

Applies tag values to a behavior graph.

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    ResourceArn='string',
    Tags={
        'string': 'string'
    }
)
type ResourceArn:

string

param ResourceArn:

[REQUIRED]

The ARN of the behavior graph to assign the tags to.

type Tags:

dict

param Tags:

[REQUIRED]

The tag values to assign to the behavior graph.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --