nexus.RepositoryBowerGroup
Explore with Pulumi AI
!> This resource is deprecated and will be removed in the next major release of this provider. Bower repositories were removed in Nexus 3.71.0.
Use this resource to create a group bower repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nexus from "@pulumi/nexus";
const internal = new nexus.RepositoryBowerHosted("internal", {
online: true,
storage: {
blobStoreName: "default",
strictContentTypeValidation: true,
writePolicy: "ALLOW",
},
});
const bowerIo = new nexus.RepositoryBowerProxy("bowerIo", {
online: true,
rewritePackageUrls: true,
storage: {
blobStoreName: "default",
strictContentTypeValidation: true,
},
proxy: {
remoteUrl: "https://registry.bower.io",
contentMaxAge: 1440,
metadataMaxAge: 1440,
},
negativeCache: {
enabled: true,
ttl: 1440,
},
httpClient: {
blocked: false,
autoBlock: true,
},
});
const group = new nexus.RepositoryBowerGroup("group", {
online: true,
group: {
memberNames: [
internal.name,
bowerIo.name,
],
},
storage: {
blobStoreName: "default",
strictContentTypeValidation: true,
},
});
import pulumi
import pulumi_nexus as nexus
internal = nexus.RepositoryBowerHosted("internal",
online=True,
storage={
"blob_store_name": "default",
"strict_content_type_validation": True,
"write_policy": "ALLOW",
})
bower_io = nexus.RepositoryBowerProxy("bowerIo",
online=True,
rewrite_package_urls=True,
storage={
"blob_store_name": "default",
"strict_content_type_validation": True,
},
proxy={
"remote_url": "https://registry.bower.io",
"content_max_age": 1440,
"metadata_max_age": 1440,
},
negative_cache={
"enabled": True,
"ttl": 1440,
},
http_client={
"blocked": False,
"auto_block": True,
})
group = nexus.RepositoryBowerGroup("group",
online=True,
group={
"member_names": [
internal.name,
bower_io.name,
],
},
storage={
"blob_store_name": "default",
"strict_content_type_validation": True,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/nexus/v2/nexus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
internal, err := nexus.NewRepositoryBowerHosted(ctx, "internal", &nexus.RepositoryBowerHostedArgs{
Online: pulumi.Bool(true),
Storage: &nexus.RepositoryBowerHostedStorageArgs{
BlobStoreName: pulumi.String("default"),
StrictContentTypeValidation: pulumi.Bool(true),
WritePolicy: pulumi.String("ALLOW"),
},
})
if err != nil {
return err
}
bowerIo, err := nexus.NewRepositoryBowerProxy(ctx, "bowerIo", &nexus.RepositoryBowerProxyArgs{
Online: pulumi.Bool(true),
RewritePackageUrls: pulumi.Bool(true),
Storage: &nexus.RepositoryBowerProxyStorageArgs{
BlobStoreName: pulumi.String("default"),
StrictContentTypeValidation: pulumi.Bool(true),
},
Proxy: &nexus.RepositoryBowerProxyProxyArgs{
RemoteUrl: pulumi.String("https://registry.bower.io"),
ContentMaxAge: pulumi.Float64(1440),
MetadataMaxAge: pulumi.Float64(1440),
},
NegativeCache: &nexus.RepositoryBowerProxyNegativeCacheArgs{
Enabled: pulumi.Bool(true),
Ttl: pulumi.Float64(1440),
},
HttpClient: &nexus.RepositoryBowerProxyHttpClientArgs{
Blocked: pulumi.Bool(false),
AutoBlock: pulumi.Bool(true),
},
})
if err != nil {
return err
}
_, err = nexus.NewRepositoryBowerGroup(ctx, "group", &nexus.RepositoryBowerGroupArgs{
Online: pulumi.Bool(true),
Group: &nexus.RepositoryBowerGroupGroupArgs{
MemberNames: pulumi.StringArray{
internal.Name,
bowerIo.Name,
},
},
Storage: &nexus.RepositoryBowerGroupStorageArgs{
BlobStoreName: pulumi.String("default"),
StrictContentTypeValidation: pulumi.Bool(true),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nexus = Pulumi.Nexus;
return await Deployment.RunAsync(() =>
{
var @internal = new Nexus.RepositoryBowerHosted("internal", new()
{
Online = true,
Storage = new Nexus.Inputs.RepositoryBowerHostedStorageArgs
{
BlobStoreName = "default",
StrictContentTypeValidation = true,
WritePolicy = "ALLOW",
},
});
var bowerIo = new Nexus.RepositoryBowerProxy("bowerIo", new()
{
Online = true,
RewritePackageUrls = true,
Storage = new Nexus.Inputs.RepositoryBowerProxyStorageArgs
{
BlobStoreName = "default",
StrictContentTypeValidation = true,
},
Proxy = new Nexus.Inputs.RepositoryBowerProxyProxyArgs
{
RemoteUrl = "https://registry.bower.io",
ContentMaxAge = 1440,
MetadataMaxAge = 1440,
},
NegativeCache = new Nexus.Inputs.RepositoryBowerProxyNegativeCacheArgs
{
Enabled = true,
Ttl = 1440,
},
HttpClient = new Nexus.Inputs.RepositoryBowerProxyHttpClientArgs
{
Blocked = false,
AutoBlock = true,
},
});
var @group = new Nexus.RepositoryBowerGroup("group", new()
{
Online = true,
Group = new Nexus.Inputs.RepositoryBowerGroupGroupArgs
{
MemberNames = new[]
{
@internal.Name,
bowerIo.Name,
},
},
Storage = new Nexus.Inputs.RepositoryBowerGroupStorageArgs
{
BlobStoreName = "default",
StrictContentTypeValidation = true,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nexus.RepositoryBowerHosted;
import com.pulumi.nexus.RepositoryBowerHostedArgs;
import com.pulumi.nexus.inputs.RepositoryBowerHostedStorageArgs;
import com.pulumi.nexus.RepositoryBowerProxy;
import com.pulumi.nexus.RepositoryBowerProxyArgs;
import com.pulumi.nexus.inputs.RepositoryBowerProxyStorageArgs;
import com.pulumi.nexus.inputs.RepositoryBowerProxyProxyArgs;
import com.pulumi.nexus.inputs.RepositoryBowerProxyNegativeCacheArgs;
import com.pulumi.nexus.inputs.RepositoryBowerProxyHttpClientArgs;
import com.pulumi.nexus.RepositoryBowerGroup;
import com.pulumi.nexus.RepositoryBowerGroupArgs;
import com.pulumi.nexus.inputs.RepositoryBowerGroupGroupArgs;
import com.pulumi.nexus.inputs.RepositoryBowerGroupStorageArgs;
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 internal = new RepositoryBowerHosted("internal", RepositoryBowerHostedArgs.builder()
.online(true)
.storage(RepositoryBowerHostedStorageArgs.builder()
.blobStoreName("default")
.strictContentTypeValidation(true)
.writePolicy("ALLOW")
.build())
.build());
var bowerIo = new RepositoryBowerProxy("bowerIo", RepositoryBowerProxyArgs.builder()
.online(true)
.rewritePackageUrls(true)
.storage(RepositoryBowerProxyStorageArgs.builder()
.blobStoreName("default")
.strictContentTypeValidation(true)
.build())
.proxy(RepositoryBowerProxyProxyArgs.builder()
.remoteUrl("https://registry.bower.io")
.contentMaxAge(1440)
.metadataMaxAge(1440)
.build())
.negativeCache(RepositoryBowerProxyNegativeCacheArgs.builder()
.enabled(true)
.ttl(1440)
.build())
.httpClient(RepositoryBowerProxyHttpClientArgs.builder()
.blocked(false)
.autoBlock(true)
.build())
.build());
var group = new RepositoryBowerGroup("group", RepositoryBowerGroupArgs.builder()
.online(true)
.group(RepositoryBowerGroupGroupArgs.builder()
.memberNames(
internal.name(),
bowerIo.name())
.build())
.storage(RepositoryBowerGroupStorageArgs.builder()
.blobStoreName("default")
.strictContentTypeValidation(true)
.build())
.build());
}
}
resources:
internal:
type: nexus:RepositoryBowerHosted
properties:
online: true
storage:
blobStoreName: default
strictContentTypeValidation: true
writePolicy: ALLOW
bowerIo:
type: nexus:RepositoryBowerProxy
properties:
online: true
rewritePackageUrls: true
storage:
blobStoreName: default
strictContentTypeValidation: true
proxy:
remoteUrl: https://registry.bower.io
contentMaxAge: 1440
metadataMaxAge: 1440
negativeCache:
enabled: true
ttl: 1440
httpClient:
blocked: false
autoBlock: true
group:
type: nexus:RepositoryBowerGroup
properties:
online: true
group:
memberNames:
- ${internal.name}
- ${bowerIo.name}
storage:
blobStoreName: default
strictContentTypeValidation: true
Create RepositoryBowerGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RepositoryBowerGroup(name: string, args: RepositoryBowerGroupArgs, opts?: CustomResourceOptions);
@overload
def RepositoryBowerGroup(resource_name: str,
args: RepositoryBowerGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RepositoryBowerGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
group: Optional[RepositoryBowerGroupGroupArgs] = None,
storage: Optional[RepositoryBowerGroupStorageArgs] = None,
name: Optional[str] = None,
online: Optional[bool] = None)
func NewRepositoryBowerGroup(ctx *Context, name string, args RepositoryBowerGroupArgs, opts ...ResourceOption) (*RepositoryBowerGroup, error)
public RepositoryBowerGroup(string name, RepositoryBowerGroupArgs args, CustomResourceOptions? opts = null)
public RepositoryBowerGroup(String name, RepositoryBowerGroupArgs args)
public RepositoryBowerGroup(String name, RepositoryBowerGroupArgs args, CustomResourceOptions options)
type: nexus:RepositoryBowerGroup
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 RepositoryBowerGroupArgs
- 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 RepositoryBowerGroupArgs
- 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 RepositoryBowerGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryBowerGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryBowerGroupArgs
- 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 repositoryBowerGroupResource = new Nexus.RepositoryBowerGroup("repositoryBowerGroupResource", new()
{
Group = new Nexus.Inputs.RepositoryBowerGroupGroupArgs
{
MemberNames = new[]
{
"string",
},
},
Storage = new Nexus.Inputs.RepositoryBowerGroupStorageArgs
{
BlobStoreName = "string",
StrictContentTypeValidation = false,
},
Name = "string",
Online = false,
});
example, err := nexus.NewRepositoryBowerGroup(ctx, "repositoryBowerGroupResource", &nexus.RepositoryBowerGroupArgs{
Group: &nexus.RepositoryBowerGroupGroupArgs{
MemberNames: pulumi.StringArray{
pulumi.String("string"),
},
},
Storage: &nexus.RepositoryBowerGroupStorageArgs{
BlobStoreName: pulumi.String("string"),
StrictContentTypeValidation: pulumi.Bool(false),
},
Name: pulumi.String("string"),
Online: pulumi.Bool(false),
})
var repositoryBowerGroupResource = new RepositoryBowerGroup("repositoryBowerGroupResource", RepositoryBowerGroupArgs.builder()
.group(RepositoryBowerGroupGroupArgs.builder()
.memberNames("string")
.build())
.storage(RepositoryBowerGroupStorageArgs.builder()
.blobStoreName("string")
.strictContentTypeValidation(false)
.build())
.name("string")
.online(false)
.build());
repository_bower_group_resource = nexus.RepositoryBowerGroup("repositoryBowerGroupResource",
group={
"member_names": ["string"],
},
storage={
"blob_store_name": "string",
"strict_content_type_validation": False,
},
name="string",
online=False)
const repositoryBowerGroupResource = new nexus.RepositoryBowerGroup("repositoryBowerGroupResource", {
group: {
memberNames: ["string"],
},
storage: {
blobStoreName: "string",
strictContentTypeValidation: false,
},
name: "string",
online: false,
});
type: nexus:RepositoryBowerGroup
properties:
group:
memberNames:
- string
name: string
online: false
storage:
blobStoreName: string
strictContentTypeValidation: false
RepositoryBowerGroup 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 RepositoryBowerGroup resource accepts the following input properties:
- Group
Repository
Bower Group Group - Configuration for repository group
- Storage
Repository
Bower Group Storage - The storage configuration of the repository
- Name string
- A unique identifier for this repository
- Online bool
- Whether this repository accepts incoming requests
- Group
Repository
Bower Group Group Args - Configuration for repository group
- Storage
Repository
Bower Group Storage Args - The storage configuration of the repository
- Name string
- A unique identifier for this repository
- Online bool
- Whether this repository accepts incoming requests
- group
Repository
Bower Group Group - Configuration for repository group
- storage
Repository
Bower Group Storage - The storage configuration of the repository
- name String
- A unique identifier for this repository
- online Boolean
- Whether this repository accepts incoming requests
- group
Repository
Bower Group Group - Configuration for repository group
- storage
Repository
Bower Group Storage - The storage configuration of the repository
- name string
- A unique identifier for this repository
- online boolean
- Whether this repository accepts incoming requests
- group
Repository
Bower Group Group Args - Configuration for repository group
- storage
Repository
Bower Group Storage Args - The storage configuration of the repository
- name str
- A unique identifier for this repository
- online bool
- Whether this repository accepts incoming requests
- group Property Map
- Configuration for repository group
- storage Property Map
- The storage configuration of the repository
- name String
- A unique identifier for this repository
- online Boolean
- Whether this repository accepts incoming requests
Outputs
All input properties are implicitly available as output properties. Additionally, the RepositoryBowerGroup 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 RepositoryBowerGroup Resource
Get an existing RepositoryBowerGroup 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?: RepositoryBowerGroupState, opts?: CustomResourceOptions): RepositoryBowerGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
group: Optional[RepositoryBowerGroupGroupArgs] = None,
name: Optional[str] = None,
online: Optional[bool] = None,
storage: Optional[RepositoryBowerGroupStorageArgs] = None) -> RepositoryBowerGroup
func GetRepositoryBowerGroup(ctx *Context, name string, id IDInput, state *RepositoryBowerGroupState, opts ...ResourceOption) (*RepositoryBowerGroup, error)
public static RepositoryBowerGroup Get(string name, Input<string> id, RepositoryBowerGroupState? state, CustomResourceOptions? opts = null)
public static RepositoryBowerGroup get(String name, Output<String> id, RepositoryBowerGroupState state, CustomResourceOptions options)
resources: _: type: nexus:RepositoryBowerGroup 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.
- Group
Repository
Bower Group Group - Configuration for repository group
- Name string
- A unique identifier for this repository
- Online bool
- Whether this repository accepts incoming requests
- Storage
Repository
Bower Group Storage - The storage configuration of the repository
- Group
Repository
Bower Group Group Args - Configuration for repository group
- Name string
- A unique identifier for this repository
- Online bool
- Whether this repository accepts incoming requests
- Storage
Repository
Bower Group Storage Args - The storage configuration of the repository
- group
Repository
Bower Group Group - Configuration for repository group
- name String
- A unique identifier for this repository
- online Boolean
- Whether this repository accepts incoming requests
- storage
Repository
Bower Group Storage - The storage configuration of the repository
- group
Repository
Bower Group Group - Configuration for repository group
- name string
- A unique identifier for this repository
- online boolean
- Whether this repository accepts incoming requests
- storage
Repository
Bower Group Storage - The storage configuration of the repository
- group
Repository
Bower Group Group Args - Configuration for repository group
- name str
- A unique identifier for this repository
- online bool
- Whether this repository accepts incoming requests
- storage
Repository
Bower Group Storage Args - The storage configuration of the repository
- group Property Map
- Configuration for repository group
- name String
- A unique identifier for this repository
- online Boolean
- Whether this repository accepts incoming requests
- storage Property Map
- The storage configuration of the repository
Supporting Types
RepositoryBowerGroupGroup, RepositoryBowerGroupGroupArgs
- Member
Names List<string> - Member repositories names
- Member
Names []string - Member repositories names
- member
Names List<String> - Member repositories names
- member
Names string[] - Member repositories names
- member_
names Sequence[str] - Member repositories names
- member
Names List<String> - Member repositories names
RepositoryBowerGroupStorage, RepositoryBowerGroupStorageArgs
- Blob
Store stringName - Blob store used to store repository contents
- Strict
Content boolType Validation - Whether to validate uploaded content's MIME type appropriate for the repository format
- Blob
Store stringName - Blob store used to store repository contents
- Strict
Content boolType Validation - Whether to validate uploaded content's MIME type appropriate for the repository format
- blob
Store StringName - Blob store used to store repository contents
- strict
Content BooleanType Validation - Whether to validate uploaded content's MIME type appropriate for the repository format
- blob
Store stringName - Blob store used to store repository contents
- strict
Content booleanType Validation - Whether to validate uploaded content's MIME type appropriate for the repository format
- blob_
store_ strname - Blob store used to store repository contents
- strict_
content_ booltype_ validation - Whether to validate uploaded content's MIME type appropriate for the repository format
- blob
Store StringName - Blob store used to store repository contents
- strict
Content BooleanType Validation - Whether to validate uploaded content's MIME type appropriate for the repository format
Import
import using the name of repository
$ pulumi import nexus:index/repositoryBowerGroup:RepositoryBowerGroup group bower-group
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- nexus datadrivers/terraform-provider-nexus
- License
- Notes
- This Pulumi package is based on the
nexus
Terraform Provider.