Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Modifies the list of Identity and Access Management (IAM) roles that can be used by the cluster to access other Amazon Web Services services.
The maximum number of IAM roles that you can associate is subject to a quota. For more information, go to Quotas and limits in the Amazon Redshift Cluster Management Guide.
Synopsis
- data ModifyClusterIamRoles = ModifyClusterIamRoles' {
- addIamRoles :: Maybe [Text]
- defaultIamRoleArn :: Maybe Text
- removeIamRoles :: Maybe [Text]
- clusterIdentifier :: Text
- newModifyClusterIamRoles :: Text -> ModifyClusterIamRoles
- modifyClusterIamRoles_addIamRoles :: Lens' ModifyClusterIamRoles (Maybe [Text])
- modifyClusterIamRoles_defaultIamRoleArn :: Lens' ModifyClusterIamRoles (Maybe Text)
- modifyClusterIamRoles_removeIamRoles :: Lens' ModifyClusterIamRoles (Maybe [Text])
- modifyClusterIamRoles_clusterIdentifier :: Lens' ModifyClusterIamRoles Text
- data ModifyClusterIamRolesResponse = ModifyClusterIamRolesResponse' {
- cluster :: Maybe Cluster
- httpStatus :: Int
- newModifyClusterIamRolesResponse :: Int -> ModifyClusterIamRolesResponse
- modifyClusterIamRolesResponse_cluster :: Lens' ModifyClusterIamRolesResponse (Maybe Cluster)
- modifyClusterIamRolesResponse_httpStatus :: Lens' ModifyClusterIamRolesResponse Int
Creating a Request
data ModifyClusterIamRoles Source #
See: newModifyClusterIamRoles
smart constructor.
ModifyClusterIamRoles' | |
|
Instances
newModifyClusterIamRoles Source #
Create a value of ModifyClusterIamRoles
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:addIamRoles:ModifyClusterIamRoles'
, modifyClusterIamRoles_addIamRoles
- Zero or more IAM roles to associate with the cluster. The roles must be
in their Amazon Resource Name (ARN) format.
ModifyClusterIamRoles
, modifyClusterIamRoles_defaultIamRoleArn
- The Amazon Resource Name (ARN) for the IAM role that was set as default
for the cluster when the cluster was last modified.
$sel:removeIamRoles:ModifyClusterIamRoles'
, modifyClusterIamRoles_removeIamRoles
- Zero or more IAM roles in ARN format to disassociate from the cluster.
ModifyClusterIamRoles
, modifyClusterIamRoles_clusterIdentifier
- The unique identifier of the cluster for which you want to associate or
disassociate IAM roles.
Request Lenses
modifyClusterIamRoles_addIamRoles :: Lens' ModifyClusterIamRoles (Maybe [Text]) Source #
Zero or more IAM roles to associate with the cluster. The roles must be in their Amazon Resource Name (ARN) format.
modifyClusterIamRoles_defaultIamRoleArn :: Lens' ModifyClusterIamRoles (Maybe Text) Source #
The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was last modified.
modifyClusterIamRoles_removeIamRoles :: Lens' ModifyClusterIamRoles (Maybe [Text]) Source #
Zero or more IAM roles in ARN format to disassociate from the cluster.
modifyClusterIamRoles_clusterIdentifier :: Lens' ModifyClusterIamRoles Text Source #
The unique identifier of the cluster for which you want to associate or disassociate IAM roles.
Destructuring the Response
data ModifyClusterIamRolesResponse Source #
See: newModifyClusterIamRolesResponse
smart constructor.
ModifyClusterIamRolesResponse' | |
|
Instances
newModifyClusterIamRolesResponse Source #
Create a value of ModifyClusterIamRolesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cluster:ModifyClusterIamRolesResponse'
, modifyClusterIamRolesResponse_cluster
- Undocumented member.
$sel:httpStatus:ModifyClusterIamRolesResponse'
, modifyClusterIamRolesResponse_httpStatus
- The response's http status code.
Response Lenses
modifyClusterIamRolesResponse_cluster :: Lens' ModifyClusterIamRolesResponse (Maybe Cluster) Source #
Undocumented member.
modifyClusterIamRolesResponse_httpStatus :: Lens' ModifyClusterIamRolesResponse Int Source #
The response's http status code.