update_environment
¶
update_environment(
environment_arn: EnvironmentArn,
*,
config_overrides: Optional[AssuranceClientConfig] = 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.
>>> 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/assurance.py
7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 | |