Documentation ¶
Index ¶
Constants ¶
const ( // AutoScalingGroupRType is an AWS ResourceType enum value AutoScalingGroupRType = "AWS::AutoScaling::AutoScalingGroup" // AutoScalingLaunchConfigurationRType is an AWS ResourceType enum value AutoScalingLaunchConfigurationRType = "AWS::AutoScaling::LaunchConfiguration" // AutoScalingPolicyRType is an AWS ResourceType enum value AutoScalingPolicyRType = "AWS::AutoScaling::ScalingPolicy" // AutoScalingScheduledActionRType is an AWS ResourceType enum value AutoScalingScheduledActionRType = "AWS::AutoScaling::ScheduledAction" // ACMCertificateRType is an AWS ResourceType enum value ACMCertificateRType = "AWS::ACM::Certificate" // CloudTrailTrailRType is an AWS ResourceType enum value CloudTrailTrailRType = "AWS::CloudTrail::Trail" // CodePipelinePipelineRType is an AWS ResourceType enum value CodePipelinePipelineRType = "AWS::CodePipeline::Pipeline" // EC2AMIRType is an AWS ResourceType enum value EC2AMIRType = "AWS::EC2::Ami" // EC2BundleTaskRType is an AWS ResourceType enum value EC2BundleTaskRType = "AWS::EC2::BundleTask" // EC2ConversionTaskRType is an AWS ResourceType enum value EC2ConversionTaskRType = "AWS::EC2::ConversionTask" // EC2CustomerGatewayRType is an AWS ResourceType enum value EC2CustomerGatewayRType = "AWS::EC2::CustomerGateway" // EC2DHCPOptionsRType is an AWS ResourceType enum value EC2DHCPOptionsRType = "AWS::EC2::DHCPOptions" // EC2EIPRType is an AWS ResourceType enum value EC2EIPRType = "AWS::EC2::EIP" // EC2EIPAssociationRType is an AWS ResourceType enum value EC2EIPAssociationRType = "AWS::EC2::EIPAssociation" // EC2ExportTaskRType is an AWS ResourceType enum value EC2ExportTaskRType = "AWS::EC2::ExportTask" // EC2FlowLogRType is an AWS ResourceType enum value EC2FlowLogRType = "AWS::EC2::FlowLog" // EC2HostRType is an AWS ResourceType enum value EC2HostRType = "AWS::EC2::Host" // EC2ImportTaskRType is an AWS ResourceType enum value EC2ImportTaskRType = "AWS::EC2::ImportTask" // EC2InstanceRType is an AWS ResourceType enum value EC2InstanceRType = "AWS::EC2::Instance" // EC2InternetGatewayRType is an AWS ResourceType enum value EC2InternetGatewayRType = "AWS::EC2::InternetGateway" // EC2InternetGatewayAttachmentRType is an AWS ResourceType enum value EC2InternetGatewayAttachmentRType = "AWS::EC2::InternetGatewayAttachment" // EC2KeyPairRType is an AWS ResourceType enum value EC2KeyPairRType = "AWS::EC2::KeyPair" // EC2NatGatewayRType is an AWS ResourceType enum value EC2NatGatewayRType = "AWS::EC2::NatGateway" // EC2NetworkACLRType is an AWS ResourceType enum value EC2NetworkACLRType = "AWS::EC2::NetworkAcl" // EC2NetworkInterfaceRType is an AWS ResourceType enum value EC2NetworkInterfaceRType = "AWS::EC2::NetworkInterface" // EC2NetworkInterfaceAttachmentRType is an AWS ResourceType enum value EC2NetworkInterfaceAttachmentRType = "AWS::EC2::NetworkInterfaceAttachment" // EC2PlacementGroupRType is an AWS ResourceType enum value EC2PlacementGroupRType = "AWS::EC2::PlacementGroup" // EC2ReservedInstanceRType is an AWS ResourceType enum value EC2ReservedInstanceRType = "AWS::EC2::ReservedInstance" // EC2ReservedInstancesListingRType is an AWS ResourceType enum value EC2ReservedInstancesListingRType = "AWS::EC2::ReservedInstancesListing" // EC2ReservedInstancesModificationRType is an AWS ResourceType enum value EC2ReservedInstancesModificationRType = "AWS::EC2::ReservedInstancesModification" // EC2RouteTableRType is an AWS ResourceType enum value EC2RouteTableRType = "AWS::EC2::RouteTable" // EC2RouteTableAssociationRType is a grafiti-specificn AWS ResourceType enum value EC2RouteTableAssociationRType = "AWS::EC2::RouteTableAssociation" // EC2RouteTableRouteRType is a grafiti-specificn AWS ResourceType enum value EC2RouteTableRouteRType = "AWS::EC2::RouteTableRoute" // EC2ScheduledInstanceRType is an AWS ResourceType enum value EC2ScheduledInstanceRType = "AWS::EC2::ScheduledInstance" // EC2SecurityGroupRType is an AWS ResourceType enum value EC2SecurityGroupRType = "AWS::EC2::SecurityGroup" // EC2SecurityGroupEgressRType is an AWS ResourceType enum value EC2SecurityGroupEgressRType = "AWS::EC2::SecurityGroupEgressRule" // EC2SecurityGroupIngressRType is an AWS ResourceType enum value EC2SecurityGroupIngressRType = "AWS::EC2::SecurityGroupIngressRule" // EC2SnapshotRType is an AWS ResourceType enum value EC2SnapshotRType = "AWS::EC2::Snapshot" // EC2SpotFleetRequestRType is an AWS ResourceType enum value EC2SpotFleetRequestRType = "AWS::EC2::SpotFleetRequest" // EC2SpotInstanceRequestRType is an AWS ResourceType enum value EC2SpotInstanceRequestRType = "AWS::EC2::SpotInstanceRequest" // EC2SubnetRType is an AWS ResourceType enum value EC2SubnetRType = "AWS::EC2::Subnet" // EC2SubnetNetworkACLAssociationRType is an AWS ResourceType enum value EC2SubnetNetworkACLAssociationRType = "AWS::EC2::SubnetNetworkAclAssociation" // EC2SubnetRouteTableAssociationRType is an AWS ResourceType enum value EC2SubnetRouteTableAssociationRType = "AWS::EC2::SubnetRouteTableAssociation" // EC2VolumeRType is an AWS ResourceType enum value EC2VolumeRType = "AWS::EC2::Volume" // EC2VPCRType is an AWS ResourceType enum value EC2VPCRType = "AWS::EC2::VPC" // EC2VPCCIDRAssociationRType is an AWS ResourceType enum value EC2VPCCIDRAssociationRType = "AWS::EC2::VPCCIDRAssociation" // EC2VPCEndpointRType is an AWS ResourceType enum value EC2VPCEndpointRType = "AWS::EC2::VPCEndpoint" // EC2VPCPeeringConnectionRType is an AWS ResourceType enum value EC2VPCPeeringConnectionRType = "AWS::EC2::VPCPeeringConnection" // EC2VPNConnectionRType is an AWS ResourceType enum value EC2VPNConnectionRType = "AWS::EC2::VPNConnection" // EC2VPNConnectionRouteRType is an AWS ResourceType enum value EC2VPNConnectionRouteRType = "AWS::EC2::VPNConnectionRoute" // EC2VPNGatewayRType is an AWS ResourceType enum value EC2VPNGatewayRType = "AWS::EC2::VPNGateway" // EC2VPNGatewayAttachmentRType is an AWS ResourceType enum value EC2VPNGatewayAttachmentRType = "AWS::EC2::VPNGatewayAttachment" // ElasticLoadBalancingLoadBalancerRType is an AWS ResourceType enum value ElasticLoadBalancingLoadBalancerRType = "AWS::ElasticLoadBalancing::LoadBalancer" // IAMAccessKeyRType is an AWS ResourceType enum value IAMAccessKeyRType = "AWS::IAM::AccessKey" // IAMAccountAliasRType is an AWS ResourceType enum value IAMAccountAliasRType = "AWS::IAM::AccountAlias" // IAMGroupRType is an AWS ResourceType enum value IAMGroupRType = "AWS::IAM::Group" // IAMInstanceProfileRType is an AWS ResourceType enum value IAMInstanceProfileRType = "AWS::IAM::InstanceProfile" // IAMMfaDeviceRType is an AWS ResourceType enum value IAMMfaDeviceRType = "AWS::IAM::MfaDevice" // IAMOpenIDConnectProviderRType is an AWS ResourceType enum value IAMOpenIDConnectProviderRType = "AWS::IAM::OpenIDConnectProvider" // IAMPolicyRType is an AWS ResourceType enum value IAMPolicyRType = "AWS::IAM::Policy" // IAMRoleRType is an AWS ResourceType enum value IAMRoleRType = "AWS::IAM::Role" // IAMSamlProviderRType is an AWS ResourceType enum value IAMSamlProviderRType = "AWS::IAM::SamlProvider" // IAMServerCertificateRType is an AWS ResourceType enum value IAMServerCertificateRType = "AWS::IAM::ServerCertificate" // IAMSigningCertificateRType is an AWS ResourceType enum value IAMSigningCertificateRType = "AWS::IAM::SigningCertificate" // IAMSSHPublicKeyRType is an AWS ResourceType enum value IAMSSHPublicKeyRType = "AWS::IAM::SshPublicKey" // IAMUserRType is an AWS ResourceType enum value IAMUserRType = "AWS::IAM::User" // RedshiftClusterRType is an AWS ResourceType enum value RedshiftClusterRType = "AWS::Redshift::Cluster" // RedshiftClusterParameterGroupRType is an AWS ResourceType enum value RedshiftClusterParameterGroupRType = "AWS::Redshift::ClusterParameterGroup" // RedshiftClusterSecurityGroupRType is an AWS ResourceType enum value RedshiftClusterSecurityGroupRType = "AWS::Redshift::ClusterSecurityGroup" // RedshiftClusterSnapshotRType is an AWS ResourceType enum value RedshiftClusterSnapshotRType = "AWS::Redshift::ClusterSnapshot" // RedshiftClusterSubnetGroupRType is an AWS ResourceType enum value RedshiftClusterSubnetGroupRType = "AWS::Redshift::ClusterSubnetGroup" // RedshiftEventSubscriptionRType is an AWS ResourceType enum value RedshiftEventSubscriptionRType = "AWS::Redshift::EventSubscription" // RedshiftHsmClientCertificateRType is an AWS ResourceType enum value RedshiftHsmClientCertificateRType = "AWS::Redshift::HsmClientCertificate" // RedshiftHsmConfigurationRType is an AWS ResourceType enum value RedshiftHsmConfigurationRType = "AWS::Redshift::HsmConfiguration" // RDSDBClusterRType is an AWS ResourceType enum value RDSDBClusterRType = "AWS::RDS::DBCluster" // RDSDBClusterOptionGroupRType is an AWS ResourceType enum value RDSDBClusterOptionGroupRType = "AWS::RDS::DBClusterOptionGroup" // RDSDBClusterParameterGroupRType is an AWS ResourceType enum value RDSDBClusterParameterGroupRType = "AWS::RDS::DBClusterParameterGroup" // RDSDBClusterSnapshotRType is an AWS ResourceType enum value RDSDBClusterSnapshotRType = "AWS::RDS::DBClusterSnapshot" // RDSDBInstanceRType is an AWS ResourceType enum value RDSDBInstanceRType = "AWS::RDS::DBInstance" // RDSDBOptionGroupRType is an AWS ResourceType enum value RDSDBOptionGroupRType = "AWS::RDS::DBOptionGroup" // RDSDBParameterGroupRType is an AWS ResourceType enum value RDSDBParameterGroupRType = "AWS::RDS::DBParameterGroup" // RDSDBSecurityGroupRType is an AWS ResourceType enum value RDSDBSecurityGroupRType = "AWS::RDS::DBSecurityGroup" // RDSDBSnapshotRType is an AWS ResourceType enum value RDSDBSnapshotRType = "AWS::RDS::DBSnapshot" // RDSDBSubnetGroupRType is an AWS ResourceType enum value RDSDBSubnetGroupRType = "AWS::RDS::DBSubnetGroup" // RDSEventSubscriptionRType is an AWS ResourceType enum value RDSEventSubscriptionRType = "AWS::RDS::EventSubscription" // RDSReservedDBInstanceRType is an AWS ResourceType enum value RDSReservedDBInstanceRType = "AWS::RDS::ReservedDBInstance" // Route53ChangeRType is an AWS ResourceType enum value Route53ChangeRType = "AWS::Route53::Change" // Route53HostedZoneRType is an AWS ResourceType enum value Route53HostedZoneRType = "AWS::Route53::HostedZone" // Route53ResourceRecordSetRType is an AWS ResourceType enum value Route53ResourceRecordSetRType = "AWS::Route53::ResourceRecordSet" // S3BucketRType is an AWS ResourceType enum value S3BucketRType = "AWS::S3::Bucket" // S3ObjectRType is an AWS ResourceType enum value S3ObjectRType = "AWS::S3::Object" )
const ( // AutoScalingNamespace is an AWS Service Namespace enum value AutoScalingNamespace = "autoscaling" // ACMNamespace is an AWS Service Namespace enum value ACMNamespace = "acm" // CloudTrailNamespace is an AWS Service Namespace enum value CloudTrailNamespace = "cloudtrail" // CodePipelineNamespace is an AWS Service Namespace enum value CodePipelineNamespace = "codepipeline" // EC2Namespace is an AWS Service Namespace enum value EC2Namespace = "ec2" // ElasticLoadBalancingNamespace is an AWS Service Namespace enum value ElasticLoadBalancingNamespace = "elasticloadbalancing" // IAMNamespace is an AWS Service Namespace enum value IAMNamespace = "iam" // RedshiftNamespace is an AWS Service Namespace enum value RedshiftNamespace = "redshift" // RDSNamespace is an AWS Service Namespace enum value RDSNamespace = "rds" // Route53Namespace is an AWS Service Namespace enum value Route53Namespace = "route53" // S3Namespace is an AWS Service Namespace enum value S3Namespace = "s3" )
Variables ¶
var CTUnsupportedResourceTypes = map[ResourceType]struct{}{ Route53HostedZoneRType: struct{}{}, }
CTUnsupportedResourceTypes holds values for which CloudTrail does not collect logs
var RGTAUnsupportedResourceTypes = map[ResourceType]struct{}{ Route53HostedZoneRType: struct{}{}, AutoScalingGroupRType: struct{}{}, AutoScalingLaunchConfigurationRType: struct{}{}, AutoScalingPolicyRType: struct{}{}, AutoScalingScheduledActionRType: struct{}{}, IAMInstanceProfileRType: struct{}{}, IAMUserRType: struct{}{}, IAMRoleRType: struct{}{}, IAMPolicyRType: struct{}{}, IAMGroupRType: struct{}{}, IAMMfaDeviceRType: struct{}{}, IAMAccountAliasRType: struct{}{}, }
RGTAUnsupportedResourceTypes holds values the Resource Group Tagging API does not support
Functions ¶
func MapARNToRTypeAndRName ¶
func MapARNToRTypeAndRName(arnStr ResourceARN) (ResourceType, ResourceName)
MapARNToRTypeAndRName maps ARN to ResourceType and an identifying ResourceName
func NamespaceForResource ¶
func NamespaceForResource(t ResourceType) string
NamespaceForResource maps ResourceType to an ARN namespace
Types ¶
type ResourceARN ¶
type ResourceARN string
ResourceARN aliases a string type for ARNs
func MapResourceTypeToARN ¶
func MapResourceTypeToARN(rt ResourceType, rn ResourceName, parsedEvents ...gjson.Result) ResourceARN
MapResourceTypeToARN maps ResourceType to ARN
func (ResourceARN) AWSString ¶
func (a ResourceARN) AWSString() *string
AWSString converts an ResourceARN to a string pointer
func (ResourceARN) String ¶
func (a ResourceARN) String() string
String casts an ResourceARN to a string
type ResourceARNs ¶
type ResourceARNs []ResourceARN
ResourceARNs aliases string slice for ARNs
func (ResourceARNs) AWSStringSlice ¶
func (as ResourceARNs) AWSStringSlice() []*string
AWSStringSlice converts a slice of ResourceARNs to a slice of string pointers
type ResourceName ¶
type ResourceName string
ResourceName aliases a string type for AWS resource names
func (ResourceName) AWSString ¶
func (r ResourceName) AWSString() *string
AWSString converts a ResourceName to a string pointer
func (ResourceName) String ¶
func (r ResourceName) String() string
String casts a ResourceName to a string
type ResourceNames ¶
type ResourceNames []ResourceName
ResourceNames aliases a string slice for AWS resource names
func (ResourceNames) AWSStringSlice ¶
func (rs ResourceNames) AWSStringSlice() []*string
AWSStringSlice converts a slice of ResourceNames to a slice of string pointers
type ResourceType ¶
type ResourceType string
ResourceType aliases a string type for AWS resource types
func (ResourceType) AWSString ¶
func (r ResourceType) AWSString() *string
AWSString converts a ResourceType to a string pointer
func (ResourceType) String ¶
func (r ResourceType) String() string
String casts a ResourceType to a string
type ResourceTypes ¶
type ResourceTypes []ResourceType
ResourceTypes aliases a string slice for AWS resource types
func (ResourceTypes) AWSStringSlice ¶
func (rs ResourceTypes) AWSStringSlice() []*string
AWSStringSlice converts a slice of ResourceTypes to a slice of string pointers