/
CfnRole_PolicyProperty.go
36 lines (33 loc) · 1.58 KB
/
CfnRole_PolicyProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package awsiam
// Contains information about an attached policy.
//
// An attached policy is a managed policy that has been attached to a user, group, or role.
//
// For more information about managed policies, refer to [Managed Policies and Inline Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the *IAM User Guide* .
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var policyDocument interface{}
//
// policyProperty := &PolicyProperty{
// PolicyDocument: policyDocument,
// PolicyName: jsii.String("policyName"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-role-policy.html
//
type CfnRole_PolicyProperty struct {
// The entire contents of the policy that defines permissions.
//
// For more information, see [Overview of JSON policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-role-policy.html#cfn-iam-role-policy-policydocument
//
PolicyDocument interface{} `field:"required" json:"policyDocument" yaml:"policyDocument"`
// The friendly name (not ARN) identifying the policy.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-role-policy.html#cfn-iam-role-policy-policyname
//
PolicyName *string `field:"required" json:"policyName" yaml:"policyName"`
}