amazonka-ec2-1.6.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ModifyVPCEndpointServicePermissions

Contents

Description

Modifies the permissions for your VPC endpoint service . You can add or remove permissions for service consumers (IAM users, IAM roles, and AWS accounts) to connect to your endpoint service.

Synopsis

Creating a Request

modifyVPCEndpointServicePermissions #

Creates a value of ModifyVPCEndpointServicePermissions with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • mvespRemoveAllowedPrincipals - One or more Amazon Resource Names (ARNs) of principals for which to remove permission.
  • mvespAddAllowedPrincipals - One or more Amazon Resource Names (ARNs) of principals for which to allow permission. Specify * to allow all principals.
  • mvespDryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • mvespServiceId - The ID of the service.

data ModifyVPCEndpointServicePermissions #

See: modifyVPCEndpointServicePermissions smart constructor.

Instances

Eq ModifyVPCEndpointServicePermissions # 
Data ModifyVPCEndpointServicePermissions # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModifyVPCEndpointServicePermissions -> c ModifyVPCEndpointServicePermissions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModifyVPCEndpointServicePermissions #

toConstr :: ModifyVPCEndpointServicePermissions -> Constr #

dataTypeOf :: ModifyVPCEndpointServicePermissions -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ModifyVPCEndpointServicePermissions) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModifyVPCEndpointServicePermissions) #

gmapT :: (forall b. Data b => b -> b) -> ModifyVPCEndpointServicePermissions -> ModifyVPCEndpointServicePermissions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModifyVPCEndpointServicePermissions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModifyVPCEndpointServicePermissions -> r #

gmapQ :: (forall d. Data d => d -> u) -> ModifyVPCEndpointServicePermissions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ModifyVPCEndpointServicePermissions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModifyVPCEndpointServicePermissions -> m ModifyVPCEndpointServicePermissions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyVPCEndpointServicePermissions -> m ModifyVPCEndpointServicePermissions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyVPCEndpointServicePermissions -> m ModifyVPCEndpointServicePermissions #

Read ModifyVPCEndpointServicePermissions # 
Show ModifyVPCEndpointServicePermissions # 
Generic ModifyVPCEndpointServicePermissions # 
Hashable ModifyVPCEndpointServicePermissions # 
NFData ModifyVPCEndpointServicePermissions # 
AWSRequest ModifyVPCEndpointServicePermissions # 
ToHeaders ModifyVPCEndpointServicePermissions # 
ToPath ModifyVPCEndpointServicePermissions # 
ToQuery ModifyVPCEndpointServicePermissions # 
type Rep ModifyVPCEndpointServicePermissions # 
type Rep ModifyVPCEndpointServicePermissions = D1 * (MetaData "ModifyVPCEndpointServicePermissions" "Network.AWS.EC2.ModifyVPCEndpointServicePermissions" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "ModifyVPCEndpointServicePermissions'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mvespRemoveAllowedPrincipals") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_mvespAddAllowedPrincipals") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mvespDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_mvespServiceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs ModifyVPCEndpointServicePermissions # 

Request Lenses

mvespRemoveAllowedPrincipals :: Lens' ModifyVPCEndpointServicePermissions [Text] #

One or more Amazon Resource Names (ARNs) of principals for which to remove permission.

mvespAddAllowedPrincipals :: Lens' ModifyVPCEndpointServicePermissions [Text] #

One or more Amazon Resource Names (ARNs) of principals for which to allow permission. Specify * to allow all principals.

mvespDryRun :: Lens' ModifyVPCEndpointServicePermissions (Maybe Bool) #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

Destructuring the Response

modifyVPCEndpointServicePermissionsResponse #

Creates a value of ModifyVPCEndpointServicePermissionsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ModifyVPCEndpointServicePermissionsResponse #

Instances

Eq ModifyVPCEndpointServicePermissionsResponse # 
Data ModifyVPCEndpointServicePermissionsResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModifyVPCEndpointServicePermissionsResponse -> c ModifyVPCEndpointServicePermissionsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModifyVPCEndpointServicePermissionsResponse #

toConstr :: ModifyVPCEndpointServicePermissionsResponse -> Constr #

dataTypeOf :: ModifyVPCEndpointServicePermissionsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ModifyVPCEndpointServicePermissionsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModifyVPCEndpointServicePermissionsResponse) #

gmapT :: (forall b. Data b => b -> b) -> ModifyVPCEndpointServicePermissionsResponse -> ModifyVPCEndpointServicePermissionsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModifyVPCEndpointServicePermissionsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModifyVPCEndpointServicePermissionsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ModifyVPCEndpointServicePermissionsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ModifyVPCEndpointServicePermissionsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModifyVPCEndpointServicePermissionsResponse -> m ModifyVPCEndpointServicePermissionsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyVPCEndpointServicePermissionsResponse -> m ModifyVPCEndpointServicePermissionsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyVPCEndpointServicePermissionsResponse -> m ModifyVPCEndpointServicePermissionsResponse #

Read ModifyVPCEndpointServicePermissionsResponse # 
Show ModifyVPCEndpointServicePermissionsResponse # 
Generic ModifyVPCEndpointServicePermissionsResponse # 
NFData ModifyVPCEndpointServicePermissionsResponse # 
type Rep ModifyVPCEndpointServicePermissionsResponse # 
type Rep ModifyVPCEndpointServicePermissionsResponse = D1 * (MetaData "ModifyVPCEndpointServicePermissionsResponse" "Network.AWS.EC2.ModifyVPCEndpointServicePermissions" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "ModifyVPCEndpointServicePermissionsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_mvesprsReturnValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_mvesprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

mvesprsReturnValue :: Lens' ModifyVPCEndpointServicePermissionsResponse (Maybe Bool) #

Returns true if the request succeeds; otherwise, it returns an error.