Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Adds an environment member to an Cloud9 development environment.
Synopsis
- data CreateEnvironmentMembership = CreateEnvironmentMembership' {}
- newCreateEnvironmentMembership :: Text -> Text -> MemberPermissions -> CreateEnvironmentMembership
- createEnvironmentMembership_environmentId :: Lens' CreateEnvironmentMembership Text
- createEnvironmentMembership_userArn :: Lens' CreateEnvironmentMembership Text
- createEnvironmentMembership_permissions :: Lens' CreateEnvironmentMembership MemberPermissions
- data CreateEnvironmentMembershipResponse = CreateEnvironmentMembershipResponse' {}
- newCreateEnvironmentMembershipResponse :: Int -> EnvironmentMember -> CreateEnvironmentMembershipResponse
- createEnvironmentMembershipResponse_httpStatus :: Lens' CreateEnvironmentMembershipResponse Int
- createEnvironmentMembershipResponse_membership :: Lens' CreateEnvironmentMembershipResponse EnvironmentMember
Creating a Request
data CreateEnvironmentMembership Source #
See: newCreateEnvironmentMembership
smart constructor.
CreateEnvironmentMembership' | |
|
Instances
newCreateEnvironmentMembership Source #
Create a value of CreateEnvironmentMembership
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:environmentId:CreateEnvironmentMembership'
, createEnvironmentMembership_environmentId
- The ID of the environment that contains the environment member you want
to add.
$sel:userArn:CreateEnvironmentMembership'
, createEnvironmentMembership_userArn
- The Amazon Resource Name (ARN) of the environment member you want to
add.
$sel:permissions:CreateEnvironmentMembership'
, createEnvironmentMembership_permissions
- The type of environment member permissions you want to associate with
this environment member. Available values include:
read-only
: Has read-only access to the environment.read-write
: Has read-write access to the environment.
Request Lenses
createEnvironmentMembership_environmentId :: Lens' CreateEnvironmentMembership Text Source #
The ID of the environment that contains the environment member you want to add.
createEnvironmentMembership_userArn :: Lens' CreateEnvironmentMembership Text Source #
The Amazon Resource Name (ARN) of the environment member you want to add.
createEnvironmentMembership_permissions :: Lens' CreateEnvironmentMembership MemberPermissions Source #
The type of environment member permissions you want to associate with this environment member. Available values include:
read-only
: Has read-only access to the environment.read-write
: Has read-write access to the environment.
Destructuring the Response
data CreateEnvironmentMembershipResponse Source #
See: newCreateEnvironmentMembershipResponse
smart constructor.
CreateEnvironmentMembershipResponse' | |
|
Instances
Eq CreateEnvironmentMembershipResponse Source # | |
Read CreateEnvironmentMembershipResponse Source # | |
Show CreateEnvironmentMembershipResponse Source # | |
Generic CreateEnvironmentMembershipResponse Source # | |
NFData CreateEnvironmentMembershipResponse Source # | |
Defined in Amazonka.Cloud9.CreateEnvironmentMembership rnf :: CreateEnvironmentMembershipResponse -> () # | |
type Rep CreateEnvironmentMembershipResponse Source # | |
Defined in Amazonka.Cloud9.CreateEnvironmentMembership type Rep CreateEnvironmentMembershipResponse = D1 ('MetaData "CreateEnvironmentMembershipResponse" "Amazonka.Cloud9.CreateEnvironmentMembership" "libZSservicesZSamazonka-cloud9ZSamazonka-cloud9" 'False) (C1 ('MetaCons "CreateEnvironmentMembershipResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "membership") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EnvironmentMember))) |
newCreateEnvironmentMembershipResponse Source #
Create a value of CreateEnvironmentMembershipResponse
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:httpStatus:CreateEnvironmentMembershipResponse'
, createEnvironmentMembershipResponse_httpStatus
- The response's http status code.
$sel:membership:CreateEnvironmentMembershipResponse'
, createEnvironmentMembershipResponse_membership
- Information about the environment member that was added.
Response Lenses
createEnvironmentMembershipResponse_httpStatus :: Lens' CreateEnvironmentMembershipResponse Int Source #
The response's http status code.
createEnvironmentMembershipResponse_membership :: Lens' CreateEnvironmentMembershipResponse EnvironmentMember Source #
Information about the environment member that was added.