types.go (3968B)
1 // Code generated by smithy-go-codegen DO NOT EDIT. 2 3 package types 4 5 import ( 6 smithydocument "github.com/aws/smithy-go/document" 7 "time" 8 ) 9 10 // The identifiers for the temporary security credentials that the operation 11 // returns. 12 type AssumedRoleUser struct { 13 14 // The ARN of the temporary security credentials that are returned from the 15 // AssumeRole action. For more information about ARNs and how to use them in 16 // policies, see IAM Identifiers 17 // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) in 18 // the IAM User Guide. 19 // 20 // This member is required. 21 Arn *string 22 23 // A unique identifier that contains the role ID and the role session name of the 24 // role that is being assumed. The role ID is generated by Amazon Web Services when 25 // the role is created. 26 // 27 // This member is required. 28 AssumedRoleId *string 29 30 noSmithyDocumentSerde 31 } 32 33 // Amazon Web Services credentials for API authentication. 34 type Credentials struct { 35 36 // The access key ID that identifies the temporary security credentials. 37 // 38 // This member is required. 39 AccessKeyId *string 40 41 // The date on which the current credentials expire. 42 // 43 // This member is required. 44 Expiration *time.Time 45 46 // The secret access key that can be used to sign requests. 47 // 48 // This member is required. 49 SecretAccessKey *string 50 51 // The token that users must pass to the service API to use the temporary 52 // credentials. 53 // 54 // This member is required. 55 SessionToken *string 56 57 noSmithyDocumentSerde 58 } 59 60 // Identifiers for the federated user that is associated with the credentials. 61 type FederatedUser struct { 62 63 // The ARN that specifies the federated user that is associated with the 64 // credentials. For more information about ARNs and how to use them in policies, 65 // see IAM Identifiers 66 // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) in 67 // the IAM User Guide. 68 // 69 // This member is required. 70 Arn *string 71 72 // The string that identifies the federated user associated with the credentials, 73 // similar to the unique ID of an IAM user. 74 // 75 // This member is required. 76 FederatedUserId *string 77 78 noSmithyDocumentSerde 79 } 80 81 // A reference to the IAM managed policy that is passed as a session policy for a 82 // role session or a federated user session. 83 type PolicyDescriptorType struct { 84 85 // The Amazon Resource Name (ARN) of the IAM managed policy to use as a session 86 // policy for the role. For more information about ARNs, see Amazon Resource Names 87 // (ARNs) and Amazon Web Services Service Namespaces 88 // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in 89 // the Amazon Web Services General Reference. 90 Arn *string 91 92 noSmithyDocumentSerde 93 } 94 95 // You can pass custom key-value pair attributes when you assume a role or federate 96 // a user. These are called session tags. You can then use the session tags to 97 // control access to resources. For more information, see Tagging Amazon Web 98 // Services STS Sessions 99 // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html) in the 100 // IAM User Guide. 101 type Tag struct { 102 103 // The key for a session tag. You can pass up to 50 session tags. The plain text 104 // session tag keys can’t exceed 128 characters. For these and additional limits, 105 // see IAM and STS Character Limits 106 // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length) 107 // in the IAM User Guide. 108 // 109 // This member is required. 110 Key *string 111 112 // The value for a session tag. You can pass up to 50 session tags. The plain text 113 // session tag values can’t exceed 256 characters. For these and additional limits, 114 // see IAM and STS Character Limits 115 // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length) 116 // in the IAM User Guide. 117 // 118 // This member is required. 119 Value *string 120 121 noSmithyDocumentSerde 122 } 123 124 type noSmithyDocumentSerde = smithydocument.NoSerde