Struct aws_sdk_ec2::model::IpamScope
source · #[non_exhaustive]pub struct IpamScope { /* private fields */ }
Expand description
In IPAM, a scope is the highest-level container within IPAM. An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict.
For more information, see How IPAM works in the Amazon VPC IPAM User Guide.
Implementations§
source§impl IpamScope
impl IpamScope
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The Amazon Web Services account ID of the owner of the scope.
sourcepub fn ipam_scope_id(&self) -> Option<&str>
pub fn ipam_scope_id(&self) -> Option<&str>
The ID of the scope.
sourcepub fn ipam_scope_arn(&self) -> Option<&str>
pub fn ipam_scope_arn(&self) -> Option<&str>
The ARN of the scope.
sourcepub fn ipam_region(&self) -> Option<&str>
pub fn ipam_region(&self) -> Option<&str>
The Amazon Web Services Region of the IPAM scope.
sourcepub fn ipam_scope_type(&self) -> Option<&IpamScopeType>
pub fn ipam_scope_type(&self) -> Option<&IpamScopeType>
The type of the scope.
sourcepub fn is_default(&self) -> Option<bool>
pub fn is_default(&self) -> Option<bool>
Defines if the scope is the default scope or not.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the scope.
sourcepub fn pool_count(&self) -> Option<i32>
pub fn pool_count(&self) -> Option<i32>
The number of pools in the scope.
sourcepub fn state(&self) -> Option<&IpamScopeState>
pub fn state(&self) -> Option<&IpamScopeState>
The state of the IPAM scope.
The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
source§impl IpamScope
impl IpamScope
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IpamScope
.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}