Struct aws_sdk_rekognition::operation::delete_project_policy::builders::DeleteProjectPolicyFluentBuilder
source · pub struct DeleteProjectPolicyFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to DeleteProjectPolicy.
This operation applies only to Amazon Rekognition Custom Labels.
Deletes an existing project policy.
To get a list of project policies attached to a project, call ListProjectPolicies. To attach a project policy to a project, call PutProjectPolicy.
This operation requires permissions to perform the rekognition:DeleteProjectPolicy action.
Implementations§
source§impl DeleteProjectPolicyFluentBuilder
impl DeleteProjectPolicyFluentBuilder
sourcepub fn as_input(&self) -> &DeleteProjectPolicyInputBuilder
pub fn as_input(&self) -> &DeleteProjectPolicyInputBuilder
Access the DeleteProjectPolicy as a reference.
sourcepub async fn send(
self
) -> Result<DeleteProjectPolicyOutput, SdkError<DeleteProjectPolicyError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteProjectPolicyOutput, SdkError<DeleteProjectPolicyError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<DeleteProjectPolicyOutput, DeleteProjectPolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<DeleteProjectPolicyOutput, DeleteProjectPolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn project_arn(self, input: impl Into<String>) -> Self
pub fn project_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the project that the project policy you want to delete is attached to.
sourcepub fn set_project_arn(self, input: Option<String>) -> Self
pub fn set_project_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the project that the project policy you want to delete is attached to.
sourcepub fn get_project_arn(&self) -> &Option<String>
pub fn get_project_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the project that the project policy you want to delete is attached to.
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The name of the policy that you want to delete.
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The name of the policy that you want to delete.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The name of the policy that you want to delete.
sourcepub fn policy_revision_id(self, input: impl Into<String>) -> Self
pub fn policy_revision_id(self, input: impl Into<String>) -> Self
The ID of the project policy revision that you want to delete.
sourcepub fn set_policy_revision_id(self, input: Option<String>) -> Self
pub fn set_policy_revision_id(self, input: Option<String>) -> Self
The ID of the project policy revision that you want to delete.
sourcepub fn get_policy_revision_id(&self) -> &Option<String>
pub fn get_policy_revision_id(&self) -> &Option<String>
The ID of the project policy revision that you want to delete.
Trait Implementations§
source§impl Clone for DeleteProjectPolicyFluentBuilder
impl Clone for DeleteProjectPolicyFluentBuilder
source§fn clone(&self) -> DeleteProjectPolicyFluentBuilder
fn clone(&self) -> DeleteProjectPolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more