awsemrserverless

package
v2.151.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

AWS::EMRServerless Construct Library

This module is part of the AWS Cloud Development Kit project.

import emrserverless "github.com/aws/aws-cdk-go/awscdk"

There are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:

There are no hand-written (L2) constructs for this service yet. However, you can still use the automatically generated L1 constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the CloudFormation documentation for AWS::EMRServerless.

(Read the CDK Contributing Guide and submit an RFC if you are interested in contributing to this construct library.)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CfnApplication_CFN_RESOURCE_TYPE_NAME

func CfnApplication_CFN_RESOURCE_TYPE_NAME() *string

func CfnApplication_IsCfnElement

func CfnApplication_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnApplication_IsCfnResource

func CfnApplication_IsCfnResource(x interface{}) *bool

Check whether the given object is a CfnResource.

func CfnApplication_IsConstruct

func CfnApplication_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func NewCfnApplication_Override

func NewCfnApplication_Override(c CfnApplication, scope constructs.Construct, id *string, props *CfnApplicationProps)

Types

type CfnApplication

type CfnApplication interface {
	awscdk.CfnResource
	awscdk.IInspectable
	awscdk.ITaggable
	// The CPU architecture of an application.
	Architecture() *string
	SetArchitecture(val *string)
	// The ID of the application, such as `ab4rp1abcs8xz47n3x0example` .
	AttrApplicationId() *string
	// The Amazon Resource Name (ARN) of the project.
	AttrArn() *string
	// The configuration for an application to automatically start on job submission.
	AutoStartConfiguration() interface{}
	SetAutoStartConfiguration(val interface{})
	// The configuration for an application to automatically stop after a certain amount of time being idle.
	AutoStopConfiguration() interface{}
	SetAutoStopConfiguration(val interface{})
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// The image configuration applied to all worker types.
	ImageConfiguration() interface{}
	SetImageConfiguration(val interface{})
	// The initial capacity of the application.
	InitialCapacity() interface{}
	SetInitialCapacity(val interface{})
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The maximum capacity of the application.
	MaximumCapacity() interface{}
	SetMaximumCapacity(val interface{})
	// A configuration specification to be used when provisioning an application.
	MonitoringConfiguration() interface{}
	SetMonitoringConfiguration(val interface{})
	// The name of the application.
	Name() *string
	SetName(val *string)
	// The network configuration for customer VPC connectivity for the application.
	NetworkConfiguration() interface{}
	SetNetworkConfiguration(val interface{})
	// The tree node.
	Node() constructs.Node
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// The EMR release associated with the application.
	ReleaseLabel() *string
	SetReleaseLabel(val *string)
	// The [Configuration](https://docs.aws.amazon.com/emr-serverless/latest/APIReference/API_Configuration.html) specifications of an application. Each configuration consists of a classification and properties. You use this parameter when creating or updating an application. To see the runtimeConfiguration object of an application, run the [GetApplication](https://docs.aws.amazon.com/emr-serverless/latest/APIReference/API_GetApplication.html) API operation.
	RuntimeConfiguration() interface{}
	SetRuntimeConfiguration(val interface{})
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// Tag Manager which manages the tags for this resource.
	Tags() awscdk.TagManager
	// The tags assigned to the application.
	TagsRaw() *[]*awscdk.CfnTag
	SetTagsRaw(val *[]*awscdk.CfnTag)
	// The type of application, such as Spark or Hive.
	Type() *string
	SetType(val *string)
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// The specification applied to each worker type.
	WorkerTypeSpecifications() interface{}
	SetWorkerTypeSpecifications(val interface{})
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

The `AWS::EMRServerless::Application` resource specifies an EMR Serverless application.

An application uses open source analytics frameworks to run jobs that process data. To create an application, you must specify the release version for the open source framework version you want to use and the type of application you want, such as Apache Spark or Apache Hive. After you create an application, you can submit data processing jobs or interactive requests to it.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var configurationObjectProperty_ configurationObjectProperty

cfnApplication := awscdk.Aws_emrserverless.NewCfnApplication(this, jsii.String("MyCfnApplication"), &CfnApplicationProps{
	ReleaseLabel: jsii.String("releaseLabel"),
	Type: jsii.String("type"),

	// the properties below are optional
	Architecture: jsii.String("architecture"),
	AutoStartConfiguration: &AutoStartConfigurationProperty{
		Enabled: jsii.Boolean(false),
	},
	AutoStopConfiguration: &AutoStopConfigurationProperty{
		Enabled: jsii.Boolean(false),
		IdleTimeoutMinutes: jsii.Number(123),
	},
	ImageConfiguration: &ImageConfigurationInputProperty{
		ImageUri: jsii.String("imageUri"),
	},
	InitialCapacity: []interface{}{
		&InitialCapacityConfigKeyValuePairProperty{
			Key: jsii.String("key"),
			Value: &InitialCapacityConfigProperty{
				WorkerConfiguration: &WorkerConfigurationProperty{
					Cpu: jsii.String("cpu"),
					Memory: jsii.String("memory"),

					// the properties below are optional
					Disk: jsii.String("disk"),
					DiskType: jsii.String("diskType"),
				},
				WorkerCount: jsii.Number(123),
			},
		},
	},
	MaximumCapacity: &MaximumAllowedResourcesProperty{
		Cpu: jsii.String("cpu"),
		Memory: jsii.String("memory"),

		// the properties below are optional
		Disk: jsii.String("disk"),
	},
	MonitoringConfiguration: &MonitoringConfigurationProperty{
		CloudWatchLoggingConfiguration: &CloudWatchLoggingConfigurationProperty{
			Enabled: jsii.Boolean(false),
			EncryptionKeyArn: jsii.String("encryptionKeyArn"),
			LogGroupName: jsii.String("logGroupName"),
			LogStreamNamePrefix: jsii.String("logStreamNamePrefix"),
			LogTypeMap: []interface{}{
				&LogTypeMapKeyValuePairProperty{
					Key: jsii.String("key"),
					Value: []*string{
						jsii.String("value"),
					},
				},
			},
		},
		ManagedPersistenceMonitoringConfiguration: &ManagedPersistenceMonitoringConfigurationProperty{
			Enabled: jsii.Boolean(false),
			EncryptionKeyArn: jsii.String("encryptionKeyArn"),
		},
		S3MonitoringConfiguration: &S3MonitoringConfigurationProperty{
			EncryptionKeyArn: jsii.String("encryptionKeyArn"),
			LogUri: jsii.String("logUri"),
		},
	},
	Name: jsii.String("name"),
	NetworkConfiguration: &NetworkConfigurationProperty{
		SecurityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
		SubnetIds: []*string{
			jsii.String("subnetIds"),
		},
	},
	RuntimeConfiguration: []interface{}{
		&configurationObjectProperty{
			Classification: jsii.String("classification"),

			// the properties below are optional
			Configurations: []interface{}{
				configurationObjectProperty_,
			},
			Properties: map[string]*string{
				"propertiesKey": jsii.String("properties"),
			},
		},
	},
	Tags: []cfnTag{
		&cfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	WorkerTypeSpecifications: map[string]interface{}{
		"workerTypeSpecificationsKey": &WorkerTypeSpecificationInputProperty{
			"imageConfiguration": &ImageConfigurationInputProperty{
				"imageUri": jsii.String("imageUri"),
			},
		},
	},
})

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html

func NewCfnApplication

func NewCfnApplication(scope constructs.Construct, id *string, props *CfnApplicationProps) CfnApplication

type CfnApplicationProps

type CfnApplicationProps struct {
	// The EMR release associated with the application.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-releaselabel
	//
	ReleaseLabel *string `field:"required" json:"releaseLabel" yaml:"releaseLabel"`
	// The type of application, such as Spark or Hive.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-type
	//
	Type *string `field:"required" json:"type" yaml:"type"`
	// The CPU architecture of an application.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-architecture
	//
	Architecture *string `field:"optional" json:"architecture" yaml:"architecture"`
	// The configuration for an application to automatically start on job submission.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-autostartconfiguration
	//
	AutoStartConfiguration interface{} `field:"optional" json:"autoStartConfiguration" yaml:"autoStartConfiguration"`
	// The configuration for an application to automatically stop after a certain amount of time being idle.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-autostopconfiguration
	//
	AutoStopConfiguration interface{} `field:"optional" json:"autoStopConfiguration" yaml:"autoStopConfiguration"`
	// The image configuration applied to all worker types.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-imageconfiguration
	//
	ImageConfiguration interface{} `field:"optional" json:"imageConfiguration" yaml:"imageConfiguration"`
	// The initial capacity of the application.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-initialcapacity
	//
	InitialCapacity interface{} `field:"optional" json:"initialCapacity" yaml:"initialCapacity"`
	// The maximum capacity of the application.
	//
	// This is cumulative across all workers at any given point in time during the lifespan of the application is created. No new resources will be created once any one of the defined limits is hit.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-maximumcapacity
	//
	MaximumCapacity interface{} `field:"optional" json:"maximumCapacity" yaml:"maximumCapacity"`
	// A configuration specification to be used when provisioning an application.
	//
	// A configuration consists of a classification, properties, and optional nested configurations. A classification refers to an application-specific configuration file. Properties are the settings you want to change in that file.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-monitoringconfiguration
	//
	MonitoringConfiguration interface{} `field:"optional" json:"monitoringConfiguration" yaml:"monitoringConfiguration"`
	// The name of the application.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-name
	//
	Name *string `field:"optional" json:"name" yaml:"name"`
	// The network configuration for customer VPC connectivity for the application.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-networkconfiguration
	//
	NetworkConfiguration interface{} `field:"optional" json:"networkConfiguration" yaml:"networkConfiguration"`
	// The [Configuration](https://docs.aws.amazon.com/emr-serverless/latest/APIReference/API_Configuration.html) specifications of an application. Each configuration consists of a classification and properties. You use this parameter when creating or updating an application. To see the runtimeConfiguration object of an application, run the [GetApplication](https://docs.aws.amazon.com/emr-serverless/latest/APIReference/API_GetApplication.html) API operation.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-runtimeconfiguration
	//
	RuntimeConfiguration interface{} `field:"optional" json:"runtimeConfiguration" yaml:"runtimeConfiguration"`
	// The tags assigned to the application.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-tags
	//
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
	// The specification applied to each worker type.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-workertypespecifications
	//
	WorkerTypeSpecifications interface{} `field:"optional" json:"workerTypeSpecifications" yaml:"workerTypeSpecifications"`
}

Properties for defining a `CfnApplication`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var configurationObjectProperty_ configurationObjectProperty

cfnApplicationProps := &CfnApplicationProps{
	ReleaseLabel: jsii.String("releaseLabel"),
	Type: jsii.String("type"),

	// the properties below are optional
	Architecture: jsii.String("architecture"),
	AutoStartConfiguration: &AutoStartConfigurationProperty{
		Enabled: jsii.Boolean(false),
	},
	AutoStopConfiguration: &AutoStopConfigurationProperty{
		Enabled: jsii.Boolean(false),
		IdleTimeoutMinutes: jsii.Number(123),
	},
	ImageConfiguration: &ImageConfigurationInputProperty{
		ImageUri: jsii.String("imageUri"),
	},
	InitialCapacity: []interface{}{
		&InitialCapacityConfigKeyValuePairProperty{
			Key: jsii.String("key"),
			Value: &InitialCapacityConfigProperty{
				WorkerConfiguration: &WorkerConfigurationProperty{
					Cpu: jsii.String("cpu"),
					Memory: jsii.String("memory"),

					// the properties below are optional
					Disk: jsii.String("disk"),
					DiskType: jsii.String("diskType"),
				},
				WorkerCount: jsii.Number(123),
			},
		},
	},
	MaximumCapacity: &MaximumAllowedResourcesProperty{
		Cpu: jsii.String("cpu"),
		Memory: jsii.String("memory"),

		// the properties below are optional
		Disk: jsii.String("disk"),
	},
	MonitoringConfiguration: &MonitoringConfigurationProperty{
		CloudWatchLoggingConfiguration: &CloudWatchLoggingConfigurationProperty{
			Enabled: jsii.Boolean(false),
			EncryptionKeyArn: jsii.String("encryptionKeyArn"),
			LogGroupName: jsii.String("logGroupName"),
			LogStreamNamePrefix: jsii.String("logStreamNamePrefix"),
			LogTypeMap: []interface{}{
				&LogTypeMapKeyValuePairProperty{
					Key: jsii.String("key"),
					Value: []*string{
						jsii.String("value"),
					},
				},
			},
		},
		ManagedPersistenceMonitoringConfiguration: &ManagedPersistenceMonitoringConfigurationProperty{
			Enabled: jsii.Boolean(false),
			EncryptionKeyArn: jsii.String("encryptionKeyArn"),
		},
		S3MonitoringConfiguration: &S3MonitoringConfigurationProperty{
			EncryptionKeyArn: jsii.String("encryptionKeyArn"),
			LogUri: jsii.String("logUri"),
		},
	},
	Name: jsii.String("name"),
	NetworkConfiguration: &NetworkConfigurationProperty{
		SecurityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
		SubnetIds: []*string{
			jsii.String("subnetIds"),
		},
	},
	RuntimeConfiguration: []interface{}{
		&configurationObjectProperty{
			Classification: jsii.String("classification"),

			// the properties below are optional
			Configurations: []interface{}{
				configurationObjectProperty_,
			},
			Properties: map[string]*string{
				"propertiesKey": jsii.String("properties"),
			},
		},
	},
	Tags: []cfnTag{
		&cfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	WorkerTypeSpecifications: map[string]interface{}{
		"workerTypeSpecificationsKey": &WorkerTypeSpecificationInputProperty{
			"imageConfiguration": &ImageConfigurationInputProperty{
				"imageUri": jsii.String("imageUri"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html

type CfnApplication_AutoStartConfigurationProperty

type CfnApplication_AutoStartConfigurationProperty struct {
	// If set to true, the Application will automatically start.
	//
	// Defaults to true.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-autostartconfiguration.html#cfn-emrserverless-application-autostartconfiguration-enabled
	//
	// Default: - true.
	//
	Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"`
}

Configuration for Auto Start of Application.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

autoStartConfigurationProperty := &AutoStartConfigurationProperty{
	Enabled: jsii.Boolean(false),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-autostartconfiguration.html

type CfnApplication_AutoStopConfigurationProperty

type CfnApplication_AutoStopConfigurationProperty struct {
	// If set to true, the Application will automatically stop after being idle.
	//
	// Defaults to true.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-autostopconfiguration.html#cfn-emrserverless-application-autostopconfiguration-enabled
	//
	// Default: - true.
	//
	Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"`
	// The amount of time [in minutes] to wait before auto stopping the Application when idle.
	//
	// Defaults to 15 minutes.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-autostopconfiguration.html#cfn-emrserverless-application-autostopconfiguration-idletimeoutminutes
	//
	IdleTimeoutMinutes *float64 `field:"optional" json:"idleTimeoutMinutes" yaml:"idleTimeoutMinutes"`
}

Configuration for Auto Stop of Application.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

autoStopConfigurationProperty := &AutoStopConfigurationProperty{
	Enabled: jsii.Boolean(false),
	IdleTimeoutMinutes: jsii.Number(123),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-autostopconfiguration.html

type CfnApplication_CloudWatchLoggingConfigurationProperty added in v2.117.0

type CfnApplication_CloudWatchLoggingConfigurationProperty struct {
	// Enables CloudWatch logging.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-enabled
	//
	// Default: - false.
	//
	Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"`
	// The AWS Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-encryptionkeyarn
	//
	EncryptionKeyArn *string `field:"optional" json:"encryptionKeyArn" yaml:"encryptionKeyArn"`
	// The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-loggroupname
	//
	LogGroupName *string `field:"optional" json:"logGroupName" yaml:"logGroupName"`
	// Prefix for the CloudWatch log stream name.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-logstreamnameprefix
	//
	LogStreamNamePrefix *string `field:"optional" json:"logStreamNamePrefix" yaml:"logStreamNamePrefix"`
	// The specific log-streams which need to be uploaded to CloudWatch.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-logtypemap
	//
	LogTypeMap interface{} `field:"optional" json:"logTypeMap" yaml:"logTypeMap"`
}

The Amazon CloudWatch configuration for monitoring logs.

You can configure your jobs to send log information to CloudWatch.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cloudWatchLoggingConfigurationProperty := &CloudWatchLoggingConfigurationProperty{
	Enabled: jsii.Boolean(false),
	EncryptionKeyArn: jsii.String("encryptionKeyArn"),
	LogGroupName: jsii.String("logGroupName"),
	LogStreamNamePrefix: jsii.String("logStreamNamePrefix"),
	LogTypeMap: []interface{}{
		&LogTypeMapKeyValuePairProperty{
			Key: jsii.String("key"),
			Value: []*string{
				jsii.String("value"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html

type CfnApplication_ConfigurationObjectProperty added in v2.109.0

Configuration for a JobRun.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var configurationObjectProperty_ configurationObjectProperty

configurationObjectProperty := &configurationObjectProperty{
	Classification: jsii.String("classification"),

	// the properties below are optional
	Configurations: []interface{}{
		configurationObjectProperty_,
	},
	Properties: map[string]*string{
		"propertiesKey": jsii.String("properties"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-configurationobject.html

type CfnApplication_ImageConfigurationInputProperty added in v2.63.0

type CfnApplication_ImageConfigurationInputProperty struct {
	// The URI of an image in the Amazon ECR registry.
	//
	// This field is required when you create a new application. If you leave this field blank in an update, Amazon EMR will remove the image configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-imageconfigurationinput.html#cfn-emrserverless-application-imageconfigurationinput-imageuri
	//
	ImageUri *string `field:"optional" json:"imageUri" yaml:"imageUri"`
}

The image configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

imageConfigurationInputProperty := &ImageConfigurationInputProperty{
	ImageUri: jsii.String("imageUri"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-imageconfigurationinput.html

type CfnApplication_InitialCapacityConfigKeyValuePairProperty

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

initialCapacityConfigKeyValuePairProperty := &InitialCapacityConfigKeyValuePairProperty{
	Key: jsii.String("key"),
	Value: &InitialCapacityConfigProperty{
		WorkerConfiguration: &WorkerConfigurationProperty{
			Cpu: jsii.String("cpu"),
			Memory: jsii.String("memory"),

			// the properties below are optional
			Disk: jsii.String("disk"),
			DiskType: jsii.String("diskType"),
		},
		WorkerCount: jsii.Number(123),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-initialcapacityconfigkeyvaluepair.html

type CfnApplication_InitialCapacityConfigProperty

type CfnApplication_InitialCapacityConfigProperty struct {
	// The resource configuration of the initial capacity configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-initialcapacityconfig.html#cfn-emrserverless-application-initialcapacityconfig-workerconfiguration
	//
	WorkerConfiguration interface{} `field:"required" json:"workerConfiguration" yaml:"workerConfiguration"`
	// The number of workers in the initial capacity configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-initialcapacityconfig.html#cfn-emrserverless-application-initialcapacityconfig-workercount
	//
	WorkerCount *float64 `field:"required" json:"workerCount" yaml:"workerCount"`
}

The initial capacity configuration per worker.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

initialCapacityConfigProperty := &InitialCapacityConfigProperty{
	WorkerConfiguration: &WorkerConfigurationProperty{
		Cpu: jsii.String("cpu"),
		Memory: jsii.String("memory"),

		// the properties below are optional
		Disk: jsii.String("disk"),
		DiskType: jsii.String("diskType"),
	},
	WorkerCount: jsii.Number(123),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-initialcapacityconfig.html

type CfnApplication_LogTypeMapKeyValuePairProperty added in v2.117.0

type CfnApplication_LogTypeMapKeyValuePairProperty struct {
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-logtypemapkeyvaluepair.html#cfn-emrserverless-application-logtypemapkeyvaluepair-key
	//
	Key *string `field:"required" json:"key" yaml:"key"`
	// List of Applicable values: [STDOUT, STDERR, HIVE_LOG, TEZ_AM, SYSTEM_LOGS].
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-logtypemapkeyvaluepair.html#cfn-emrserverless-application-logtypemapkeyvaluepair-value
	//
	Value *[]*string `field:"required" json:"value" yaml:"value"`
}

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

logTypeMapKeyValuePairProperty := &LogTypeMapKeyValuePairProperty{
	Key: jsii.String("key"),
	Value: []*string{
		jsii.String("value"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-logtypemapkeyvaluepair.html

type CfnApplication_ManagedPersistenceMonitoringConfigurationProperty added in v2.109.0

type CfnApplication_ManagedPersistenceMonitoringConfigurationProperty struct {
	// Enables managed logging and defaults to true.
	//
	// If set to false, managed logging will be turned off.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-managedpersistencemonitoringconfiguration.html#cfn-emrserverless-application-managedpersistencemonitoringconfiguration-enabled
	//
	// Default: - true.
	//
	Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"`
	// The KMS key ARN to encrypt the logs stored in managed log persistence.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-managedpersistencemonitoringconfiguration.html#cfn-emrserverless-application-managedpersistencemonitoringconfiguration-encryptionkeyarn
	//
	EncryptionKeyArn *string `field:"optional" json:"encryptionKeyArn" yaml:"encryptionKeyArn"`
}

The managed log persistence configuration for a job run.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

managedPersistenceMonitoringConfigurationProperty := &ManagedPersistenceMonitoringConfigurationProperty{
	Enabled: jsii.Boolean(false),
	EncryptionKeyArn: jsii.String("encryptionKeyArn"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-managedpersistencemonitoringconfiguration.html

type CfnApplication_MaximumAllowedResourcesProperty

type CfnApplication_MaximumAllowedResourcesProperty struct {
	// The maximum allowed CPU for an application.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-maximumallowedresources.html#cfn-emrserverless-application-maximumallowedresources-cpu
	//
	Cpu *string `field:"required" json:"cpu" yaml:"cpu"`
	// The maximum allowed resources for an application.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-maximumallowedresources.html#cfn-emrserverless-application-maximumallowedresources-memory
	//
	Memory *string `field:"required" json:"memory" yaml:"memory"`
	// The maximum allowed disk for an application.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-maximumallowedresources.html#cfn-emrserverless-application-maximumallowedresources-disk
	//
	Disk *string `field:"optional" json:"disk" yaml:"disk"`
}

The maximum allowed cumulative resources for an application.

No new resources will be created once the limit is hit.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

maximumAllowedResourcesProperty := &MaximumAllowedResourcesProperty{
	Cpu: jsii.String("cpu"),
	Memory: jsii.String("memory"),

	// the properties below are optional
	Disk: jsii.String("disk"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-maximumallowedresources.html

type CfnApplication_MonitoringConfigurationProperty added in v2.109.0

type CfnApplication_MonitoringConfigurationProperty struct {
	// The Amazon CloudWatch configuration for monitoring logs.
	//
	// You can configure your jobs to send log information to CloudWatch.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-monitoringconfiguration.html#cfn-emrserverless-application-monitoringconfiguration-cloudwatchloggingconfiguration
	//
	CloudWatchLoggingConfiguration interface{} `field:"optional" json:"cloudWatchLoggingConfiguration" yaml:"cloudWatchLoggingConfiguration"`
	// The managed log persistence configuration for a job run.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-monitoringconfiguration.html#cfn-emrserverless-application-monitoringconfiguration-managedpersistencemonitoringconfiguration
	//
	ManagedPersistenceMonitoringConfiguration interface{} `field:"optional" json:"managedPersistenceMonitoringConfiguration" yaml:"managedPersistenceMonitoringConfiguration"`
	// The Amazon S3 configuration for monitoring log publishing.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-monitoringconfiguration.html#cfn-emrserverless-application-monitoringconfiguration-s3monitoringconfiguration
	//
	S3MonitoringConfiguration interface{} `field:"optional" json:"s3MonitoringConfiguration" yaml:"s3MonitoringConfiguration"`
}

The configuration setting for monitoring.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

monitoringConfigurationProperty := &MonitoringConfigurationProperty{
	CloudWatchLoggingConfiguration: &CloudWatchLoggingConfigurationProperty{
		Enabled: jsii.Boolean(false),
		EncryptionKeyArn: jsii.String("encryptionKeyArn"),
		LogGroupName: jsii.String("logGroupName"),
		LogStreamNamePrefix: jsii.String("logStreamNamePrefix"),
		LogTypeMap: []interface{}{
			&LogTypeMapKeyValuePairProperty{
				Key: jsii.String("key"),
				Value: []*string{
					jsii.String("value"),
				},
			},
		},
	},
	ManagedPersistenceMonitoringConfiguration: &ManagedPersistenceMonitoringConfigurationProperty{
		Enabled: jsii.Boolean(false),
		EncryptionKeyArn: jsii.String("encryptionKeyArn"),
	},
	S3MonitoringConfiguration: &S3MonitoringConfigurationProperty{
		EncryptionKeyArn: jsii.String("encryptionKeyArn"),
		LogUri: jsii.String("logUri"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-monitoringconfiguration.html

type CfnApplication_NetworkConfigurationProperty

type CfnApplication_NetworkConfigurationProperty struct {
	// The array of security group Ids for customer VPC connectivity.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-networkconfiguration.html#cfn-emrserverless-application-networkconfiguration-securitygroupids
	//
	SecurityGroupIds *[]*string `field:"optional" json:"securityGroupIds" yaml:"securityGroupIds"`
	// The array of subnet Ids for customer VPC connectivity.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-networkconfiguration.html#cfn-emrserverless-application-networkconfiguration-subnetids
	//
	SubnetIds *[]*string `field:"optional" json:"subnetIds" yaml:"subnetIds"`
}

The network configuration for customer VPC connectivity.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

networkConfigurationProperty := &NetworkConfigurationProperty{
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
	SubnetIds: []*string{
		jsii.String("subnetIds"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-networkconfiguration.html

type CfnApplication_S3MonitoringConfigurationProperty added in v2.109.0

type CfnApplication_S3MonitoringConfigurationProperty struct {
	// The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-s3monitoringconfiguration.html#cfn-emrserverless-application-s3monitoringconfiguration-encryptionkeyarn
	//
	EncryptionKeyArn *string `field:"optional" json:"encryptionKeyArn" yaml:"encryptionKeyArn"`
	// The Amazon S3 destination URI for log publishing.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-s3monitoringconfiguration.html#cfn-emrserverless-application-s3monitoringconfiguration-loguri
	//
	LogUri *string `field:"optional" json:"logUri" yaml:"logUri"`
}

The Amazon S3 configuration for monitoring log publishing.

You can configure your jobs to send log information to Amazon S3.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

s3MonitoringConfigurationProperty := &S3MonitoringConfigurationProperty{
	EncryptionKeyArn: jsii.String("encryptionKeyArn"),
	LogUri: jsii.String("logUri"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-s3monitoringconfiguration.html

type CfnApplication_WorkerConfigurationProperty

type CfnApplication_WorkerConfigurationProperty struct {
	// Per worker CPU resource.
	//
	// vCPU is the only supported unit and specifying vCPU is optional.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workerconfiguration.html#cfn-emrserverless-application-workerconfiguration-cpu
	//
	Cpu *string `field:"required" json:"cpu" yaml:"cpu"`
	// Per worker memory resource.
	//
	// GB is the only supported unit and specifying GB is optional.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workerconfiguration.html#cfn-emrserverless-application-workerconfiguration-memory
	//
	Memory *string `field:"required" json:"memory" yaml:"memory"`
	// Per worker Disk resource.
	//
	// GB is the only supported unit and specifying GB is optional.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workerconfiguration.html#cfn-emrserverless-application-workerconfiguration-disk
	//
	Disk *string `field:"optional" json:"disk" yaml:"disk"`
	// Per worker DiskType resource.
	//
	// Shuffle optimized and Standard are only supported types and specifying diskType is optional.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workerconfiguration.html#cfn-emrserverless-application-workerconfiguration-disktype
	//
	DiskType *string `field:"optional" json:"diskType" yaml:"diskType"`
}

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

workerConfigurationProperty := &WorkerConfigurationProperty{
	Cpu: jsii.String("cpu"),
	Memory: jsii.String("memory"),

	// the properties below are optional
	Disk: jsii.String("disk"),
	DiskType: jsii.String("diskType"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workerconfiguration.html

type CfnApplication_WorkerTypeSpecificationInputProperty added in v2.63.0

type CfnApplication_WorkerTypeSpecificationInputProperty struct {
	// The image configuration for a worker type.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workertypespecificationinput.html#cfn-emrserverless-application-workertypespecificationinput-imageconfiguration
	//
	ImageConfiguration interface{} `field:"optional" json:"imageConfiguration" yaml:"imageConfiguration"`
}

The specifications for a worker type.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

workerTypeSpecificationInputProperty := &WorkerTypeSpecificationInputProperty{
	ImageConfiguration: &ImageConfigurationInputProperty{
		ImageUri: jsii.String("imageUri"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workertypespecificationinput.html

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL