Skip to main content

admin_accounts

Creates, updates, deletes, gets or lists an admin_accounts resource.

Overview

Nameadmin_accounts
TypeResource
Idaws.fms.admin_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
admin_accountstringThe account that is set as the Firewall Manager default administrator. (pattern: <code>^[0-9]+$</code>)
role_statusstringThe status of the account that you set as the Firewall Manager default administrator. (READY, CREATING, PENDING_DELETION, DELETING, DELETED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_admin_accountselectregionReturns the Organizations account that is associated with Firewall Manager as the Firewall Manager default administrator.
associate_admin_accountupdateregion, AdminAccountSets a Firewall Manager default administrator account. The Firewall Manager default administrator account can manage third-party firewalls and has full administrative scope that allows administration of all policy types, accounts, organizational units, and Regions. This account must be a member account of the organization in Organizations whose resources you want to protect. For information about working with Firewall Manager administrator accounts, see Managing Firewall Manager administrators in the Firewall Manager Developer Guide.
disassociate_admin_accountupdateregionDisassociates an Firewall Manager administrator account. To set a different account as an Firewall Manager administrator, submit a PutAdminAccount request. To set an account as a default administrator account, you must submit an AssociateAdminAccount request. Disassociation of the default administrator account follows the first in, last out principle. If you are the default administrator, all Firewall Manager administrators within the organization must first disassociate their accounts before you can disassociate your account.
put_admin_accountreplaceregion, AdminAccountCreates or updates an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by AssociateAdminAccount. Only the organization's management account can create an Firewall Manager administrator account. When you create an Firewall Manager administrator account, the service checks to see if the account is already a delegated administrator within Organizations. If the account isn't a delegated administrator, Firewall Manager calls Organizations to delegate the account within Organizations. For more information about administrator accounts within Organizations, see Managing the Amazon Web Services Accounts in Your Organization.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the Organizations account that is associated with Firewall Manager as the Firewall Manager default administrator.

SELECT
admin_account,
role_status
FROM aws.fms.admin_accounts
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Sets a Firewall Manager default administrator account. The Firewall Manager default administrator account can manage third-party firewalls and has full administrative scope that allows administration of all policy types, accounts, organizational units, and Regions. This account must be a member account of the organization in Organizations whose resources you want to protect. For information about working with Firewall Manager administrator accounts, see Managing Firewall Manager administrators in the Firewall Manager Developer Guide.

UPDATE aws.fms.admin_accounts
SET
AdminAccount = '{{ AdminAccount }}'
WHERE
region = '{{ region }}' --required
AND AdminAccount = '{{ AdminAccount }}' --required;

REPLACE examples

Creates or updates an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by AssociateAdminAccount. Only the organization's management account can create an Firewall Manager administrator account. When you create an Firewall Manager administrator account, the service checks to see if the account is already a delegated administrator within Organizations. If the account isn't a delegated administrator, Firewall Manager calls Organizations to delegate the account within Organizations. For more information about administrator accounts within Organizations, see Managing the Amazon Web Services Accounts in Your Organization.

REPLACE aws.fms.admin_accounts
SET
AdminAccount = '{{ AdminAccount }}',
AdminScope = '{{ AdminScope }}'
WHERE
region = '{{ region }}' --required
AND AdminAccount = '{{ AdminAccount }}' --required;