powerscale.S3GlobalSettings
Explore with Pulumi AI
This resource is used to manage the S3 Global Setting entity of PowerScale Array. PowerScale S3 Global Setting map to the PowerScale file system as base directory for Objects. We can Create, Update and Delete the S3 Global Setting using this resource. We can also import an existing S3 Global Setting from PowerScale array.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as powerscale from "@pulumi/powerscale";
// PowerScale S3 global settings allows you to configure S3 global settings on PowerScale.
const s3GlobalSetting = new powerscale.S3GlobalSettings("s3GlobalSetting", {
httpPort: 9097,
httpsOnly: false,
httpsPort: 9098,
service: true,
});
import pulumi
import pulumi_powerscale as powerscale
# PowerScale S3 global settings allows you to configure S3 global settings on PowerScale.
s3_global_setting = powerscale.S3GlobalSettings("s3GlobalSetting",
http_port=9097,
https_only=False,
https_port=9098,
service=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/powerscale/powerscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// PowerScale S3 global settings allows you to configure S3 global settings on PowerScale.
_, err := powerscale.NewS3GlobalSettings(ctx, "s3GlobalSetting", &powerscale.S3GlobalSettingsArgs{
HttpPort: pulumi.Float64(9097),
HttpsOnly: pulumi.Bool(false),
HttpsPort: pulumi.Float64(9098),
Service: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Powerscale = Pulumi.Powerscale;
return await Deployment.RunAsync(() =>
{
// PowerScale S3 global settings allows you to configure S3 global settings on PowerScale.
var s3GlobalSetting = new Powerscale.S3GlobalSettings("s3GlobalSetting", new()
{
HttpPort = 9097,
HttpsOnly = false,
HttpsPort = 9098,
Service = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerscale.S3GlobalSettings;
import com.pulumi.powerscale.S3GlobalSettingsArgs;
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) {
// PowerScale S3 global settings allows you to configure S3 global settings on PowerScale.
var s3GlobalSetting = new S3GlobalSettings("s3GlobalSetting", S3GlobalSettingsArgs.builder()
.httpPort(9097)
.httpsOnly(false)
.httpsPort(9098)
.service(true)
.build());
}
}
resources:
# PowerScale S3 global settings allows you to configure S3 global settings on PowerScale.
s3GlobalSetting:
type: powerscale:S3GlobalSettings
properties:
httpPort: 9097
httpsOnly: false
httpsPort: 9098
service: true
Create S3GlobalSettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new S3GlobalSettings(name: string, args?: S3GlobalSettingsArgs, opts?: CustomResourceOptions);
@overload
def S3GlobalSettings(resource_name: str,
args: Optional[S3GlobalSettingsArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def S3GlobalSettings(resource_name: str,
opts: Optional[ResourceOptions] = None,
http_port: Optional[float] = None,
https_only: Optional[bool] = None,
https_port: Optional[float] = None,
service: Optional[bool] = None)
func NewS3GlobalSettings(ctx *Context, name string, args *S3GlobalSettingsArgs, opts ...ResourceOption) (*S3GlobalSettings, error)
public S3GlobalSettings(string name, S3GlobalSettingsArgs? args = null, CustomResourceOptions? opts = null)
public S3GlobalSettings(String name, S3GlobalSettingsArgs args)
public S3GlobalSettings(String name, S3GlobalSettingsArgs args, CustomResourceOptions options)
type: powerscale:S3GlobalSettings
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 S3GlobalSettingsArgs
- 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 S3GlobalSettingsArgs
- 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 S3GlobalSettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args S3GlobalSettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args S3GlobalSettingsArgs
- 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 s3globalSettingsResource = new Powerscale.S3GlobalSettings("s3globalSettingsResource", new()
{
HttpPort = 0,
HttpsOnly = false,
HttpsPort = 0,
Service = false,
});
example, err := powerscale.NewS3GlobalSettings(ctx, "s3globalSettingsResource", &powerscale.S3GlobalSettingsArgs{
HttpPort: pulumi.Float64(0),
HttpsOnly: pulumi.Bool(false),
HttpsPort: pulumi.Float64(0),
Service: pulumi.Bool(false),
})
var s3globalSettingsResource = new S3GlobalSettings("s3globalSettingsResource", S3GlobalSettingsArgs.builder()
.httpPort(0)
.httpsOnly(false)
.httpsPort(0)
.service(false)
.build());
s3global_settings_resource = powerscale.S3GlobalSettings("s3globalSettingsResource",
http_port=0,
https_only=False,
https_port=0,
service=False)
const s3globalSettingsResource = new powerscale.S3GlobalSettings("s3globalSettingsResource", {
httpPort: 0,
httpsOnly: false,
httpsPort: 0,
service: false,
});
type: powerscale:S3GlobalSettings
properties:
httpPort: 0
httpsOnly: false
httpsPort: 0
service: false
S3GlobalSettings 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 S3GlobalSettings resource accepts the following input properties:
- http_
port float - Specifies the HTTP port.
- https_
only bool - Specifies if the service is HTTPS only.
- https_
port float - Specifies the HTTPS port.
- service bool
- Specifies if the service is enabled.
Outputs
All input properties are implicitly available as output properties. Additionally, the S3GlobalSettings resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing S3GlobalSettings Resource
Get an existing S3GlobalSettings 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?: S3GlobalSettingsState, opts?: CustomResourceOptions): S3GlobalSettings
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
http_port: Optional[float] = None,
https_only: Optional[bool] = None,
https_port: Optional[float] = None,
service: Optional[bool] = None) -> S3GlobalSettings
func GetS3GlobalSettings(ctx *Context, name string, id IDInput, state *S3GlobalSettingsState, opts ...ResourceOption) (*S3GlobalSettings, error)
public static S3GlobalSettings Get(string name, Input<string> id, S3GlobalSettingsState? state, CustomResourceOptions? opts = null)
public static S3GlobalSettings get(String name, Output<String> id, S3GlobalSettingsState state, CustomResourceOptions options)
resources: _: type: powerscale:S3GlobalSettings get: id: ${id}
- 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.
- http_
port float - Specifies the HTTP port.
- https_
only bool - Specifies if the service is HTTPS only.
- https_
port float - Specifies the HTTPS port.
- service bool
- Specifies if the service is enabled.
Import
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
The command is
$ pulumi import powerscale:index/s3GlobalSettings:S3GlobalSettings s3_global_settings_example <any string>
$ pulumi import powerscale:index/s3GlobalSettings:S3GlobalSettings s3_global_settings_example ""
after running this command, populate the name field and other required parameters in the config file to start managing this resource.
Note: running “terraform show” after importing shows the current config/state of the resource. You can copy/paste that config to make it easier to manage the resource.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- powerscale dell/terraform-provider-powerscale
- License
- Notes
- This Pulumi package is based on the
powerscale
Terraform Provider.