update_resource
¶
update_resource(
role_arn: IAMRoleArn,
resource_arn: ResourceArnString,
*,
config_overrides: Optional[LakeFormationClientConfig] = None,
with_federation: Optional[NullableBoolean] = None,
hybrid_access_enabled: Optional[NullableBoolean] = None,
expected_resource_owner_account: Optional[AccountIdString] = None,
) -> UpdateResourceResponse
Updates the data access role used for vending access to the given (registered) resource in Lake Formation.
Parameters:
-
role_arn(IAMRoleArn) –The new role to use for the given resource registered in Lake Formation.
-
resource_arn(ResourceArnString) –The resource ARN.
-
with_federation(Optional[NullableBoolean], default:None) –Whether or not the resource is a federated resource.
-
hybrid_access_enabled(Optional[NullableBoolean], default:None) –Specifies whether the data access of tables pointing to the location can be managed by both Lake Formation permissions as well as Amazon S3 bucket policies.
-
expected_resource_owner_account(Optional[AccountIdString], default:None) –The Amazon Web Services account that owns the Glue tables associated with specific Amazon S3 locations.
Raises:
-
EntityNotFoundException–A specified entity does not exist.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lakeformation/_services/lake_formation.py
4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 | |