pub struct PutModelPackageGroupPolicy { /* private fields */ }
Expand description
Fluent builder constructing a request to PutModelPackageGroupPolicy
.
Adds a resouce policy to control access to a model group. For information about resoure policies, see Identity-based policies and resource-based policies in the Amazon Web Services Identity and Access Management User Guide..
Implementations§
source§impl PutModelPackageGroupPolicy
impl PutModelPackageGroupPolicy
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutModelPackageGroupPolicy, AwsResponseRetryClassifier>, SdkError<PutModelPackageGroupPolicyError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutModelPackageGroupPolicy, AwsResponseRetryClassifier>, SdkError<PutModelPackageGroupPolicyError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<PutModelPackageGroupPolicyOutput, SdkError<PutModelPackageGroupPolicyError>>
pub async fn send(
self
) -> Result<PutModelPackageGroupPolicyOutput, SdkError<PutModelPackageGroupPolicyError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn model_package_group_name(self, input: impl Into<String>) -> Self
pub fn model_package_group_name(self, input: impl Into<String>) -> Self
The name of the model group to add a resource policy to.
sourcepub fn set_model_package_group_name(self, input: Option<String>) -> Self
pub fn set_model_package_group_name(self, input: Option<String>) -> Self
The name of the model group to add a resource policy to.
sourcepub fn resource_policy(self, input: impl Into<String>) -> Self
pub fn resource_policy(self, input: impl Into<String>) -> Self
The resource policy for the model group.
sourcepub fn set_resource_policy(self, input: Option<String>) -> Self
pub fn set_resource_policy(self, input: Option<String>) -> Self
The resource policy for the model group.
Trait Implementations§
source§impl Clone for PutModelPackageGroupPolicy
impl Clone for PutModelPackageGroupPolicy
source§fn clone(&self) -> PutModelPackageGroupPolicy
fn clone(&self) -> PutModelPackageGroupPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more