Skip to content
v2.278.0

SourceResourceProperty Struct ​

The resource used to provision CIDRs to a resource planning pool.

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 sourceResourceProperty: ec2.CfnIPAMPool.SourceResourceProperty = {
  resourceId: 'resourceId',
  resourceOwner: 'resourceOwner',
  resourceRegion: 'resourceRegion',
  resourceType: 'resourceType',
};
python
# 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

source_resource_property = ec2.CfnIPAMPool.SourceResourceProperty(
    resource_id="resourceId",
    resource_owner="resourceOwner",
    resource_region="resourceRegion",
    resource_type="resourceType"
)
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.*;

SourceResourceProperty sourceResourceProperty = SourceResourceProperty.builder()
        .resourceId("resourceId")
        .resourceOwner("resourceOwner")
        .resourceRegion("resourceRegion")
        .resourceType("resourceType")
        .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 sourceResourceProperty = new SourceResourceProperty {
    ResourceId = "resourceId",
    ResourceOwner = "resourceOwner",
    ResourceRegion = "resourceRegion",
    ResourceType = "resourceType"
};
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"

sourceResourceProperty := &SourceResourceProperty{
	ResourceId: jsii.String("resourceId"),
	ResourceOwner: jsii.String("resourceOwner"),
	ResourceRegion: jsii.String("resourceRegion"),
	ResourceType: jsii.String("resourceType"),
}

Properties ​

resourceIdstringresource_idstrresourceIdStringResourceIdstringResourceId*string required #
The source resource ID.
resourceOwnerstringresource_ownerstrresourceOwnerStringResourceOwnerstringResourceOwner*string required #
The source resource owner.
resourceRegionstringresource_regionstrresourceRegionStringResourceRegionstringResourceRegion*string required #
The source resource Region.
resourceTypestringresource_typestrresourceTypeStringResourceTypestringResourceType*string required #
The source resource type.