

# WorkspaceEnforcedPolicy

Describes a WorkSpace-enforced policy.

## Contents
<a name="API_WorkspaceEnforcedPolicy_Contents"></a>

 ** CreatedAt **   <a name="WorkSpaces-Type-WorkspaceEnforcedPolicy-CreatedAt"></a>
The time when the WorkSpace-enforced policy was created.  
Type: Timestamp  
Required: Yes

 ** Id **   <a name="WorkSpaces-Type-WorkspaceEnforcedPolicy-Id"></a>
The identifier of the WorkSpace-enforced policy.  
Type: String  
Length Constraints: Minimum length of 13. Maximum length of 64.  
Pattern: `^wsep-[0-9a-z]{8,59}$`   
Required: Yes

 ** Name **   <a name="WorkSpaces-Type-WorkspaceEnforcedPolicy-Name"></a>
The name of the WorkSpace-enforced policy.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Required: Yes

 ** Owner **   <a name="WorkSpaces-Type-WorkspaceEnforcedPolicy-Owner"></a>
The owner of the WorkSpace-enforced policy:  
+  `SELF` – Your account owns the policy.
+  `AMAZON` – Amazon owns the policy. You can use it, but you can't change or delete it.
Type: String  
Valid Values: `SELF | AMAZON`   
Required: Yes

 ** PolicyBody **   <a name="WorkSpaces-Type-WorkspaceEnforcedPolicy-PolicyBody"></a>
Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 65536.  
Pattern: `^[^\x00-\x08\x0B\x0C\x0E-\x1F]+$`   
Required: Yes

## See Also
<a name="API_WorkspaceEnforcedPolicy_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/workspaces-2015-04-08/WorkspaceEnforcedPolicy) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/workspaces-2015-04-08/WorkspaceEnforcedPolicy) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/workspaces-2015-04-08/WorkspaceEnforcedPolicy) 