toValue method
Implementation
String toValue() {
switch (this) {
case ResourceType.awsEc2CustomerGateway:
return 'AWS::EC2::CustomerGateway';
case ResourceType.awsEc2Eip:
return 'AWS::EC2::EIP';
case ResourceType.awsEc2Host:
return 'AWS::EC2::Host';
case ResourceType.awsEc2Instance:
return 'AWS::EC2::Instance';
case ResourceType.awsEc2InternetGateway:
return 'AWS::EC2::InternetGateway';
case ResourceType.awsEc2NetworkAcl:
return 'AWS::EC2::NetworkAcl';
case ResourceType.awsEc2NetworkInterface:
return 'AWS::EC2::NetworkInterface';
case ResourceType.awsEc2RouteTable:
return 'AWS::EC2::RouteTable';
case ResourceType.awsEc2SecurityGroup:
return 'AWS::EC2::SecurityGroup';
case ResourceType.awsEc2Subnet:
return 'AWS::EC2::Subnet';
case ResourceType.awsCloudTrailTrail:
return 'AWS::CloudTrail::Trail';
case ResourceType.awsEc2Volume:
return 'AWS::EC2::Volume';
case ResourceType.awsEc2Vpc:
return 'AWS::EC2::VPC';
case ResourceType.awsEc2VPNConnection:
return 'AWS::EC2::VPNConnection';
case ResourceType.awsEc2VPNGateway:
return 'AWS::EC2::VPNGateway';
case ResourceType.awsEc2RegisteredHAInstance:
return 'AWS::EC2::RegisteredHAInstance';
case ResourceType.awsEc2NatGateway:
return 'AWS::EC2::NatGateway';
case ResourceType.awsEc2EgressOnlyInternetGateway:
return 'AWS::EC2::EgressOnlyInternetGateway';
case ResourceType.awsEc2VPCEndpoint:
return 'AWS::EC2::VPCEndpoint';
case ResourceType.awsEc2VPCEndpointService:
return 'AWS::EC2::VPCEndpointService';
case ResourceType.awsEc2FlowLog:
return 'AWS::EC2::FlowLog';
case ResourceType.awsEc2VPCPeeringConnection:
return 'AWS::EC2::VPCPeeringConnection';
case ResourceType.awsElasticsearchDomain:
return 'AWS::Elasticsearch::Domain';
case ResourceType.awsIamGroup:
return 'AWS::IAM::Group';
case ResourceType.awsIamPolicy:
return 'AWS::IAM::Policy';
case ResourceType.awsIamRole:
return 'AWS::IAM::Role';
case ResourceType.awsIamUser:
return 'AWS::IAM::User';
case ResourceType.awsElasticLoadBalancingV2LoadBalancer:
return 'AWS::ElasticLoadBalancingV2::LoadBalancer';
case ResourceType.awsAcmCertificate:
return 'AWS::ACM::Certificate';
case ResourceType.awsRdsDBInstance:
return 'AWS::RDS::DBInstance';
case ResourceType.awsRdsDBSubnetGroup:
return 'AWS::RDS::DBSubnetGroup';
case ResourceType.awsRdsDBSecurityGroup:
return 'AWS::RDS::DBSecurityGroup';
case ResourceType.awsRdsDBSnapshot:
return 'AWS::RDS::DBSnapshot';
case ResourceType.awsRdsDBCluster:
return 'AWS::RDS::DBCluster';
case ResourceType.awsRdsDBClusterSnapshot:
return 'AWS::RDS::DBClusterSnapshot';
case ResourceType.awsRdsEventSubscription:
return 'AWS::RDS::EventSubscription';
case ResourceType.awsS3Bucket:
return 'AWS::S3::Bucket';
case ResourceType.awsS3AccountPublicAccessBlock:
return 'AWS::S3::AccountPublicAccessBlock';
case ResourceType.awsRedshiftCluster:
return 'AWS::Redshift::Cluster';
case ResourceType.awsRedshiftClusterSnapshot:
return 'AWS::Redshift::ClusterSnapshot';
case ResourceType.awsRedshiftClusterParameterGroup:
return 'AWS::Redshift::ClusterParameterGroup';
case ResourceType.awsRedshiftClusterSecurityGroup:
return 'AWS::Redshift::ClusterSecurityGroup';
case ResourceType.awsRedshiftClusterSubnetGroup:
return 'AWS::Redshift::ClusterSubnetGroup';
case ResourceType.awsRedshiftEventSubscription:
return 'AWS::Redshift::EventSubscription';
case ResourceType.awsSsmManagedInstanceInventory:
return 'AWS::SSM::ManagedInstanceInventory';
case ResourceType.awsCloudWatchAlarm:
return 'AWS::CloudWatch::Alarm';
case ResourceType.awsCloudFormationStack:
return 'AWS::CloudFormation::Stack';
case ResourceType.awsElasticLoadBalancingLoadBalancer:
return 'AWS::ElasticLoadBalancing::LoadBalancer';
case ResourceType.awsAutoScalingAutoScalingGroup:
return 'AWS::AutoScaling::AutoScalingGroup';
case ResourceType.awsAutoScalingLaunchConfiguration:
return 'AWS::AutoScaling::LaunchConfiguration';
case ResourceType.awsAutoScalingScalingPolicy:
return 'AWS::AutoScaling::ScalingPolicy';
case ResourceType.awsAutoScalingScheduledAction:
return 'AWS::AutoScaling::ScheduledAction';
case ResourceType.awsDynamoDBTable:
return 'AWS::DynamoDB::Table';
case ResourceType.awsCodeBuildProject:
return 'AWS::CodeBuild::Project';
case ResourceType.awsWafRateBasedRule:
return 'AWS::WAF::RateBasedRule';
case ResourceType.awsWafRule:
return 'AWS::WAF::Rule';
case ResourceType.awsWafRuleGroup:
return 'AWS::WAF::RuleGroup';
case ResourceType.awsWafWebACL:
return 'AWS::WAF::WebACL';
case ResourceType.awsWAFRegionalRateBasedRule:
return 'AWS::WAFRegional::RateBasedRule';
case ResourceType.awsWAFRegionalRule:
return 'AWS::WAFRegional::Rule';
case ResourceType.awsWAFRegionalRuleGroup:
return 'AWS::WAFRegional::RuleGroup';
case ResourceType.awsWAFRegionalWebACL:
return 'AWS::WAFRegional::WebACL';
case ResourceType.awsCloudFrontDistribution:
return 'AWS::CloudFront::Distribution';
case ResourceType.awsCloudFrontStreamingDistribution:
return 'AWS::CloudFront::StreamingDistribution';
case ResourceType.awsLambdaFunction:
return 'AWS::Lambda::Function';
case ResourceType.awsNetworkFirewallFirewall:
return 'AWS::NetworkFirewall::Firewall';
case ResourceType.awsNetworkFirewallFirewallPolicy:
return 'AWS::NetworkFirewall::FirewallPolicy';
case ResourceType.awsNetworkFirewallRuleGroup:
return 'AWS::NetworkFirewall::RuleGroup';
case ResourceType.awsElasticBeanstalkApplication:
return 'AWS::ElasticBeanstalk::Application';
case ResourceType.awsElasticBeanstalkApplicationVersion:
return 'AWS::ElasticBeanstalk::ApplicationVersion';
case ResourceType.awsElasticBeanstalkEnvironment:
return 'AWS::ElasticBeanstalk::Environment';
case ResourceType.awsWAFv2WebACL:
return 'AWS::WAFv2::WebACL';
case ResourceType.awsWAFv2RuleGroup:
return 'AWS::WAFv2::RuleGroup';
case ResourceType.awsWAFv2IPSet:
return 'AWS::WAFv2::IPSet';
case ResourceType.awsWAFv2RegexPatternSet:
return 'AWS::WAFv2::RegexPatternSet';
case ResourceType.awsWAFv2ManagedRuleSet:
return 'AWS::WAFv2::ManagedRuleSet';
case ResourceType.awsXRayEncryptionConfig:
return 'AWS::XRay::EncryptionConfig';
case ResourceType.awsSsmAssociationCompliance:
return 'AWS::SSM::AssociationCompliance';
case ResourceType.awsSsmPatchCompliance:
return 'AWS::SSM::PatchCompliance';
case ResourceType.awsShieldProtection:
return 'AWS::Shield::Protection';
case ResourceType.awsShieldRegionalProtection:
return 'AWS::ShieldRegional::Protection';
case ResourceType.awsConfigResourceCompliance:
return 'AWS::Config::ResourceCompliance';
case ResourceType.awsApiGatewayStage:
return 'AWS::ApiGateway::Stage';
case ResourceType.awsApiGatewayRestApi:
return 'AWS::ApiGateway::RestApi';
case ResourceType.awsApiGatewayV2Stage:
return 'AWS::ApiGatewayV2::Stage';
case ResourceType.awsApiGatewayV2Api:
return 'AWS::ApiGatewayV2::Api';
case ResourceType.awsCodePipelinePipeline:
return 'AWS::CodePipeline::Pipeline';
case ResourceType.awsServiceCatalogCloudFormationProvisionedProduct:
return 'AWS::ServiceCatalog::CloudFormationProvisionedProduct';
case ResourceType.awsServiceCatalogCloudFormationProduct:
return 'AWS::ServiceCatalog::CloudFormationProduct';
case ResourceType.awsServiceCatalogPortfolio:
return 'AWS::ServiceCatalog::Portfolio';
case ResourceType.awsSqsQueue:
return 'AWS::SQS::Queue';
case ResourceType.awsKmsKey:
return 'AWS::KMS::Key';
case ResourceType.awsQldbLedger:
return 'AWS::QLDB::Ledger';
case ResourceType.awsSecretsManagerSecret:
return 'AWS::SecretsManager::Secret';
case ResourceType.awsSnsTopic:
return 'AWS::SNS::Topic';
case ResourceType.awsSsmFileData:
return 'AWS::SSM::FileData';
}
}