#[non_exhaustive]pub struct PutResourcePolicyInput {
pub policy_in_json: Option<String>,
pub resource_arn: Option<String>,
pub policy_hash_condition: Option<String>,
pub policy_exists_condition: Option<ExistCondition>,
pub enable_hybrid: Option<EnableHybridValues>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.policy_in_json: Option<String>
Contains the policy document to set, in JSON format.
resource_arn: Option<String>
Do not use. For internal use only.
policy_hash_condition: Option<String>
The hash value returned when the previous policy was set using PutResourcePolicy
. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.
policy_exists_condition: Option<ExistCondition>
A value of MUST_EXIST
is used to update a policy. A value of NOT_EXIST
is used to create a new policy. If a value of NONE
or a null value is used, the call does not depend on the existence of a policy.
enable_hybrid: Option<EnableHybridValues>
If 'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog resources:
-
By directly updating the resource policy with
PutResourePolicy
-
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to 'TRUE'
if you have already used the Management Console to grant cross-account access, otherwise the call fails. Default is 'FALSE'.
Implementations§
source§impl PutResourcePolicyInput
impl PutResourcePolicyInput
sourcepub fn policy_in_json(&self) -> Option<&str>
pub fn policy_in_json(&self) -> Option<&str>
Contains the policy document to set, in JSON format.
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
Do not use. For internal use only.
sourcepub fn policy_hash_condition(&self) -> Option<&str>
pub fn policy_hash_condition(&self) -> Option<&str>
The hash value returned when the previous policy was set using PutResourcePolicy
. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.
sourcepub fn policy_exists_condition(&self) -> Option<&ExistCondition>
pub fn policy_exists_condition(&self) -> Option<&ExistCondition>
A value of MUST_EXIST
is used to update a policy. A value of NOT_EXIST
is used to create a new policy. If a value of NONE
or a null value is used, the call does not depend on the existence of a policy.
sourcepub fn enable_hybrid(&self) -> Option<&EnableHybridValues>
pub fn enable_hybrid(&self) -> Option<&EnableHybridValues>
If 'TRUE'
, indicates that you are using both methods to grant cross-account access to Data Catalog resources:
-
By directly updating the resource policy with
PutResourePolicy
-
By using the Grant permissions command on the Amazon Web Services Management Console.
Must be set to 'TRUE'
if you have already used the Management Console to grant cross-account access, otherwise the call fails. Default is 'FALSE'.
source§impl PutResourcePolicyInput
impl PutResourcePolicyInput
sourcepub fn builder() -> PutResourcePolicyInputBuilder
pub fn builder() -> PutResourcePolicyInputBuilder
Creates a new builder-style object to manufacture PutResourcePolicyInput
.
Trait Implementations§
source§impl Clone for PutResourcePolicyInput
impl Clone for PutResourcePolicyInput
source§fn clone(&self) -> PutResourcePolicyInput
fn clone(&self) -> PutResourcePolicyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutResourcePolicyInput
impl Debug for PutResourcePolicyInput
source§impl PartialEq for PutResourcePolicyInput
impl PartialEq for PutResourcePolicyInput
source§fn eq(&self, other: &PutResourcePolicyInput) -> bool
fn eq(&self, other: &PutResourcePolicyInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutResourcePolicyInput
Auto Trait Implementations§
impl Freeze for PutResourcePolicyInput
impl RefUnwindSafe for PutResourcePolicyInput
impl Send for PutResourcePolicyInput
impl Sync for PutResourcePolicyInput
impl Unpin for PutResourcePolicyInput
impl UnwindSafe for PutResourcePolicyInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more