import { Value } from '../../cloudformation/Value';
import { PolicyDocument } from '../../cloudformation/iam/PolicyDocument';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type ManagedPolicyAttributes = {
    IsAttachable: Attribute<boolean>;
    UpdateDate: Attribute<string>;
    PermissionsBoundaryUsageCount: Attribute<number>;
    AttachmentCount: Attribute<number>;
    PolicyArn: Attribute<string>;
    DefaultVersionId: Attribute<string>;
    CreateDate: Attribute<string>;
    PolicyId: Attribute<string>;
};
export type ManagedPolicy = AwsResource<'AWS::IAM::ManagedPolicy', ManagedPolicyProperties, ManagedPolicyAttributes>;
/**
  Creates a new managed policy for your AWS account.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html">the AWS Docs</a>
*/
export declare function managedPolicy(managedPolicyProps: ManagedPolicyProperties): ManagedPolicy;
/**
  Creates a new managed policy for your AWS account.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html">the AWS Docs</a>
*/
export interface ManagedPolicyProperties {
    /** <code>ManagedPolicyName</code>  <a name="cfn-iam-managedpolicy-managedpolicyname"></a>
  The friendly name of the policy.<br />
  If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
  If you specify a name, you must specify the <code>CAPABILITY_NAMED_IAM</code> value to acknowledge your template’s capabilities. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#using-iam-capabilities">Acknowledging IAM Resources in AWS CloudFormation Templates</a>.<br />
  Naming an IAM resource can cause an unrecoverable error if you reuse the same template in multiple Regions. To prevent this, we recommend using <code>Fn::Join</code> and <code>AWS::Region</code> to create a Region-specific name, as in the following example: <code>{&quot;Fn::Join&quot;: [&quot;&quot;, [{&quot;Ref&quot;: &quot;AWS::Region&quot;}, {&quot;Ref&quot;: &quot;MyResourceName&quot;}]]}</code>.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    managedPolicyName?: Value<string>;
    /** <code>Path</code>  <a name="cfn-iam-managedpolicy-path"></a>
  The path for the policy.<br />
  For more information about paths, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM identifiers</a> in the
  IAM User Guide: br />
  This parameter is optional. If it is not included, it defaults to a slash (/).<br />
  This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (<code>\u0021</code>) through the DEL character (<code>\u007F</code>), including most punctuation characters, digits, and upper and lowercased letters.<br />
  You cannot use an asterisk (*) in the path name.
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>512</code><br />
  
  Pattern: <code>((/[A-Za-z0-9\.,\+@=_-]+)*)/</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    path?: Value<string>;
    /** <code>Description</code>  <a name="cfn-iam-managedpolicy-description"></a>
  A friendly description of the policy.<br />
  Typically used to store information about the permissions defined in the policy. For example, “Grants access to production DynamoDB tables.”<br />
  The policy description is immutable. After a value is assigned, it cannot be changed.<br />
  
  Required: No<br />
  
  Maximum: <code>1000</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    description?: Value<string>;
    /** <code>Groups</code>  <a name="cfn-iam-managedpolicy-groups"></a>
  The name (friendly name, not ARN) of the group to attach the policy to.<br />
  This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-<br />
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>128</code><br />
  
  Pattern: <code>[\w+=,.@-]+</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    groups?: Value<Value<string>[]>;
    /** <code>PolicyDocument</code>  <a name="cfn-iam-managedpolicy-policydocument"></a>
  The JSON policy document that you want to use as the content for the new policy.<br />
  You must provide policies in JSON format in IAM. However, for AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.<br />
  The maximum length of the policy document that you can pass in this operation, including whitespace, is listed below. To view the maximum character counts of a managed policy with no whitespaces, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-quotas-entity-length">IAM and AWS STS character quotas</a>.<br />
  To learn more about JSON policy grammar, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_grammar.html">Grammar of the IAM JSON policy language</a> in the
  IAM User Guide: br />
  The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> used to validate this parameter is a string of characters consisting of the following: */
    policyDocument: Value<PolicyDocument>;
    /** <code>Roles</code>  <a name="cfn-iam-managedpolicy-roles"></a>
  The name (friendly name, not ARN) of the role to attach the policy to.<br />
  This parameter allows (per its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-<br />
  If an external policy (such as <code>AWS::IAM::Policy</code> or <code>AWS::IAM::ManagedPolicy</code>) has a <code>Ref</code> to a role and if a resource (such as <code>AWS::ECS::Service</code>) also has a <code>Ref</code> to the same role, add a <code>DependsOn</code> attribute to the resource to make the resource depend on the external policy. This dependency ensures that the role’s policy is available throughout the resource’s lifecycle. For example, when you delete a stack with an <code>AWS::ECS::Service</code> resource, the <code>DependsOn</code> attribute ensures that AWS CloudFormation deletes the <code>AWS::ECS::Service</code> resource before deleting its role’s policy.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    roles?: Value<Value<string>[]>;
    /** <code>Users</code>  <a name="cfn-iam-managedpolicy-users"></a>
  The name (friendly name, not ARN) of the IAM user to attach the policy to.<br />
  This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-<br />
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>64</code><br />
  
  Pattern: <code>[\w+=,.@-]+</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    users?: Value<Value<string>[]>;
}
