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 |
Creates or updates the replication configuration for a registry. The existing replication configuration for a repository can be retrieved with the DescribeRegistry API action. The first time the PutReplicationConfiguration API is called, a service-linked IAM role is created in your account for the replication process. For more information, see Using service-linked roles for Amazon ECR in the Amazon Elastic Container Registry User Guide.
When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a registry permissions policy. For more information, see PutRegistryPolicy.
Synopsis
- data PutReplicationConfiguration = PutReplicationConfiguration' {}
- newPutReplicationConfiguration :: ReplicationConfiguration -> PutReplicationConfiguration
- putReplicationConfiguration_replicationConfiguration :: Lens' PutReplicationConfiguration ReplicationConfiguration
- data PutReplicationConfigurationResponse = PutReplicationConfigurationResponse' {}
- newPutReplicationConfigurationResponse :: Int -> PutReplicationConfigurationResponse
- putReplicationConfigurationResponse_replicationConfiguration :: Lens' PutReplicationConfigurationResponse (Maybe ReplicationConfiguration)
- putReplicationConfigurationResponse_httpStatus :: Lens' PutReplicationConfigurationResponse Int
Creating a Request
data PutReplicationConfiguration Source #
See: newPutReplicationConfiguration
smart constructor.
PutReplicationConfiguration' | |
|
Instances
newPutReplicationConfiguration Source #
Create a value of PutReplicationConfiguration
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:
PutReplicationConfiguration
, putReplicationConfiguration_replicationConfiguration
- An object representing the replication configuration for a registry.
Request Lenses
putReplicationConfiguration_replicationConfiguration :: Lens' PutReplicationConfiguration ReplicationConfiguration Source #
An object representing the replication configuration for a registry.
Destructuring the Response
data PutReplicationConfigurationResponse Source #
See: newPutReplicationConfigurationResponse
smart constructor.
PutReplicationConfigurationResponse' | |
|
Instances
Generic PutReplicationConfigurationResponse Source # | |
Read PutReplicationConfigurationResponse Source # | |
Show PutReplicationConfigurationResponse Source # | |
NFData PutReplicationConfigurationResponse Source # | |
Defined in Amazonka.ECR.PutReplicationConfiguration rnf :: PutReplicationConfigurationResponse -> () # | |
Eq PutReplicationConfigurationResponse Source # | |
type Rep PutReplicationConfigurationResponse Source # | |
Defined in Amazonka.ECR.PutReplicationConfiguration type Rep PutReplicationConfigurationResponse = D1 ('MetaData "PutReplicationConfigurationResponse" "Amazonka.ECR.PutReplicationConfiguration" "amazonka-ecr-2.0-BqgZWPod2JCFn2nq69DCrJ" 'False) (C1 ('MetaCons "PutReplicationConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "replicationConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReplicationConfiguration)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutReplicationConfigurationResponse Source #
Create a value of PutReplicationConfigurationResponse
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:
PutReplicationConfiguration
, putReplicationConfigurationResponse_replicationConfiguration
- The contents of the replication configuration for the registry.
$sel:httpStatus:PutReplicationConfigurationResponse'
, putReplicationConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
putReplicationConfigurationResponse_replicationConfiguration :: Lens' PutReplicationConfigurationResponse (Maybe ReplicationConfiguration) Source #
The contents of the replication configuration for the registry.
putReplicationConfigurationResponse_httpStatus :: Lens' PutReplicationConfigurationResponse Int Source #
The response's http status code.