Struct aws_sdk_ecr::operation::create_pull_through_cache_rule::builders::CreatePullThroughCacheRuleInputBuilder
source · #[non_exhaustive]pub struct CreatePullThroughCacheRuleInputBuilder { /* private fields */ }
Expand description
A builder for CreatePullThroughCacheRuleInput
.
Implementations§
source§impl CreatePullThroughCacheRuleInputBuilder
impl CreatePullThroughCacheRuleInputBuilder
sourcepub fn ecr_repository_prefix(self, input: impl Into<String>) -> Self
pub fn ecr_repository_prefix(self, input: impl Into<String>) -> Self
The repository name prefix to use when caching images from the source registry.
This field is required.sourcepub fn set_ecr_repository_prefix(self, input: Option<String>) -> Self
pub fn set_ecr_repository_prefix(self, input: Option<String>) -> Self
The repository name prefix to use when caching images from the source registry.
sourcepub fn get_ecr_repository_prefix(&self) -> &Option<String>
pub fn get_ecr_repository_prefix(&self) -> &Option<String>
The repository name prefix to use when caching images from the source registry.
sourcepub fn upstream_registry_url(self, input: impl Into<String>) -> Self
pub fn upstream_registry_url(self, input: impl Into<String>) -> Self
The registry URL of the upstream public registry to use as the source for the pull through cache rule. The following is the syntax to use for each supported upstream registry.
-
Amazon ECR Public (
ecr-public
) -public.ecr.aws
-
Docker Hub (
docker-hub
) -registry-1.docker.io
-
Quay (
quay
) -quay.io
-
Kubernetes (
k8s
) -registry.k8s.io
-
GitHub Container Registry (
github-container-registry
) -ghcr.io
-
Microsoft Azure Container Registry (
azure-container-registry
) -.azurecr.io
sourcepub fn set_upstream_registry_url(self, input: Option<String>) -> Self
pub fn set_upstream_registry_url(self, input: Option<String>) -> Self
The registry URL of the upstream public registry to use as the source for the pull through cache rule. The following is the syntax to use for each supported upstream registry.
-
Amazon ECR Public (
ecr-public
) -public.ecr.aws
-
Docker Hub (
docker-hub
) -registry-1.docker.io
-
Quay (
quay
) -quay.io
-
Kubernetes (
k8s
) -registry.k8s.io
-
GitHub Container Registry (
github-container-registry
) -ghcr.io
-
Microsoft Azure Container Registry (
azure-container-registry
) -.azurecr.io
sourcepub fn get_upstream_registry_url(&self) -> &Option<String>
pub fn get_upstream_registry_url(&self) -> &Option<String>
The registry URL of the upstream public registry to use as the source for the pull through cache rule. The following is the syntax to use for each supported upstream registry.
-
Amazon ECR Public (
ecr-public
) -public.ecr.aws
-
Docker Hub (
docker-hub
) -registry-1.docker.io
-
Quay (
quay
) -quay.io
-
Kubernetes (
k8s
) -registry.k8s.io
-
GitHub Container Registry (
github-container-registry
) -ghcr.io
-
Microsoft Azure Container Registry (
azure-container-registry
) -.azurecr.io
sourcepub fn registry_id(self, input: impl Into<String>) -> Self
pub fn registry_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID associated with the registry to create the pull through cache rule for. If you do not specify a registry, the default registry is assumed.
sourcepub fn set_registry_id(self, input: Option<String>) -> Self
pub fn set_registry_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID associated with the registry to create the pull through cache rule for. If you do not specify a registry, the default registry is assumed.
sourcepub fn get_registry_id(&self) -> &Option<String>
pub fn get_registry_id(&self) -> &Option<String>
The Amazon Web Services account ID associated with the registry to create the pull through cache rule for. If you do not specify a registry, the default registry is assumed.
sourcepub fn upstream_registry(self, input: UpstreamRegistry) -> Self
pub fn upstream_registry(self, input: UpstreamRegistry) -> Self
The name of the upstream registry.
sourcepub fn set_upstream_registry(self, input: Option<UpstreamRegistry>) -> Self
pub fn set_upstream_registry(self, input: Option<UpstreamRegistry>) -> Self
The name of the upstream registry.
sourcepub fn get_upstream_registry(&self) -> &Option<UpstreamRegistry>
pub fn get_upstream_registry(&self) -> &Option<UpstreamRegistry>
The name of the upstream registry.
sourcepub fn credential_arn(self, input: impl Into<String>) -> Self
pub fn credential_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that identifies the credentials to authenticate to the upstream registry.
sourcepub fn set_credential_arn(self, input: Option<String>) -> Self
pub fn set_credential_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that identifies the credentials to authenticate to the upstream registry.
sourcepub fn get_credential_arn(&self) -> &Option<String>
pub fn get_credential_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that identifies the credentials to authenticate to the upstream registry.
sourcepub fn build(self) -> Result<CreatePullThroughCacheRuleInput, BuildError>
pub fn build(self) -> Result<CreatePullThroughCacheRuleInput, BuildError>
Consumes the builder and constructs a CreatePullThroughCacheRuleInput
.
source§impl CreatePullThroughCacheRuleInputBuilder
impl CreatePullThroughCacheRuleInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreatePullThroughCacheRuleOutput, SdkError<CreatePullThroughCacheRuleError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreatePullThroughCacheRuleOutput, SdkError<CreatePullThroughCacheRuleError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreatePullThroughCacheRuleInputBuilder
impl Clone for CreatePullThroughCacheRuleInputBuilder
source§fn clone(&self) -> CreatePullThroughCacheRuleInputBuilder
fn clone(&self) -> CreatePullThroughCacheRuleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreatePullThroughCacheRuleInputBuilder
impl Default for CreatePullThroughCacheRuleInputBuilder
source§fn default() -> CreatePullThroughCacheRuleInputBuilder
fn default() -> CreatePullThroughCacheRuleInputBuilder
source§impl PartialEq for CreatePullThroughCacheRuleInputBuilder
impl PartialEq for CreatePullThroughCacheRuleInputBuilder
source§fn eq(&self, other: &CreatePullThroughCacheRuleInputBuilder) -> bool
fn eq(&self, other: &CreatePullThroughCacheRuleInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.