Class CfnResource

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable
Direct Known Subclasses:
CfnAccelerator, CfnAcceptedPortfolioShare, CfnAccessEntry, CfnAccessGrant, CfnAccessGrantsInstance, CfnAccessGrantsLocation, CfnAccessKey, CfnAccessLogSubscription, CfnAccessor, CfnAccessPoint, CfnAccessPoint, CfnAccessPoint, CfnAccessPoint, CfnAccessPointPolicy, CfnAccessPolicy, CfnAccessPolicy, CfnAccount, CfnAccount, CfnAccount, CfnAccountAlias, CfnAccountAuditConfiguration, CfnAccountPolicy, CfnACL, CfnActivity, CfnAddon, CfnADMChannel, CfnAgent, CfnAgent, CfnAgentAlias, CfnAggregationAuthorization, CfnAgreement, CfnAlarm, CfnAlarm, CfnAlarmModel, CfnAlert, CfnAlias, CfnAlias, CfnAlias, CfnAlias, CfnAllowList, CfnAnalysis, CfnAnalysisTemplate, CfnAnalyzer, CfnAnnotationStore, CfnAnomalyDetector, CfnAnomalyDetector, CfnAnomalyMonitor, CfnAnomalySubscription, CfnApi, CfnApi, CfnApiCache, CfnApiDestination, CfnApiGatewayManagedOverrides, CfnApiKey, CfnApiKey, CfnAPIKey, CfnApiMapping, CfnAPNSChannel, CfnAPNSSandboxChannel, CfnAPNSVoipChannel, CfnAPNSVoipSandboxChannel, CfnApp, CfnApp, CfnApp, CfnApp, CfnApp, CfnAppBlock, CfnAppBlockBuilder, CfnAppImageConfig, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplication, CfnApplicationAssignment, CfnApplicationCloudWatchLoggingOption, CfnApplicationCloudWatchLoggingOptionV2, CfnApplicationEntitlementAssociation, CfnApplicationFleetAssociation, CfnApplicationInstance, CfnApplicationOutput, CfnApplicationOutput, CfnApplicationOutputV2, CfnApplicationReferenceDataSource, CfnApplicationReferenceDataSource, CfnApplicationReferenceDataSourceV2, CfnApplicationSettings, CfnApplicationV2, CfnApplicationVersion, CfnAppMonitor, CfnApprovedOrigin, CfnArchive, CfnAssessment, CfnAssessmentTarget, CfnAssessmentTemplate, CfnAsset, CfnAsset, CfnAssetModel, CfnAssignment, CfnAssistant, CfnAssistantAssociation, CfnAssociation, CfnAttributeGroup, CfnAttributeGroupAssociation, CfnAuthorizer, CfnAuthorizer, CfnAuthorizer, CfnAuthPolicy, CfnAutomationRule, CfnAutoScalingConfiguration, CfnAutoScalingGroup, CfnAwsLogSource, CfnBackupPlan, CfnBackupSelection, CfnBackupVault, CfnBaiduChannel, CfnBasePathMapping, CfnBatchScramSecret, CfnBillingGroup, CfnBillingGroup, CfnBot, CfnBotAlias, CfnBotVersion, CfnBranch, CfnBridge, CfnBridgeOutput, CfnBridgeSource, CfnBroker, CfnBrowserSettings, CfnBucket, CfnBucket, CfnBucket, CfnBucketPolicy, CfnBucketPolicy, CfnBucketPolicy, CfnBudget, CfnBudgetsAction, CfnBuild, CfnByteMatchSet, CfnByteMatchSet, CfnCACertificate, CfnCacheCluster, CfnCachePolicy, CfnCalculatedAttributeDefinition, CfnCampaign, CfnCampaign, CfnCampaign, CfnCanary, CfnCapability, CfnCapacityProvider, CfnCapacityReservation, CfnCapacityReservation, CfnCapacityReservationFleet, CfnCarrierGateway, CfnCell, CfnCertificate, CfnCertificate, CfnCertificate, CfnCertificate, CfnCertificate, CfnCertificate, CfnCertificateAuthority, CfnCertificateAuthorityActivation, CfnCertificateProvider, CfnChannel, CfnChannel, CfnChannel, CfnChannel, CfnChannel, CfnChannel, CfnChannel, CfnChannelGroup, CfnChannelPolicy, CfnChannelPolicy, CfnCidrCollection, CfnCisScanConfiguration, CfnClassifier, CfnClientCertificate, CfnClientVpnAuthorizationRule, CfnClientVpnEndpoint, CfnClientVpnRoute, CfnClientVpnTargetNetworkAssociation, CfnCloudFormationProduct, CfnCloudFormationProvisionedProduct, CfnCloudFrontOriginAccessIdentity, CfnCluster, CfnCluster, CfnCluster, CfnCluster, CfnCluster, CfnCluster, CfnCluster, CfnCluster, CfnCluster, CfnClusterCapacityProviderAssociations, CfnClusterParameterGroup, CfnClusterPolicy, CfnClusterSecurityGroup, CfnClusterSecurityGroupIngress, CfnClusterSubnetGroup, CfnCodeRepository, CfnCodeSigningConfig, CfnCollaboration, CfnCollection, CfnCollection, CfnComponent, CfnComponent, CfnComponentType, CfnComponentVersion, CfnCompositeAlarm, CfnComputeEnvironment, CfnConfig, CfnConfigRule, CfnConfiguration, CfnConfiguration, CfnConfigurationAggregator, CfnConfigurationAssociation, CfnConfigurationPolicy, CfnConfigurationProfile, CfnConfigurationRecorder, CfnConfigurationSet, CfnConfigurationSet, CfnConfigurationSetEventDestination, CfnConfigurationSetEventDestination, CfnConfigurationTemplate, CfnConfiguredTable, CfnConfiguredTableAssociation, CfnConformancePack, CfnConnectAttachment, CfnConnection, CfnConnection, CfnConnection, CfnConnection, CfnConnectionAlias, CfnConnector, CfnConnector, CfnConnector, CfnConnector, CfnConnectorDefinition, CfnConnectorDefinitionVersion, CfnConnectorProfile, CfnConnectPeer, CfnContact, CfnContactChannel, CfnContactFlow, CfnContactFlowModule, CfnContactList, CfnContainer, CfnContainer, CfnContainerGroupDefinition, CfnContainerRecipe, CfnContinuousDeploymentPolicy, CfnControlPanel, CfnCoreDefinition, CfnCoreDefinitionVersion, CfnCoreNetwork, CfnCostCategory, CfnCrawler, CfnCRL, CfnCrossAccountAttachment, CfnCustomActionType, CfnCustomDataIdentifier, CfnCustomDBEngineVersion, CfnCustomEntityType, CfnCustomerGateway, CfnCustomerGatewayAssociation, CfnCustomLineItem, CfnCustomMetric, CfnCustomPlugin, CfnCustomResource, CfnCustomResource, CfnDashboard, CfnDashboard, CfnDashboard, CfnDatabase, CfnDatabase, CfnDatabase, CfnDataCatalog, CfnDataCatalogEncryptionSettings, CfnDataCellsFilter, CfnDataflowEndpointGroup, CfnDataIntegration, CfnDataLake, CfnDataLakeSettings, CfnDataProvider, CfnDataQualityJobDefinition, CfnDataQualityRuleset, CfnDataRepositoryAssociation, CfnDataset, CfnDataset, CfnDataset, CfnDataset, CfnDataSet, CfnDatasetGroup, CfnDatasetGroup, CfnDataSource, CfnDataSource, CfnDataSource, CfnDataSource, CfnDataSource, CfnDataSource, CfnDatastore, CfnDatastore, CfnDBCluster, CfnDBCluster, CfnDBCluster, CfnDBClusterParameterGroup, CfnDBClusterParameterGroup, CfnDBClusterParameterGroup, CfnDBInstance, CfnDBInstance, CfnDBInstance, CfnDBParameterGroup, CfnDBParameterGroup, CfnDBProxy, CfnDBProxyEndpoint, CfnDBProxyTargetGroup, CfnDBSecurityGroup, CfnDBSecurityGroupIngress, CfnDBSubnetGroup, CfnDBSubnetGroup, CfnDBSubnetGroup, CfnDecoderManifest, CfnDedicatedIpPool, CfnDedicatedIpPool, CfnDefaultViewAssociation, CfnDelegatedAdmin, CfnDelivery, CfnDeliveryChannel, CfnDeliveryDestination, CfnDeliverySource, CfnDeliveryStream, CfnDeployment, CfnDeployment, CfnDeployment, CfnDeployment, CfnDeploymentConfig, CfnDeploymentGroup, CfnDeploymentStrategy, CfnDestination, CfnDestination, CfnDetector, CfnDetector, CfnDetectorModel, CfnDevEndpoint, CfnDevice, CfnDevice, CfnDevice, CfnDeviceDefinition, CfnDeviceDefinitionVersion, CfnDeviceFleet, CfnDevicePool, CfnDeviceProfile, CfnDHCPOptions, CfnDimension, CfnDirectoryBucket, CfnDirectoryConfig, CfnDirectoryRegistration, CfnDiscoverer, CfnDisk, CfnDistribution, CfnDistribution, CfnDistributionConfiguration, CfnDNSSEC, CfnDocument, CfnDocumentationPart, CfnDocumentationVersion, CfnDocumentClassifier, CfnDomain, CfnDomain, CfnDomain, CfnDomain, CfnDomain, CfnDomain, CfnDomain, CfnDomain, CfnDomain, CfnDomainConfiguration, CfnDomainName, CfnDomainName, CfnDomainName, CfnDomainNameApiAssociation, CfnDRTAccess, CfnEC2Fleet, CfnEgressOnlyInternetGateway, CfnEIP, CfnEIPAssociation, CfnElasticLoadBalancerAttachment, CfnEmailChannel, CfnEmailIdentity, CfnEmailTemplate, CfnEnabledBaseline, CfnEnabledControl, CfnEnclaveCertificateIamRoleAssociation, CfnEncoderConfiguration, CfnEndpoint, CfnEndpoint, CfnEndpoint, CfnEndpoint, CfnEndpointAccess, CfnEndpointAuthorization, CfnEndpointConfig, CfnEndpointGroup, CfnEntitlement, CfnEntity, CfnEntityType, CfnEnvironment, CfnEnvironment, CfnEnvironment, CfnEnvironment, CfnEnvironment, CfnEnvironment, CfnEnvironment, CfnEnvironment, CfnEnvironmentAccountConnection, CfnEnvironmentBlueprintConfiguration, CfnEnvironmentEC2, CfnEnvironmentProfile, CfnEnvironmentTemplate, CfnEvaluationForm, CfnEventBus, CfnEventBusPolicy, CfnEventDataStore, CfnEventIntegration, CfnEventInvokeConfig, CfnEventSourceMapping, CfnEventStream, CfnEventStream, CfnEventSubscription, CfnEventSubscription, CfnEventSubscription, CfnEventSubscription, CfnEventSubscription, CfnEventType, CfnExecutionPlan, CfnExperiment, CfnExperimentTemplate, CfnExport, CfnExtension, CfnExtensionAssociation, CfnFaq, CfnFargateProfile, CfnFarm, CfnFeature, CfnFeatureGroup, CfnFHIRDatastore, CfnFileSystem, CfnFileSystem, CfnFilter, CfnFilter, CfnFindingAggregator, CfnFindingsFilter, CfnFirewall, CfnFirewallDomainList, CfnFirewallPolicy, CfnFirewallRuleGroup, CfnFirewallRuleGroupAssociation, CfnFleet, CfnFleet, CfnFleet, CfnFleet, CfnFleet, CfnFleet, CfnFleetMetric, CfnFlow, CfnFlow, CfnFlowEntitlement, CfnFlowLog, CfnFlowOutput, CfnFlowSource, CfnFlowTemplate, CfnFlowVpcInterface, CfnFlywheel, CfnForm, CfnFramework, CfnFunction, CfnFunction, CfnFunction, CfnFunctionConfiguration, CfnFunctionDefinition, CfnFunctionDefinitionVersion, CfnFuotaTask, CfnGameServerGroup, CfnGameSessionQueue, CfnGateway, CfnGateway, CfnGatewayResponse, CfnGatewayRoute, CfnGatewayRouteTableAssociation, CfnGCMChannel, CfnGeofenceCollection, CfnGeoMatchSet, CfnGitHubRepository, CfnGlobalCluster, CfnGlobalNetwork, CfnGlobalReplicationGroup, CfnGlobalTable, CfnGrant, CfnGraph, CfnGraph, CfnGraphQLApi, CfnGraphQLSchema, CfnGroup, CfnGroup, CfnGroup, CfnGroup, CfnGroup, CfnGroup, CfnGroupMembership, CfnGroupPolicy, CfnGroupProfile, CfnGroupVersion, CfnGuardrail, CfnGuardrailVersion, CfnHealthCheck, CfnHookDefaultVersion, CfnHookDefaultVersion, CfnHookTypeConfig, CfnHookTypeConfig, CfnHookVersion, CfnHookVersion, CfnHost, CfnHostedConfigurationVersion, CfnHostedZone, CfnHoursOfOperation, CfnHttpApi, CfnHttpNamespace, CfnHub, CfnHypervisor, CfnIdentity, CfnIdentityPool, CfnIdentityPoolPrincipalTag, CfnIdentityPoolRoleAttachment, CfnIdentityProvider, CfnIdentityProviderConfig, CfnIdentitySource, CfnIdMappingWorkflow, CfnIdNamespace, CfnImage, CfnImage, CfnImageBuilder, CfnImagePipeline, CfnImageRecipe, CfnImageVersion, CfnInAppTemplate, CfnIndex, CfnIndex, CfnIndex, CfnInferenceComponent, CfnInferenceExperiment, CfnInferenceScheduler, CfnInfluxDBInstance, CfnInfrastructureConfiguration, CfnInput, CfnInput, CfnInputSecurityGroup, CfnInsight, CfnInsightRule, CfnInstance, CfnInstance, CfnInstance, CfnInstance, CfnInstance, CfnInstance, CfnInstanceAccessControlAttributeConfiguration, CfnInstanceConnectEndpoint, CfnInstanceFleetConfig, CfnInstanceGroupConfig, CfnInstanceProfile, CfnInstanceProfile, CfnInstanceProfile, CfnInstanceStorageConfig, CfnIntegration, CfnIntegration, CfnIntegration, CfnIntegrationAssociation, CfnIntegrationResponse, CfnInternetGateway, CfnIpAccessSettings, CfnIPAM, CfnIPAMAllocation, CfnIPAMPool, CfnIPAMPoolCidr, CfnIPAMResourceDiscovery, CfnIPAMResourceDiscoveryAssociation, CfnIPAMScope, CfnIPSet, CfnIPSet, CfnIPSet, CfnIPSet, CfnJob, CfnJob, CfnJobDefinition, CfnJobQueue, CfnJobTemplate, CfnJobTemplate, CfnKey, CfnKey, CfnKeyGroup, CfnKeyPair, CfnKeySigningKey, CfnKeyspace, CfnKeyValueStore, CfnKnowledgeBase, CfnKnowledgeBase, CfnLabel, CfnLandingZone, CfnLaunch, CfnLaunchConfiguration, CfnLaunchNotificationConstraint, CfnLaunchProfile, CfnLaunchRoleConstraint, CfnLaunchTemplate, CfnLaunchTemplateConstraint, CfnLayer, CfnLayerVersion, CfnLayerVersion, CfnLayerVersionPermission, CfnLedger, CfnLicense, CfnLicenseEndpoint, CfnLifecycleHook, CfnLifecyclePolicy, CfnLifecyclePolicy, CfnLifecyclePolicy, CfnLink, CfnLink, CfnLinkAssociation, CfnList, CfnListener, CfnListener, CfnListener, CfnListenerCertificate, CfnListenerRule, CfnLiveSource, CfnLoadBalancer, CfnLoadBalancer, CfnLoadBalancer, CfnLoadBalancerTlsCertificate, CfnLocalGatewayRoute, CfnLocalGatewayRouteTable, CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociation, CfnLocalGatewayRouteTableVPCAssociation, CfnLocation, CfnLocationAzureBlob, CfnLocationEFS, CfnLocationFSxLustre, CfnLocationFSxONTAP, CfnLocationFSxOpenZFS, CfnLocationFSxWindows, CfnLocationHDFS, CfnLocationNFS, CfnLocationObjectStorage, CfnLocationS3, CfnLocationSMB, CfnLogAnomalyDetectionIntegration, CfnLogAnomalyDetector, CfnLogDeliveryConfiguration, CfnLoggerDefinition, CfnLoggerDefinitionVersion, CfnLogging, CfnLoggingConfiguration, CfnLoggingConfiguration, CfnLoggingConfiguration, CfnLogGroup, CfnLogStream, CfnMacro, CfnMacro, CfnMaintenanceWindow, CfnMaintenanceWindowTarget, CfnMaintenanceWindowTask, CfnManagedPolicy, CfnMap, CfnMaster, CfnMatchingWorkflow, CfnMatchmakingConfiguration, CfnMatchmakingRuleSet, CfnMember, CfnMember, CfnMemberInvitation, CfnMembership, CfnMesh, CfnMeteredProduct, CfnMethod, CfnMetricFilter, CfnMetricStream, CfnMicrosoftAD, CfnMicrosoftTeamsChannelConfiguration, CfnMigrationProject, CfnMissionProfile, CfnMitigationAction, CfnMLTransform, CfnModel, CfnModel, CfnModel, CfnModelBiasJobDefinition, CfnModelCard, CfnModelExplainabilityJobDefinition, CfnModelManifest, CfnModelPackage, CfnModelPackageGroup, CfnModelQualityJobDefinition, CfnModuleDefaultVersion, CfnModuleDefaultVersion, CfnModuleVersion, CfnModuleVersion, CfnMonitor, CfnMonitoringSchedule, CfnMonitoringSubscription, CfnMountTarget, CfnMulticastGroup, CfnMultiplex, CfnMultiplexprogram, CfnMultiRegionAccessPoint, CfnMultiRegionAccessPointPolicy, CfnNamedQuery, CfnNamespace, CfnNatGateway, CfnNetworkAcl, CfnNetworkAclEntry, CfnNetworkAnalyzerConfiguration, CfnNetworkInsightsAccessScope, CfnNetworkInsightsAccessScopeAnalysis, CfnNetworkInsightsAnalysis, CfnNetworkInsightsPath, CfnNetworkInterface, CfnNetworkInterfaceAttachment, CfnNetworkInterfacePermission, CfnNetworkPerformanceMetricSubscription, CfnNetworkProfile, CfnNetworkSettings, CfnNode, CfnNodegroup, CfnNotebookInstance, CfnNotebookInstanceLifecycleConfig, CfnNotificationChannel, CfnNotificationChannel, CfnNotificationRule, CfnObjectType, CfnObservabilityConfiguration, CfnOIDCProvider, CfnOptionGroup, CfnOrganization, CfnOrganizationAdmin, CfnOrganizationalUnit, CfnOrganizationConfigRule, CfnOrganizationConfiguration, CfnOrganizationConformancePack, CfnOriginAccessControl, CfnOriginEndpoint, CfnOriginEndpoint, CfnOriginEndpointPolicy, CfnOriginRequestPolicy, CfnOutcome, CfnOutpostResolver, CfnPackage, CfnPackageGroup, CfnPackageVersion, CfnPackagingConfiguration, CfnPackagingGroup, CfnParameter, CfnParameterGroup, CfnParameterGroup, CfnParameterGroup, CfnPartition, CfnPartnerAccount, CfnPartnership, CfnPatchBaseline, CfnPermission, CfnPermission, CfnPermission, CfnPermissions, CfnPermissionSet, CfnPhoneNumber, CfnPipe, CfnPipeline, CfnPipeline, CfnPipeline, CfnPipeline, CfnPipeline, CfnPlaceIndex, CfnPlacement, CfnPlacementGroup, CfnPlan, CfnPlaybackConfiguration, CfnPlaybackKeyPair, CfnPlaybackRestrictionPolicy, CfnPlugin, CfnPodIdentityAssociation, CfnPolicy, CfnPolicy, CfnPolicy, CfnPolicy, CfnPolicy, CfnPolicyAssociation, CfnPolicyPrincipalAttachment, CfnPolicyStatement, CfnPolicyStore, CfnPolicyTemplate, CfnPortal, CfnPortal, CfnPortfolio, CfnPortfolioPrincipalAssociation, CfnPortfolioProductAssociation, CfnPortfolioShare, CfnPredefinedAttribute, CfnPrefixList, CfnPreparedStatement, CfnPreset, CfnPricingPlan, CfnPricingRule, CfnPrimaryTaskSet, CfnPrincipalPermissions, CfnPrivacyBudgetTemplate, CfnPrivateDnsNamespace, CfnPrivateGraphEndpoint, CfnProactiveEngagement, CfnProductSubscription, CfnProfile, CfnProfile, CfnProfile, CfnProfile, CfnProfileAssociation, CfnProfilePermission, CfnProfileResourceAssociation, CfnProfilingGroup, CfnProject, CfnProject, CfnProject, CfnProject, CfnProject, CfnProject, CfnProject, CfnProject, CfnProject, CfnProject, CfnProjectMembership, CfnPrompt, CfnProtection, CfnProtectionGroup, CfnProvisioningTemplate, CfnPublicDnsNamespace, CfnPublicKey, CfnPublicRepository, CfnPublicTypeVersion, CfnPublicTypeVersion, CfnPublisher, CfnPublisher, CfnPullThroughCacheRule, CfnPushTemplate, CfnQueryDefinition, CfnQueue, CfnQueue, CfnQueue, CfnQueue, CfnQueueEnvironment, CfnQueueFleetAssociation, CfnQueueInlinePolicy, CfnQueuePolicy, CfnQuickConnect, CfnRateBasedRule, CfnReadinessCheck, CfnRealtimeLogConfig, CfnReceiptFilter, CfnReceiptRule, CfnReceiptRuleSet, CfnRecipe, CfnRecordingConfiguration, CfnRecordSet, CfnRecordSetGroup, CfnRecoveryGroup, CfnReferenceStore, CfnRefreshSchedule, CfnRegexPatternSet, CfnRegexPatternSet, CfnRegistry, CfnRegistry, CfnRegistryPolicy, CfnRegistryPolicy, CfnRemediationConfiguration, CfnReplicaKey, CfnReplicationConfig, CfnReplicationConfiguration, CfnReplicationGroup, CfnReplicationInstance, CfnReplicationSet, CfnReplicationSubnetGroup, CfnReplicationTask, CfnReplicator, CfnReportDefinition, CfnReportGroup, CfnReportPlan, CfnRepository, CfnRepository, CfnRepository, CfnRepositoryAssociation, CfnRepositoryCreationTemplate, CfnRepositoryLink, CfnRequestValidator, CfnResiliencyPolicy, CfnResolver, CfnResolverConfig, CfnResolverDNSSECConfig, CfnResolverEndpoint, CfnResolverQueryLoggingConfig, CfnResolverQueryLoggingConfigAssociation, CfnResolverRule, CfnResolverRuleAssociation, CfnResource, CfnResource, CfnResourceAssociation, CfnResourceCollection, CfnResourceDataSync, CfnResourceDefaultVersion, CfnResourceDefaultVersion, CfnResourceDefinition, CfnResourceDefinitionVersion, CfnResourceGroup, CfnResourcePolicy, CfnResourcePolicy, CfnResourcePolicy, CfnResourcePolicy, CfnResourcePolicy, CfnResourcePolicy, CfnResourcePolicy, CfnResourcePolicy, CfnResourceSet, CfnResourceSet, CfnResourceShare, CfnResourceSpecificLogging, CfnResourceUpdateConstraint, CfnResourceVersion, CfnResourceVersion, CfnResponseHeadersPolicy, CfnResponsePlan, CfnRestApi, CfnRestoreTestingPlan, CfnRestoreTestingSelection, CfnRetriever, CfnRobot, CfnRobotApplication, CfnRobotApplicationVersion, CfnRole, CfnRoleAlias, CfnRolePolicy, CfnRoom, CfnRotation, CfnRotationSchedule, CfnRoute, CfnRoute, CfnRoute, CfnRoute, CfnRouteCalculator, CfnRouteResponse, CfnRouteTable, CfnRoutingControl, CfnRoutingProfile, CfnRule, CfnRule, CfnRule, CfnRule, CfnRule, CfnRuleGroup, CfnRuleGroup, CfnRuleGroupsNamespace, CfnRuleset, CfnRunGroup, CfnSafetyRule, CfnSAMLProvider, CfnSamplingRule, CfnScalableTarget, CfnScalingPlan, CfnScalingPolicy, CfnScalingPolicy, CfnScene, CfnSchedule, CfnSchedule, CfnScheduledAction, CfnScheduledAction, CfnScheduledAudit, CfnScheduledQuery, CfnScheduleGroup, CfnSchedulingPolicy, CfnSchema, CfnSchema, CfnSchema, CfnSchemaMapping, CfnSchemaVersion, CfnSchemaVersionMetadata, CfnScraper, CfnScript, CfnSecret, CfnSecretTargetAttachment, CfnSecurityConfig, CfnSecurityConfiguration, CfnSecurityConfiguration, CfnSecurityControl, CfnSecurityGroup, CfnSecurityGroup, CfnSecurityGroupEgress, CfnSecurityGroupIngress, CfnSecurityGroupIngress, CfnSecurityKey, CfnSecurityPolicy, CfnSecurityProfile, CfnSecurityProfile, CfnSegment, CfnSegment, CfnSequenceStore, CfnServer, CfnServer, CfnServerCertificate, CfnServerlessCache, CfnServerlessCluster, CfnService, CfnService, CfnService, CfnService, CfnService, CfnServiceAction, CfnServiceActionAssociation, CfnServiceLinkedRole, CfnServiceNetwork, CfnServiceNetworkServiceAssociation, CfnServiceNetworkVpcAssociation, CfnServicePrincipalName, CfnServiceProfile, CfnServiceTemplate, CfnSession, CfnSignalCatalog, CfnSignalingChannel, CfnSigningProfile, CfnSimpleAD, CfnSimpleTable, CfnSimulation, CfnSimulationApplication, CfnSimulationApplicationVersion, CfnSink, CfnSite, CfnSiteToSiteVpnAttachment, CfnSizeConstraintSet, CfnSizeConstraintSet, CfnSkill, CfnSlackChannelConfiguration, CfnSlackChannelConfiguration, CfnSlackWorkspaceConfiguration, CfnSMSChannel, CfnSmsTemplate, CfnSnapshot, CfnSnapshotBlockPublicAccess, CfnSoftwarePackage, CfnSoftwarePackageVersion, CfnSolution, CfnSourceApiAssociation, CfnSourceCredential, CfnSourceLocation, CfnSpace, CfnSpotFleet, CfnSqlInjectionMatchSet, CfnSqlInjectionMatchSet, CfnStack, CfnStack, CfnStack, CfnStack, CfnStackFleetAssociation, CfnStackSet, CfnStackSet, CfnStackSetConstraint, CfnStackUserAssociation, CfnStage, CfnStage, CfnStage, CfnStandard, CfnStateMachine, CfnStateMachine, CfnStateMachineAlias, CfnStateMachineVersion, CfnStaticIp, CfnStep, CfnStorageConfiguration, CfnStorageLens, CfnStorageLensGroup, CfnStorageProfile, CfnStorageSystem, CfnStorageVirtualMachine, CfnStoredQuery, CfnStream, CfnStream, CfnStream, CfnStreamConsumer, CfnStreamingDistribution, CfnStreamingImage, CfnStreamKey, CfnStreamProcessor, CfnStudio, CfnStudio, CfnStudioComponent, CfnStudioSessionMapping, CfnSubnet, CfnSubnetCidrBlock, CfnSubnetGroup, CfnSubnetGroup, CfnSubnetGroup, CfnSubnetNetworkAclAssociation, CfnSubnetRouteTableAssociation, CfnSubscriber, CfnSubscriberNotification, CfnSubscription, CfnSubscriptionDefinition, CfnSubscriptionDefinitionVersion, CfnSubscriptionFilter, CfnSubscriptionTarget, CfnSuiteDefinition, CfnSyncConfiguration, CfnSyncJob, CfnTable, CfnTable, CfnTable, CfnTable, CfnTableOptimizer, CfnTag, CfnTagAssociation, CfnTagOption, CfnTagOptionAssociation, CfnTargetAccountConfiguration, CfnTargetGroup, CfnTargetGroup, CfnTask, CfnTaskDefinition, CfnTaskDefinition, CfnTaskSet, CfnTaskTemplate, CfnTemplate, CfnTemplate, CfnTemplate, CfnTemplateGroupAccessControlEntry, CfnTestGridProject, CfnTheme, CfnTheme, CfnThing, CfnThingGroup, CfnThingPrincipalAttachment, CfnThingType, CfnThreatIntelSet, CfnTLSInspectionConfiguration, CfnTopic, CfnTopic, CfnTopicInlinePolicy, CfnTopicPolicy, CfnTopicRule, CfnTopicRuleDestination, CfnTracker, CfnTrackerConsumer, CfnTrafficDistributionGroup, CfnTrafficMirrorFilter, CfnTrafficMirrorFilterRule, CfnTrafficMirrorSession, CfnTrafficMirrorTarget, CfnTrail, CfnTrainingDataset, CfnTransformer, CfnTransitGateway, CfnTransitGatewayAttachment, CfnTransitGatewayConnect, CfnTransitGatewayMulticastDomain, CfnTransitGatewayMulticastDomainAssociation, CfnTransitGatewayMulticastGroupMember, CfnTransitGatewayMulticastGroupSource, CfnTransitGatewayPeering, CfnTransitGatewayPeeringAttachment, CfnTransitGatewayRegistration, CfnTransitGatewayRoute, CfnTransitGatewayRouteTable, CfnTransitGatewayRouteTableAssociation, CfnTransitGatewayRouteTableAttachment, CfnTransitGatewayRouteTablePropagation, CfnTransitGatewayVpcAttachment, CfnTrigger, CfnTrustAnchor, CfnTrustStore, CfnTrustStore, CfnTrustStoreRevocation, CfnTypeActivation, CfnTypeActivation, CfnUrl, CfnUsagePlan, CfnUsagePlanKey, CfnUser, CfnUser, CfnUser, CfnUser, CfnUser, CfnUser, CfnUserAccessLoggingSettings, CfnUserGroup, CfnUserHierarchyGroup, CfnUserPolicy, CfnUserPool, CfnUserPoolClient, CfnUserPoolDomain, CfnUserPoolGroup, CfnUserPoolIdentityProvider, CfnUserPoolResourceServer, CfnUserPoolRiskConfigurationAttachment, CfnUserPoolUICustomizationAttachment, CfnUserPoolUser, CfnUserPoolUserToGroupAttachment, CfnUserProfile, CfnUserProfile, CfnUserProfile, CfnUserSettings, CfnUserToGroupAddition, CfnVariable, CfnVariantStore, CfnVdmAttributes, CfnVehicle, CfnVerifiedAccessEndpoint, CfnVerifiedAccessGroup, CfnVerifiedAccessInstance, CfnVerifiedAccessTrustProvider, CfnVersion, CfnView, CfnView, CfnViewVersion, CfnVirtualCluster, CfnVirtualGateway, CfnVirtualMFADevice, CfnVirtualNode, CfnVirtualRouter, CfnVirtualService, CfnVodSource, CfnVoiceChannel, CfnVolume, CfnVolume, CfnVolume, CfnVolumeAttachment, CfnVPC, CfnVpcAttachment, CfnVPCCidrBlock, CfnVpcConnection, CfnVPCConnection, CfnVpcConnector, CfnVPCDHCPOptionsAssociation, CfnVPCEConfiguration, CfnVpcEndpoint, CfnVPCEndpoint, CfnVPCEndpointConnectionNotification, CfnVPCEndpointService, CfnVPCEndpointServicePermissions, CfnVPCGatewayAttachment, CfnVpcIngressConnection, CfnVpcLink, CfnVpcLink, CfnVPCPeeringConnection, CfnVPNConnection, CfnVPNConnectionRoute, CfnVPNGateway, CfnVPNGatewayRoutePropagation, CfnWaitCondition, CfnWaitCondition, CfnWaitConditionHandle, CfnWaitConditionHandle, CfnWALWorkspace, CfnWarmPool, CfnWebACL, CfnWebACL, CfnWebACL, CfnWebACLAssociation, CfnWebACLAssociation, CfnWebExperience, CfnWebhook, CfnWirelessDevice, CfnWirelessDeviceImportTask, CfnWirelessGateway, CfnWorkerConfiguration, CfnWorkflow, CfnWorkflow, CfnWorkflow, CfnWorkflow, CfnWorkgroup, CfnWorkGroup, CfnWorkspace, CfnWorkspace, CfnWorkspace, CfnWorkspace, CfnWorkteam, CfnXssMatchSet, CfnXssMatchSet, CfnZonalAutoshiftConfiguration

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:13.209Z") @Stability(Stable) public class CfnResource extends CfnRefElement
Represents a CloudFormation resource.

Example:

 public class MyConstruct extends Resource implements ITaggable {
     public final Object tags;
     public MyConstruct(Construct scope, String id) {
         super(scope, id);
         CfnResource.Builder.create(this, "Resource")
                 .type("Whatever::The::Type")
                 .properties(Map.of(
                         // ...
                         "Tags", this.tags.getRenderedTags()))
                 .build();
     }
 }
 
  • Constructor Details

    • CfnResource

      protected CfnResource(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnResource

      protected CfnResource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnResource

      @Stability(Stable) public CfnResource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnResourceProps props)
      Creates a resource construct.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • isCfnResource

      @Stability(Stable) @NotNull public static Boolean isCfnResource(@NotNull Object x)
      Check whether the given object is a CfnResource.

      Parameters:
      x - This parameter is required.
    • addDeletionOverride

      @Stability(Stable) public void addDeletionOverride(@NotNull String path)
      Syntactic sugar for addOverride(path, undefined).

      Parameters:
      path - The path of the value to delete. This parameter is required.
    • addDependency

      @Stability(Stable) public void addDependency(@NotNull CfnResource target)
      Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

      This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

      Parameters:
      target - This parameter is required.
    • addDependsOn

      @Stability(Deprecated) @Deprecated public void addDependsOn(@NotNull CfnResource target)
      Deprecated.
      use addDependency
      (deprecated) Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

      Parameters:
      target - This parameter is required.
    • addMetadata

      @Stability(Stable) public void addMetadata(@NotNull String key, @NotNull Object value)
      Add a value to the CloudFormation Resource Metadata.

      Parameters:
      key - This parameter is required.
      value - This parameter is required.
      See Also:
    • addOverride

      @Stability(Stable) public void addOverride(@NotNull String path, @NotNull Object value)
      Adds an override to the synthesized CloudFormation resource.

      To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).

      If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

      To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

      For example,

       cfnResource.addOverride("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", List.of("myattribute"));
       cfnResource.addOverride("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE");
       

      would add the overrides

       "Properties": {
         "GlobalSecondaryIndexes": [
           {
             "Projection": {
               "NonKeyAttributes": [ "myattribute" ]
               ...
             }
             ...
           },
           {
             "ProjectionType": "INCLUDE"
             ...
           },
         ]
         ...
       }
       

      The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.

      Parameters:
      path -
      • The path of the property, you can use dot notation to override values in complex types.
      This parameter is required.
      value -
      • The value.
      This parameter is required.
    • addPropertyDeletionOverride

      @Stability(Stable) public void addPropertyDeletionOverride(@NotNull String propertyPath)
      Adds an override that deletes the value of a property from the resource definition.

      Parameters:
      propertyPath - The path to the property. This parameter is required.
    • addPropertyOverride

      @Stability(Stable) public void addPropertyOverride(@NotNull String propertyPath, @NotNull Object value)
      Adds an override to a resource property.

      Syntactic sugar for addOverride("Properties.<...>", value).

      Parameters:
      propertyPath - The path of the property. This parameter is required.
      value - The value. This parameter is required.
    • applyRemovalPolicy

      @Stability(Stable) public void applyRemovalPolicy(@Nullable RemovalPolicy policy, @Nullable RemovalPolicyOptions options)
      Sets the deletion policy of the resource based on the removal policy specified.

      The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

      The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:

      Parameters:
      policy -
      options -
      See Also:
    • applyRemovalPolicy

      @Stability(Stable) public void applyRemovalPolicy(@Nullable RemovalPolicy policy)
      Sets the deletion policy of the resource based on the removal policy specified.

      The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

      The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:

      Parameters:
      policy -
      See Also:
    • applyRemovalPolicy

      @Stability(Stable) public void applyRemovalPolicy()
      Sets the deletion policy of the resource based on the removal policy specified.

      The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

      The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:

      See Also:
    • getAtt

      @Stability(Stable) @NotNull public Reference getAtt(@NotNull String attributeName, @Nullable ResolutionTypeHint typeHint)
      Returns a token for an runtime attribute of this resource.

      Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

      Parameters:
      attributeName - The name of the attribute. This parameter is required.
      typeHint -
    • getAtt

      @Stability(Stable) @NotNull public Reference getAtt(@NotNull String attributeName)
      Returns a token for an runtime attribute of this resource.

      Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

      Parameters:
      attributeName - The name of the attribute. This parameter is required.
    • getMetadata

      @Stability(Stable) @NotNull public Object getMetadata(@NotNull String key)
      Retrieve a value value from the CloudFormation Resource Metadata.

      Parameters:
      key - This parameter is required.
      See Also:
    • obtainDependencies

      @Stability(Stable) @NotNull public List<Object> obtainDependencies()
      Retrieves an array of resources this resource depends on.

      This assembles dependencies on resources across stacks (including nested stacks) automatically.

    • obtainResourceDependencies

      @Stability(Stable) @NotNull public List<CfnResource> obtainResourceDependencies()
      Get a shallow copy of dependencies between this resource and other resources in the same stack.
    • removeDependency

      @Stability(Stable) public void removeDependency(@NotNull CfnResource target)
      Indicates that this resource no longer depends on another resource.

      This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.

      Parameters:
      target - This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Parameters:
      props - This parameter is required.
    • replaceDependency

      @Stability(Stable) public void replaceDependency(@NotNull CfnResource target, @NotNull CfnResource newTarget)
      Replaces one dependency with another.

      Parameters:
      target - The dependency to replace. This parameter is required.
      newTarget - The new dependency to add. This parameter is required.
    • shouldSynthesize

      @Stability(Stable) @NotNull protected Boolean shouldSynthesize()
      Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.

      Returns:
      true if the resource should be included or false is the resource should be omitted.
    • toString

      @Stability(Stable) @NotNull public String toString()
      Returns a string representation of this construct.

      Overrides:
      toString in class software.constructs.Construct
      Returns:
      a string representation of this resource
    • validateProperties

      @Stability(Stable) protected void validateProperties(@NotNull Object _properties)
      Parameters:
      _properties - This parameter is required.
    • getCfnOptions

      @Stability(Stable) @NotNull public ICfnResourceOptions getCfnOptions()
      Options for this resource, such as condition, update policy etc.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
    • getCfnResourceType

      @Stability(Stable) @NotNull public String getCfnResourceType()
      AWS resource type.
    • getUpdatedProperites

      @Stability(Deprecated) @Deprecated @NotNull protected Map<String,Object> getUpdatedProperites()
      Deprecated.
      use updatedProperties

      Return properties modified after initiation

      Resources that expose mutable properties should override this function to collect and return the properties object for this resource.

      (deprecated) Deprecated.

    • getUpdatedProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getUpdatedProperties()
      Return properties modified after initiation.

      Resources that expose mutable properties should override this function to collect and return the properties object for this resource.