amazonka-ecr-2.0: Amazon EC2 Container Registry SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ECR.CreatePullThroughCacheRule

Description

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

Creating a Request

data CreatePullThroughCacheRule Source #

See: newCreatePullThroughCacheRule smart constructor.

Constructors

CreatePullThroughCacheRule' 

Fields

  • registryId :: Maybe Text

    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.

  • ecrRepositoryPrefix :: Text

    The repository name prefix to use when caching images from the source registry.

  • upstreamRegistryUrl :: Text

    The registry URL of the upstream public registry to use as the source for the pull through cache rule.

Instances

Instances details
ToJSON CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

ToHeaders CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

ToPath CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

ToQuery CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

AWSRequest CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

Generic CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

Associated Types

type Rep CreatePullThroughCacheRule :: Type -> Type #

Read CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

Show CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

NFData CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

Eq CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

Hashable CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

type AWSResponse CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

type Rep CreatePullThroughCacheRule Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

type Rep CreatePullThroughCacheRule = D1 ('MetaData "CreatePullThroughCacheRule" "Amazonka.ECR.CreatePullThroughCacheRule" "amazonka-ecr-2.0-BqgZWPod2JCFn2nq69DCrJ" 'False) (C1 ('MetaCons "CreatePullThroughCacheRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "ecrRepositoryPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "upstreamRegistryUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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 #

Constructors

CreatePullThroughCacheRuleResponse' 

Fields

Instances

Instances details
Generic CreatePullThroughCacheRuleResponse Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

Associated Types

type Rep CreatePullThroughCacheRuleResponse :: Type -> Type #

Read CreatePullThroughCacheRuleResponse Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

Show CreatePullThroughCacheRuleResponse Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

NFData CreatePullThroughCacheRuleResponse Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

Eq CreatePullThroughCacheRuleResponse Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

type Rep CreatePullThroughCacheRuleResponse Source # 
Instance details

Defined in Amazonka.ECR.CreatePullThroughCacheRule

type Rep CreatePullThroughCacheRuleResponse = D1 ('MetaData "CreatePullThroughCacheRuleResponse" "Amazonka.ECR.CreatePullThroughCacheRule" "amazonka-ecr-2.0-BqgZWPod2JCFn2nq69DCrJ" 'False) (C1 ('MetaCons "CreatePullThroughCacheRuleResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "ecrRepositoryPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "upstreamRegistryUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

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_upstreamRegistryUrl :: Lens' CreatePullThroughCacheRuleResponse (Maybe Text) Source #

The upstream registry URL associated with the pull through cache rule.