update_environment
async
¶
update_environment(
environment_arn: EnvironmentArn,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
description: Optional[EnvironmentDescription] = None,
identity_store: Optional[IdentityStoreUpdate] = None,
operator_role: Optional[IamRoleArn] = None,
kms_key_arn: Optional[OptionalKmsKeyArn] = None,
regions: Optional[RegionList] = None,
environment_scope: Optional[EnvironmentScope] = None,
organizational_unit_ids: Optional[OrganizationalUnitIdsUpdate] = None,
) -> UpdateEnvironmentOutput
Updates a governance environment.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
description(Optional[EnvironmentDescription], default:None) –A description of the environment.
-
identity_store(Optional[IdentityStoreUpdate], default:None) –The update to the identity store configuration. You can provide a new configuration or disable the identity store.
-
operator_role(Optional[IamRoleArn], default:None) –The IAM role that AWS Assurance assumes to issue temporary credentials to operators who use your application. The role's trust policy must allow the AWS Assurance service principal to call
sts:AssumeRole. -
kms_key_arn(Optional[OptionalKmsKeyArn], default:None) –The ARN of the AWS KMS key that encrypts evidence. To change the key, specify a new ARN. To remove the key, specify an empty string.
-
regions(Optional[RegionList], default:None) –The AWS Regions to evaluate across. Replaces existing list. Send empty list to revert to all generally available Regions in the partition.
-
environment_scope(Optional[EnvironmentScope], default:None) –The set of AWS accounts this environment evaluates.
ORGANIZATION: convert the environment into an organization environment. Only valid when the environment is owned by the organization's management account and AWS Organizations trusted access for AWS Assurance is enabled; you must be in that organization. Idempotent when the scope is already ORGANIZATION.
SINGLE_ACCOUNT: revert the environment to evaluating only its own account. This operation is idempotent when the scope is already SINGLE_ACCOUNT. After this change, the environment no longer evaluates organization member accounts.
null or omitted: leaves the environment's scope unchanged.
-
organizational_unit_ids(Optional[OrganizationalUnitIdsUpdate], default:None) –The replacement organizational unit scope for the environment. Provide a replacement list of organizational units, or set cleared to evaluate the entire organization. Only valid on an organization environment, or together with a scope change to ORGANIZATION. Null or omitted leaves organizational unit scoping unchanged.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
ConflictException–A conflict occurred (for example, resource already exists).
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update a governance environment Updates the description of the payments team's governance environment.
>>> await client.update_environment(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', description="Governance environment for the payments team's PCI-DSS assessment (Q1 scope).")
Source code in docs_src/capo_assurance/_services/async_assurance.py
7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 | |