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 |
This operation creates a revision for a data set.
Synopsis
- data CreateRevision = CreateRevision' {}
- newCreateRevision :: Text -> CreateRevision
- createRevision_comment :: Lens' CreateRevision (Maybe Text)
- createRevision_tags :: Lens' CreateRevision (Maybe (HashMap Text Text))
- createRevision_dataSetId :: Lens' CreateRevision Text
- data CreateRevisionResponse = CreateRevisionResponse' {
- arn :: Maybe Text
- comment :: Maybe Text
- createdAt :: Maybe ISO8601
- dataSetId :: Maybe Text
- finalized :: Maybe Bool
- id :: Maybe Text
- revocationComment :: Maybe Text
- revoked :: Maybe Bool
- revokedAt :: Maybe ISO8601
- sourceId :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- updatedAt :: Maybe ISO8601
- httpStatus :: Int
- newCreateRevisionResponse :: Int -> CreateRevisionResponse
- createRevisionResponse_arn :: Lens' CreateRevisionResponse (Maybe Text)
- createRevisionResponse_comment :: Lens' CreateRevisionResponse (Maybe Text)
- createRevisionResponse_createdAt :: Lens' CreateRevisionResponse (Maybe UTCTime)
- createRevisionResponse_dataSetId :: Lens' CreateRevisionResponse (Maybe Text)
- createRevisionResponse_finalized :: Lens' CreateRevisionResponse (Maybe Bool)
- createRevisionResponse_id :: Lens' CreateRevisionResponse (Maybe Text)
- createRevisionResponse_revocationComment :: Lens' CreateRevisionResponse (Maybe Text)
- createRevisionResponse_revoked :: Lens' CreateRevisionResponse (Maybe Bool)
- createRevisionResponse_revokedAt :: Lens' CreateRevisionResponse (Maybe UTCTime)
- createRevisionResponse_sourceId :: Lens' CreateRevisionResponse (Maybe Text)
- createRevisionResponse_tags :: Lens' CreateRevisionResponse (Maybe (HashMap Text Text))
- createRevisionResponse_updatedAt :: Lens' CreateRevisionResponse (Maybe UTCTime)
- createRevisionResponse_httpStatus :: Lens' CreateRevisionResponse Int
Creating a Request
data CreateRevision Source #
See: newCreateRevision
smart constructor.
CreateRevision' | |
|
Instances
Create a value of CreateRevision
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:
CreateRevision
, createRevision_comment
- An optional comment about the revision.
CreateRevision
, createRevision_tags
- A revision tag is an optional label that you can assign to a revision
when you create it. Each tag consists of a key and an optional value,
both of which you define. When you use tagging, you can also use
tag-based access control in IAM policies to control access to these data
sets and revisions.
CreateRevision
, createRevision_dataSetId
- The unique identifier for a data set.
Request Lenses
createRevision_comment :: Lens' CreateRevision (Maybe Text) Source #
An optional comment about the revision.
createRevision_tags :: Lens' CreateRevision (Maybe (HashMap Text Text)) Source #
A revision tag is an optional label that you can assign to a revision when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to these data sets and revisions.
createRevision_dataSetId :: Lens' CreateRevision Text Source #
The unique identifier for a data set.
Destructuring the Response
data CreateRevisionResponse Source #
See: newCreateRevisionResponse
smart constructor.
CreateRevisionResponse' | |
|
Instances
newCreateRevisionResponse Source #
Create a value of CreateRevisionResponse
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:
CreateRevisionResponse
, createRevisionResponse_arn
- The ARN for the revision.
CreateRevision
, createRevisionResponse_comment
- An optional comment about the revision.
CreateRevisionResponse
, createRevisionResponse_createdAt
- The date and time that the revision was created, in ISO 8601 format.
CreateRevision
, createRevisionResponse_dataSetId
- The unique identifier for the data set associated with the data set
revision.
CreateRevisionResponse
, createRevisionResponse_finalized
- To publish a revision to a data set in a product, the revision must
first be finalized. Finalizing a revision tells AWS Data Exchange that
your changes to the assets in the revision are complete. After it's in
this read-only state, you can publish the revision to your products.
Finalized revisions can be published through the AWS Data Exchange
console or the AWS Marketplace Catalog API, using the StartChangeSet AWS
Marketplace Catalog API action. When using the API, revisions are
uniquely identified by their ARN.
CreateRevisionResponse
, createRevisionResponse_id
- The unique identifier for the revision.
CreateRevisionResponse
, createRevisionResponse_revocationComment
- A required comment to inform subscribers of the reason their access to
the revision was revoked.
CreateRevisionResponse
, createRevisionResponse_revoked
- A status indicating that subscribers' access to the revision was
revoked.
CreateRevisionResponse
, createRevisionResponse_revokedAt
- The date and time that the revision was revoked, in ISO 8601 format.
CreateRevisionResponse
, createRevisionResponse_sourceId
- The revision ID of the owned revision corresponding to the entitled
revision being viewed. This parameter is returned when a revision owner
is viewing the entitled copy of its owned revision.
CreateRevision
, createRevisionResponse_tags
- The tags for the revision.
CreateRevisionResponse
, createRevisionResponse_updatedAt
- The date and time that the revision was last updated, in ISO 8601
format.
$sel:httpStatus:CreateRevisionResponse'
, createRevisionResponse_httpStatus
- The response's http status code.
Response Lenses
createRevisionResponse_arn :: Lens' CreateRevisionResponse (Maybe Text) Source #
The ARN for the revision.
createRevisionResponse_comment :: Lens' CreateRevisionResponse (Maybe Text) Source #
An optional comment about the revision.
createRevisionResponse_createdAt :: Lens' CreateRevisionResponse (Maybe UTCTime) Source #
The date and time that the revision was created, in ISO 8601 format.
createRevisionResponse_dataSetId :: Lens' CreateRevisionResponse (Maybe Text) Source #
The unique identifier for the data set associated with the data set revision.
createRevisionResponse_finalized :: Lens' CreateRevisionResponse (Maybe Bool) Source #
To publish a revision to a data set in a product, the revision must first be finalized. Finalizing a revision tells AWS Data Exchange that your changes to the assets in the revision are complete. After it's in this read-only state, you can publish the revision to your products. Finalized revisions can be published through the AWS Data Exchange console or the AWS Marketplace Catalog API, using the StartChangeSet AWS Marketplace Catalog API action. When using the API, revisions are uniquely identified by their ARN.
createRevisionResponse_id :: Lens' CreateRevisionResponse (Maybe Text) Source #
The unique identifier for the revision.
createRevisionResponse_revocationComment :: Lens' CreateRevisionResponse (Maybe Text) Source #
A required comment to inform subscribers of the reason their access to the revision was revoked.
createRevisionResponse_revoked :: Lens' CreateRevisionResponse (Maybe Bool) Source #
A status indicating that subscribers' access to the revision was revoked.
createRevisionResponse_revokedAt :: Lens' CreateRevisionResponse (Maybe UTCTime) Source #
The date and time that the revision was revoked, in ISO 8601 format.
createRevisionResponse_sourceId :: Lens' CreateRevisionResponse (Maybe Text) Source #
The revision ID of the owned revision corresponding to the entitled revision being viewed. This parameter is returned when a revision owner is viewing the entitled copy of its owned revision.
createRevisionResponse_tags :: Lens' CreateRevisionResponse (Maybe (HashMap Text Text)) Source #
The tags for the revision.
createRevisionResponse_updatedAt :: Lens' CreateRevisionResponse (Maybe UTCTime) Source #
The date and time that the revision was last updated, in ISO 8601 format.
createRevisionResponse_httpStatus :: Lens' CreateRevisionResponse Int Source #
The response's http status code.