In order to execute a Deployment in application mode, please provide a reference to a Deployment Target.
If preferred, you can reference Deployment Targets via their ID instead of their name by using the deploymentTargetId attribute.
In application mode, the Deployment API specifies both the Flink cluster-level configuration as well as the Flink job-specific configuration.
In order to execute a Deployment in session mode, please provide a reference to a Session Cluster.
In session mode, the Deployment API only specifies the Flink job-specific configuration. Flink cluster-level configuration happens in the SessionCluster API. Therefore, some sections of the Deployment API must be omitted when deploying against a Session Cluster.