@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:06.688Z") @Stability(value=Stable) public class CfnFunctionDefinition extends CfnResource implements IInspectable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;
Object tags;
Object variables;
CfnFunctionDefinition cfnFunctionDefinition = CfnFunctionDefinition.Builder.create(this, "MyCfnFunctionDefinition")
.name("name")
// the properties below are optional
.initialVersion(FunctionDefinitionVersionProperty.builder()
.functions(List.of(FunctionProperty.builder()
.functionArn("functionArn")
.functionConfiguration(FunctionConfigurationProperty.builder()
.encodingType("encodingType")
.environment(EnvironmentProperty.builder()
.accessSysfs(false)
.execution(ExecutionProperty.builder()
.isolationMode("isolationMode")
.runAs(RunAsProperty.builder()
.gid(123)
.uid(123)
.build())
.build())
.resourceAccessPolicies(List.of(ResourceAccessPolicyProperty.builder()
.resourceId("resourceId")
// the properties below are optional
.permission("permission")
.build()))
.variables(variables)
.build())
.execArgs("execArgs")
.executable("executable")
.memorySize(123)
.pinned(false)
.timeout(123)
.build())
.id("id")
.build()))
// the properties below are optional
.defaultConfig(DefaultConfigProperty.builder()
.execution(ExecutionProperty.builder()
.isolationMode("isolationMode")
.runAs(RunAsProperty.builder()
.gid(123)
.uid(123)
.build())
.build())
.build())
.build())
.tags(tags)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnFunctionDefinition.Builder
A fluent builder for
CfnFunctionDefinition. |
static interface |
CfnFunctionDefinition.DefaultConfigProperty
Example:
|
static interface |
CfnFunctionDefinition.EnvironmentProperty
Example:
|
static interface |
CfnFunctionDefinition.ExecutionProperty
Example:
|
static interface |
CfnFunctionDefinition.FunctionConfigurationProperty
Example:
|
static interface |
CfnFunctionDefinition.FunctionDefinitionVersionProperty
Example:
|
static interface |
CfnFunctionDefinition.FunctionProperty
Example:
|
static interface |
CfnFunctionDefinition.ResourceAccessPolicyProperty
Example:
|
static interface |
CfnFunctionDefinition.RunAsProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnFunctionDefinition(software.constructs.Construct scope,
String id,
CfnFunctionDefinitionProps props)
Create a new `AWS::Greengrass::FunctionDefinition`.
|
protected |
CfnFunctionDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnFunctionDefinition(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn() |
String |
getAttrId() |
String |
getAttrLatestVersionArn() |
String |
getAttrName() |
protected Map<String,Object> |
getCfnProperties() |
Object |
getInitialVersion()
`AWS::Greengrass::FunctionDefinition.InitialVersion`.
|
String |
getName()
`AWS::Greengrass::FunctionDefinition.Name`.
|
TagManager |
getTags()
`AWS::Greengrass::FunctionDefinition.Tags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setInitialVersion(CfnFunctionDefinition.FunctionDefinitionVersionProperty value)
`AWS::Greengrass::FunctionDefinition.InitialVersion`.
|
void |
setInitialVersion(IResolvable value)
`AWS::Greengrass::FunctionDefinition.InitialVersion`.
|
void |
setName(String value)
`AWS::Greengrass::FunctionDefinition.Name`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnFunctionDefinition(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnFunctionDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnFunctionDefinition(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnFunctionDefinitionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull public String getAttrLatestVersionArn()
@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Object getInitialVersion()
@Stability(value=Stable)
public void setInitialVersion(@Nullable
CfnFunctionDefinition.FunctionDefinitionVersionProperty value)
@Stability(value=Stable)
public void setInitialVersion(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public TagManager getTags()
Copyright © 2021. All rights reserved.