Struct aws_sdk_ecr::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleInput
source · #[non_exhaustive]pub struct CreatePullThroughCacheRuleInput {
pub ecr_repository_prefix: Option<String>,
pub upstream_registry_url: Option<String>,
pub registry_id: Option<String>,
pub upstream_registry: Option<UpstreamRegistry>,
pub credential_arn: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.ecr_repository_prefix: Option<String>
The repository name prefix to use when caching images from the source registry.
upstream_registry_url: 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
registry_id: 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.
upstream_registry: Option<UpstreamRegistry>
The name of the upstream registry.
credential_arn: 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.
Implementations§
source§impl CreatePullThroughCacheRuleInput
impl CreatePullThroughCacheRuleInput
sourcepub fn ecr_repository_prefix(&self) -> Option<&str>
pub fn ecr_repository_prefix(&self) -> Option<&str>
The repository name prefix to use when caching images from the source registry.
sourcepub fn upstream_registry_url(&self) -> Option<&str>
pub fn upstream_registry_url(&self) -> Option<&str>
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) -> Option<&str>
pub fn registry_id(&self) -> Option<&str>
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) -> Option<&UpstreamRegistry>
pub fn upstream_registry(&self) -> Option<&UpstreamRegistry>
The name of the upstream registry.
sourcepub fn credential_arn(&self) -> Option<&str>
pub fn credential_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that identifies the credentials to authenticate to the upstream registry.
source§impl CreatePullThroughCacheRuleInput
impl CreatePullThroughCacheRuleInput
sourcepub fn builder() -> CreatePullThroughCacheRuleInputBuilder
pub fn builder() -> CreatePullThroughCacheRuleInputBuilder
Creates a new builder-style object to manufacture CreatePullThroughCacheRuleInput
.
Trait Implementations§
source§impl Clone for CreatePullThroughCacheRuleInput
impl Clone for CreatePullThroughCacheRuleInput
source§fn clone(&self) -> CreatePullThroughCacheRuleInput
fn clone(&self) -> CreatePullThroughCacheRuleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for CreatePullThroughCacheRuleInput
impl PartialEq for CreatePullThroughCacheRuleInput
source§fn eq(&self, other: &CreatePullThroughCacheRuleInput) -> bool
fn eq(&self, other: &CreatePullThroughCacheRuleInput) -> bool
self
and other
values to be equal, and is used
by ==
.