pub struct ArtifactRegistry {
pub id: String,
pub replication_regions: Vec<String>,
}Expand description
Represents an artifact registry for storing container images and other build artifacts. This is a high-level wrapper resource that provides a cloud-agnostic interface over AWS ECR, GCP Artifact Registry, and Azure Container Registry.
§Platform Mapping
- AWS: Implicitly exists as the AWS account and region
- GCP: Explicitly configured per project and location (Artifact Registry API enabled)
- Azure: Explicitly provisioned Azure Container Registry instance
The actual repository management and permissions are handled through the bindings API.
Fields§
§id: StringIdentifier for the artifact registry. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
replication_regions: Vec<String>AWS-only: regions to replicate container images to. ECR private image replication ensures images pushed in the registry’s home region are automatically available in these additional regions (required when Lambda or other compute runs in a different region from the registry).
Implementations§
Source§impl ArtifactRegistry
impl ArtifactRegistry
Sourcepub fn new(id: String) -> ArtifactRegistryBuilder
pub fn new(id: String) -> ArtifactRegistryBuilder
Create an instance of ArtifactRegistry using the builder syntax
Source§impl ArtifactRegistry
impl ArtifactRegistry
Sourcepub const RESOURCE_TYPE: ResourceType
pub const RESOURCE_TYPE: ResourceType
The resource type identifier for ArtifactRegistry
Trait Implementations§
Source§impl Clone for ArtifactRegistry
impl Clone for ArtifactRegistry
Source§fn clone(&self) -> ArtifactRegistry
fn clone(&self) -> ArtifactRegistry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArtifactRegistry
impl Debug for ArtifactRegistry
Source§impl<'de> Deserialize<'de> for ArtifactRegistry
impl<'de> Deserialize<'de> for ArtifactRegistry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ArtifactRegistry
impl PartialEq for ArtifactRegistry
Source§impl ResourceDefinition for ArtifactRegistry
impl ResourceDefinition for ArtifactRegistry
Source§fn get_resource_type(&self) -> ResourceType
fn get_resource_type(&self) -> ResourceType
Source§fn get_dependencies(&self) -> Vec<ResourceRef>
fn get_dependencies(&self) -> Vec<ResourceRef>
Source§fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Source§fn box_clone(&self) -> Box<dyn ResourceDefinition>
fn box_clone(&self) -> Box<dyn ResourceDefinition>
Source§fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
Source§fn to_json_value(&self) -> Result<Value>
fn to_json_value(&self) -> Result<Value>
Source§impl Serialize for ArtifactRegistry
impl Serialize for ArtifactRegistry
impl Eq for ArtifactRegistry
impl StructuralPartialEq for ArtifactRegistry
Auto Trait Implementations§
impl Freeze for ArtifactRegistry
impl RefUnwindSafe for ArtifactRegistry
impl Send for ArtifactRegistry
impl Sync for ArtifactRegistry
impl Unpin for ArtifactRegistry
impl UnsafeUnpin for ArtifactRegistry
impl UnwindSafe for ArtifactRegistry
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.