Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Provides identifying details of the resource being migrated so that it can be associated in the Application Discovery Service (ADS)'s repository. This association occurs asynchronously after PutResourceAttributes
returns.
Important: * Keep in mind that subsequent calls to PutResourceAttributes will override previously stored attributes. For example, if it is first called with a MAC address, but later, it is desired to add an IP address, it will then be required to call it with both the IP and MAC addresses to prevent overiding the MAC address.
- Note the instructions regarding the special use case of the
ResourceAttributeList
parameter when specifying any VM related value.
Synopsis
- putResourceAttributes :: Text -> Text -> NonEmpty ResourceAttribute -> PutResourceAttributes
- data PutResourceAttributes
- praDryRun :: Lens' PutResourceAttributes (Maybe Bool)
- praProgressUpdateStream :: Lens' PutResourceAttributes Text
- praMigrationTaskName :: Lens' PutResourceAttributes Text
- praResourceAttributeList :: Lens' PutResourceAttributes (NonEmpty ResourceAttribute)
- putResourceAttributesResponse :: Int -> PutResourceAttributesResponse
- data PutResourceAttributesResponse
- prarsResponseStatus :: Lens' PutResourceAttributesResponse Int
Creating a Request
putResourceAttributes Source #
Creates a value of PutResourceAttributes
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
praDryRun
- Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.praProgressUpdateStream
- The name of the ProgressUpdateStream.praMigrationTaskName
- Unique identifier that references the migration task.praResourceAttributeList
- Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service (ADS)'s repository. Important: If any VM related value is used for aResourceAttribute
object, it is required thatVM_MANAGER_ID
, as a minimum, is always used. If it is not used, the server will not be associated in the Application Discovery Service (ADS)'s repository using any of the other VM related values, and you will experience data loss. See the Example section below for a use case of specifying VM related values.
data PutResourceAttributes Source #
See: putResourceAttributes
smart constructor.
Instances
Request Lenses
praDryRun :: Lens' PutResourceAttributes (Maybe Bool) Source #
Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
praProgressUpdateStream :: Lens' PutResourceAttributes Text Source #
The name of the ProgressUpdateStream.
praMigrationTaskName :: Lens' PutResourceAttributes Text Source #
Unique identifier that references the migration task.
praResourceAttributeList :: Lens' PutResourceAttributes (NonEmpty ResourceAttribute) Source #
Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service (ADS)'s repository. Important: If any VM related value is used for a ResourceAttribute
object, it is required that VM_MANAGER_ID
, as a minimum, is always used. If it is not used, the server will not be associated in the Application Discovery Service (ADS)'s repository using any of the other VM related values, and you will experience data loss. See the Example section below for a use case of specifying VM related values.
Destructuring the Response
putResourceAttributesResponse Source #
Creates a value of PutResourceAttributesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
prarsResponseStatus
- -- | The response status code.
data PutResourceAttributesResponse Source #
See: putResourceAttributesResponse
smart constructor.
Instances
Response Lenses
prarsResponseStatus :: Lens' PutResourceAttributesResponse Int Source #
- - | The response status code.