ResourceProps Struct
Construction properties for Resource.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const resourceProps: cdk.ResourceProps = {
account: 'account',
environmentFromArn: 'environmentFromArn',
physicalName: 'physicalName',
region: 'region',
};
Properties
The AWS account ID this resource belongs to.
default
Default: the resource is in the same account as the stack it belongs to
environmentFromArnstringenvironment_from_arnstrenvironmentFromArnStringEnvironmentFromArnstringEnvironmentFromArn*string= take environment from `account`,…#ARN to deduce region and account from.
The ARN is parsed and the account and region are taken from the ARN. This should be used for imported resources.
Cannot be supplied together with either account or region.
default
Default: take environment from account, region parameters, or use Stack environment.
physicalNamestringphysical_namestrphysicalNameStringPhysicalNamestringPhysicalName*string= The physical name will be alloca…#The value passed in by users to the physical name prop of the resource.
notes · default
undefinedimplies that a physical name will be allocated by CloudFormation during deployment.- a concrete value implies a specific physical name
PhysicalName.GENERATE_IF_NEEDEDis a marker that indicates that a physical will only be generated by the CDK if it is needed for cross-environment references. Otherwise, it will be allocated by CloudFormation.
Default: The physical name will be allocated by CloudFormation at deployment time
The AWS region this resource belongs to.
default
Default: the resource is in the same region as the stack it belongs to
Used as props by
BrowserCustomBaseCodeInterpreterCustomBaseEvaluatorBaseGatewayBaseGatewayTargetBaseMemoryBaseOnlineEvaluationBasePolicyBasePolicyEngineBaseRuntimeBaseRuntimeEndpointBaseAgentAliasBaseAgentBaseGuardrailBaseInferenceProfileBasePromptBaseVpcV2BaseServerlessCacheBaseUserBaseUserGroupBaseAliasBaseBuildBaseFleetBaseGameServerGroupBaseGameSessionQueueBaseMatchmakingConfigurationBaseMatchmakingRuleSetBaseScriptBaseCatalogBaseJobJobBaseWorkflowBaseContainerRecipeBaseClusterBaseDatabaseClusterBaseDatabaseInstanceBaseResourceAuthorizerStageBaseApiBaseEventApiBaseGraphqlApiBaseBrowserCustomBaseCodeInterpreterCustomBaseEvaluatorBaseGatewayBaseGatewayTargetBaseMemoryBaseOnlineEvaluationBasePolicyBasePolicyEngineBaseRuntimeBaseRuntimeEndpointBaseAlarmBaseTableBaseTableBaseV2VpcEndpointVpnConnectionBaseRepositoryBaseFileSystemBaseCatalogBaseJobJobBaseWorkflowBaseAssessmentTemplateFunctionBaseQualifiedFunctionBaseDatabaseClusterBaseDatabaseInstanceBaseBucketBaseProductInstanceBaseTopicBaseQueueBase