Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 38 additions & 1 deletion src/supported_resource_types.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
pub static SUPPORTED_RESOURCE_TYPES: [&str; 1414] = [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability and avoid having to manually update the array size (e.g., 1414) every time a resource type is added or removed, you can define SUPPORTED_RESOURCE_TYPES as a static slice (&[&str]) instead of a fixed-size array. This allows the compiler to automatically infer the size.

Suggested change
pub static SUPPORTED_RESOURCE_TYPES: [&str; 1414] = [
pub static SUPPORTED_RESOURCE_TYPES: &[&str] = &[

"AWS::ACMPCA::Certificate",
"AWS::ACMPCA::CertificateAuthority",
"AWS::ACMPCA::CertificateAuthorityActivation",
Expand All @@ -12,6 +12,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::ARCRegionSwitch::Plan",
"AWS::ARCZonalShift::AutoshiftObserverNotificationStatus",
"AWS::ARCZonalShift::ZonalAutoshiftConfiguration",
"AWS::AWSExternalAnthropic::Workspace",
"AWS::AccessAnalyzer::Analyzer",
"AWS::AmazonMQ::Broker",
"AWS::AmazonMQ::Configuration",
Expand Down Expand Up @@ -54,6 +55,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::ApiGatewayV2::Route",
"AWS::ApiGatewayV2::RouteResponse",
"AWS::ApiGatewayV2::RoutingRule",
"AWS::ApiGatewayV2::Stage",
"AWS::ApiGatewayV2::VpcLink",
"AWS::AppConfig::Application",
"AWS::AppConfig::ConfigurationProfile",
Expand Down Expand Up @@ -83,6 +85,9 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::AppStream::Entitlement",
"AWS::AppStream::ImageBuilder",
"AWS::AppStream::Stack",
"AWS::AppStream::StackFleetAssociation",
"AWS::AppStream::StackUserAssociation",
"AWS::AppStream::User",
"AWS::AppSync::Api",
"AWS::AppSync::ChannelNamespace",
"AWS::AppSync::DataSource",
Expand Down Expand Up @@ -115,6 +120,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::B2BI::Partnership",
"AWS::B2BI::Profile",
"AWS::B2BI::Transformer",
"AWS::BCM::Dashboard",
"AWS::BCMDataExports::Export",
"AWS::Backup::BackupPlan",
"AWS::Backup::BackupSelection",
Expand Down Expand Up @@ -158,14 +164,21 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::BedrockAgentCore::BrowserCustom",
"AWS::BedrockAgentCore::BrowserProfile",
"AWS::BedrockAgentCore::CodeInterpreterCustom",
"AWS::BedrockAgentCore::ConfigurationBundle",
"AWS::BedrockAgentCore::Dataset",
"AWS::BedrockAgentCore::Evaluator",
"AWS::BedrockAgentCore::Gateway",
"AWS::BedrockAgentCore::GatewayTarget",
"AWS::BedrockAgentCore::Harness",
"AWS::BedrockAgentCore::Memory",
"AWS::BedrockAgentCore::OAuth2CredentialProvider",
"AWS::BedrockAgentCore::OnlineEvaluationConfig",
"AWS::BedrockAgentCore::PaymentConnector",
"AWS::BedrockAgentCore::PaymentCredentialProvider",
"AWS::BedrockAgentCore::PaymentManager",
"AWS::BedrockAgentCore::Policy",
"AWS::BedrockAgentCore::PolicyEngine",
"AWS::BedrockAgentCore::ResourcePolicy",
"AWS::BedrockAgentCore::Runtime",
"AWS::BedrockAgentCore::RuntimeEndpoint",
"AWS::BedrockAgentCore::WorkloadIdentity",
Expand Down Expand Up @@ -193,6 +206,8 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::Chatbot::CustomAction",
"AWS::Chatbot::MicrosoftTeamsChannelConfiguration",
"AWS::Chatbot::SlackChannelConfiguration",
"AWS::Chime::AppInstance",
"AWS::Chime::AppInstanceBot",
"AWS::CleanRooms::AnalysisTemplate",
"AWS::CleanRooms::Collaboration",
"AWS::CleanRooms::ConfiguredTable",
Expand Down Expand Up @@ -246,7 +261,9 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::CloudWatch::AlarmMuteRule",
"AWS::CloudWatch::CompositeAlarm",
"AWS::CloudWatch::Dashboard",
"AWS::CloudWatch::LogAlarm",
"AWS::CloudWatch::MetricStream",
"AWS::CloudWatch::OTelEnrichment",
"AWS::CodeArtifact::Domain",
"AWS::CodeArtifact::PackageGroup",
"AWS::CodeArtifact::Repository",
Expand Down Expand Up @@ -288,6 +305,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::Config::ConfigurationAggregator",
"AWS::Config::ConformancePack",
"AWS::Config::OrganizationConformancePack",
"AWS::Config::RemediationConfiguration",
"AWS::Config::StoredQuery",
"AWS::Connect::AgentStatus",
"AWS::Connect::ApprovedOrigin",
Expand Down Expand Up @@ -330,6 +348,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::ControlTower::LandingZone",
"AWS::CustomerProfiles::CalculatedAttributeDefinition",
"AWS::CustomerProfiles::Domain",
"AWS::CustomerProfiles::DomainObjectType",
"AWS::CustomerProfiles::EventStream",
"AWS::CustomerProfiles::EventTrigger",
"AWS::CustomerProfiles::Integration",
Expand Down Expand Up @@ -395,6 +414,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::Detective::OrganizationAdmin",
"AWS::DevOpsAgent::AgentSpace",
"AWS::DevOpsAgent::Association",
"AWS::DevOpsAgent::PrivateConnection",
"AWS::DevOpsAgent::Service",
"AWS::DevOpsGuru::LogAnomalyDetectionIntegration",
"AWS::DevOpsGuru::NotificationChannel",
Expand Down Expand Up @@ -563,6 +583,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::EMRContainers::VirtualCluster",
"AWS::EMRServerless::Application",
"AWS::EVS::Environment",
"AWS::ElastiCache::CacheCluster",
"AWS::ElastiCache::GlobalReplicationGroup",
"AWS::ElastiCache::ParameterGroup",
"AWS::ElastiCache::ReplicationGroup",
Expand All @@ -574,12 +595,14 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::ElasticBeanstalk::ApplicationVersion",
"AWS::ElasticBeanstalk::ConfigurationTemplate",
"AWS::ElasticBeanstalk::Environment",
"AWS::ElasticLoadBalancing::LoadBalancer",
"AWS::ElasticLoadBalancingV2::Listener",
"AWS::ElasticLoadBalancingV2::ListenerRule",
"AWS::ElasticLoadBalancingV2::LoadBalancer",
"AWS::ElasticLoadBalancingV2::TargetGroup",
"AWS::ElasticLoadBalancingV2::TrustStore",
"AWS::ElasticLoadBalancingV2::TrustStoreRevocation",
"AWS::ElementalInference::Dictionary",
"AWS::ElementalInference::Feed",
"AWS::EntityResolution::IdMappingWorkflow",
"AWS::EntityResolution::IdNamespace",
Expand Down Expand Up @@ -742,6 +765,10 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::IoT::ThingType",
"AWS::IoT::TopicRule",
"AWS::IoT::TopicRuleDestination",
"AWS::IoTAnalytics::Channel",
"AWS::IoTAnalytics::Dataset",
"AWS::IoTAnalytics::Datastore",
"AWS::IoTAnalytics::Pipeline",
"AWS::IoTCoreDeviceAdvisor::SuiteDefinition",
"AWS::IoTEvents::AlarmModel",
"AWS::IoTEvents::DetectorModel",
Expand Down Expand Up @@ -986,6 +1013,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::OpenSearchServerless::AccessPolicy",
"AWS::OpenSearchServerless::Collection",
"AWS::OpenSearchServerless::CollectionGroup",
"AWS::OpenSearchServerless::CollectionIndex",
"AWS::OpenSearchServerless::Index",
"AWS::OpenSearchServerless::LifecyclePolicy",
"AWS::OpenSearchServerless::SecurityConfig",
Expand Down Expand Up @@ -1061,6 +1089,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::RDS::OptionGroup",
"AWS::RTBFabric::InboundExternalLink",
"AWS::RTBFabric::Link",
"AWS::RTBFabric::LinkRoutingRule",
"AWS::RTBFabric::OutboundExternalLink",
"AWS::RTBFabric::RequesterGateway",
"AWS::RTBFabric::ResponderGateway",
Expand All @@ -1086,6 +1115,11 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::Rekognition::StreamProcessor",
"AWS::ResilienceHub::App",
"AWS::ResilienceHub::ResiliencyPolicy",
"AWS::ResilienceHubV2::Policy",
"AWS::ResilienceHubV2::Service",
"AWS::ResilienceHubV2::ServiceFunction",
"AWS::ResilienceHubV2::System",
"AWS::ResilienceHubV2::UserJourney",
"AWS::ResourceExplorer2::DefaultViewAssociation",
"AWS::ResourceExplorer2::Index",
"AWS::ResourceExplorer2::View",
Expand Down Expand Up @@ -1225,6 +1259,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::SageMaker::ImageVersion",
"AWS::SageMaker::InferenceComponent",
"AWS::SageMaker::InferenceExperiment",
"AWS::SageMaker::MlflowApp",
"AWS::SageMaker::MlflowTrackingServer",
"AWS::SageMaker::Model",
"AWS::SageMaker::ModelBiasJobDefinition",
Expand Down Expand Up @@ -1294,6 +1329,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::Shield::ProtectionGroup",
"AWS::Signer::ProfilePermission",
"AWS::Signer::SigningProfile",
"AWS::SimSpaceWeaver::Simulation",
"AWS::StepFunctions::Activity",
"AWS::StepFunctions::StateMachine",
"AWS::StepFunctions::StateMachineAlias",
Expand Down Expand Up @@ -1321,6 +1357,7 @@ pub static SUPPORTED_RESOURCE_TYPES: [&str; 1377] = [
"AWS::VerifiedPermissions::IdentitySource",
"AWS::VerifiedPermissions::Policy",
"AWS::VerifiedPermissions::PolicyStore",
"AWS::VerifiedPermissions::PolicyStoreAlias",
"AWS::VerifiedPermissions::PolicyTemplate",
"AWS::VoiceID::Domain",
"AWS::VpcLattice::AccessLogSubscription",
Expand Down
Loading