Add getters for private items

This commit is contained in:
2024-11-06 20:19:14 +01:00
parent fad42e9763
commit 59830deeff

View File

@@ -643,6 +643,10 @@ impl CloudfrontOrigin {
pub const fn id(&self) -> &CloudfrontOriginId { pub const fn id(&self) -> &CloudfrontOriginId {
&self.id &self.id
} }
pub const fn domain(&self) -> &CloudfrontOriginDomain {
&self.domain
}
} }
string_newtype!(CloudfrontOriginId); string_newtype!(CloudfrontOriginId);
@@ -846,6 +850,14 @@ impl Route53Zone {
name, name,
} }
} }
pub const fn hosted_zone_id(&self) -> &HostedZoneId {
&self.hosted_zone_id
}
pub fn name(&self) -> &str {
&self.name
}
} }
impl From<aws_sdk_route53::types::HostedZone> for Route53Zone { impl From<aws_sdk_route53::types::HostedZone> for Route53Zone {