| 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 |
Amazonka.Greengrass.CreateFunctionDefinition
Description
Creates a Lambda function definition which contains a list of Lambda functions and their configurations to be used in a group. You can create an initial version of the definition by providing a list of Lambda functions and their configurations now, or use ''CreateFunctionDefinitionVersion'' later.
Synopsis
- data CreateFunctionDefinition = CreateFunctionDefinition' {}
- newCreateFunctionDefinition :: CreateFunctionDefinition
- createFunctionDefinition_amznClientToken :: Lens' CreateFunctionDefinition (Maybe Text)
- createFunctionDefinition_initialVersion :: Lens' CreateFunctionDefinition (Maybe FunctionDefinitionVersion)
- createFunctionDefinition_name :: Lens' CreateFunctionDefinition (Maybe Text)
- createFunctionDefinition_tags :: Lens' CreateFunctionDefinition (Maybe (HashMap Text Text))
- data CreateFunctionDefinitionResponse = CreateFunctionDefinitionResponse' {
- arn :: Maybe Text
- creationTimestamp :: Maybe Text
- id :: Maybe Text
- lastUpdatedTimestamp :: Maybe Text
- latestVersion :: Maybe Text
- latestVersionArn :: Maybe Text
- name :: Maybe Text
- httpStatus :: Int
- newCreateFunctionDefinitionResponse :: Int -> CreateFunctionDefinitionResponse
- createFunctionDefinitionResponse_arn :: Lens' CreateFunctionDefinitionResponse (Maybe Text)
- createFunctionDefinitionResponse_creationTimestamp :: Lens' CreateFunctionDefinitionResponse (Maybe Text)
- createFunctionDefinitionResponse_id :: Lens' CreateFunctionDefinitionResponse (Maybe Text)
- createFunctionDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateFunctionDefinitionResponse (Maybe Text)
- createFunctionDefinitionResponse_latestVersion :: Lens' CreateFunctionDefinitionResponse (Maybe Text)
- createFunctionDefinitionResponse_latestVersionArn :: Lens' CreateFunctionDefinitionResponse (Maybe Text)
- createFunctionDefinitionResponse_name :: Lens' CreateFunctionDefinitionResponse (Maybe Text)
- createFunctionDefinitionResponse_httpStatus :: Lens' CreateFunctionDefinitionResponse Int
Creating a Request
data CreateFunctionDefinition Source #
See: newCreateFunctionDefinition smart constructor.
Constructors
| CreateFunctionDefinition' | |
Fields
| |
Instances
newCreateFunctionDefinition :: CreateFunctionDefinition Source #
Create a value of CreateFunctionDefinition 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:amznClientToken:CreateFunctionDefinition', createFunctionDefinition_amznClientToken - A client token used to correlate requests and responses.
$sel:initialVersion:CreateFunctionDefinition', createFunctionDefinition_initialVersion - Information about the initial version of the function definition.
CreateFunctionDefinition, createFunctionDefinition_name - The name of the function definition.
CreateFunctionDefinition, createFunctionDefinition_tags - Tag(s) to add to the new resource.
Request Lenses
createFunctionDefinition_amznClientToken :: Lens' CreateFunctionDefinition (Maybe Text) Source #
A client token used to correlate requests and responses.
createFunctionDefinition_initialVersion :: Lens' CreateFunctionDefinition (Maybe FunctionDefinitionVersion) Source #
Information about the initial version of the function definition.
createFunctionDefinition_name :: Lens' CreateFunctionDefinition (Maybe Text) Source #
The name of the function definition.
createFunctionDefinition_tags :: Lens' CreateFunctionDefinition (Maybe (HashMap Text Text)) Source #
Tag(s) to add to the new resource.
Destructuring the Response
data CreateFunctionDefinitionResponse Source #
See: newCreateFunctionDefinitionResponse smart constructor.
Constructors
| CreateFunctionDefinitionResponse' | |
Fields
| |
Instances
newCreateFunctionDefinitionResponse Source #
Create a value of CreateFunctionDefinitionResponse 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:
CreateFunctionDefinitionResponse, createFunctionDefinitionResponse_arn - The ARN of the definition.
CreateFunctionDefinitionResponse, createFunctionDefinitionResponse_creationTimestamp - The time, in milliseconds since the epoch, when the definition was
created.
CreateFunctionDefinitionResponse, createFunctionDefinitionResponse_id - The ID of the definition.
CreateFunctionDefinitionResponse, createFunctionDefinitionResponse_lastUpdatedTimestamp - The time, in milliseconds since the epoch, when the definition was last
updated.
CreateFunctionDefinitionResponse, createFunctionDefinitionResponse_latestVersion - The ID of the latest version associated with the definition.
CreateFunctionDefinitionResponse, createFunctionDefinitionResponse_latestVersionArn - The ARN of the latest version associated with the definition.
CreateFunctionDefinition, createFunctionDefinitionResponse_name - The name of the definition.
$sel:httpStatus:CreateFunctionDefinitionResponse', createFunctionDefinitionResponse_httpStatus - The response's http status code.
Response Lenses
createFunctionDefinitionResponse_arn :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #
The ARN of the definition.
createFunctionDefinitionResponse_creationTimestamp :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was created.
createFunctionDefinitionResponse_id :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #
The ID of the definition.
createFunctionDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
createFunctionDefinitionResponse_latestVersion :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #
The ID of the latest version associated with the definition.
createFunctionDefinitionResponse_latestVersionArn :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #
The ARN of the latest version associated with the definition.
createFunctionDefinitionResponse_name :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #
The name of the definition.
createFunctionDefinitionResponse_httpStatus :: Lens' CreateFunctionDefinitionResponse Int Source #
The response's http status code.