Struct aws_sdk_comprehend::input::PutResourcePolicyInput
source · [−]#[non_exhaustive]pub struct PutResourcePolicyInput { /* private fields */ }Implementations
sourceimpl PutResourcePolicyInput
impl PutResourcePolicyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutResourcePolicy, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutResourcePolicy, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutResourcePolicy>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutResourcePolicyInput.
sourceimpl PutResourcePolicyInput
impl PutResourcePolicyInput
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the custom model to attach the policy to.
sourcepub fn resource_policy(&self) -> Option<&str>
pub fn resource_policy(&self) -> Option<&str>
The JSON resource-based policy to attach to your custom model. Provide your JSON as a UTF-8 encoded string without line breaks. To provide valid JSON for your policy, enclose the attribute names and values in double quotes. If the JSON body is also enclosed in double quotes, then you must escape the double quotes that are inside the policy:
"{\"attribute\": \"value\", \"attribute\": [\"value\"]}"
To avoid escaping quotes, you can use single quotes to enclose the policy and double quotes to enclose the JSON names and values:
'{"attribute": "value", "attribute": ["value"]}'
sourcepub fn policy_revision_id(&self) -> Option<&str>
pub fn policy_revision_id(&self) -> Option<&str>
The revision ID that Amazon Comprehend assigned to the policy that you are updating. If you are creating a new policy that has no prior version, don't use this parameter. Amazon Comprehend creates the revision ID for you.
Trait Implementations
sourceimpl Clone for PutResourcePolicyInput
impl Clone for PutResourcePolicyInput
sourcefn clone(&self) -> PutResourcePolicyInput
fn clone(&self) -> PutResourcePolicyInput
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more