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 a pull through cache rule. A pull through cache rule provides a way to cache images from an external public registry in your Amazon ECR private registry.
Synopsis
- data CreatePullThroughCacheRule = CreatePullThroughCacheRule' {}
- newCreatePullThroughCacheRule :: Text -> Text -> CreatePullThroughCacheRule
- createPullThroughCacheRule_registryId :: Lens' CreatePullThroughCacheRule (Maybe Text)
- createPullThroughCacheRule_ecrRepositoryPrefix :: Lens' CreatePullThroughCacheRule Text
- createPullThroughCacheRule_upstreamRegistryUrl :: Lens' CreatePullThroughCacheRule Text
- data CreatePullThroughCacheRuleResponse = CreatePullThroughCacheRuleResponse' {}
- newCreatePullThroughCacheRuleResponse :: Int -> CreatePullThroughCacheRuleResponse
- createPullThroughCacheRuleResponse_createdAt :: Lens' CreatePullThroughCacheRuleResponse (Maybe UTCTime)
- createPullThroughCacheRuleResponse_ecrRepositoryPrefix :: Lens' CreatePullThroughCacheRuleResponse (Maybe Text)
- createPullThroughCacheRuleResponse_registryId :: Lens' CreatePullThroughCacheRuleResponse (Maybe Text)
- createPullThroughCacheRuleResponse_upstreamRegistryUrl :: Lens' CreatePullThroughCacheRuleResponse (Maybe Text)
- createPullThroughCacheRuleResponse_httpStatus :: Lens' CreatePullThroughCacheRuleResponse Int
Creating a Request
data CreatePullThroughCacheRule Source #
See: newCreatePullThroughCacheRule
smart constructor.
CreatePullThroughCacheRule' | |
|
Instances
newCreatePullThroughCacheRule Source #
Create a value of CreatePullThroughCacheRule
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:
CreatePullThroughCacheRule
, createPullThroughCacheRule_registryId
- The Amazon Web Services account ID associated with the registry to
create the pull through cache rule for. If you do not specify a
registry, the default registry is assumed.
CreatePullThroughCacheRule
, createPullThroughCacheRule_ecrRepositoryPrefix
- The repository name prefix to use when caching images from the source
registry.
CreatePullThroughCacheRule
, createPullThroughCacheRule_upstreamRegistryUrl
- The registry URL of the upstream public registry to use as the source
for the pull through cache rule.
Request Lenses
createPullThroughCacheRule_registryId :: Lens' CreatePullThroughCacheRule (Maybe Text) Source #
The Amazon Web Services account ID associated with the registry to create the pull through cache rule for. If you do not specify a registry, the default registry is assumed.
createPullThroughCacheRule_ecrRepositoryPrefix :: Lens' CreatePullThroughCacheRule Text Source #
The repository name prefix to use when caching images from the source registry.
createPullThroughCacheRule_upstreamRegistryUrl :: Lens' CreatePullThroughCacheRule Text Source #
The registry URL of the upstream public registry to use as the source for the pull through cache rule.
Destructuring the Response
data CreatePullThroughCacheRuleResponse Source #
See: newCreatePullThroughCacheRuleResponse
smart constructor.
CreatePullThroughCacheRuleResponse' | |
|
Instances
newCreatePullThroughCacheRuleResponse Source #
Create a value of CreatePullThroughCacheRuleResponse
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:
CreatePullThroughCacheRuleResponse
, createPullThroughCacheRuleResponse_createdAt
- The date and time, in JavaScript date format, when the pull through
cache rule was created.
CreatePullThroughCacheRule
, createPullThroughCacheRuleResponse_ecrRepositoryPrefix
- The Amazon ECR repository prefix associated with the pull through cache
rule.
CreatePullThroughCacheRule
, createPullThroughCacheRuleResponse_registryId
- The registry ID associated with the request.
CreatePullThroughCacheRule
, createPullThroughCacheRuleResponse_upstreamRegistryUrl
- The upstream registry URL associated with the pull through cache rule.
$sel:httpStatus:CreatePullThroughCacheRuleResponse'
, createPullThroughCacheRuleResponse_httpStatus
- The response's http status code.
Response Lenses
createPullThroughCacheRuleResponse_createdAt :: Lens' CreatePullThroughCacheRuleResponse (Maybe UTCTime) Source #
The date and time, in JavaScript date format, when the pull through cache rule was created.
createPullThroughCacheRuleResponse_ecrRepositoryPrefix :: Lens' CreatePullThroughCacheRuleResponse (Maybe Text) Source #
The Amazon ECR repository prefix associated with the pull through cache rule.
createPullThroughCacheRuleResponse_registryId :: Lens' CreatePullThroughCacheRuleResponse (Maybe Text) Source #
The registry ID associated with the request.
createPullThroughCacheRuleResponse_upstreamRegistryUrl :: Lens' CreatePullThroughCacheRuleResponse (Maybe Text) Source #
The upstream registry URL associated with the pull through cache rule.
createPullThroughCacheRuleResponse_httpStatus :: Lens' CreatePullThroughCacheRuleResponse Int Source #
The response's http status code.