Skip to content

get_master_account

Operation

get_master_account

get_master_account(request: GetMasterAccountInput | GetMasterAccountInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetMasterAccountInputDict]) -> GetMasterAccountOutput

Provides the details for the GuardDuty administrator account associated with the current GuardDuty member account.

Parameters:

Name Type Description Default
request GetMasterAccountInput | GetMasterAccountInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[GetMasterAccountInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetMasterAccountOutput

An instance of GetMasterAccountOutput.

get_master_account async

get_master_account(request: GetMasterAccountInput | GetMasterAccountInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetMasterAccountInputDict]) -> GetMasterAccountOutput

Provides the details for the GuardDuty administrator account associated with the current GuardDuty member account.

Parameters:

Name Type Description Default
request GetMasterAccountInput | GetMasterAccountInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[GetMasterAccountInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetMasterAccountOutput

An instance of GetMasterAccountOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

GetMasterAccountInputDict

Bases: TypedDict

Dictionary form of GetMasterAccountInput.

Attributes

detector_id instance-attribute
detector_id: Required[str]

The unique ID of the detector of the GuardDuty member account.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

GetMasterAccountInput dataclass

Bases: _SerdeShape

Dataclass for GetMasterAccountInput structure.

Attributes

detector_id class-attribute instance-attribute
detector_id: str | None = ...

The unique ID of the detector of the GuardDuty member account.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

Output

GetMasterAccountOutput dataclass

Bases: _SerdeShape

Dataclass for GetMasterAccountOutput structure.

Attributes

master class-attribute instance-attribute
master: Master | None = ...

The administrator account details.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.