Struct aws_sdk_ecr::operation::put_replication_configuration::builders::PutReplicationConfigurationFluentBuilder
source · pub struct PutReplicationConfigurationFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutReplicationConfiguration
.
Creates or updates the replication configuration for a registry. The existing replication configuration for a repository can be retrieved with the DescribeRegistry
API action. The first time the PutReplicationConfiguration API is called, a service-linked IAM role is created in your account for the replication process. For more information, see Using service-linked roles for Amazon ECR in the Amazon Elastic Container Registry User Guide.
When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a registry permissions policy. For more information, see PutRegistryPolicy
.
Implementations§
source§impl PutReplicationConfigurationFluentBuilder
impl PutReplicationConfigurationFluentBuilder
sourcepub fn as_input(&self) -> &PutReplicationConfigurationInputBuilder
pub fn as_input(&self) -> &PutReplicationConfigurationInputBuilder
Access the PutReplicationConfiguration as a reference.
sourcepub async fn send(
self
) -> Result<PutReplicationConfigurationOutput, SdkError<PutReplicationConfigurationError, HttpResponse>>
pub async fn send( self ) -> Result<PutReplicationConfigurationOutput, SdkError<PutReplicationConfigurationError, 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<PutReplicationConfigurationOutput, PutReplicationConfigurationError, Self>
pub fn customize( self ) -> CustomizableOperation<PutReplicationConfigurationOutput, PutReplicationConfigurationError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn replication_configuration(self, input: ReplicationConfiguration) -> Self
pub fn replication_configuration(self, input: ReplicationConfiguration) -> Self
An object representing the replication configuration for a registry.
sourcepub fn set_replication_configuration(
self,
input: Option<ReplicationConfiguration>
) -> Self
pub fn set_replication_configuration( self, input: Option<ReplicationConfiguration> ) -> Self
An object representing the replication configuration for a registry.
sourcepub fn get_replication_configuration(&self) -> &Option<ReplicationConfiguration>
pub fn get_replication_configuration(&self) -> &Option<ReplicationConfiguration>
An object representing the replication configuration for a registry.
Trait Implementations§
source§impl Clone for PutReplicationConfigurationFluentBuilder
impl Clone for PutReplicationConfigurationFluentBuilder
source§fn clone(&self) -> PutReplicationConfigurationFluentBuilder
fn clone(&self) -> PutReplicationConfigurationFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for PutReplicationConfigurationFluentBuilder
impl !RefUnwindSafe for PutReplicationConfigurationFluentBuilder
impl Send for PutReplicationConfigurationFluentBuilder
impl Sync for PutReplicationConfigurationFluentBuilder
impl Unpin for PutReplicationConfigurationFluentBuilder
impl !UnwindSafe for PutReplicationConfigurationFluentBuilder
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