pub struct EcrState {
pub account_id: String,
pub region: String,
pub repositories: BTreeMap<String, Repository>,
pub registry_policy: Option<String>,
pub registry_scanning_configuration: RegistryScanningConfiguration,
pub replication_configuration: Option<ReplicationConfiguration>,
pub account_settings: BTreeMap<String, String>,
pub layer_uploads: BTreeMap<String, LayerUpload>,
pub pull_time_exclusions: BTreeMap<String, PullTimeExclusion>,
pub pull_through_cache_rules: BTreeMap<String, PullThroughCacheRule>,
pub repository_creation_templates: BTreeMap<String, RepositoryCreationTemplate>,
pub signing_configuration: Option<SigningConfiguration>,
}Fields§
§account_id: String§region: String§repositories: BTreeMap<String, Repository>Repository name -> repository.
registry_policy: Option<String>Registry-level policy JSON document. None until the caller
sets one via PutRegistryPolicy.
registry_scanning_configuration: RegistryScanningConfigurationRegistry-level scanning configuration. Defaults to BASIC per
AWS behaviour; tracked here so Get/PutRegistryScanningConfiguration
round-trips correctly.
replication_configuration: Option<ReplicationConfiguration>Registry-level replication configuration.
account_settings: BTreeMap<String, String>Account setting flags keyed by setting name (e.g.,
BASIC_SCAN_TYPE_VERSION, REGISTRY_POLICY_SCOPE).
layer_uploads: BTreeMap<String, LayerUpload>Layer upload state machine keyed by uploadId. Each entry is
tied to a specific repository.
pull_time_exclusions: BTreeMap<String, PullTimeExclusion>Pull-time update exclusions keyed by IAM principal ARN. These are registry-level per the Smithy model.
pull_through_cache_rules: BTreeMap<String, PullThroughCacheRule>Pull-through cache rules keyed by ecrRepositoryPrefix.
repository_creation_templates: BTreeMap<String, RepositoryCreationTemplate>Repository creation templates keyed by prefix.
signing_configuration: Option<SigningConfiguration>Registry-wide signing configuration.
Implementations§
Trait Implementations§
Source§impl AccountState for EcrState
impl AccountState for EcrState
Source§fn new_for_account(account_id: &str, region: &str, _endpoint: &str) -> Self
fn new_for_account(account_id: &str, region: &str, _endpoint: &str) -> Self
Create a fresh, empty state for the given account.
Source§fn inherit_from(&mut self, _sibling: &Self)
fn inherit_from(&mut self, _sibling: &Self)
Called after a new account state is created via
MultiAccountState::get_or_create,
with a reference to an existing sibling state. Services can override
this to propagate shared resources (e.g. body caches) to the new state.Source§impl<'de> Deserialize<'de> for EcrState
impl<'de> Deserialize<'de> for EcrState
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
Auto Trait Implementations§
impl Freeze for EcrState
impl RefUnwindSafe for EcrState
impl Send for EcrState
impl Sync for EcrState
impl Unpin for EcrState
impl UnsafeUnpin for EcrState
impl UnwindSafe for EcrState
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