RAM authorization

Updated at:

Resource Access Management (RAM) is a service provided by Alibaba Cloud to manage user identities and resource access permissions. Using RAM helps you avoid sharing your Alibaba Cloud account keys with other users and allows you to grant users the least privilege access. RAM uses permission policies to define authorizations. This topic describes the actions, resources, and conditions that CloudConfig defines for RAM permission policies. The RamCode of CloudConfig is config , and the supported authorization granularity is RESOURCE . For the resource authorization scope of each action, see the Action table.

General structure of a policy

Permission policies support the JSON format. The following example shows the structure of a policy that uses the Action element. Values in angle brackets (<>) are placeholders. Replace them with actual values.

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "<Effect>",
      "Action": "<Action>",
      "Resource": "<Resource>",
      "Condition": {
        "<Condition_operator>": {
          "<Condition_key>": [
            "<Condition_value>"
          ]
        }
      }
    }
  ]
}        

The following list describes the fields and placeholders in the policy:

  • Effect: Specifies the authorization result. Valid values: Allow and Deny.

  • Action: Specifies one or more operations that are allowed or denied.

  • Resource: Specifies the specific objects affected by the operations. You can use Alibaba Cloud Resource Names (ARNs) to describe specific resources.

  • Condition: Specifies the conditions for the authorization to take effect. This field is optional.

  • Condition operator: Specifies the conditional operators. Different types of conditions support different conditional operators.

  • Condition_key: Specifies the condition keys.

  • Condition_value: Specifies the condition values.

Action

The following table lists the RAM actions defined by CloudConfig. These actions can be used in the Action element of RAM permission policies.

  • Action: A specific RAM permission point. In most cases, it has the same name as the corresponding OpenAPI.

  • OpenAPI: The OpenAPI associated with the RAM action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that support authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding ARN in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The product-level condition keys supported by the action. Common condition keys are not included. For more information, see Common condition keys.

  • Dependent action: Other action permissions required to perform the action.

Action

OpenAPI

Access level

Resource type

Condition key

Dependent action

config:GetDiscoveredResource GetDiscoveredResource get

*All Resource

*

None None
config:CreateConfigRule CreateConfigRule create

*Rule

acs:config:*:{#accountId}:rule/*

None None
config:ListRecommendManagedRules ListRecommendManagedRules list

*All Resource

*

None None
config:GetResourceConfigurationTimeline GetResourceConfigurationTimeline list

*All Resource

*

None None
config:CopyConfigRules CopyConfigRules update

*All Resource

*

None None
config:DescribeDiscoveredResourceBatch DescribeDiscoveredResourceBatch get

*All Resource

*

None None
config:GetConfigRuleSummaryByRiskLevel GetConfigRuleSummaryByRiskLevel get

*All Resource

*

None None
config:ActiveAggregateConfigRules ActiveAggregateConfigRules update

*All Resource

*

None None
config:GetReportTemplate GetReportTemplate get

*ReportTemplate

acs:config::{#accountId}:reporttemplate/{#ReportTemplateId}

None None
config:DeleteAggregateConfigDeliveryChannel DeleteAggregateConfigDeliveryChannel delete

*AggregateDelivery

acs:config:*:{#accountId}:aggregatedelivery/{#DeliveryChannelId}

None None
config:UpdateAggregateRemediation UpdateAggregateRemediation update

*All Resource

*

None None
config:ListAggregateConfigRuleEvaluationResults ListAggregateConfigRuleEvaluationResults list

*All Resource

*

None None
config:StartConfigRuleEvaluation StartConfigRuleEvaluation none

*All Resource

*

None None
config:IgnoreEvaluationResults IgnoreEvaluationResults update

*All Resource

*

None None
config:DeleteCompliancePacks DeleteCompliancePacks delete

*CompliancePack

acs:config:*:{#accountId}:compliancepack/{#CompliancePackId}

None None
config:DeleteAggregateCompliancePacks DeleteAggregateCompliancePacks delete

*AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregateCompliancePackId}

None None
config:EvaluatePreConfigRules EvaluatePreConfigRules list

*All Resource

*

None None
config:IgnoreAggregateEvaluationResults IgnoreAggregateEvaluationResults update

*All Resource

*

None None
config:GetAggregateConfigDeliveryChannel GetAggregateConfigDeliveryChannel get

*AggregateDelivery

acs:config:*:{#accountId}:aggregatedelivery/{#DeliveryChannelId}

None None
config:DeactiveAggregateConfigRules DeactiveAggregateConfigRules update

*All Resource

*

None None
config:UpdateCompliancePack UpdateCompliancePack update

*CompliancePack

acs:config:*:{#accountId}:compliancepack/{#CompliancePackId}

None None
config:ListIntegratedService ListIntegratedService list

*All Resource

*

None None
config:UpdateConfigRule UpdateConfigRule update

*Rule

acs:config:*:{#accountId}:rule/{#ConfigRuleId}

None None
config:GetConfigRule GetConfigRule get

*Rule

acs:config:*:{#accountId}:rule/{#ConfigRuleId}

None None
config:DeleteAggregateConfigRules DeleteAggregateConfigRules delete

*AggregateConfigRule

acs:config:*:{#accountId}:aggregateconfigrule/{#ConfigRuleId}

None None
config:GetAggregateConfigRule GetAggregateConfigRule get

*AggregateConfigRule

acs:config:*:{#accountId}:aggregateconfigrule/{#ConfigRuleId}

None None
config:ListAggregateRecommendManagedRules ListAggregateRecommendManagedRules list

*All Resource

*

None None
config:ListRemediations ListRemediations list

*All Resource

*

None None
config:GetResourceConfigurationSample GetResourceConfigurationSample none

*All Resource

*

None None
config:CreateAggregateRemediation CreateAggregateRemediation create

*All Resource

*

None None
config:GetResourceComplianceGroupByRegion GetResourceComplianceGroupByRegion get

*All Resource

*

None None
config:RevertEvaluationResults RevertEvaluationResults update

*All Resource

*

None None
config:ListAggregateResourceEvaluationResults ListAggregateResourceEvaluationResults list

*All Resource

*

None None
config:GetAggregateCompliancePack GetAggregateCompliancePack get

*AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregatorCompliancePackId}

None None
config:GetAggregateDiscoveredResource GetAggregateDiscoveredResource get

*Resource

acs:config:*:{#accountId}:resource/{#ResourceId}

None None
config:CreateAggregateCompliancePack CreateAggregateCompliancePack create

*AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/*

None None
config:ListTagResources ListTagResources get

Rule

acs:config:*:{#accountId}:rule/{#ConfigRuleId}

AggregateConfigRule

acs:config:*:{#accountId}:aggregateconfigrule/{#ConfigRuleId}

AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregatorCompliancePackId}

CompliancePack

acs:config:*:{#accountId}:compliancepack/{#CompliancePackId}

Aggregator

acs:config:*:{#accountId}:aggregator/{#AggregatorId}

None None
config:GenerateReportFromTemplate GenerateReportFromTemplate create

*ReportTemplate

acs:config::{#accountId}:reporttemplate/{#ReportTemplateId}

None None
config:ListManagedRules ListManagedRules get

*All Resource

*

None None
config:DetachConfigRuleToCompliancePack DetachConfigRuleToCompliancePack update

*All Resource

*

None None
config:UpdateAggregateConfigDeliveryChannel UpdateAggregateConfigDeliveryChannel update

*AggregateDelivery

acs:config:*:{#accountId}:aggregatedelivery/{#DeliveryChannelId}

None None
config:ListConfigRuleEvaluationResults ListConfigRuleEvaluationResults list

*All Resource

*

None None
config:GetAggregateResourceComplianceGroupByRegion GetAggregateResourceComplianceGroupByRegion get

*All Resource

*

None None
config:DeleteAggregators DeleteAggregators delete

*Aggregator

acs:config:*:{#accountId}:aggregator/{#AggregatorId}

None None
config:GetReportFromTemplate GetReportFromTemplate get

*ReportTemplate

acs:config::{#accountId}:reporttemplate/{#ReportTemplateId}

None None
config:CreateAdvancedSearchFile CreateAdvancedSearchFile create

*All Resource

*

None None
config:UpdateReportTemplate UpdateReportTemplate update

*ReportTemplate

acs:config::{#accountId}:reporttemplate/{#ReportTemplateId}

None None
config:GenerateAggregateResourceInventory GenerateAggregateResourceInventory none

*All Resource

*

None None
config:ListCompliancePacks ListCompliancePacks list

*CompliancePack

acs:config:*:{#accountId}:compliancepack/*

None None
config:GetAggregateResourceComplianceTimeline GetAggregateResourceComplianceTimeline get

*All Resource

*

None None
config:GetAggregateConfigRulesReport GetAggregateConfigRulesReport get

*All Resource

*

None None
config:GetRemediationTemplate GetRemediationTemplate get

*All Resource

*

None None
config:ListAggregateRemediations ListAggregateRemediations list

*All Resource

*

None None
config:GetConfigRulesReport GetConfigRulesReport get

*All Resource

*

None None
config:GetAggregateComplianceSummary GetAggregateComplianceSummary get

*All Resource

*

None None
config:GetAggregateResourceComplianceGroupByResourceType GetAggregateResourceComplianceGroupByResourceType get

*All Resource

*

None None
config:GetAggregateResourceComplianceByConfigRule GetAggregateResourceComplianceByConfigRule get

*All Resource

*

None None
config:DescribeIntegratedServiceStatus DescribeIntegratedServiceStatus get

*All Resource

*

None None
config:GetAggregateConfigRuleComplianceByPack GetAggregateConfigRuleComplianceByPack get

*AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregatorCompliancePackId}

None None
config:ListRemediationTemplates ListRemediationTemplates get

*All Resource

*

None None
config:DeleteReportTemplate DeleteReportTemplate delete

*ReportTemplate

acs:config::{#accountId}:reporttemplate/{#ReportTemplateId}

None None
config:GetAggregateResourceConfigurationTimeline GetAggregateResourceConfigurationTimeline list

*All Resource

*

None None
config:GetAggregator GetAggregator get

*Aggregator

acs:config:*:{#accountId}:aggregator/{#AggregatorId}

None None
config:ListReportTemplates ListReportTemplates list

*ReportTemplate

acs:config::{#accountId}:reporttemplate/*

None None
config:CreateAggregator CreateAggregator create

*Aggregator

acs:config:*:{#accountId}:aggregator/*

None None
config:UpdateAggregateConfigRule UpdateAggregateConfigRule update

*AggregateConfigRule

acs:config:*:{#accountId}:aggregateconfigrule/{#ConfigRuleId}

None None
config:TagResources TagResources update

Rule

acs:config:*:{#accountId}:rule/{#ConfigRuleId}

AggregateConfigRule

acs:config:*:{#accountId}:aggregateconfigrule/{#ConfigRuleId}

AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregatorCompliancePackId}

CompliancePack

acs:config:*:{#accountId}:compliancepack/{#CompliancePackId}

Aggregator

acs:config:*:{#accountId}:aggregator/{#AggregtorId}

None None
config:GetAggregateResourceCountsGroupByRegion GetAggregateResourceCountsGroupByRegion get

*All Resource

*

None None
config:ListAggregateResourcesByAdvancedSearch ListAggregateResourcesByAdvancedSearch list

*All Resource

*

None None
config:GetCompliancePack GetCompliancePack get

*CompliancePack

acs:config:*:{#accountId}:compliancepack/{#CompliancePackId}

None None
config:GetConfigRuleComplianceByPack GetConfigRuleComplianceByPack get

*CompliancePack

acs:config:*:{#accountId}:compliancepack/{#CompliancePackId}

None None
config:GetResourceComplianceByPack GetResourceComplianceByPack get

*CompliancePack

acs:config:*:{#accountId}:compliancepack/{#CompliancePackId}

None None
config:ListConfigRuleOperators ListConfigRuleOperators none

*All Resource

*

None None
config:GetDiscoveredResourceCountsGroupByResourceType GetDiscoveredResourceCountsGroupByResourceType get

*All Resource

*

None None
config:AttachConfigRuleToCompliancePack AttachConfigRuleToCompliancePack update

*All Resource

*

None None
config:CreateAggregateConfigRule CreateAggregateConfigRule create

*AggregateConfigRule

acs:config:*:{#accountId}:aggregateconfigrule/*

None None
config:StartAggregateConfigRuleEvaluation StartAggregateConfigRuleEvaluation none

*All Resource

*

None None
config:CreateCompliancePack CreateCompliancePack create

*CompliancePack

acs:config:*:{#accountId}:compliancepack/*

None None
config:GenerateConfigRulesReport GenerateConfigRulesReport get

*All Resource

*

None None
config:DeleteRemediations DeleteRemediations delete

*All Resource

*

None None
config:CreateRemediation CreateRemediation create

*All Resource

*

None None
config:UpdateIntegratedServiceStatus UpdateIntegratedServiceStatus update

*All Resource

*

None None
config:ListAggregateCompliancePacks ListAggregateCompliancePacks list

*AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/*

None None
config:StopConfigurationRecorder StopConfigurationRecorder update

*All Resource

*

None None
config:ListConfigRules ListConfigRules list

*Rule

acs:config:*:{#accountId}:rule/*

None None
config:CreateConfigDeliveryChannel CreateConfigDeliveryChannel create

*Delivery

acs:config:*:{#accountId}:delivery/*

None None
config:GetAggregateCompliancePackReport GetAggregateCompliancePackReport get

*AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregatorCompliancePackId}

None None
config:DeactiveConfigRules DeactiveConfigRules update

*All Resource

*

None None
config:CopyCompliancePacks CopyCompliancePacks create

*All Resource

*

None None
config:GetResourceInventory GetResourceInventory get

*All Resource

*

None None
config:ListAggregateConfigRuleEvaluationStatistics ListAggregateConfigRuleEvaluationStatistics list

*All Resource

*

None None
config:UpdateConfigurationRecorder UpdateConfigurationRecorder update

*All Resource

*

None None
config:ListRemediationExecutions ListRemediationExecutions list

*All Resource

*

None None
config:DeleteConfigRules DeleteConfigRules delete

*Rule

acs:config:*:{#accountId}:rule/{#ConfigRuleId}

None None
config:UpdateAggregator UpdateAggregator update

*Aggregator

acs:config:*:{#accountId}:aggregator/{#AggregatorId}

None None
config:GenerateAggregateCompliancePackReport GenerateAggregateCompliancePackReport create

*AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregatorCompliancePackId}

None None
config:GetManagedRule GetManagedRule get

*All Resource

*

None None
config:GetResourceComplianceTimeline GetResourceComplianceTimeline list

*All Resource

*

None None
config:DeleteConfigDeliveryChannel DeleteConfigDeliveryChannel delete

*Delivery

acs:config:*:{#accountId}:delivery/{#DeliveryChannelId}

None None
config:ListAggregateResourceRelations ListAggregateResourceRelations get

*All Resource

*

None None
config:UpdateRemediation UpdateRemediation update

*All Resource

*

None None
config:ListDiscoveredResources ListDiscoveredResources list

*All Resource

*

None None
config:GetDiscoveredResourceCountsGroupByRegion GetDiscoveredResourceCountsGroupByRegion get

*All Resource

*

None None
config:DryRunConfigRule DryRunConfigRule none

*All Resource

*

None None
config:GetComplianceSummary GetComplianceSummary get

*All Resource

*

None None
config:ListAggregateConfigDeliveryChannels ListAggregateConfigDeliveryChannels list

*All Resource

*

None None
config:GetResourceComplianceByConfigRule GetResourceComplianceByConfigRule get

*All Resource

*

None None
config:AttachAggregateConfigRuleToCompliancePack AttachAggregateConfigRuleToCompliancePack update

*All Resource

*

None None
config:RevertAggregateEvaluationResults RevertAggregateEvaluationResults update

*All Resource

*

None None
config:ListAggregators ListAggregators get

*Aggregator

acs:config:*:{#accountId}:aggregator/*

None None
config:ListResourceRelations ListResourceRelations get

*All Resource

*

None None
config:UpdateAggregateCompliancePack UpdateAggregateCompliancePack update

*AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregatorCompliancePackId}

None None
config:GenerateAggregateConfigRulesReport GenerateAggregateConfigRulesReport create

*All Resource

*

None None
config:ListResourceEvaluationResults ListResourceEvaluationResults list

*All Resource

*

None None
config:GetAggregateResourceInventory GetAggregateResourceInventory get

*All Resource

*

None None
config:GetIntegratedServiceStatus GetIntegratedServiceStatus get

*All Resource

*

None None
config:ListResourcesByAdvancedSearch ListResourcesByAdvancedSearch list

*All Resource

*

None None
config:GetAggregateResourceCountsGroupByResourceType GetAggregateResourceCountsGroupByResourceType get

*All Resource

*

None None
config:GetAggregateConfigRuleSummaryByRiskLevel GetAggregateConfigRuleSummaryByRiskLevel get

*All Resource

*

None None
config:TriggerReportSend TriggerReportSend none

*ReportTemplate

acs:config::{#accountId}:reporttemplate/{#ReportTemplateId}

None None
config:CreateAggregateConfigDeliveryChannel CreateAggregateConfigDeliveryChannel create

*AggregateDelivery

acs:config:*:{#accountId}:aggregatedelivery/*

None None
config:ListAggregateDiscoveredResources ListAggregateDiscoveredResources list

*All Resource

*

None None
config:DetachAggregateConfigRuleToCompliancePack DetachAggregateConfigRuleToCompliancePack update

*All Resource

*

None None
config:CreateReportTemplate CreateReportTemplate create

*ReportTemplate

acs:config::{#accountId}:reporttemplate/*

None None
config:GetAggregateAccountComplianceByPack GetAggregateAccountComplianceByPack get

*AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregatorCompliancePackId}

None None
config:DescribeRemediation DescribeRemediation get

*All Resource

*

None None
config:CreateAggregateAdvancedSearchFile CreateAggregateAdvancedSearchFile create

*All Resource

*

None None
config:PutEvaluations PutEvaluations none

*All Resource

*

None None
config:UntagResources UntagResources update

*All Resource

*

None None
config:ListAggregateConfigRules ListAggregateConfigRules list

*AggregateConfigRule

acs:config:*:{#accountId}:aggregateconfigrule/*

None None
config:DeleteAggregateRemediations DeleteAggregateRemediations delete

*All Resource

*

None None
config:GetAggregateResourceComplianceByPack GetAggregateResourceComplianceByPack get

*AggregateCompliancePack

acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregatorCompliancePackId}

None None
config:StartAggregateRemediation StartAggregateRemediation none

*All Resource

*

None None
config:GetConfigurationRecorder GetConfigurationRecorder get

*All Resource

*

None None
config:GetConfigDeliveryChannel GetConfigDeliveryChannel get

*Delivery

acs:config:*:{#accountId}:delivery/{#DeliveryChannelId}

None None
config:ListAggregateRemediationExecutions ListAggregateRemediationExecutions list

*All Resource

*

None None
config:StartRemediation StartRemediation none

*All Resource

*

None None
config:ListConfigRuleEvaluationStatistics ListConfigRuleEvaluationStatistics list

*All Resource

*

None None
config:ListConfigDeliveryChannels ListConfigDeliveryChannels list

*All Resource

*

None None
config:StartConfigurationRecorder StartConfigurationRecorder create

*All Resource

*

None None
config:GetResourceComplianceGroupByResourceType GetResourceComplianceGroupByResourceType get

*All Resource

*

None None
config:GetAdvancedSearchFile GetAdvancedSearchFile get

*All Resource

*

None None
config:StartConfigRuleEvaluationByResource StartConfigRuleEvaluationByResource none

*All Resource

*

None None
config:GetResourceTypeProperties GetResourceTypeProperties none

*All Resource

*

None None
config:GetCompliancePackReport GetCompliancePackReport get

*CompliancePack

acs:config:*:{#accountId}:compliancepack/{#CompliancePackId}

None None
config:GetAggregateAdvancedSearchFile GetAggregateAdvancedSearchFile get

*All Resource

*

None None
config:GenerateCompliancePackReport GenerateCompliancePackReport create

*CompliancePack

acs:config:*:{#accountId}:compliancepack/{#CompliancePackId}

None None
config:ActiveConfigRules ActiveConfigRules update

*All Resource

*

None None
config:UpdateConfigDeliveryChannel UpdateConfigDeliveryChannel update

*Delivery

acs:config:*:{#accountId}:delivery/{#DeliveryChannelId}

None None
config:GenerateResourceInventory GenerateResourceInventory none

*All Resource

*

None None

Resource

The following table lists the resource types and ARN formats defined by CloudConfig. The Resource element of RAM policy statements specifies the resources to which the statement applies. Notes:

  • {#} in an ARN is a variable placeholder. Replace it with the actual value. For example, replace {#ramcode} with the actual RAM code of the cloud service.

  • * in an ARN indicates all. For example:

    • {#resourceType} set to *: all resources.

    • {#regionId} set to *: all regions.

    • {#accountId} set to *: all Alibaba Cloud accounts.

Resource type

ARN

Rule
  • acs:config:*:{#accountId}:rule/*
  • acs:config:*:{#accountId}:rule/{#ConfigRuleId}
ReportTemplate
  • acs:config::{#accountId}:reporttemplate/{#ReportTemplateId}
  • acs:config::{#accountId}:reporttemplate/*
AggregateDelivery
  • acs:config:*:{#accountId}:aggregatedelivery/{#DeliveryChannelId}
  • acs:config:*:{#accountId}:aggregatedelivery/*
CompliancePack
  • acs:config:*:{#accountId}:compliancepack/{#CompliancePackId}
  • acs:config:*:{#accountId}:compliancepack/*
AggregateCompliancePack
  • acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregateCompliancePackId}
  • acs:config:*:{#accountId}:aggregatecompliancepack/{#AggregatorCompliancePackId}
  • acs:config:*:{#accountId}:aggregatecompliancepack/*
AggregateConfigRule
  • acs:config:*:{#accountId}:aggregateconfigrule/{#ConfigRuleId}
  • acs:config:*:{#accountId}:aggregateconfigrule/*
Resource
  • acs:config:*:{#accountId}:resource/{#ResourceId}
Aggregator
  • acs:config:*:{#accountId}:aggregator/{#AggregatorId}
  • acs:config:*:{#accountId}:aggregator/*
  • acs:config:*:{#accountId}:aggregator/{#AggregtorId}
Delivery
  • acs:config:*:{#accountId}:delivery/*
  • acs:config:*:{#accountId}:delivery/{#DeliveryChannelId}

Condition

CloudConfig does not define product-level condition keys. However, you can use Alibaba Cloud common condition keys for access control. For more information, see Common condition keys.

References

For information about conditional operators, custom policies, and authorization operations, see the following documents: