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 |
Associates a related item to a Systems Manager OpsCenter OpsItem. For example, you can associate an Incident Manager incident or analysis with an OpsItem. Incident Manager and OpsCenter are capabilities of Amazon Web Services Systems Manager.
Synopsis
- data AssociateOpsItemRelatedItem = AssociateOpsItemRelatedItem' {
- opsItemId :: Text
- associationType :: Text
- resourceType :: Text
- resourceUri :: Text
- newAssociateOpsItemRelatedItem :: Text -> Text -> Text -> Text -> AssociateOpsItemRelatedItem
- associateOpsItemRelatedItem_opsItemId :: Lens' AssociateOpsItemRelatedItem Text
- associateOpsItemRelatedItem_associationType :: Lens' AssociateOpsItemRelatedItem Text
- associateOpsItemRelatedItem_resourceType :: Lens' AssociateOpsItemRelatedItem Text
- associateOpsItemRelatedItem_resourceUri :: Lens' AssociateOpsItemRelatedItem Text
- data AssociateOpsItemRelatedItemResponse = AssociateOpsItemRelatedItemResponse' {
- associationId :: Maybe Text
- httpStatus :: Int
- newAssociateOpsItemRelatedItemResponse :: Int -> AssociateOpsItemRelatedItemResponse
- associateOpsItemRelatedItemResponse_associationId :: Lens' AssociateOpsItemRelatedItemResponse (Maybe Text)
- associateOpsItemRelatedItemResponse_httpStatus :: Lens' AssociateOpsItemRelatedItemResponse Int
Creating a Request
data AssociateOpsItemRelatedItem Source #
See: newAssociateOpsItemRelatedItem
smart constructor.
AssociateOpsItemRelatedItem' | |
|
Instances
newAssociateOpsItemRelatedItem Source #
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> AssociateOpsItemRelatedItem |
Create a value of AssociateOpsItemRelatedItem
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:opsItemId:AssociateOpsItemRelatedItem'
, associateOpsItemRelatedItem_opsItemId
- The ID of the OpsItem to which you want to associate a resource as a
related item.
$sel:associationType:AssociateOpsItemRelatedItem'
, associateOpsItemRelatedItem_associationType
- The type of association that you want to create between an OpsItem and a
resource. OpsCenter supports IsParentOf
and RelatesTo
association
types.
$sel:resourceType:AssociateOpsItemRelatedItem'
, associateOpsItemRelatedItem_resourceType
- The type of resource that you want to associate with an OpsItem.
OpsCenter supports the following types:
AWS::SSMIncidents::IncidentRecord
: an Incident Manager incident.
AWS::SSM::Document
: a Systems Manager (SSM) document.
$sel:resourceUri:AssociateOpsItemRelatedItem'
, associateOpsItemRelatedItem_resourceUri
- The Amazon Resource Name (ARN) of the Amazon Web Services resource that
you want to associate with the OpsItem.
Request Lenses
associateOpsItemRelatedItem_opsItemId :: Lens' AssociateOpsItemRelatedItem Text Source #
The ID of the OpsItem to which you want to associate a resource as a related item.
associateOpsItemRelatedItem_associationType :: Lens' AssociateOpsItemRelatedItem Text Source #
The type of association that you want to create between an OpsItem and a
resource. OpsCenter supports IsParentOf
and RelatesTo
association
types.
associateOpsItemRelatedItem_resourceType :: Lens' AssociateOpsItemRelatedItem Text Source #
The type of resource that you want to associate with an OpsItem. OpsCenter supports the following types:
AWS::SSMIncidents::IncidentRecord
: an Incident Manager incident.
AWS::SSM::Document
: a Systems Manager (SSM) document.
associateOpsItemRelatedItem_resourceUri :: Lens' AssociateOpsItemRelatedItem Text Source #
The Amazon Resource Name (ARN) of the Amazon Web Services resource that you want to associate with the OpsItem.
Destructuring the Response
data AssociateOpsItemRelatedItemResponse Source #
See: newAssociateOpsItemRelatedItemResponse
smart constructor.
AssociateOpsItemRelatedItemResponse' | |
|
Instances
Eq AssociateOpsItemRelatedItemResponse Source # | |
Read AssociateOpsItemRelatedItemResponse Source # | |
Show AssociateOpsItemRelatedItemResponse Source # | |
Generic AssociateOpsItemRelatedItemResponse Source # | |
NFData AssociateOpsItemRelatedItemResponse Source # | |
Defined in Amazonka.SSM.AssociateOpsItemRelatedItem rnf :: AssociateOpsItemRelatedItemResponse -> () # | |
type Rep AssociateOpsItemRelatedItemResponse Source # | |
Defined in Amazonka.SSM.AssociateOpsItemRelatedItem type Rep AssociateOpsItemRelatedItemResponse = D1 ('MetaData "AssociateOpsItemRelatedItemResponse" "Amazonka.SSM.AssociateOpsItemRelatedItem" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "AssociateOpsItemRelatedItemResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "associationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAssociateOpsItemRelatedItemResponse Source #
Create a value of AssociateOpsItemRelatedItemResponse
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:associationId:AssociateOpsItemRelatedItemResponse'
, associateOpsItemRelatedItemResponse_associationId
- The association ID.
$sel:httpStatus:AssociateOpsItemRelatedItemResponse'
, associateOpsItemRelatedItemResponse_httpStatus
- The response's http status code.
Response Lenses
associateOpsItemRelatedItemResponse_associationId :: Lens' AssociateOpsItemRelatedItemResponse (Maybe Text) Source #
The association ID.
associateOpsItemRelatedItemResponse_httpStatus :: Lens' AssociateOpsItemRelatedItemResponse Int Source #
The response's http status code.