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 a resouce policy to control access to a model group. For information about resoure policies, see Identity-based policies and resource-based policies in the Amazon Web Services Identity and Access Management User Guide..
Synopsis
- data PutModelPackageGroupPolicy = PutModelPackageGroupPolicy' {}
- newPutModelPackageGroupPolicy :: Text -> Text -> PutModelPackageGroupPolicy
- putModelPackageGroupPolicy_modelPackageGroupName :: Lens' PutModelPackageGroupPolicy Text
- putModelPackageGroupPolicy_resourcePolicy :: Lens' PutModelPackageGroupPolicy Text
- data PutModelPackageGroupPolicyResponse = PutModelPackageGroupPolicyResponse' {}
- newPutModelPackageGroupPolicyResponse :: Int -> Text -> PutModelPackageGroupPolicyResponse
- putModelPackageGroupPolicyResponse_httpStatus :: Lens' PutModelPackageGroupPolicyResponse Int
- putModelPackageGroupPolicyResponse_modelPackageGroupArn :: Lens' PutModelPackageGroupPolicyResponse Text
Creating a Request
data PutModelPackageGroupPolicy Source #
See: newPutModelPackageGroupPolicy
smart constructor.
PutModelPackageGroupPolicy' | |
|
Instances
newPutModelPackageGroupPolicy Source #
:: Text | |
-> Text | |
-> PutModelPackageGroupPolicy |
Create a value of PutModelPackageGroupPolicy
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:modelPackageGroupName:PutModelPackageGroupPolicy'
, putModelPackageGroupPolicy_modelPackageGroupName
- The name of the model group to add a resource policy to.
$sel:resourcePolicy:PutModelPackageGroupPolicy'
, putModelPackageGroupPolicy_resourcePolicy
- The resource policy for the model group.
Request Lenses
putModelPackageGroupPolicy_modelPackageGroupName :: Lens' PutModelPackageGroupPolicy Text Source #
The name of the model group to add a resource policy to.
putModelPackageGroupPolicy_resourcePolicy :: Lens' PutModelPackageGroupPolicy Text Source #
The resource policy for the model group.
Destructuring the Response
data PutModelPackageGroupPolicyResponse Source #
See: newPutModelPackageGroupPolicyResponse
smart constructor.
PutModelPackageGroupPolicyResponse' | |
|
Instances
Eq PutModelPackageGroupPolicyResponse Source # | |
Read PutModelPackageGroupPolicyResponse Source # | |
Show PutModelPackageGroupPolicyResponse Source # | |
Generic PutModelPackageGroupPolicyResponse Source # | |
NFData PutModelPackageGroupPolicyResponse Source # | |
Defined in Amazonka.SageMaker.PutModelPackageGroupPolicy rnf :: PutModelPackageGroupPolicyResponse -> () # | |
type Rep PutModelPackageGroupPolicyResponse Source # | |
Defined in Amazonka.SageMaker.PutModelPackageGroupPolicy type Rep PutModelPackageGroupPolicyResponse = D1 ('MetaData "PutModelPackageGroupPolicyResponse" "Amazonka.SageMaker.PutModelPackageGroupPolicy" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "PutModelPackageGroupPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "modelPackageGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newPutModelPackageGroupPolicyResponse Source #
:: Int | |
-> Text |
|
-> PutModelPackageGroupPolicyResponse |
Create a value of PutModelPackageGroupPolicyResponse
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:PutModelPackageGroupPolicyResponse'
, putModelPackageGroupPolicyResponse_httpStatus
- The response's http status code.
$sel:modelPackageGroupArn:PutModelPackageGroupPolicyResponse'
, putModelPackageGroupPolicyResponse_modelPackageGroupArn
- The Amazon Resource Name (ARN) of the model package group.
Response Lenses
putModelPackageGroupPolicyResponse_httpStatus :: Lens' PutModelPackageGroupPolicyResponse Int Source #
The response's http status code.
putModelPackageGroupPolicyResponse_modelPackageGroupArn :: Lens' PutModelPackageGroupPolicyResponse Text Source #
The Amazon Resource Name (ARN) of the model package group.