pub struct EcrArtifactRegistryBinding {
pub legacy_repository_prefixes: Vec<String>,
pub legacy_sandbox_repository_prefixes: Vec<String>,
pub pull_role_arn: Option<BindingValueString>,
pub push_role_arn: Option<BindingValueString>,
pub repository_prefix: BindingValueString,
pub sandbox_repository_prefix: Option<BindingValueString>,
}Expand description
AWS ECR (Elastic Container Registry) binding configuration
JSON schema
{
"description": "AWS ECR (Elastic Container Registry) binding configuration",
"type": "object",
"required": [
"repositoryPrefix"
],
"properties": {
"legacyRepositoryPrefixes": {
"description": "Repository prefixes this registry used before `repositoryPrefix`. Images already released\nunder them stay readable and keep their cross-account grants; nothing new is written there.",
"type": "array",
"items": {
"type": "string"
}
},
"legacySandboxRepositoryPrefixes": {
"description": "Sandbox namespaces this registry used before `sandboxRepositoryPrefix`, read the same way.",
"type": "array",
"items": {
"type": "string"
}
},
"pullRoleArn": {
"description": "ARN of the IAM role for pull permissions (optional — omit for single-account)",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/BindingValue_String"
}
]
}
]
},
"pushRoleArn": {
"description": "ARN of the IAM role for push+pull permissions (optional — omit for single-account)",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/BindingValue_String"
}
]
}
]
},
"repositoryPrefix": {
"$ref": "#/components/schemas/BindingValue_String"
},
"sandboxRepositoryPrefix": {
"description": "Optional namespace for sandbox images served by regional ECR pull-through caches.\nConfigure cache rules before enabling this; workers keep using `repositoryPrefix`.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/BindingValue_String"
}
]
}
]
}
}
}Fields§
§legacy_repository_prefixes: Vec<String>Repository prefixes this registry used before repositoryPrefix. Images already released
under them stay readable and keep their cross-account grants; nothing new is written there.
legacy_sandbox_repository_prefixes: Vec<String>Sandbox namespaces this registry used before sandboxRepositoryPrefix, read the same way.
pull_role_arn: Option<BindingValueString>ARN of the IAM role for pull permissions (optional — omit for single-account)
push_role_arn: Option<BindingValueString>ARN of the IAM role for push+pull permissions (optional — omit for single-account)
repository_prefix: BindingValueString§sandbox_repository_prefix: Option<BindingValueString>Optional namespace for sandbox images served by regional ECR pull-through caches.
Configure cache rules before enabling this; workers keep using repositoryPrefix.
Implementations§
Source§impl EcrArtifactRegistryBinding
impl EcrArtifactRegistryBinding
pub fn builder() -> EcrArtifactRegistryBinding
Trait Implementations§
Source§impl Clone for EcrArtifactRegistryBinding
impl Clone for EcrArtifactRegistryBinding
Source§impl Debug for EcrArtifactRegistryBinding
impl Debug for EcrArtifactRegistryBinding
Source§impl<'de> Deserialize<'de> for EcrArtifactRegistryBinding
impl<'de> Deserialize<'de> for EcrArtifactRegistryBinding
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&EcrArtifactRegistryBinding> for EcrArtifactRegistryBinding
impl From<&EcrArtifactRegistryBinding> for EcrArtifactRegistryBinding
Source§fn from(value: &EcrArtifactRegistryBinding) -> Self
fn from(value: &EcrArtifactRegistryBinding) -> Self
Converts to this type from the input type.
Source§impl From<EcrArtifactRegistryBinding> for EcrArtifactRegistryBinding
impl From<EcrArtifactRegistryBinding> for EcrArtifactRegistryBinding
Source§fn from(value: EcrArtifactRegistryBinding) -> Self
fn from(value: EcrArtifactRegistryBinding) -> Self
Converts to this type from the input type.
Source§impl TryFrom<EcrArtifactRegistryBinding> for EcrArtifactRegistryBinding
impl TryFrom<EcrArtifactRegistryBinding> for EcrArtifactRegistryBinding
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EcrArtifactRegistryBinding) -> Result<Self, ConversionError>
fn try_from(value: EcrArtifactRegistryBinding) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EcrArtifactRegistryBinding
impl RefUnwindSafe for EcrArtifactRegistryBinding
impl Send for EcrArtifactRegistryBinding
impl Sync for EcrArtifactRegistryBinding
impl Unpin for EcrArtifactRegistryBinding
impl UnsafeUnpin for EcrArtifactRegistryBinding
impl UnwindSafe for EcrArtifactRegistryBinding
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
Mutably borrows from an owned value. Read more