SCP::IAM::Policy
SCP::IAM::Policy
SCP::IAM::Policy
Description
An IAM Policy that defines permissions. The policy document contains statements that allow or deny specific actions on resources, and can be bound to users, groups, or roles.
Version
1.4.0
Syntax
To declare this entity in your Infrastructure Builder template, use the following syntax:
JSON
{
"Type" : "SCP::IAM::Policy",
"Properties" : {
"PolicyName" : "String",
"Description" : "String",
"PolicyVersion" : "PolicyVersion"
}
}
YAML
Type: SCP::IAM::Policy
Properties:
PolicyName: String
Description: String
PolicyVersion: PolicyVersion
Properties
PolicyName
The name of the policy. Used to identify the policy within the account. After creation, the name cannot be changed. - minLength : 3 - maxLength : 128 - pattern : ^[a-zA-Z0-9-.,_+=@ㄱ-ㅎㅏ-ㅣ가-힣]*$
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | String |
| Pattern | ^[a-zA-Z0-9\-.,_+=@ㄱ-ㅎㅏ-ㅣ가-힣]*$ |
| Length constraints | 3–128 |
| Update requires | No interruption |
Description
A brief explanation or note about this policy. This helps identify the purpose or usage of the policy. - maxLength : 1000
| Attribute | Value |
|---|---|
| Required | No |
| Type | String |
| Length constraints | Max: 1000 |
| Update requires | No interruption |
PolicyVersion
The version of the policy. Contains the policy document that defines the policy permissions.
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | PolicyVersion |
| Update requires | No interruption |
For more information, see PolicyVersion.
Return Values
Ref
When you pass the logical ID of this resource to the Ref function, Ref returns the value of the Id.
Fn::GetAtt
| Attribute | Description |
|---|---|
| PolicyName | The name of the policy. Used to identify the policy within the account. After creation, the name cannot be changed. - minLength : 3 - maxLength : 128 - pattern : ^[a-zA-Z0-9-.,_+=@ㄱ-ㅎㅏ-ㅣ가-힣]*$ |
| Description | A brief explanation or note about this policy. This helps identify the purpose or usage of the policy. - maxLength : 1000 |
| PolicyType | The type of the policy. - enum : [SYSTEM_MANAGED, USER_DEFINED, INLINE] |
| PolicyCategory | The category of the policy. - enum : [IDENTITY_BASED, RESOURCE_BASED, SESSION] |
| State | The state of the policy. - enum : [ACTIVE, INACTIVE, DELETED] |
| DefaultVersionId | The default version id of the policy. Used when the policy version is not specified explicitly. |
| Srn | The Samsung resource name (SRN) of the policy. Uniquely identifies the policy within the platform. |
| AccountId | The account ID that owns the policy. |
| DomainName | The domain name where the policy belongs. |
| ServiceType | The service type of the policy. |
| ServiceName | The service name of the policy. |
| ResourceType | The resource type of the policy. |
| CreatorName | The name of the user who created the policy. |
| CreatorEmail | The email of the user who created the policy. |
| ModifierName | The name of the user who last modified the policy. |
| ModifierEmail | The email of the user who last modified the policy. |