oci.LoadBalancer.SslCipherSuite
Explore with Pulumi AI
This resource provides the Ssl Cipher Suite resource in Oracle Cloud Infrastructure Load Balancer service.
Creates a custom SSL cipher suite.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSslCipherSuite = new oci.loadbalancer.SslCipherSuite("test_ssl_cipher_suite", {
ciphers: sslCipherSuiteCiphers,
loadBalancerId: testLoadBalancer.id,
name: sslCipherSuiteName,
});
import pulumi
import pulumi_oci as oci
test_ssl_cipher_suite = oci.load_balancer.SslCipherSuite("test_ssl_cipher_suite",
ciphers=ssl_cipher_suite_ciphers,
load_balancer_id=test_load_balancer["id"],
name=ssl_cipher_suite_name)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/LoadBalancer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := LoadBalancer.NewSslCipherSuite(ctx, "test_ssl_cipher_suite", &LoadBalancer.SslCipherSuiteArgs{
Ciphers: pulumi.Any(sslCipherSuiteCiphers),
LoadBalancerId: pulumi.Any(testLoadBalancer.Id),
Name: pulumi.Any(sslCipherSuiteName),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testSslCipherSuite = new Oci.LoadBalancer.SslCipherSuite("test_ssl_cipher_suite", new()
{
Ciphers = sslCipherSuiteCiphers,
LoadBalancerId = testLoadBalancer.Id,
Name = sslCipherSuiteName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LoadBalancer.SslCipherSuite;
import com.pulumi.oci.LoadBalancer.SslCipherSuiteArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testSslCipherSuite = new SslCipherSuite("testSslCipherSuite", SslCipherSuiteArgs.builder()
.ciphers(sslCipherSuiteCiphers)
.loadBalancerId(testLoadBalancer.id())
.name(sslCipherSuiteName)
.build());
}
}
resources:
testSslCipherSuite:
type: oci:LoadBalancer:SslCipherSuite
name: test_ssl_cipher_suite
properties:
ciphers: ${sslCipherSuiteCiphers}
loadBalancerId: ${testLoadBalancer.id}
name: ${sslCipherSuiteName}
Create SslCipherSuite Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SslCipherSuite(name: string, args: SslCipherSuiteArgs, opts?: CustomResourceOptions);
@overload
def SslCipherSuite(resource_name: str,
args: SslCipherSuiteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SslCipherSuite(resource_name: str,
opts: Optional[ResourceOptions] = None,
ciphers: Optional[Sequence[str]] = None,
load_balancer_id: Optional[str] = None,
name: Optional[str] = None)
func NewSslCipherSuite(ctx *Context, name string, args SslCipherSuiteArgs, opts ...ResourceOption) (*SslCipherSuite, error)
public SslCipherSuite(string name, SslCipherSuiteArgs args, CustomResourceOptions? opts = null)
public SslCipherSuite(String name, SslCipherSuiteArgs args)
public SslCipherSuite(String name, SslCipherSuiteArgs args, CustomResourceOptions options)
type: oci:LoadBalancer:SslCipherSuite
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SslCipherSuiteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SslCipherSuiteArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SslCipherSuiteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SslCipherSuiteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SslCipherSuiteArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sslCipherSuiteResource = new Oci.LoadBalancer.SslCipherSuite("sslCipherSuiteResource", new()
{
Ciphers = new[]
{
"string",
},
LoadBalancerId = "string",
Name = "string",
});
example, err := LoadBalancer.NewSslCipherSuite(ctx, "sslCipherSuiteResource", &LoadBalancer.SslCipherSuiteArgs{
Ciphers: pulumi.StringArray{
pulumi.String("string"),
},
LoadBalancerId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var sslCipherSuiteResource = new SslCipherSuite("sslCipherSuiteResource", SslCipherSuiteArgs.builder()
.ciphers("string")
.loadBalancerId("string")
.name("string")
.build());
ssl_cipher_suite_resource = oci.load_balancer.SslCipherSuite("sslCipherSuiteResource",
ciphers=["string"],
load_balancer_id="string",
name="string")
const sslCipherSuiteResource = new oci.loadbalancer.SslCipherSuite("sslCipherSuiteResource", {
ciphers: ["string"],
loadBalancerId: "string",
name: "string",
});
type: oci:LoadBalancer:SslCipherSuite
properties:
ciphers:
- string
loadBalancerId: string
name: string
SslCipherSuite Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SslCipherSuite resource accepts the following input properties:
- Ciphers List<string>
- Load
Balancer stringId - The OCID of the associated load balancer.
- Name string
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Ciphers []string
- Load
Balancer stringId - The OCID of the associated load balancer.
- Name string
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- ciphers List<String>
- load
Balancer StringId - The OCID of the associated load balancer.
- name String
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- ciphers string[]
- load
Balancer stringId - The OCID of the associated load balancer.
- name string
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- ciphers Sequence[str]
- load_
balancer_ strid - The OCID of the associated load balancer.
- name str
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- ciphers List<String>
- load
Balancer StringId - The OCID of the associated load balancer.
- name String
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the SslCipherSuite resource produces the following output properties:
Look up Existing SslCipherSuite Resource
Get an existing SslCipherSuite resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SslCipherSuiteState, opts?: CustomResourceOptions): SslCipherSuite
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ciphers: Optional[Sequence[str]] = None,
load_balancer_id: Optional[str] = None,
name: Optional[str] = None,
state: Optional[str] = None) -> SslCipherSuite
func GetSslCipherSuite(ctx *Context, name string, id IDInput, state *SslCipherSuiteState, opts ...ResourceOption) (*SslCipherSuite, error)
public static SslCipherSuite Get(string name, Input<string> id, SslCipherSuiteState? state, CustomResourceOptions? opts = null)
public static SslCipherSuite get(String name, Output<String> id, SslCipherSuiteState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Ciphers List<string>
- Load
Balancer stringId - The OCID of the associated load balancer.
- Name string
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
- Ciphers []string
- Load
Balancer stringId - The OCID of the associated load balancer.
- Name string
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
- ciphers List<String>
- load
Balancer StringId - The OCID of the associated load balancer.
- name String
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
- ciphers string[]
- load
Balancer stringId - The OCID of the associated load balancer.
- name string
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state string
- ciphers Sequence[str]
- load_
balancer_ strid - The OCID of the associated load balancer.
- name str
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state str
- ciphers List<String>
- load
Balancer StringId - The OCID of the associated load balancer.
- name String
A friendly name for the SSL cipher suite. It must be unique and it cannot be changed.
Note: The name of your user-defined cipher suite must not be the same as any of Oracle's predefined or reserved SSL cipher suite names:
- oci-default-ssl-cipher-suite-v1
- oci-modern-ssl-cipher-suite-v1
- oci-compatible-ssl-cipher-suite-v1
- oci-wider-compatible-ssl-cipher-suite-v1
- oci-customized-ssl-cipher-suite
- oci-default-http2-ssl-cipher-suite-v1
- oci-default-http2-tls-13-ssl-cipher-suite-v1
- oci-default-http2-tls-12-13-ssl-cipher-suite-v1
- oci-tls-13-recommended-ssl-cipher-suite-v1
- oci-tls-12-13-wider-ssl-cipher-suite-v1
- oci-tls-11-12-13-wider-ssl-cipher-suite-v1
example:
example_cipher_suite
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
Import
SslCipherSuites can be imported using the id
, e.g.
$ pulumi import oci:LoadBalancer/sslCipherSuite:SslCipherSuite test_ssl_cipher_suite "loadBalancers/{loadBalancerId}/sslCipherSuites/{name}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.