CfnIPAMResourceDiscoveryProps Struct
Properties for defining a CfnIPAMResourceDiscovery.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnIPAMResourceDiscoveryProps: ec2.CfnIPAMResourceDiscoveryProps = {
description: 'description',
operatingRegions: [{
regionName: 'regionName',
}],
organizationalUnitExclusions: [{
organizationsEntityPath: 'organizationsEntityPath',
}],
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
cfn_ipam_resource_discovery_props = ec2.CfnIPAMResourceDiscoveryProps(
description="description",
operating_regions=[ec2.CfnIPAMResourceDiscovery.IpamOperatingRegionProperty(
region_name="regionName"
)],
organizational_unit_exclusions=[ec2.CfnIPAMResourceDiscovery.IpamResourceDiscoveryOrganizationalUnitExclusionProperty(
organizations_entity_path="organizationsEntityPath"
)],
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnIPAMResourceDiscoveryProps cfnIPAMResourceDiscoveryProps = CfnIPAMResourceDiscoveryProps.builder()
.description("description")
.operatingRegions(List.of(IpamOperatingRegionProperty.builder()
.regionName("regionName")
.build()))
.organizationalUnitExclusions(List.of(IpamResourceDiscoveryOrganizationalUnitExclusionProperty.builder()
.organizationsEntityPath("organizationsEntityPath")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnIPAMResourceDiscoveryProps = new CfnIPAMResourceDiscoveryProps {
Description = "description",
OperatingRegions = new [] { new IpamOperatingRegionProperty {
RegionName = "regionName"
} },
OrganizationalUnitExclusions = new [] { new IpamResourceDiscoveryOrganizationalUnitExclusionProperty {
OrganizationsEntityPath = "organizationsEntityPath"
} },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnIPAMResourceDiscoveryProps := &CfnIPAMResourceDiscoveryProps{
Description: jsii.String("description"),
OperatingRegions: []interface{}{
&IpamOperatingRegionProperty{
RegionName: jsii.String("regionName"),
},
},
OrganizationalUnitExclusions: []interface{}{
&IpamResourceDiscoveryOrganizationalUnitExclusionProperty{
OrganizationsEntityPath: jsii.String("organizationsEntityPath"),
},
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The resource discovery description.
operatingRegionsoptionalIResolvable | IResolvable | CfnIPAMResourceDiscovery.operating_regionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IpamOperatingRegionProperty]]]operatingRegionsoptionalIResolvableOperatingRegionsoptionalIResolvableOperatingRegionsoptionalinterface{} #The operating Regions for the resource discovery.
Operating Regions are AWS Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the AWS Regions you select as operating Regions.
organizationalUnitExclusionsoptionalIResolvable | IResolvable | CfnIPAMResourceDiscovery.organizational_unit_exclusionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IpamResourceDiscoveryOrganizationalUnitExclusionProperty]]]organizationalUnitExclusionsoptionalIResolvableOrganizationalUnitExclusionsoptionalIResolvableOrganizationalUnitExclusionsoptionalinterface{} #If your IPAM is integrated with AWS Organizations, you can exclude an organizational unit (OU) from being managed by IPAM. When you exclude an OU, IPAM will not manage the IP addresses in accounts in that OU. For more information, see Exclude organizational units from IPAM in the *Amazon Virtual Private Cloud IP Address Manager User Guide* .