pub struct CloudFrontAccounts {
pub accounts: HashMap<String, AccountState>,
}Fields§
§accounts: HashMap<String, AccountState>Implementations§
Source§impl CloudFrontAccounts
impl CloudFrontAccounts
pub fn new() -> Self
pub fn account_count(&self) -> usize
pub fn entry(&mut self, account_id: &str) -> &mut AccountState
pub fn get(&self, account_id: &str) -> Option<&AccountState>
Source§impl CloudFrontAccounts
impl CloudFrontAccounts
Sourcepub fn seed_managed_policies(&mut self, account_id: &str)
pub fn seed_managed_policies(&mut self, account_id: &str)
Pre-seed the AWS-managed Cache, Origin Request, and Response Headers policies into the default account so callers that look them up by their well-known IDs (Terraform, CDK) get the same shape they get against AWS. The IDs and names mirror the AWS console output verbatim — the easiest way to keep tests source of truth.
Trait Implementations§
Source§impl Debug for CloudFrontAccounts
impl Debug for CloudFrontAccounts
Source§impl Default for CloudFrontAccounts
impl Default for CloudFrontAccounts
Source§fn default() -> CloudFrontAccounts
fn default() -> CloudFrontAccounts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudFrontAccounts
impl<'de> Deserialize<'de> for CloudFrontAccounts
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 CloudFrontAccounts
impl RefUnwindSafe for CloudFrontAccounts
impl Send for CloudFrontAccounts
impl Sync for CloudFrontAccounts
impl Unpin for CloudFrontAccounts
impl UnsafeUnpin for CloudFrontAccounts
impl UnwindSafe for CloudFrontAccounts
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