Amazon GuardDuty

2023/03/23 - Amazon GuardDuty - 2 updated api methods

Changes  Adds AutoEnableOrganizationMembers attribute to DescribeOrganizationConfiguration and UpdateOrganizationConfiguration APIs.

DescribeOrganizationConfiguration (updated) Link ¶
Changes (response)
{'AutoEnableOrganizationMembers': 'NEW | ALL | NONE'}

Returns information about the account selected as the delegated administrator for GuardDuty.

There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

See also: AWS API Documentation

Request Syntax

client.describe_organization_configuration(
    DetectorId='string',
    MaxResults=123,
    NextToken='string'
)
type DetectorId

string

param DetectorId

[REQUIRED]

The ID of the detector to retrieve information about the delegated administrator from.

type MaxResults

integer

param MaxResults

You can use this parameter to indicate the maximum number of items that you want in the response.

type NextToken

string

param NextToken

You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For subsequent calls to the action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

rtype

dict

returns

Response Syntax

{
    'AutoEnable': True|False,
    'MemberAccountLimitReached': True|False,
    'DataSources': {
        'S3Logs': {
            'AutoEnable': True|False
        },
        'Kubernetes': {
            'AuditLogs': {
                'AutoEnable': True|False
            }
        },
        'MalwareProtection': {
            'ScanEc2InstanceWithFindings': {
                'EbsVolumes': {
                    'AutoEnable': True|False
                }
            }
        }
    },
    'Features': [
        {
            'Name': 'S3_DATA_EVENTS'|'EKS_AUDIT_LOGS'|'EBS_MALWARE_PROTECTION'|'RDS_LOGIN_EVENTS',
            'AutoEnable': 'NEW'|'NONE'
        },
    ],
    'NextToken': 'string',
    'AutoEnableOrganizationMembers': 'NEW'|'ALL'|'NONE'
}

Response Structure

  • (dict) --

    • AutoEnable (boolean) --

      Indicates whether GuardDuty is automatically enabled for accounts added to the organization.

    • MemberAccountLimitReached (boolean) --

      Indicates whether the maximum number of allowed member accounts are already associated with the delegated administrator account for your organization.

    • DataSources (dict) --

      Describes which data sources are enabled automatically for member accounts.

      • S3Logs (dict) --

        Describes whether S3 data event logs are enabled as a data source.

        • AutoEnable (boolean) --

          A value that describes whether S3 data event logs are automatically enabled for new members of the organization.

      • Kubernetes (dict) --

        Describes the configuration of Kubernetes data sources.

        • AuditLogs (dict) --

          The current configuration of Kubernetes audit logs as a data source for the organization.

          • AutoEnable (boolean) --

            Whether Kubernetes audit logs data source should be auto-enabled for new members joining the organization.

      • MalwareProtection (dict) --

        Describes the configuration of Malware Protection data source for an organization.

        • ScanEc2InstanceWithFindings (dict) --

          Describes the configuration for scanning EC2 instances with findings for an organization.

          • EbsVolumes (dict) --

            Describes the configuration for scanning EBS volumes for an organization.

            • AutoEnable (boolean) --

              An object that contains the status of whether scanning EBS volumes should be auto-enabled for new members joining the organization.

    • Features (list) --

      A list of features that are configured for this organization.

      • (dict) --

        A list of features which will be configured for the organization.

        • Name (string) --

          The name of the feature that is configured for the member accounts within the organization.

        • AutoEnable (string) --

          Describes how The status of the feature that are configured for the member accounts within the organization.

          If you set AutoEnable to NEW , a feature will be configured for only the new accounts when they join the organization.

          If you set AutoEnable to NONE , no feature will be configured for the accounts when they join the organization.

    • NextToken (string) --

      The pagination parameter to be used on the next list operation to retrieve more items.

    • AutoEnableOrganizationMembers (string) --

      Indicates the auto-enablement configuration of GuardDuty for the member accounts in the organization.

      • NEW : Indicates that new accounts joining the organization are configured to have GuardDuty enabled automatically.

      • ALL : Indicates that all accounts (new and existing members) in the organization are configured to have GuardDuty enabled automatically.

      • NONE : Indicates that no account in the organization will be configured to have GuardDuty enabled automatically.

UpdateOrganizationConfiguration (updated) Link ¶
Changes (request)
{'AutoEnableOrganizationMembers': 'NEW | ALL | NONE'}

Configures the delegated administrator account with the provided values. You must provide the value for either autoEnableOrganizationMembers or autoEnable .

There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

See also: AWS API Documentation

Request Syntax

client.update_organization_configuration(
    DetectorId='string',
    AutoEnable=True|False,
    DataSources={
        'S3Logs': {
            'AutoEnable': True|False
        },
        'Kubernetes': {
            'AuditLogs': {
                'AutoEnable': True|False
            }
        },
        'MalwareProtection': {
            'ScanEc2InstanceWithFindings': {
                'EbsVolumes': {
                    'AutoEnable': True|False
                }
            }
        }
    },
    Features=[
        {
            'Name': 'S3_DATA_EVENTS'|'EKS_AUDIT_LOGS'|'EBS_MALWARE_PROTECTION'|'RDS_LOGIN_EVENTS',
            'AutoEnable': 'NEW'|'NONE'
        },
    ],
    AutoEnableOrganizationMembers='NEW'|'ALL'|'NONE'
)
type DetectorId

string

param DetectorId

[REQUIRED]

The ID of the detector that configures the delegated administrator.

type AutoEnable

boolean

param AutoEnable

Indicates whether to automatically enable member accounts in the organization.

type DataSources

dict

param DataSources

Describes which data sources will be updated.

  • S3Logs (dict) --

    Describes whether S3 data event logs are enabled for new members of the organization.

    • AutoEnable (boolean) -- [REQUIRED]

      A value that contains information on whether S3 data event logs will be enabled automatically as a data source for the organization.

  • Kubernetes (dict) --

    Describes the configuration of Kubernetes data sources for new members of the organization.

    • AuditLogs (dict) -- [REQUIRED]

      Whether Kubernetes audit logs data source should be auto-enabled for new members joining the organization.

      • AutoEnable (boolean) -- [REQUIRED]

        A value that contains information on whether Kubernetes audit logs should be enabled automatically as a data source for the organization.

  • MalwareProtection (dict) --

    Describes the configuration of Malware Protection for new members of the organization.

    • ScanEc2InstanceWithFindings (dict) --

      Whether Malware Protection for EC2 instances with findings should be auto-enabled for new members joining the organization.

      • EbsVolumes (dict) --

        Whether scanning EBS volumes should be auto-enabled for new members joining the organization.

        • AutoEnable (boolean) --

          Whether scanning EBS volumes should be auto-enabled for new members joining the organization.

type Features

list

param Features

A list of features that will be configured for the organization.

  • (dict) --

    A list of features which will be configured for the organization.

    • Name (string) --

      The name of the feature that will be configured for the organization.

    • AutoEnable (string) --

      The status of the feature that will be configured for the organization.

type AutoEnableOrganizationMembers

string

param AutoEnableOrganizationMembers

Indicates the auto-enablement configuration of GuardDuty for the member accounts in the organization.

  • NEW : Indicates that new accounts joining the organization are configured to have GuardDuty enabled automatically.

  • ALL : Indicates that all accounts (new and existing members) in the organization are configured to have GuardDuty enabled automatically.

  • NONE : Indicates that no account in the organization will be configured to have GuardDuty enabled automatically.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --