update_resource
async
¶
update_resource(
role_arn: IAMRoleArn,
resource_arn: ResourceArnString,
*,
config_overrides: Optional[AsyncLakeFormationClientConfig] = 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/async_lake_formation.py
4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 | |